@azure/arm-deviceprovisioningservices 6.0.0-beta.1 → 6.0.0-beta.2
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 +20 -10
- package/LICENSE +4 -4
- package/README.md +26 -17
- package/dist/browser/index.d.ts +5 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/index.js +4 -4
- package/dist/browser/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/iotDpsClient.d.ts +2 -2
- package/dist/browser/iotDpsClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/iotDpsClient.js +32 -24
- package/dist/browser/iotDpsClient.js.map +1 -0
- package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +1 -1
- package/dist/browser/lroImpl.js +18 -0
- package/dist/browser/lroImpl.js.map +1 -0
- package/dist/browser/models/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/mappers.js +13 -6
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.js +1 -1
- package/dist/browser/models/parameters.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/dpsCertificate.d.ts +3 -3
- package/dist/browser/operations/dpsCertificate.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/dpsCertificate.js +3 -2
- package/dist/browser/operations/dpsCertificate.js.map +1 -0
- package/dist/browser/operations/index.d.ts +4 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/{dist-esm/src/operationsInterfaces → dist/browser/operations}/index.js +3 -3
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/iotDpsResource.d.ts +3 -3
- package/dist/browser/operations/iotDpsResource.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/iotDpsResource.js +319 -402
- package/dist/browser/operations/iotDpsResource.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
- package/dist/browser/operations/operations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.js +26 -48
- package/dist/browser/operations/operations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/dpsCertificate.d.ts +1 -1
- package/dist/browser/operationsInterfaces/dpsCertificate.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/dpsCertificate.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +4 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
- package/{dist-esm/src/operations → dist/browser/operationsInterfaces}/index.js +3 -3
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/iotDpsResource.d.ts +1 -1
- package/dist/browser/operationsInterfaces/iotDpsResource.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/iotDpsResource.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/operations.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/{dist-esm/src → dist/browser}/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/iotDpsClient.d.ts +22 -0
- package/dist/commonjs/iotDpsClient.d.ts.map +1 -0
- package/dist/commonjs/iotDpsClient.js +115 -0
- package/dist/commonjs/iotDpsClient.js.map +1 -0
- package/dist/commonjs/lroImpl.d.ts +11 -0
- package/dist/commonjs/lroImpl.d.ts.map +1 -0
- package/dist/commonjs/lroImpl.js +21 -0
- package/dist/commonjs/lroImpl.js.map +1 -0
- package/{types/arm-deviceprovisioningservices.d.ts → dist/commonjs/models/index.d.ts} +979 -1378
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +131 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +40 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +1271 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +34 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +296 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/dpsCertificate.d.ts +70 -0
- package/dist/commonjs/operations/dpsCertificate.d.ts.map +1 -0
- package/dist/commonjs/operations/dpsCertificate.js +295 -0
- package/dist/commonjs/operations/dpsCertificate.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +4 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +14 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/iotDpsResource.d.ts +253 -0
- package/dist/commonjs/operations/iotDpsResource.d.ts.map +1 -0
- package/dist/commonjs/operations/iotDpsResource.js +1175 -0
- package/dist/commonjs/operations/iotDpsResource.js.map +1 -0
- package/dist/commonjs/operations/operations.d.ts +32 -0
- package/dist/commonjs/operations/operations.d.ts.map +1 -0
- package/dist/commonjs/operations/operations.js +121 -0
- package/dist/commonjs/operations/operations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/dpsCertificate.d.ts +62 -0
- package/dist/commonjs/operationsInterfaces/dpsCertificate.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/dpsCertificate.js +10 -0
- package/dist/commonjs/operationsInterfaces/dpsCertificate.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +4 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +14 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/iotDpsResource.d.ts +183 -0
- package/dist/commonjs/operationsInterfaces/iotDpsResource.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/iotDpsResource.js +10 -0
- package/dist/commonjs/operationsInterfaces/iotDpsResource.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.js +10 -0
- package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +34 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{src/index.ts → dist/esm/index.js} +5 -5
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/iotDpsClient.d.ts +22 -0
- package/dist/esm/iotDpsClient.d.ts.map +1 -0
- package/dist/esm/iotDpsClient.js +110 -0
- package/dist/esm/iotDpsClient.js.map +1 -0
- package/dist/esm/lroImpl.d.ts +11 -0
- package/dist/esm/lroImpl.d.ts.map +1 -0
- package/dist/esm/lroImpl.js +18 -0
- package/dist/esm/lroImpl.js.map +1 -0
- package/dist/esm/models/index.d.ts +979 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +128 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +40 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +1268 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +34 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +293 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/dpsCertificate.d.ts +70 -0
- package/dist/esm/operations/dpsCertificate.d.ts.map +1 -0
- package/dist/esm/operations/dpsCertificate.js +290 -0
- package/dist/esm/operations/dpsCertificate.js.map +1 -0
- package/dist/esm/operations/index.d.ts +4 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +11 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/iotDpsResource.d.ts +253 -0
- package/dist/esm/operations/iotDpsResource.d.ts.map +1 -0
- package/dist/esm/operations/iotDpsResource.js +1170 -0
- package/dist/esm/operations/iotDpsResource.js.map +1 -0
- package/dist/esm/operations/operations.d.ts +32 -0
- package/dist/esm/operations/operations.d.ts.map +1 -0
- package/dist/esm/operations/operations.js +116 -0
- package/dist/esm/operations/operations.js.map +1 -0
- package/dist/esm/operationsInterfaces/dpsCertificate.d.ts +62 -0
- package/dist/esm/operationsInterfaces/dpsCertificate.d.ts.map +1 -0
- package/{src/operations/index.ts → dist/esm/operationsInterfaces/dpsCertificate.js} +2 -4
- package/dist/esm/operationsInterfaces/dpsCertificate.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +4 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +11 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/iotDpsResource.d.ts +183 -0
- package/dist/esm/operationsInterfaces/iotDpsResource.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/iotDpsResource.js +9 -0
- package/dist/esm/operationsInterfaces/iotDpsResource.js.map +1 -0
- package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
- package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/operations.js +9 -0
- package/dist/esm/operationsInterfaces/operations.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +30 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +13 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/iotDpsClient.d.ts +22 -0
- package/dist/react-native/iotDpsClient.d.ts.map +1 -0
- package/dist/react-native/iotDpsClient.js +110 -0
- package/dist/react-native/iotDpsClient.js.map +1 -0
- package/dist/react-native/lroImpl.d.ts +11 -0
- package/dist/react-native/lroImpl.d.ts.map +1 -0
- package/dist/react-native/lroImpl.js +18 -0
- package/dist/react-native/lroImpl.js.map +1 -0
- package/dist/react-native/models/index.d.ts +979 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +128 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +40 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +1268 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +34 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +293 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/dpsCertificate.d.ts +70 -0
- package/dist/react-native/operations/dpsCertificate.d.ts.map +1 -0
- package/dist/react-native/operations/dpsCertificate.js +290 -0
- package/dist/react-native/operations/dpsCertificate.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +4 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +11 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/iotDpsResource.d.ts +253 -0
- package/dist/react-native/operations/iotDpsResource.d.ts.map +1 -0
- package/dist/react-native/operations/iotDpsResource.js +1170 -0
- package/dist/react-native/operations/iotDpsResource.js.map +1 -0
- package/dist/react-native/operations/operations.d.ts +32 -0
- package/dist/react-native/operations/operations.d.ts.map +1 -0
- package/dist/react-native/operations/operations.js +116 -0
- package/dist/react-native/operations/operations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/dpsCertificate.d.ts +62 -0
- package/dist/react-native/operationsInterfaces/dpsCertificate.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/dpsCertificate.js +9 -0
- package/dist/react-native/operationsInterfaces/dpsCertificate.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +4 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +11 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/iotDpsResource.d.ts +183 -0
- package/dist/react-native/operationsInterfaces/iotDpsResource.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/iotDpsResource.js +9 -0
- package/dist/react-native/operationsInterfaces/iotDpsResource.js.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.js +9 -0
- package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +30 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/package.json +85 -76
- package/dist/index.js +0 -3571
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist-esm/samples-dev/dpsCertificateCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/dpsCertificateCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/dpsCertificateCreateOrUpdateSample.js +0 -44
- package/dist-esm/samples-dev/dpsCertificateCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/dpsCertificateDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/dpsCertificateDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/dpsCertificateDeleteSample.js +0 -42
- package/dist-esm/samples-dev/dpsCertificateDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/dpsCertificateGenerateVerificationCodeSample.d.ts +0 -2
- package/dist-esm/samples-dev/dpsCertificateGenerateVerificationCodeSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/dpsCertificateGenerateVerificationCodeSample.js +0 -42
- package/dist-esm/samples-dev/dpsCertificateGenerateVerificationCodeSample.js.map +0 -1
- package/dist-esm/samples-dev/dpsCertificateGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/dpsCertificateGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/dpsCertificateGetSample.js +0 -41
- package/dist-esm/samples-dev/dpsCertificateGetSample.js.map +0 -1
- package/dist-esm/samples-dev/dpsCertificateListSample.d.ts +0 -2
- package/dist-esm/samples-dev/dpsCertificateListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/dpsCertificateListSample.js +0 -40
- package/dist-esm/samples-dev/dpsCertificateListSample.js.map +0 -1
- package/dist-esm/samples-dev/dpsCertificateVerifyCertificateSample.d.ts +0 -2
- package/dist-esm/samples-dev/dpsCertificateVerifyCertificateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/dpsCertificateVerifyCertificateSample.js +0 -45
- package/dist-esm/samples-dev/dpsCertificateVerifyCertificateSample.js.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceCheckProvisioningServiceNameAvailabilitySample.d.ts +0 -2
- package/dist-esm/samples-dev/iotDpsResourceCheckProvisioningServiceNameAvailabilitySample.d.ts.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceCheckProvisioningServiceNameAvailabilitySample.js +0 -38
- package/dist-esm/samples-dev/iotDpsResourceCheckProvisioningServiceNameAvailabilitySample.js.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceCreateOrUpdatePrivateEndpointConnectionSample.d.ts +0 -2
- package/dist-esm/samples-dev/iotDpsResourceCreateOrUpdatePrivateEndpointConnectionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceCreateOrUpdatePrivateEndpointConnectionSample.js +0 -49
- package/dist-esm/samples-dev/iotDpsResourceCreateOrUpdatePrivateEndpointConnectionSample.js.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceCreateOrUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/iotDpsResourceCreateOrUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceCreateOrUpdateSample.js +0 -78
- package/dist-esm/samples-dev/iotDpsResourceCreateOrUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceDeletePrivateEndpointConnectionSample.d.ts +0 -2
- package/dist-esm/samples-dev/iotDpsResourceDeletePrivateEndpointConnectionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceDeletePrivateEndpointConnectionSample.js +0 -41
- package/dist-esm/samples-dev/iotDpsResourceDeletePrivateEndpointConnectionSample.js.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/iotDpsResourceDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceDeleteSample.js +0 -40
- package/dist-esm/samples-dev/iotDpsResourceDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceGetOperationResultSample.d.ts +0 -2
- package/dist-esm/samples-dev/iotDpsResourceGetOperationResultSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceGetOperationResultSample.js +0 -42
- package/dist-esm/samples-dev/iotDpsResourceGetOperationResultSample.js.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceGetPrivateEndpointConnectionSample.d.ts +0 -2
- package/dist-esm/samples-dev/iotDpsResourceGetPrivateEndpointConnectionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceGetPrivateEndpointConnectionSample.js +0 -41
- package/dist-esm/samples-dev/iotDpsResourceGetPrivateEndpointConnectionSample.js.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceGetPrivateLinkResourcesSample.d.ts +0 -2
- package/dist-esm/samples-dev/iotDpsResourceGetPrivateLinkResourcesSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceGetPrivateLinkResourcesSample.js +0 -41
- package/dist-esm/samples-dev/iotDpsResourceGetPrivateLinkResourcesSample.js.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/iotDpsResourceGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceGetSample.js +0 -40
- package/dist-esm/samples-dev/iotDpsResourceGetSample.js.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/iotDpsResourceListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceListByResourceGroupSample.js +0 -60
- package/dist-esm/samples-dev/iotDpsResourceListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceListBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/iotDpsResourceListBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceListBySubscriptionSample.js +0 -58
- package/dist-esm/samples-dev/iotDpsResourceListBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceListKeysForKeyNameSample.d.ts +0 -2
- package/dist-esm/samples-dev/iotDpsResourceListKeysForKeyNameSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceListKeysForKeyNameSample.js +0 -41
- package/dist-esm/samples-dev/iotDpsResourceListKeysForKeyNameSample.js.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceListKeysSample.d.ts +0 -2
- package/dist-esm/samples-dev/iotDpsResourceListKeysSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceListKeysSample.js +0 -61
- package/dist-esm/samples-dev/iotDpsResourceListKeysSample.js.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceListPrivateEndpointConnectionsSample.d.ts +0 -2
- package/dist-esm/samples-dev/iotDpsResourceListPrivateEndpointConnectionsSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceListPrivateEndpointConnectionsSample.js +0 -40
- package/dist-esm/samples-dev/iotDpsResourceListPrivateEndpointConnectionsSample.js.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceListPrivateLinkResourcesSample.d.ts +0 -2
- package/dist-esm/samples-dev/iotDpsResourceListPrivateLinkResourcesSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceListPrivateLinkResourcesSample.js +0 -40
- package/dist-esm/samples-dev/iotDpsResourceListPrivateLinkResourcesSample.js.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceListValidSkusSample.d.ts +0 -2
- package/dist-esm/samples-dev/iotDpsResourceListValidSkusSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceListValidSkusSample.js +0 -61
- package/dist-esm/samples-dev/iotDpsResourceListValidSkusSample.js.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/iotDpsResourceUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/iotDpsResourceUpdateSample.js +0 -41
- package/dist-esm/samples-dev/iotDpsResourceUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.js +0 -58
- package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -6
- package/dist-esm/src/index.d.ts.map +0 -1
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/iotDpsClient.d.ts.map +0 -1
- package/dist-esm/src/iotDpsClient.js.map +0 -1
- package/dist-esm/src/lroImpl.js +0 -21
- package/dist-esm/src/lroImpl.js.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/dpsCertificate.d.ts.map +0 -1
- package/dist-esm/src/operations/dpsCertificate.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -4
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/iotDpsResource.d.ts.map +0 -1
- package/dist-esm/src/operations/iotDpsResource.js.map +0 -1
- package/dist-esm/src/operations/operations.d.ts.map +0 -1
- package/dist-esm/src/operations/operations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/dpsCertificate.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/dpsCertificate.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -4
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/iotDpsResource.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/iotDpsResource.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/test/deviceprovisioningservices_operations_test.spec.d.ts +0 -4
- package/dist-esm/test/deviceprovisioningservices_operations_test.spec.d.ts.map +0 -1
- package/dist-esm/test/deviceprovisioningservices_operations_test.spec.js +0 -123
- package/dist-esm/test/deviceprovisioningservices_operations_test.spec.js.map +0 -1
- package/rollup.config.js +0 -122
- package/src/iotDpsClient.ts +0 -152
- package/src/lroImpl.ts +0 -42
- package/src/models/index.ts +0 -1108
- package/src/models/mappers.ts +0 -1309
- package/src/models/parameters.ts +0 -337
- package/src/operations/dpsCertificate.ts +0 -374
- package/src/operations/iotDpsResource.ts +0 -1674
- package/src/operations/operations.ts +0 -149
- package/src/operationsInterfaces/dpsCertificate.ts +0 -118
- package/src/operationsInterfaces/index.ts +0 -11
- package/src/operationsInterfaces/iotDpsResource.ts +0 -351
- package/src/operationsInterfaces/operations.ts +0 -22
- package/src/pagingHelper.ts +0 -39
- package/tsconfig.json +0 -33
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/index.js +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/mappers.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/dpsCertificate.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/iotDpsResource.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
- /package/review/{arm-deviceprovisioningservices.api.md → arm-deviceprovisioningservices-node.api.md} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
# Release History
|
|
2
|
-
|
|
2
|
+
|
|
3
|
+
## 6.0.0-beta.2 (Unreleased)
|
|
4
|
+
|
|
5
|
+
### Features Added
|
|
6
|
+
|
|
7
|
+
### Breaking Changes
|
|
8
|
+
|
|
9
|
+
### Bugs Fixed
|
|
10
|
+
|
|
11
|
+
### Other Changes
|
|
12
|
+
|
|
3
13
|
## 6.0.0-beta.1 (2023-06-07)
|
|
4
14
|
|
|
5
|
-
|
|
15
|
+
### Features Added
|
|
6
16
|
|
|
7
17
|
- Added Interface ManagedServiceIdentity
|
|
8
18
|
- Added Interface UserAssignedIdentity
|
|
@@ -13,45 +23,45 @@
|
|
|
13
23
|
- Interface Resource has a new optional parameter subscriptionid
|
|
14
24
|
- Added Enum KnownManagedServiceIdentityType
|
|
15
25
|
|
|
16
|
-
|
|
26
|
+
### Breaking Changes
|
|
17
27
|
|
|
18
28
|
- Type of parameter code of interface ErrorDetails is changed from string to number
|
|
19
29
|
|
|
20
30
|
|
|
21
31
|
## 5.1.0 (2023-01-05)
|
|
22
32
|
|
|
23
|
-
|
|
33
|
+
### Features Added
|
|
24
34
|
|
|
25
35
|
- Added Interface ProvisioningServiceDescription
|
|
26
36
|
- Added function getContinuationToken
|
|
27
37
|
|
|
28
38
|
## 5.0.1 (2022-04-27)
|
|
29
39
|
|
|
30
|
-
|
|
40
|
+
### Features Added
|
|
31
41
|
|
|
32
42
|
- Bug fix
|
|
33
43
|
|
|
34
44
|
## 5.0.0 (2022-04-25)
|
|
35
45
|
|
|
36
|
-
|
|
46
|
+
### Features Added
|
|
37
47
|
|
|
38
48
|
- Added Interface ErrorMessage
|
|
39
49
|
- Added Interface IotDpsResourceDeletePrivateEndpointConnectionHeaders
|
|
40
50
|
|
|
41
|
-
|
|
51
|
+
### Breaking Changes
|
|
42
52
|
|
|
43
53
|
- Operation DpsCertificate.createOrUpdate has a new signature
|
|
44
54
|
|
|
45
55
|
|
|
46
56
|
## 4.1.1 (2022-04-18)
|
|
47
57
|
|
|
48
|
-
|
|
58
|
+
### Features Added
|
|
49
59
|
|
|
50
60
|
- bug fix
|
|
51
61
|
|
|
52
62
|
## 4.1.0 (2022-01-24)
|
|
53
63
|
|
|
54
|
-
|
|
64
|
+
### Features Added
|
|
55
65
|
|
|
56
66
|
- Added Interface SystemData
|
|
57
67
|
- Added Type Alias CreatedByType
|
|
@@ -70,4 +80,4 @@ To understand the detail of the change, please refer to [Changelog](https://aka.
|
|
|
70
80
|
|
|
71
81
|
To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
|
|
72
82
|
|
|
73
|
-
To learn more, please refer to our documentation [Quick Start](https://aka.ms/js
|
|
83
|
+
To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ).
|
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
Copyright (c) Microsoft Corporation.
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
MIT License
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -12,10 +12,10 @@ furnished to do so, subject to the following conditions:
|
|
|
12
12
|
The above copyright notice and this permission notice shall be included in all
|
|
13
13
|
copies or substantial portions of the Software.
|
|
14
14
|
|
|
15
|
-
THE SOFTWARE IS PROVIDED
|
|
15
|
+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
16
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
17
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ API for using the Azure IoT Hub Device Provisioning Service features.
|
|
|
6
6
|
|
|
7
7
|
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/deviceprovisioningservices/arm-deviceprovisioningservices) |
|
|
8
8
|
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-deviceprovisioningservices) |
|
|
9
|
-
[API reference documentation](https://
|
|
9
|
+
[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-deviceprovisioningservices?view=azure-node-preview) |
|
|
10
10
|
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
|
|
11
11
|
|
|
12
12
|
## Getting started
|
|
@@ -46,26 +46,34 @@ npm install @azure/identity
|
|
|
46
46
|
You will also need to **register a new AAD application and grant access to Azure iotDps** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
|
|
47
47
|
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
|
|
48
48
|
|
|
49
|
-
For more information about how to create an Azure AD Application check out [this guide](https://
|
|
49
|
+
For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
51
|
+
Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
|
|
52
|
+
|
|
53
|
+
```ts snippet:ReadmeSampleCreateClient_Node
|
|
54
|
+
import { IotDpsClient } from "@azure/arm-deviceprovisioningservices";
|
|
55
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
55
56
|
|
|
56
57
|
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
57
58
|
const client = new IotDpsClient(new DefaultAzureCredential(), subscriptionId);
|
|
58
|
-
|
|
59
|
-
// For client-side applications running in the browser, use this code instead:
|
|
60
|
-
// const credential = new InteractiveBrowserCredential({
|
|
61
|
-
// tenantId: "<YOUR_TENANT_ID>",
|
|
62
|
-
// clientId: "<YOUR_CLIENT_ID>"
|
|
63
|
-
// });
|
|
64
|
-
// const client = new IotDpsClient(credential, subscriptionId);
|
|
65
59
|
```
|
|
66
60
|
|
|
61
|
+
For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
|
|
62
|
+
|
|
63
|
+
```ts snippet:ReadmeSampleCreateClient_Browser
|
|
64
|
+
import { InteractiveBrowserCredential } from "@azure/identity";
|
|
65
|
+
import { IotDpsClient } from "@azure/arm-deviceprovisioningservices";
|
|
66
|
+
|
|
67
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
68
|
+
const credential = new InteractiveBrowserCredential({
|
|
69
|
+
tenantId: "<YOUR_TENANT_ID>",
|
|
70
|
+
clientId: "<YOUR_CLIENT_ID>",
|
|
71
|
+
});
|
|
72
|
+
const client = new IotDpsClient(credential, subscriptionId);
|
|
73
|
+
```
|
|
67
74
|
|
|
68
75
|
### JavaScript Bundle
|
|
76
|
+
|
|
69
77
|
To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
|
|
70
78
|
|
|
71
79
|
## Key concepts
|
|
@@ -80,8 +88,9 @@ To use this client library in the browser, first you need to use a bundler. For
|
|
|
80
88
|
|
|
81
89
|
Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
|
|
82
90
|
|
|
83
|
-
```
|
|
84
|
-
|
|
91
|
+
```ts snippet:SetLogLevel
|
|
92
|
+
import { setLogLevel } from "@azure/logger";
|
|
93
|
+
|
|
85
94
|
setLogLevel("info");
|
|
86
95
|
```
|
|
87
96
|
|
|
@@ -99,9 +108,9 @@ If you'd like to contribute to this library, please read the [contributing guide
|
|
|
99
108
|
|
|
100
109
|
- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
|
|
101
110
|
|
|
102
|
-

|
|
103
111
|
|
|
104
|
-
|
|
112
|
+
|
|
113
|
+
[azure_cli]: https://learn.microsoft.com/cli/azure
|
|
105
114
|
[azure_sub]: https://azure.microsoft.com/free/
|
|
106
115
|
[azure_sub]: https://azure.microsoft.com/free/
|
|
107
116
|
[azure_portal]: https://portal.azure.com
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,cAAc,iCAAiC,CAAC"}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
/// <reference lib="esnext.asynciterable" />
|
|
9
|
-
export { getContinuationToken } from "./pagingHelper";
|
|
10
|
-
export * from "./models";
|
|
11
|
-
export { IotDpsClient } from "./iotDpsClient";
|
|
12
|
-
export * from "./operationsInterfaces";
|
|
9
|
+
export { getContinuationToken } from "./pagingHelper.js";
|
|
10
|
+
export * from "./models/index.js";
|
|
11
|
+
export { IotDpsClient } from "./iotDpsClient.js";
|
|
12
|
+
export * from "./operationsInterfaces/index.js";
|
|
13
13
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,cAAc,iCAAiC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { IotDpsClient } from \"./iotDpsClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as coreClient from "@azure/core-client";
|
|
2
2
|
import * as coreAuth from "@azure/core-auth";
|
|
3
|
-
import { Operations, DpsCertificate, IotDpsResource } from "./operationsInterfaces";
|
|
4
|
-
import { IotDpsClientOptionalParams } from "./models";
|
|
3
|
+
import { Operations, DpsCertificate, IotDpsResource } from "./operationsInterfaces/index.js";
|
|
4
|
+
import { IotDpsClientOptionalParams } from "./models/index.js";
|
|
5
5
|
export declare class IotDpsClient extends coreClient.ServiceClient {
|
|
6
6
|
$host: string;
|
|
7
7
|
apiVersion: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iotDpsClient.d.ts","sourceRoot":"","sources":["../../src/iotDpsClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAM7C,OAAO,EACL,UAAU,EACV,cAAc,EACd,cAAc,EACf,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAE/D,qBAAa,YAAa,SAAQ,UAAU,CAAC,aAAa;IACxD,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,0BAA0B;IA8EtC,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,UAAU,EAAE,UAAU,CAAC;IACvB,cAAc,EAAE,cAAc,CAAC;IAC/B,cAAc,EAAE,cAAc,CAAC;CAChC"}
|
|
@@ -5,11 +5,13 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __awaiter } from "tslib";
|
|
9
8
|
import * as coreClient from "@azure/core-client";
|
|
10
9
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
11
|
-
import { OperationsImpl, DpsCertificateImpl, IotDpsResourceImpl } from "./operations";
|
|
10
|
+
import { OperationsImpl, DpsCertificateImpl, IotDpsResourceImpl } from "./operations/index.js";
|
|
12
11
|
export class IotDpsClient extends coreClient.ServiceClient {
|
|
12
|
+
$host;
|
|
13
|
+
apiVersion;
|
|
14
|
+
subscriptionId;
|
|
13
15
|
/**
|
|
14
16
|
* Initializes a new instance of the IotDpsClient class.
|
|
15
17
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
@@ -17,7 +19,6 @@ export class IotDpsClient extends coreClient.ServiceClient {
|
|
|
17
19
|
* @param options The parameter options
|
|
18
20
|
*/
|
|
19
21
|
constructor(credentials, subscriptionId, options) {
|
|
20
|
-
var _a, _b, _c;
|
|
21
22
|
if (credentials === undefined) {
|
|
22
23
|
throw new Error("'credentials' cannot be null");
|
|
23
24
|
}
|
|
@@ -32,16 +33,21 @@ export class IotDpsClient extends coreClient.ServiceClient {
|
|
|
32
33
|
requestContentType: "application/json; charset=utf-8",
|
|
33
34
|
credential: credentials
|
|
34
35
|
};
|
|
35
|
-
const packageDetails = `azsdk-js-arm-deviceprovisioningservices/6.0.0-beta.
|
|
36
|
+
const packageDetails = `azsdk-js-arm-deviceprovisioningservices/6.0.0-beta.2`;
|
|
36
37
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
37
38
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
38
39
|
: `${packageDetails}`;
|
|
39
|
-
const optionsWithDefaults =
|
|
40
|
+
const optionsWithDefaults = {
|
|
41
|
+
...defaults,
|
|
42
|
+
...options,
|
|
43
|
+
userAgentOptions: {
|
|
40
44
|
userAgentPrefix
|
|
41
|
-
},
|
|
45
|
+
},
|
|
46
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
47
|
+
};
|
|
42
48
|
super(optionsWithDefaults);
|
|
43
49
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
44
|
-
if (
|
|
50
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
45
51
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
46
52
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
47
53
|
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
@@ -55,7 +61,8 @@ export class IotDpsClient extends coreClient.ServiceClient {
|
|
|
55
61
|
});
|
|
56
62
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
57
63
|
credential: credentials,
|
|
58
|
-
scopes:
|
|
64
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
65
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
59
66
|
challengeCallbacks: {
|
|
60
67
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
61
68
|
}
|
|
@@ -78,25 +85,26 @@ export class IotDpsClient extends coreClient.ServiceClient {
|
|
|
78
85
|
}
|
|
79
86
|
const apiVersionPolicy = {
|
|
80
87
|
name: "CustomApiVersionPolicy",
|
|
81
|
-
sendRequest(request, next) {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
return next(request);
|
|
96
|
-
});
|
|
88
|
+
async sendRequest(request, next) {
|
|
89
|
+
const param = request.url.split("?");
|
|
90
|
+
if (param.length > 1) {
|
|
91
|
+
const newParams = param[1].split("&").map((item) => {
|
|
92
|
+
if (item.indexOf("api-version") > -1) {
|
|
93
|
+
return "api-version=" + apiVersion;
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
return item;
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
100
|
+
}
|
|
101
|
+
return next(request);
|
|
97
102
|
}
|
|
98
103
|
};
|
|
99
104
|
this.pipeline.addPolicy(apiVersionPolicy);
|
|
100
105
|
}
|
|
106
|
+
operations;
|
|
107
|
+
dpsCertificate;
|
|
108
|
+
iotDpsResource;
|
|
101
109
|
}
|
|
102
110
|
//# sourceMappingURL=iotDpsClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iotDpsClient.js","sourceRoot":"","sources":["../../src/iotDpsClient.ts"],"names":[],"mappings":"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","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n OperationsImpl,\n DpsCertificateImpl,\n IotDpsResourceImpl\n} from \"./operations/index.js\";\nimport {\n Operations,\n DpsCertificate,\n IotDpsResource\n} from \"./operationsInterfaces/index.js\";\nimport { IotDpsClientOptionalParams } from \"./models/index.js\";\n\nexport class IotDpsClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the IotDpsClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The subscription identifier.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: IotDpsClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: IotDpsClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-deviceprovisioningservices/6.0.0-beta.2`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2023-03-01-preview\";\n this.operations = new OperationsImpl(this);\n this.dpsCertificate = new DpsCertificateImpl(this);\n this.iotDpsResource = new IotDpsResourceImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n operations: Operations;\n dpsCertificate: DpsCertificate;\n iotDpsResource: IotDpsResource;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAmB1B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export function createLroSpec(inputs) {
|
|
2
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
3
|
+
return {
|
|
4
|
+
requestMethod: spec.httpMethod,
|
|
5
|
+
requestPath: spec.path,
|
|
6
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
7
|
+
sendPollRequest: (path, options) => {
|
|
8
|
+
const { requestBody, ...restSpec } = spec;
|
|
9
|
+
return sendOperationFn(args, {
|
|
10
|
+
...restSpec,
|
|
11
|
+
httpMethod: "GET",
|
|
12
|
+
path,
|
|
13
|
+
abortSignal: options?.abortSignal
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=lroImpl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAUA,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,EAAE;gBAC3B,GAAG,QAAQ;gBACX,UAAU,EAAE,KAAK;gBACjB,IAAI;gBACJ,WAAW,EAAE,OAAO,EAAE,WAAW;aAClC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike }\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal\n });\n }\n };\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"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","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\n\n/** Result of the request to list provisioning service operations. It contains a list of operations and a URL link to get the next set of results. */\nexport interface OperationListResult {\n /**\n * Provisioning service operations supported by the Microsoft.Devices resource provider.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly value?: Operation[];\n /**\n * URL to get the next set of operation list results if there are any.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\n/** Provisioning Service REST API operation. */\nexport interface Operation {\n /**\n * Operation name: {provider}/{resource}/{read | write | action | delete}\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /** The object that represents the operation. */\n display?: OperationDisplay;\n}\n\n/** The object that represents the operation. */\nexport interface OperationDisplay {\n /**\n * Service provider: Microsoft Devices.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly provider?: string;\n /**\n * Resource Type: ProvisioningServices.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly resource?: string;\n /**\n * Name of the operation.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly operation?: string;\n}\n\n/** Error details. */\nexport interface ErrorDetails {\n /**\n * The error code.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly code?: number;\n /**\n * The HTTP status code.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly httpStatusCode?: string;\n /**\n * The error message.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly message?: string;\n /**\n * The error details.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly details?: string;\n}\n\n/** The X509 Certificate. */\nexport interface CertificateResponse {\n /** properties of a certificate */\n properties?: CertificateProperties;\n /**\n * The resource identifier.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The name of the certificate.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * The entity tag.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly etag?: string;\n /**\n * The resource type.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /**\n * Metadata pertaining to creation and last modification of the resource.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly systemData?: SystemData;\n}\n\n/** The description of an X509 CA Certificate. */\nexport interface CertificateProperties {\n /**\n * The certificate's subject name.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly subject?: string;\n /**\n * The certificate's expiration date and time.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly expiry?: Date;\n /**\n * The certificate's thumbprint.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly thumbprint?: string;\n /** Determines whether certificate has been verified. */\n isVerified?: boolean;\n /** base-64 representation of X509 certificate .cer file or just .pem file content. */\n certificate?: Uint8Array;\n /**\n * The certificate's creation date and time.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly created?: Date;\n /**\n * The certificate's last update date and time.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly updated?: Date;\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\n/** the service specific properties of a provisioning service, including keys, linked iot hubs, current state, and system generated properties such as hostname and idScope */\nexport interface IotDpsPropertiesDescription {\n /** Current state of the provisioning service. */\n state?: State;\n /** Whether requests from Public Network are allowed */\n publicNetworkAccess?: PublicNetworkAccess;\n /** The IP filter rules. */\n ipFilterRules?: IpFilterRule[];\n /** Private endpoint connections created on this IotHub */\n privateEndpointConnections?: PrivateEndpointConnection[];\n /** The ARM provisioning state of the provisioning service. */\n provisioningState?: string;\n /** List of IoT hubs associated with this provisioning service. */\n iotHubs?: IotHubDefinitionDescription[];\n /** Allocation policy to be used by this provisioning service. */\n allocationPolicy?: AllocationPolicy;\n /**\n * Service endpoint for provisioning service.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly serviceOperationsHostName?: string;\n /**\n * Device endpoint for this provisioning service.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly deviceProvisioningHostName?: string;\n /**\n * Unique identifier of this provisioning service.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly idScope?: string;\n /** List of authorization keys for a provisioning service. */\n authorizationPolicies?: SharedAccessSignatureAuthorizationRuleAccessRightsDescription[];\n /**\n * Optional.\n * Indicates if the DPS instance has Data Residency enabled, removing the cross geo-pair disaster recovery.\n */\n enableDataResidency?: boolean;\n /** Portal endpoint to enable CORS for this provisioning service. */\n portalOperationsHostName?: string;\n}\n\n/** The IP filter rules for a provisioning Service. */\nexport interface IpFilterRule {\n /** The name of the IP filter rule. */\n filterName: string;\n /** The desired action for requests captured by this rule. */\n action: IpFilterActionType;\n /** A string that contains the IP address range in CIDR notation for the rule. */\n ipMask: string;\n /** Target for requests captured by this rule. */\n target?: IpFilterTargetType;\n}\n\n/** The private endpoint connection of a provisioning service */\nexport interface PrivateEndpointConnection {\n /**\n * The resource identifier.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The resource name.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * The resource type.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /** The properties of a private endpoint connection */\n properties: PrivateEndpointConnectionProperties;\n /**\n * Metadata pertaining to creation and last modification of the resource.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly systemData?: SystemData;\n}\n\n/** The properties of a private endpoint connection */\nexport interface PrivateEndpointConnectionProperties {\n /** The private endpoint property of a private endpoint connection */\n privateEndpoint?: PrivateEndpoint;\n /** The current state of a private endpoint connection */\n privateLinkServiceConnectionState: PrivateLinkServiceConnectionState;\n}\n\n/** The private endpoint property of a private endpoint connection */\nexport interface PrivateEndpoint {\n /**\n * The resource identifier.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n}\n\n/** The current state of a private endpoint connection */\nexport interface PrivateLinkServiceConnectionState {\n /** The status of a private endpoint connection */\n status: PrivateLinkServiceConnectionStatus;\n /** The description for the current state of a private endpoint connection */\n description: string;\n /** Actions required for a private endpoint connection */\n actionsRequired?: string;\n}\n\n/** Description of the IoT hub. */\nexport interface IotHubDefinitionDescription {\n /** flag for applying allocationPolicy or not for a given iot hub. */\n applyAllocationPolicy?: boolean;\n /** weight to apply for a given iot h. */\n allocationWeight?: number;\n /**\n * Host name of the IoT hub.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /** Connection string of the IoT hub. */\n connectionString: string;\n /** ARM region of the IoT hub. */\n location: string;\n}\n\n/** Description of the shared access key. */\nexport interface SharedAccessSignatureAuthorizationRuleAccessRightsDescription {\n /** Name of the key. */\n keyName: string;\n /** Primary SAS key value. */\n primaryKey?: string;\n /** Secondary SAS key value. */\n secondaryKey?: string;\n /** Rights that this key has. */\n rights: AccessRightsDescription;\n}\n\n/** List of possible provisioning service SKUs. */\nexport interface IotDpsSkuInfo {\n /** Sku name. */\n name?: IotDpsSku;\n /**\n * Pricing tier name of the provisioning service.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly tier?: string;\n /** The number of units to provision */\n capacity?: number;\n}\n\n/** Managed service identity (system assigned and/or user assigned identities) */\nexport interface ManagedServiceIdentity {\n /**\n * The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly principalId?: string;\n /**\n * The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly tenantId?: string;\n /** Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). */\n type: ManagedServiceIdentityType;\n /** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests. */\n userAssignedIdentities?: {\n [propertyName: string]: UserAssignedIdentity | null;\n };\n}\n\n/** User assigned identity properties */\nexport interface UserAssignedIdentity {\n /**\n * The principal ID of the assigned identity.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly principalId?: string;\n /**\n * The client ID of the assigned identity.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly clientId?: string;\n}\n\n/** The common properties of an Azure resource. */\nexport interface Resource {\n /**\n * The resource identifier.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The resource name.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * The resource type.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /** The resource location. */\n location: string;\n /** The resource group of the resource. */\n resourcegroup?: string;\n /** The subscription id of the resource. */\n subscriptionid?: string;\n /** The resource tags. */\n tags?: { [propertyName: string]: string };\n}\n\n/** A container holding only the Tags for a resource, allowing the user to update the tags on a Provisioning Service instance. */\nexport interface TagsResource {\n /** Resource tags */\n tags?: { [propertyName: string]: string };\n}\n\n/** The JSON-serialized array of Certificate objects. */\nexport interface CertificateListDescription {\n /** The array of Certificate objects. */\n value?: CertificateResponse[];\n}\n\n/** List of provisioning service descriptions. */\nexport interface ProvisioningServiceDescriptionListResult {\n /** List of provisioning service descriptions. */\n value?: ProvisioningServiceDescription[];\n /**\n * the next link\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\n/** Result of a long running operation. */\nexport interface AsyncOperationResult {\n /** current status of a long running operation. */\n status?: string;\n /** Error message containing code, description and details */\n error?: ErrorMessage;\n}\n\n/** Error response containing message and code. */\nexport interface ErrorMessage {\n /** standard error code */\n code?: string;\n /** standard error description */\n message?: string;\n /** detailed summary of error */\n details?: string;\n}\n\n/** List of available SKUs. */\nexport interface IotDpsSkuDefinitionListResult {\n /** The list of SKUs */\n value?: IotDpsSkuDefinition[];\n /**\n * The next link.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\n/** Available SKUs of tier and units. */\nexport interface IotDpsSkuDefinition {\n /** Sku name. */\n name?: IotDpsSku;\n}\n\n/** Description of the response of the verification code. */\nexport interface VerificationCodeResponse {\n /**\n * Name of certificate.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * Request etag.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly etag?: string;\n /**\n * The resource identifier.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The resource type.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n properties?: VerificationCodeResponseProperties;\n}\n\nexport interface VerificationCodeResponseProperties {\n /** Verification code. */\n verificationCode?: string;\n /** Certificate subject. */\n subject?: string;\n /** Code expiry. */\n expiry?: string;\n /** Certificate thumbprint. */\n thumbprint?: string;\n /** Indicate if the certificate is verified by owner of private key. */\n isVerified?: boolean;\n /** base-64 representation of X509 certificate .cer file or just .pem file content. */\n certificate?: Uint8Array;\n /** Certificate created time. */\n created?: string;\n /** Certificate updated time. */\n updated?: string;\n}\n\n/** The JSON-serialized leaf certificate */\nexport interface VerificationCodeRequest {\n /** base-64 representation of X509 certificate .cer file or just .pem file content. */\n certificate?: string;\n}\n\n/** Input values for operation results call. */\nexport interface OperationInputs {\n /** The name of the Provisioning Service to check. */\n name: string;\n}\n\n/** Description of name availability. */\nexport interface NameAvailabilityInfo {\n /** specifies if a name is available or not */\n nameAvailable?: boolean;\n /** specifies the reason a name is unavailable */\n reason?: NameUnavailabilityReason;\n /** message containing a detailed reason name is unavailable */\n message?: string;\n}\n\n/** List of shared access keys. */\nexport interface SharedAccessSignatureAuthorizationRuleListResult {\n /** The list of shared access policies. */\n value?: SharedAccessSignatureAuthorizationRuleAccessRightsDescription[];\n /**\n * The next link.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly nextLink?: string;\n}\n\n/** The available private link resources for a provisioning service */\nexport interface PrivateLinkResources {\n /** The list of available private link resources for a provisioning service */\n value?: GroupIdInformation[];\n}\n\n/** The group information for creating a private endpoint on a provisioning service */\nexport interface GroupIdInformation {\n /**\n * The resource identifier.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly id?: string;\n /**\n * The resource name.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly name?: string;\n /**\n * The resource type.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly type?: string;\n /** The properties for a group information object */\n properties: GroupIdInformationProperties;\n}\n\n/** The properties for a group information object */\nexport interface GroupIdInformationProperties {\n /** The group id */\n groupId?: string;\n /** The required members for a specific group id */\n requiredMembers?: string[];\n /** The required DNS zones for a specific group id */\n requiredZoneNames?: string[];\n}\n\n/** The JSON-serialized X509 Certificate. */\nexport interface CertificateBodyDescription {\n /** Base-64 representation of the X509 leaf certificate .cer file or just .pem file content. */\n certificate?: string;\n /** True indicates that the certificate will be created in verified state and proof of possession will not be required. */\n isVerified?: boolean;\n}\n\n/** The description of the provisioning service. */\nexport interface ProvisioningServiceDescription extends Resource {\n /** The Etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal ETag convention. */\n etag?: string;\n /** Service specific properties for a provisioning service */\n properties: IotDpsPropertiesDescription;\n /** Sku info for a provisioning Service. */\n sku: IotDpsSkuInfo;\n /**\n * Metadata pertaining to creation and last modification of the resource.\n * NOTE: This property will not be serialized. It can only be populated by the server.\n */\n readonly systemData?: SystemData;\n /** The managed identities for a provisioning service. */\n identity?: ManagedServiceIdentity;\n}\n\n/** Defines headers for IotDpsResource_deletePrivateEndpointConnection operation. */\nexport interface IotDpsResourceDeletePrivateEndpointConnectionHeaders {\n /** Operation Status Location URI */\n azureAsyncOperation?: string;\n /** Operation Status Location URI */\n location?: string;\n /** Retry After */\n retryAfter?: string;\n}\n\n/** Known values of {@link CreatedByType} that the service accepts. */\nexport enum KnownCreatedByType {\n /** User */\n User = \"User\",\n /** Application */\n Application = \"Application\",\n /** ManagedIdentity */\n ManagedIdentity = \"ManagedIdentity\",\n /** Key */\n Key = \"Key\"\n}\n\n/**\n * Defines values for CreatedByType. \\\n * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User** \\\n * **Application** \\\n * **ManagedIdentity** \\\n * **Key**\n */\nexport type CreatedByType = string;\n\n/** Known values of {@link CertificatePurpose} that the service accepts. */\nexport enum KnownCertificatePurpose {\n /** ClientAuthentication */\n ClientAuthentication = \"clientAuthentication\",\n /** ServerAuthentication */\n ServerAuthentication = \"serverAuthentication\"\n}\n\n/**\n * Defines values for CertificatePurpose. \\\n * {@link KnownCertificatePurpose} can be used interchangeably with CertificatePurpose,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **clientAuthentication** \\\n * **serverAuthentication**\n */\nexport type CertificatePurpose = string;\n\n/** Known values of {@link State} that the service accepts. */\nexport enum KnownState {\n /** Activating */\n Activating = \"Activating\",\n /** Active */\n Active = \"Active\",\n /** Deleting */\n Deleting = \"Deleting\",\n /** Deleted */\n Deleted = \"Deleted\",\n /** ActivationFailed */\n ActivationFailed = \"ActivationFailed\",\n /** DeletionFailed */\n DeletionFailed = \"DeletionFailed\",\n /** Transitioning */\n Transitioning = \"Transitioning\",\n /** Suspending */\n Suspending = \"Suspending\",\n /** Suspended */\n Suspended = \"Suspended\",\n /** Resuming */\n Resuming = \"Resuming\",\n /** FailingOver */\n FailingOver = \"FailingOver\",\n /** FailoverFailed */\n FailoverFailed = \"FailoverFailed\"\n}\n\n/**\n * Defines values for State. \\\n * {@link KnownState} can be used interchangeably with State,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Activating** \\\n * **Active** \\\n * **Deleting** \\\n * **Deleted** \\\n * **ActivationFailed** \\\n * **DeletionFailed** \\\n * **Transitioning** \\\n * **Suspending** \\\n * **Suspended** \\\n * **Resuming** \\\n * **FailingOver** \\\n * **FailoverFailed**\n */\nexport type State = string;\n\n/** Known values of {@link PublicNetworkAccess} that the service accepts. */\nexport enum KnownPublicNetworkAccess {\n /** Enabled */\n Enabled = \"Enabled\",\n /** Disabled */\n Disabled = \"Disabled\"\n}\n\n/**\n * Defines values for PublicNetworkAccess. \\\n * {@link KnownPublicNetworkAccess} can be used interchangeably with PublicNetworkAccess,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Enabled** \\\n * **Disabled**\n */\nexport type PublicNetworkAccess = string;\n\n/** Known values of {@link PrivateLinkServiceConnectionStatus} that the service accepts. */\nexport enum KnownPrivateLinkServiceConnectionStatus {\n /** Pending */\n Pending = \"Pending\",\n /** Approved */\n Approved = \"Approved\",\n /** Rejected */\n Rejected = \"Rejected\",\n /** Disconnected */\n Disconnected = \"Disconnected\"\n}\n\n/**\n * Defines values for PrivateLinkServiceConnectionStatus. \\\n * {@link KnownPrivateLinkServiceConnectionStatus} can be used interchangeably with PrivateLinkServiceConnectionStatus,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Pending** \\\n * **Approved** \\\n * **Rejected** \\\n * **Disconnected**\n */\nexport type PrivateLinkServiceConnectionStatus = string;\n\n/** Known values of {@link AllocationPolicy} that the service accepts. */\nexport enum KnownAllocationPolicy {\n /** Hashed */\n Hashed = \"Hashed\",\n /** GeoLatency */\n GeoLatency = \"GeoLatency\",\n /** Static */\n Static = \"Static\"\n}\n\n/**\n * Defines values for AllocationPolicy. \\\n * {@link KnownAllocationPolicy} can be used interchangeably with AllocationPolicy,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Hashed** \\\n * **GeoLatency** \\\n * **Static**\n */\nexport type AllocationPolicy = string;\n\n/** Known values of {@link AccessRightsDescription} that the service accepts. */\nexport enum KnownAccessRightsDescription {\n /** ServiceConfig */\n ServiceConfig = \"ServiceConfig\",\n /** EnrollmentRead */\n EnrollmentRead = \"EnrollmentRead\",\n /** EnrollmentWrite */\n EnrollmentWrite = \"EnrollmentWrite\",\n /** DeviceConnect */\n DeviceConnect = \"DeviceConnect\",\n /** RegistrationStatusRead */\n RegistrationStatusRead = \"RegistrationStatusRead\",\n /** RegistrationStatusWrite */\n RegistrationStatusWrite = \"RegistrationStatusWrite\"\n}\n\n/**\n * Defines values for AccessRightsDescription. \\\n * {@link KnownAccessRightsDescription} can be used interchangeably with AccessRightsDescription,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **ServiceConfig** \\\n * **EnrollmentRead** \\\n * **EnrollmentWrite** \\\n * **DeviceConnect** \\\n * **RegistrationStatusRead** \\\n * **RegistrationStatusWrite**\n */\nexport type AccessRightsDescription = string;\n\n/** Known values of {@link IotDpsSku} that the service accepts. */\nexport enum KnownIotDpsSku {\n /** S1 */\n S1 = \"S1\"\n}\n\n/**\n * Defines values for IotDpsSku. \\\n * {@link KnownIotDpsSku} can be used interchangeably with IotDpsSku,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **S1**\n */\nexport type IotDpsSku = string;\n\n/** Known values of {@link ManagedServiceIdentityType} that the service accepts. */\nexport enum KnownManagedServiceIdentityType {\n /** None */\n None = \"None\",\n /** SystemAssigned */\n SystemAssigned = \"SystemAssigned\",\n /** UserAssigned */\n UserAssigned = \"UserAssigned\",\n /** SystemAssignedUserAssigned */\n SystemAssignedUserAssigned = \"SystemAssigned,UserAssigned\"\n}\n\n/**\n * Defines values for ManagedServiceIdentityType. \\\n * {@link KnownManagedServiceIdentityType} can be used interchangeably with ManagedServiceIdentityType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **None** \\\n * **SystemAssigned** \\\n * **UserAssigned** \\\n * **SystemAssigned,UserAssigned**\n */\nexport type ManagedServiceIdentityType = string;\n\n/** Known values of {@link NameUnavailabilityReason} that the service accepts. */\nexport enum KnownNameUnavailabilityReason {\n /** Invalid */\n Invalid = \"Invalid\",\n /** AlreadyExists */\n AlreadyExists = \"AlreadyExists\"\n}\n\n/**\n * Defines values for NameUnavailabilityReason. \\\n * {@link KnownNameUnavailabilityReason} can be used interchangeably with NameUnavailabilityReason,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Invalid** \\\n * **AlreadyExists**\n */\nexport type NameUnavailabilityReason = string;\n/** Defines values for IpFilterActionType. */\nexport type IpFilterActionType = \"Accept\" | \"Reject\";\n/** Defines values for IpFilterTargetType. */\nexport type IpFilterTargetType = \"all\" | \"serviceApi\" | \"deviceApi\";\n\n/** Optional parameters. */\nexport interface OperationsListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type OperationsListResponse = OperationListResult;\n\n/** Optional parameters. */\nexport interface OperationsListNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listNext operation. */\nexport type OperationsListNextResponse = OperationListResult;\n\n/** Optional parameters. */\nexport interface DpsCertificateGetOptionalParams\n extends coreClient.OperationOptions {\n /** ETag of the certificate. */\n ifMatch?: string;\n}\n\n/** Contains response data for the get operation. */\nexport type DpsCertificateGetResponse = CertificateResponse;\n\n/** Optional parameters. */\nexport interface DpsCertificateCreateOrUpdateOptionalParams\n extends coreClient.OperationOptions {\n /** ETag of the certificate. This is required to update an existing certificate, and ignored while creating a brand new certificate. */\n ifMatch?: string;\n}\n\n/** Contains response data for the createOrUpdate operation. */\nexport type DpsCertificateCreateOrUpdateResponse = CertificateResponse;\n\n/** Optional parameters. */\nexport interface DpsCertificateDeleteOptionalParams\n extends coreClient.OperationOptions {\n /** This is optional, and it is the Common Name of the certificate. */\n certificateName1?: string;\n /** Raw data within the certificate. */\n certificateRawBytes?: Uint8Array;\n /** Indicates if certificate has been verified by owner of the private key. */\n certificateIsVerified?: boolean;\n /** A description that mentions the purpose of the certificate. */\n certificatePurpose?: CertificatePurpose;\n /** Time the certificate is created. */\n certificateCreated?: Date;\n /** Time the certificate is last updated. */\n certificateLastUpdated?: Date;\n /** Indicates if the certificate contains a private key. */\n certificateHasPrivateKey?: boolean;\n /** Random number generated to indicate Proof of Possession. */\n certificateNonce?: string;\n}\n\n/** Optional parameters. */\nexport interface DpsCertificateListOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the list operation. */\nexport type DpsCertificateListResponse = CertificateListDescription;\n\n/** Optional parameters. */\nexport interface DpsCertificateGenerateVerificationCodeOptionalParams\n extends coreClient.OperationOptions {\n /** Common Name for the certificate. */\n certificateName1?: string;\n /** Raw data of certificate. */\n certificateRawBytes?: Uint8Array;\n /** Indicates if the certificate has been verified by owner of the private key. */\n certificateIsVerified?: boolean;\n /** Description mentioning the purpose of the certificate. */\n certificatePurpose?: CertificatePurpose;\n /** Certificate creation time. */\n certificateCreated?: Date;\n /** Certificate last updated time. */\n certificateLastUpdated?: Date;\n /** Indicates if the certificate contains private key. */\n certificateHasPrivateKey?: boolean;\n /** Random number generated to indicate Proof of Possession. */\n certificateNonce?: string;\n}\n\n/** Contains response data for the generateVerificationCode operation. */\nexport type DpsCertificateGenerateVerificationCodeResponse = VerificationCodeResponse;\n\n/** Optional parameters. */\nexport interface DpsCertificateVerifyCertificateOptionalParams\n extends coreClient.OperationOptions {\n /** Common Name for the certificate. */\n certificateName1?: string;\n /** Raw data of certificate. */\n certificateRawBytes?: Uint8Array;\n /** Indicates if the certificate has been verified by owner of the private key. */\n certificateIsVerified?: boolean;\n /** Describe the purpose of the certificate. */\n certificatePurpose?: CertificatePurpose;\n /** Certificate creation time. */\n certificateCreated?: Date;\n /** Certificate last updated time. */\n certificateLastUpdated?: Date;\n /** Indicates if the certificate contains private key. */\n certificateHasPrivateKey?: boolean;\n /** Random number generated to indicate Proof of Possession. */\n certificateNonce?: string;\n}\n\n/** Contains response data for the verifyCertificate operation. */\nexport type DpsCertificateVerifyCertificateResponse = CertificateResponse;\n\n/** Optional parameters. */\nexport interface IotDpsResourceGetOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the get operation. */\nexport type IotDpsResourceGetResponse = ProvisioningServiceDescription;\n\n/** Optional parameters. */\nexport interface IotDpsResourceCreateOrUpdateOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Contains response data for the createOrUpdate operation. */\nexport type IotDpsResourceCreateOrUpdateResponse = ProvisioningServiceDescription;\n\n/** Optional parameters. */\nexport interface IotDpsResourceUpdateOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Contains response data for the update operation. */\nexport type IotDpsResourceUpdateResponse = ProvisioningServiceDescription;\n\n/** Optional parameters. */\nexport interface IotDpsResourceDeleteOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Optional parameters. */\nexport interface IotDpsResourceListBySubscriptionOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listBySubscription operation. */\nexport type IotDpsResourceListBySubscriptionResponse = ProvisioningServiceDescriptionListResult;\n\n/** Optional parameters. */\nexport interface IotDpsResourceListByResourceGroupOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listByResourceGroup operation. */\nexport type IotDpsResourceListByResourceGroupResponse = ProvisioningServiceDescriptionListResult;\n\n/** Optional parameters. */\nexport interface IotDpsResourceGetOperationResultOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getOperationResult operation. */\nexport type IotDpsResourceGetOperationResultResponse = AsyncOperationResult;\n\n/** Optional parameters. */\nexport interface IotDpsResourceListValidSkusOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listValidSkus operation. */\nexport type IotDpsResourceListValidSkusResponse = IotDpsSkuDefinitionListResult;\n\n/** Optional parameters. */\nexport interface IotDpsResourceCheckProvisioningServiceNameAvailabilityOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the checkProvisioningServiceNameAvailability operation. */\nexport type IotDpsResourceCheckProvisioningServiceNameAvailabilityResponse = NameAvailabilityInfo;\n\n/** Optional parameters. */\nexport interface IotDpsResourceListKeysOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listKeys operation. */\nexport type IotDpsResourceListKeysResponse = SharedAccessSignatureAuthorizationRuleListResult;\n\n/** Optional parameters. */\nexport interface IotDpsResourceListKeysForKeyNameOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listKeysForKeyName operation. */\nexport type IotDpsResourceListKeysForKeyNameResponse = SharedAccessSignatureAuthorizationRuleAccessRightsDescription;\n\n/** Optional parameters. */\nexport interface IotDpsResourceListPrivateLinkResourcesOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listPrivateLinkResources operation. */\nexport type IotDpsResourceListPrivateLinkResourcesResponse = PrivateLinkResources;\n\n/** Optional parameters. */\nexport interface IotDpsResourceGetPrivateLinkResourcesOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getPrivateLinkResources operation. */\nexport type IotDpsResourceGetPrivateLinkResourcesResponse = GroupIdInformation;\n\n/** Optional parameters. */\nexport interface IotDpsResourceListPrivateEndpointConnectionsOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listPrivateEndpointConnections operation. */\nexport type IotDpsResourceListPrivateEndpointConnectionsResponse = PrivateEndpointConnection[];\n\n/** Optional parameters. */\nexport interface IotDpsResourceGetPrivateEndpointConnectionOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the getPrivateEndpointConnection operation. */\nexport type IotDpsResourceGetPrivateEndpointConnectionResponse = PrivateEndpointConnection;\n\n/** Optional parameters. */\nexport interface IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Contains response data for the createOrUpdatePrivateEndpointConnection operation. */\nexport type IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse = PrivateEndpointConnection;\n\n/** Optional parameters. */\nexport interface IotDpsResourceDeletePrivateEndpointConnectionOptionalParams\n extends coreClient.OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */\n resumeFrom?: string;\n}\n\n/** Contains response data for the deletePrivateEndpointConnection operation. */\nexport type IotDpsResourceDeletePrivateEndpointConnectionResponse = PrivateEndpointConnection;\n\n/** Optional parameters. */\nexport interface IotDpsResourceListBySubscriptionNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listBySubscriptionNext operation. */\nexport type IotDpsResourceListBySubscriptionNextResponse = ProvisioningServiceDescriptionListResult;\n\n/** Optional parameters. */\nexport interface IotDpsResourceListByResourceGroupNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listByResourceGroupNext operation. */\nexport type IotDpsResourceListByResourceGroupNextResponse = ProvisioningServiceDescriptionListResult;\n\n/** Optional parameters. */\nexport interface IotDpsResourceListValidSkusNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listValidSkusNext operation. */\nexport type IotDpsResourceListValidSkusNextResponse = IotDpsSkuDefinitionListResult;\n\n/** Optional parameters. */\nexport interface IotDpsResourceListKeysNextOptionalParams\n extends coreClient.OperationOptions {}\n\n/** Contains response data for the listKeysNext operation. */\nexport type IotDpsResourceListKeysNextResponse = SharedAccessSignatureAuthorizationRuleListResult;\n\n/** Optional parameters. */\nexport interface IotDpsClientOptionalParams\n extends coreClient.ServiceClientOptions {\n /** server parameter */\n $host?: string;\n /** Api Version */\n apiVersion?: string;\n /** Overrides client endpoint. */\n endpoint?: string;\n}\n"]}
|
|
@@ -1200,36 +1200,43 @@ export const ProvisioningServiceDescription = {
|
|
|
1200
1200
|
type: {
|
|
1201
1201
|
name: "Composite",
|
|
1202
1202
|
className: "ProvisioningServiceDescription",
|
|
1203
|
-
modelProperties:
|
|
1203
|
+
modelProperties: {
|
|
1204
|
+
...Resource.type.modelProperties,
|
|
1205
|
+
etag: {
|
|
1204
1206
|
serializedName: "etag",
|
|
1205
1207
|
type: {
|
|
1206
1208
|
name: "String"
|
|
1207
1209
|
}
|
|
1208
|
-
},
|
|
1210
|
+
},
|
|
1211
|
+
properties: {
|
|
1209
1212
|
serializedName: "properties",
|
|
1210
1213
|
type: {
|
|
1211
1214
|
name: "Composite",
|
|
1212
1215
|
className: "IotDpsPropertiesDescription"
|
|
1213
1216
|
}
|
|
1214
|
-
},
|
|
1217
|
+
},
|
|
1218
|
+
sku: {
|
|
1215
1219
|
serializedName: "sku",
|
|
1216
1220
|
type: {
|
|
1217
1221
|
name: "Composite",
|
|
1218
1222
|
className: "IotDpsSkuInfo"
|
|
1219
1223
|
}
|
|
1220
|
-
},
|
|
1224
|
+
},
|
|
1225
|
+
systemData: {
|
|
1221
1226
|
serializedName: "systemData",
|
|
1222
1227
|
type: {
|
|
1223
1228
|
name: "Composite",
|
|
1224
1229
|
className: "SystemData"
|
|
1225
1230
|
}
|
|
1226
|
-
},
|
|
1231
|
+
},
|
|
1232
|
+
identity: {
|
|
1227
1233
|
serializedName: "identity",
|
|
1228
1234
|
type: {
|
|
1229
1235
|
name: "Composite",
|
|
1230
1236
|
className: "ManagedServiceIdentity"
|
|
1231
1237
|
}
|
|
1232
|
-
}
|
|
1238
|
+
}
|
|
1239
|
+
}
|
|
1233
1240
|
}
|
|
1234
1241
|
};
|
|
1235
1242
|
export const IotDpsResourceDeletePrivateEndpointConnectionHeaders = {
|