@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/dist/index.js
DELETED
|
@@ -1,3571 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
var tslib = require('tslib');
|
|
6
|
-
var coreClient = require('@azure/core-client');
|
|
7
|
-
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
8
|
-
var coreLro = require('@azure/core-lro');
|
|
9
|
-
|
|
10
|
-
function _interopNamespace(e) {
|
|
11
|
-
if (e && e.__esModule) return e;
|
|
12
|
-
var n = Object.create(null);
|
|
13
|
-
if (e) {
|
|
14
|
-
Object.keys(e).forEach(function (k) {
|
|
15
|
-
if (k !== 'default') {
|
|
16
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
17
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function () { return e[k]; }
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
n["default"] = e;
|
|
25
|
-
return Object.freeze(n);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
29
|
-
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
30
|
-
|
|
31
|
-
/*
|
|
32
|
-
* Copyright (c) Microsoft Corporation.
|
|
33
|
-
* Licensed under the MIT License.
|
|
34
|
-
*
|
|
35
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
36
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
37
|
-
*/
|
|
38
|
-
const pageMap = new WeakMap();
|
|
39
|
-
/**
|
|
40
|
-
* Given the last `.value` produced by the `byPage` iterator,
|
|
41
|
-
* returns a continuation token that can be used to begin paging from
|
|
42
|
-
* that point later.
|
|
43
|
-
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
44
|
-
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
45
|
-
*/
|
|
46
|
-
function getContinuationToken(page) {
|
|
47
|
-
var _a;
|
|
48
|
-
if (typeof page !== "object" || page === null) {
|
|
49
|
-
return undefined;
|
|
50
|
-
}
|
|
51
|
-
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
52
|
-
}
|
|
53
|
-
function setContinuationToken(page, continuationToken) {
|
|
54
|
-
var _a;
|
|
55
|
-
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
59
|
-
pageInfo.continuationToken = continuationToken;
|
|
60
|
-
pageMap.set(page, pageInfo);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
/*
|
|
64
|
-
* Copyright (c) Microsoft Corporation.
|
|
65
|
-
* Licensed under the MIT License.
|
|
66
|
-
*
|
|
67
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
68
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
69
|
-
*/
|
|
70
|
-
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
71
|
-
exports.KnownCreatedByType = void 0;
|
|
72
|
-
(function (KnownCreatedByType) {
|
|
73
|
-
/** User */
|
|
74
|
-
KnownCreatedByType["User"] = "User";
|
|
75
|
-
/** Application */
|
|
76
|
-
KnownCreatedByType["Application"] = "Application";
|
|
77
|
-
/** ManagedIdentity */
|
|
78
|
-
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
79
|
-
/** Key */
|
|
80
|
-
KnownCreatedByType["Key"] = "Key";
|
|
81
|
-
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
82
|
-
/** Known values of {@link CertificatePurpose} that the service accepts. */
|
|
83
|
-
exports.KnownCertificatePurpose = void 0;
|
|
84
|
-
(function (KnownCertificatePurpose) {
|
|
85
|
-
/** ClientAuthentication */
|
|
86
|
-
KnownCertificatePurpose["ClientAuthentication"] = "clientAuthentication";
|
|
87
|
-
/** ServerAuthentication */
|
|
88
|
-
KnownCertificatePurpose["ServerAuthentication"] = "serverAuthentication";
|
|
89
|
-
})(exports.KnownCertificatePurpose || (exports.KnownCertificatePurpose = {}));
|
|
90
|
-
/** Known values of {@link State} that the service accepts. */
|
|
91
|
-
exports.KnownState = void 0;
|
|
92
|
-
(function (KnownState) {
|
|
93
|
-
/** Activating */
|
|
94
|
-
KnownState["Activating"] = "Activating";
|
|
95
|
-
/** Active */
|
|
96
|
-
KnownState["Active"] = "Active";
|
|
97
|
-
/** Deleting */
|
|
98
|
-
KnownState["Deleting"] = "Deleting";
|
|
99
|
-
/** Deleted */
|
|
100
|
-
KnownState["Deleted"] = "Deleted";
|
|
101
|
-
/** ActivationFailed */
|
|
102
|
-
KnownState["ActivationFailed"] = "ActivationFailed";
|
|
103
|
-
/** DeletionFailed */
|
|
104
|
-
KnownState["DeletionFailed"] = "DeletionFailed";
|
|
105
|
-
/** Transitioning */
|
|
106
|
-
KnownState["Transitioning"] = "Transitioning";
|
|
107
|
-
/** Suspending */
|
|
108
|
-
KnownState["Suspending"] = "Suspending";
|
|
109
|
-
/** Suspended */
|
|
110
|
-
KnownState["Suspended"] = "Suspended";
|
|
111
|
-
/** Resuming */
|
|
112
|
-
KnownState["Resuming"] = "Resuming";
|
|
113
|
-
/** FailingOver */
|
|
114
|
-
KnownState["FailingOver"] = "FailingOver";
|
|
115
|
-
/** FailoverFailed */
|
|
116
|
-
KnownState["FailoverFailed"] = "FailoverFailed";
|
|
117
|
-
})(exports.KnownState || (exports.KnownState = {}));
|
|
118
|
-
/** Known values of {@link PublicNetworkAccess} that the service accepts. */
|
|
119
|
-
exports.KnownPublicNetworkAccess = void 0;
|
|
120
|
-
(function (KnownPublicNetworkAccess) {
|
|
121
|
-
/** Enabled */
|
|
122
|
-
KnownPublicNetworkAccess["Enabled"] = "Enabled";
|
|
123
|
-
/** Disabled */
|
|
124
|
-
KnownPublicNetworkAccess["Disabled"] = "Disabled";
|
|
125
|
-
})(exports.KnownPublicNetworkAccess || (exports.KnownPublicNetworkAccess = {}));
|
|
126
|
-
/** Known values of {@link PrivateLinkServiceConnectionStatus} that the service accepts. */
|
|
127
|
-
exports.KnownPrivateLinkServiceConnectionStatus = void 0;
|
|
128
|
-
(function (KnownPrivateLinkServiceConnectionStatus) {
|
|
129
|
-
/** Pending */
|
|
130
|
-
KnownPrivateLinkServiceConnectionStatus["Pending"] = "Pending";
|
|
131
|
-
/** Approved */
|
|
132
|
-
KnownPrivateLinkServiceConnectionStatus["Approved"] = "Approved";
|
|
133
|
-
/** Rejected */
|
|
134
|
-
KnownPrivateLinkServiceConnectionStatus["Rejected"] = "Rejected";
|
|
135
|
-
/** Disconnected */
|
|
136
|
-
KnownPrivateLinkServiceConnectionStatus["Disconnected"] = "Disconnected";
|
|
137
|
-
})(exports.KnownPrivateLinkServiceConnectionStatus || (exports.KnownPrivateLinkServiceConnectionStatus = {}));
|
|
138
|
-
/** Known values of {@link AllocationPolicy} that the service accepts. */
|
|
139
|
-
exports.KnownAllocationPolicy = void 0;
|
|
140
|
-
(function (KnownAllocationPolicy) {
|
|
141
|
-
/** Hashed */
|
|
142
|
-
KnownAllocationPolicy["Hashed"] = "Hashed";
|
|
143
|
-
/** GeoLatency */
|
|
144
|
-
KnownAllocationPolicy["GeoLatency"] = "GeoLatency";
|
|
145
|
-
/** Static */
|
|
146
|
-
KnownAllocationPolicy["Static"] = "Static";
|
|
147
|
-
})(exports.KnownAllocationPolicy || (exports.KnownAllocationPolicy = {}));
|
|
148
|
-
/** Known values of {@link AccessRightsDescription} that the service accepts. */
|
|
149
|
-
exports.KnownAccessRightsDescription = void 0;
|
|
150
|
-
(function (KnownAccessRightsDescription) {
|
|
151
|
-
/** ServiceConfig */
|
|
152
|
-
KnownAccessRightsDescription["ServiceConfig"] = "ServiceConfig";
|
|
153
|
-
/** EnrollmentRead */
|
|
154
|
-
KnownAccessRightsDescription["EnrollmentRead"] = "EnrollmentRead";
|
|
155
|
-
/** EnrollmentWrite */
|
|
156
|
-
KnownAccessRightsDescription["EnrollmentWrite"] = "EnrollmentWrite";
|
|
157
|
-
/** DeviceConnect */
|
|
158
|
-
KnownAccessRightsDescription["DeviceConnect"] = "DeviceConnect";
|
|
159
|
-
/** RegistrationStatusRead */
|
|
160
|
-
KnownAccessRightsDescription["RegistrationStatusRead"] = "RegistrationStatusRead";
|
|
161
|
-
/** RegistrationStatusWrite */
|
|
162
|
-
KnownAccessRightsDescription["RegistrationStatusWrite"] = "RegistrationStatusWrite";
|
|
163
|
-
})(exports.KnownAccessRightsDescription || (exports.KnownAccessRightsDescription = {}));
|
|
164
|
-
/** Known values of {@link IotDpsSku} that the service accepts. */
|
|
165
|
-
exports.KnownIotDpsSku = void 0;
|
|
166
|
-
(function (KnownIotDpsSku) {
|
|
167
|
-
/** S1 */
|
|
168
|
-
KnownIotDpsSku["S1"] = "S1";
|
|
169
|
-
})(exports.KnownIotDpsSku || (exports.KnownIotDpsSku = {}));
|
|
170
|
-
/** Known values of {@link ManagedServiceIdentityType} that the service accepts. */
|
|
171
|
-
exports.KnownManagedServiceIdentityType = void 0;
|
|
172
|
-
(function (KnownManagedServiceIdentityType) {
|
|
173
|
-
/** None */
|
|
174
|
-
KnownManagedServiceIdentityType["None"] = "None";
|
|
175
|
-
/** SystemAssigned */
|
|
176
|
-
KnownManagedServiceIdentityType["SystemAssigned"] = "SystemAssigned";
|
|
177
|
-
/** UserAssigned */
|
|
178
|
-
KnownManagedServiceIdentityType["UserAssigned"] = "UserAssigned";
|
|
179
|
-
/** SystemAssignedUserAssigned */
|
|
180
|
-
KnownManagedServiceIdentityType["SystemAssignedUserAssigned"] = "SystemAssigned,UserAssigned";
|
|
181
|
-
})(exports.KnownManagedServiceIdentityType || (exports.KnownManagedServiceIdentityType = {}));
|
|
182
|
-
/** Known values of {@link NameUnavailabilityReason} that the service accepts. */
|
|
183
|
-
exports.KnownNameUnavailabilityReason = void 0;
|
|
184
|
-
(function (KnownNameUnavailabilityReason) {
|
|
185
|
-
/** Invalid */
|
|
186
|
-
KnownNameUnavailabilityReason["Invalid"] = "Invalid";
|
|
187
|
-
/** AlreadyExists */
|
|
188
|
-
KnownNameUnavailabilityReason["AlreadyExists"] = "AlreadyExists";
|
|
189
|
-
})(exports.KnownNameUnavailabilityReason || (exports.KnownNameUnavailabilityReason = {}));
|
|
190
|
-
|
|
191
|
-
/*
|
|
192
|
-
* Copyright (c) Microsoft Corporation.
|
|
193
|
-
* Licensed under the MIT License.
|
|
194
|
-
*
|
|
195
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
196
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
197
|
-
*/
|
|
198
|
-
const OperationListResult = {
|
|
199
|
-
type: {
|
|
200
|
-
name: "Composite",
|
|
201
|
-
className: "OperationListResult",
|
|
202
|
-
modelProperties: {
|
|
203
|
-
value: {
|
|
204
|
-
serializedName: "value",
|
|
205
|
-
readOnly: true,
|
|
206
|
-
type: {
|
|
207
|
-
name: "Sequence",
|
|
208
|
-
element: {
|
|
209
|
-
type: {
|
|
210
|
-
name: "Composite",
|
|
211
|
-
className: "Operation"
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
},
|
|
216
|
-
nextLink: {
|
|
217
|
-
serializedName: "nextLink",
|
|
218
|
-
readOnly: true,
|
|
219
|
-
type: {
|
|
220
|
-
name: "String"
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
};
|
|
226
|
-
const Operation = {
|
|
227
|
-
type: {
|
|
228
|
-
name: "Composite",
|
|
229
|
-
className: "Operation",
|
|
230
|
-
modelProperties: {
|
|
231
|
-
name: {
|
|
232
|
-
serializedName: "name",
|
|
233
|
-
readOnly: true,
|
|
234
|
-
type: {
|
|
235
|
-
name: "String"
|
|
236
|
-
}
|
|
237
|
-
},
|
|
238
|
-
display: {
|
|
239
|
-
serializedName: "display",
|
|
240
|
-
type: {
|
|
241
|
-
name: "Composite",
|
|
242
|
-
className: "OperationDisplay"
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
};
|
|
248
|
-
const OperationDisplay = {
|
|
249
|
-
type: {
|
|
250
|
-
name: "Composite",
|
|
251
|
-
className: "OperationDisplay",
|
|
252
|
-
modelProperties: {
|
|
253
|
-
provider: {
|
|
254
|
-
serializedName: "provider",
|
|
255
|
-
readOnly: true,
|
|
256
|
-
type: {
|
|
257
|
-
name: "String"
|
|
258
|
-
}
|
|
259
|
-
},
|
|
260
|
-
resource: {
|
|
261
|
-
serializedName: "resource",
|
|
262
|
-
readOnly: true,
|
|
263
|
-
type: {
|
|
264
|
-
name: "String"
|
|
265
|
-
}
|
|
266
|
-
},
|
|
267
|
-
operation: {
|
|
268
|
-
serializedName: "operation",
|
|
269
|
-
readOnly: true,
|
|
270
|
-
type: {
|
|
271
|
-
name: "String"
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
};
|
|
277
|
-
const ErrorDetails = {
|
|
278
|
-
type: {
|
|
279
|
-
name: "Composite",
|
|
280
|
-
className: "ErrorDetails",
|
|
281
|
-
modelProperties: {
|
|
282
|
-
code: {
|
|
283
|
-
serializedName: "code",
|
|
284
|
-
readOnly: true,
|
|
285
|
-
type: {
|
|
286
|
-
name: "Number"
|
|
287
|
-
}
|
|
288
|
-
},
|
|
289
|
-
httpStatusCode: {
|
|
290
|
-
serializedName: "httpStatusCode",
|
|
291
|
-
readOnly: true,
|
|
292
|
-
type: {
|
|
293
|
-
name: "String"
|
|
294
|
-
}
|
|
295
|
-
},
|
|
296
|
-
message: {
|
|
297
|
-
serializedName: "message",
|
|
298
|
-
readOnly: true,
|
|
299
|
-
type: {
|
|
300
|
-
name: "String"
|
|
301
|
-
}
|
|
302
|
-
},
|
|
303
|
-
details: {
|
|
304
|
-
serializedName: "details",
|
|
305
|
-
readOnly: true,
|
|
306
|
-
type: {
|
|
307
|
-
name: "String"
|
|
308
|
-
}
|
|
309
|
-
}
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
};
|
|
313
|
-
const CertificateResponse = {
|
|
314
|
-
type: {
|
|
315
|
-
name: "Composite",
|
|
316
|
-
className: "CertificateResponse",
|
|
317
|
-
modelProperties: {
|
|
318
|
-
properties: {
|
|
319
|
-
serializedName: "properties",
|
|
320
|
-
type: {
|
|
321
|
-
name: "Composite",
|
|
322
|
-
className: "CertificateProperties"
|
|
323
|
-
}
|
|
324
|
-
},
|
|
325
|
-
id: {
|
|
326
|
-
serializedName: "id",
|
|
327
|
-
readOnly: true,
|
|
328
|
-
type: {
|
|
329
|
-
name: "String"
|
|
330
|
-
}
|
|
331
|
-
},
|
|
332
|
-
name: {
|
|
333
|
-
serializedName: "name",
|
|
334
|
-
readOnly: true,
|
|
335
|
-
type: {
|
|
336
|
-
name: "String"
|
|
337
|
-
}
|
|
338
|
-
},
|
|
339
|
-
etag: {
|
|
340
|
-
serializedName: "etag",
|
|
341
|
-
readOnly: true,
|
|
342
|
-
type: {
|
|
343
|
-
name: "String"
|
|
344
|
-
}
|
|
345
|
-
},
|
|
346
|
-
type: {
|
|
347
|
-
serializedName: "type",
|
|
348
|
-
readOnly: true,
|
|
349
|
-
type: {
|
|
350
|
-
name: "String"
|
|
351
|
-
}
|
|
352
|
-
},
|
|
353
|
-
systemData: {
|
|
354
|
-
serializedName: "systemData",
|
|
355
|
-
type: {
|
|
356
|
-
name: "Composite",
|
|
357
|
-
className: "SystemData"
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
};
|
|
363
|
-
const CertificateProperties = {
|
|
364
|
-
type: {
|
|
365
|
-
name: "Composite",
|
|
366
|
-
className: "CertificateProperties",
|
|
367
|
-
modelProperties: {
|
|
368
|
-
subject: {
|
|
369
|
-
serializedName: "subject",
|
|
370
|
-
readOnly: true,
|
|
371
|
-
type: {
|
|
372
|
-
name: "String"
|
|
373
|
-
}
|
|
374
|
-
},
|
|
375
|
-
expiry: {
|
|
376
|
-
serializedName: "expiry",
|
|
377
|
-
readOnly: true,
|
|
378
|
-
type: {
|
|
379
|
-
name: "DateTimeRfc1123"
|
|
380
|
-
}
|
|
381
|
-
},
|
|
382
|
-
thumbprint: {
|
|
383
|
-
serializedName: "thumbprint",
|
|
384
|
-
readOnly: true,
|
|
385
|
-
type: {
|
|
386
|
-
name: "String"
|
|
387
|
-
}
|
|
388
|
-
},
|
|
389
|
-
isVerified: {
|
|
390
|
-
serializedName: "isVerified",
|
|
391
|
-
type: {
|
|
392
|
-
name: "Boolean"
|
|
393
|
-
}
|
|
394
|
-
},
|
|
395
|
-
certificate: {
|
|
396
|
-
serializedName: "certificate",
|
|
397
|
-
type: {
|
|
398
|
-
name: "ByteArray"
|
|
399
|
-
}
|
|
400
|
-
},
|
|
401
|
-
created: {
|
|
402
|
-
serializedName: "created",
|
|
403
|
-
readOnly: true,
|
|
404
|
-
type: {
|
|
405
|
-
name: "DateTimeRfc1123"
|
|
406
|
-
}
|
|
407
|
-
},
|
|
408
|
-
updated: {
|
|
409
|
-
serializedName: "updated",
|
|
410
|
-
readOnly: true,
|
|
411
|
-
type: {
|
|
412
|
-
name: "DateTimeRfc1123"
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
};
|
|
418
|
-
const SystemData = {
|
|
419
|
-
type: {
|
|
420
|
-
name: "Composite",
|
|
421
|
-
className: "SystemData",
|
|
422
|
-
modelProperties: {
|
|
423
|
-
createdBy: {
|
|
424
|
-
serializedName: "createdBy",
|
|
425
|
-
type: {
|
|
426
|
-
name: "String"
|
|
427
|
-
}
|
|
428
|
-
},
|
|
429
|
-
createdByType: {
|
|
430
|
-
serializedName: "createdByType",
|
|
431
|
-
type: {
|
|
432
|
-
name: "String"
|
|
433
|
-
}
|
|
434
|
-
},
|
|
435
|
-
createdAt: {
|
|
436
|
-
serializedName: "createdAt",
|
|
437
|
-
type: {
|
|
438
|
-
name: "DateTime"
|
|
439
|
-
}
|
|
440
|
-
},
|
|
441
|
-
lastModifiedBy: {
|
|
442
|
-
serializedName: "lastModifiedBy",
|
|
443
|
-
type: {
|
|
444
|
-
name: "String"
|
|
445
|
-
}
|
|
446
|
-
},
|
|
447
|
-
lastModifiedByType: {
|
|
448
|
-
serializedName: "lastModifiedByType",
|
|
449
|
-
type: {
|
|
450
|
-
name: "String"
|
|
451
|
-
}
|
|
452
|
-
},
|
|
453
|
-
lastModifiedAt: {
|
|
454
|
-
serializedName: "lastModifiedAt",
|
|
455
|
-
type: {
|
|
456
|
-
name: "DateTime"
|
|
457
|
-
}
|
|
458
|
-
}
|
|
459
|
-
}
|
|
460
|
-
}
|
|
461
|
-
};
|
|
462
|
-
const IotDpsPropertiesDescription = {
|
|
463
|
-
type: {
|
|
464
|
-
name: "Composite",
|
|
465
|
-
className: "IotDpsPropertiesDescription",
|
|
466
|
-
modelProperties: {
|
|
467
|
-
state: {
|
|
468
|
-
serializedName: "state",
|
|
469
|
-
type: {
|
|
470
|
-
name: "String"
|
|
471
|
-
}
|
|
472
|
-
},
|
|
473
|
-
publicNetworkAccess: {
|
|
474
|
-
serializedName: "publicNetworkAccess",
|
|
475
|
-
type: {
|
|
476
|
-
name: "String"
|
|
477
|
-
}
|
|
478
|
-
},
|
|
479
|
-
ipFilterRules: {
|
|
480
|
-
serializedName: "ipFilterRules",
|
|
481
|
-
type: {
|
|
482
|
-
name: "Sequence",
|
|
483
|
-
element: {
|
|
484
|
-
type: {
|
|
485
|
-
name: "Composite",
|
|
486
|
-
className: "IpFilterRule"
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
},
|
|
491
|
-
privateEndpointConnections: {
|
|
492
|
-
serializedName: "privateEndpointConnections",
|
|
493
|
-
type: {
|
|
494
|
-
name: "Sequence",
|
|
495
|
-
element: {
|
|
496
|
-
type: {
|
|
497
|
-
name: "Composite",
|
|
498
|
-
className: "PrivateEndpointConnection"
|
|
499
|
-
}
|
|
500
|
-
}
|
|
501
|
-
}
|
|
502
|
-
},
|
|
503
|
-
provisioningState: {
|
|
504
|
-
serializedName: "provisioningState",
|
|
505
|
-
type: {
|
|
506
|
-
name: "String"
|
|
507
|
-
}
|
|
508
|
-
},
|
|
509
|
-
iotHubs: {
|
|
510
|
-
serializedName: "iotHubs",
|
|
511
|
-
type: {
|
|
512
|
-
name: "Sequence",
|
|
513
|
-
element: {
|
|
514
|
-
type: {
|
|
515
|
-
name: "Composite",
|
|
516
|
-
className: "IotHubDefinitionDescription"
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
}
|
|
520
|
-
},
|
|
521
|
-
allocationPolicy: {
|
|
522
|
-
serializedName: "allocationPolicy",
|
|
523
|
-
type: {
|
|
524
|
-
name: "String"
|
|
525
|
-
}
|
|
526
|
-
},
|
|
527
|
-
serviceOperationsHostName: {
|
|
528
|
-
serializedName: "serviceOperationsHostName",
|
|
529
|
-
readOnly: true,
|
|
530
|
-
type: {
|
|
531
|
-
name: "String"
|
|
532
|
-
}
|
|
533
|
-
},
|
|
534
|
-
deviceProvisioningHostName: {
|
|
535
|
-
serializedName: "deviceProvisioningHostName",
|
|
536
|
-
readOnly: true,
|
|
537
|
-
type: {
|
|
538
|
-
name: "String"
|
|
539
|
-
}
|
|
540
|
-
},
|
|
541
|
-
idScope: {
|
|
542
|
-
serializedName: "idScope",
|
|
543
|
-
readOnly: true,
|
|
544
|
-
type: {
|
|
545
|
-
name: "String"
|
|
546
|
-
}
|
|
547
|
-
},
|
|
548
|
-
authorizationPolicies: {
|
|
549
|
-
serializedName: "authorizationPolicies",
|
|
550
|
-
type: {
|
|
551
|
-
name: "Sequence",
|
|
552
|
-
element: {
|
|
553
|
-
type: {
|
|
554
|
-
name: "Composite",
|
|
555
|
-
className: "SharedAccessSignatureAuthorizationRuleAccessRightsDescription"
|
|
556
|
-
}
|
|
557
|
-
}
|
|
558
|
-
}
|
|
559
|
-
},
|
|
560
|
-
enableDataResidency: {
|
|
561
|
-
serializedName: "enableDataResidency",
|
|
562
|
-
type: {
|
|
563
|
-
name: "Boolean"
|
|
564
|
-
}
|
|
565
|
-
},
|
|
566
|
-
portalOperationsHostName: {
|
|
567
|
-
serializedName: "portalOperationsHostName",
|
|
568
|
-
type: {
|
|
569
|
-
name: "String"
|
|
570
|
-
}
|
|
571
|
-
}
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
};
|
|
575
|
-
const IpFilterRule = {
|
|
576
|
-
type: {
|
|
577
|
-
name: "Composite",
|
|
578
|
-
className: "IpFilterRule",
|
|
579
|
-
modelProperties: {
|
|
580
|
-
filterName: {
|
|
581
|
-
serializedName: "filterName",
|
|
582
|
-
required: true,
|
|
583
|
-
type: {
|
|
584
|
-
name: "String"
|
|
585
|
-
}
|
|
586
|
-
},
|
|
587
|
-
action: {
|
|
588
|
-
serializedName: "action",
|
|
589
|
-
required: true,
|
|
590
|
-
type: {
|
|
591
|
-
name: "Enum",
|
|
592
|
-
allowedValues: ["Accept", "Reject"]
|
|
593
|
-
}
|
|
594
|
-
},
|
|
595
|
-
ipMask: {
|
|
596
|
-
serializedName: "ipMask",
|
|
597
|
-
required: true,
|
|
598
|
-
type: {
|
|
599
|
-
name: "String"
|
|
600
|
-
}
|
|
601
|
-
},
|
|
602
|
-
target: {
|
|
603
|
-
serializedName: "target",
|
|
604
|
-
type: {
|
|
605
|
-
name: "Enum",
|
|
606
|
-
allowedValues: ["all", "serviceApi", "deviceApi"]
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
};
|
|
612
|
-
const PrivateEndpointConnection = {
|
|
613
|
-
type: {
|
|
614
|
-
name: "Composite",
|
|
615
|
-
className: "PrivateEndpointConnection",
|
|
616
|
-
modelProperties: {
|
|
617
|
-
id: {
|
|
618
|
-
serializedName: "id",
|
|
619
|
-
readOnly: true,
|
|
620
|
-
type: {
|
|
621
|
-
name: "String"
|
|
622
|
-
}
|
|
623
|
-
},
|
|
624
|
-
name: {
|
|
625
|
-
constraints: {
|
|
626
|
-
Pattern: new RegExp("^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$")
|
|
627
|
-
},
|
|
628
|
-
serializedName: "name",
|
|
629
|
-
readOnly: true,
|
|
630
|
-
type: {
|
|
631
|
-
name: "String"
|
|
632
|
-
}
|
|
633
|
-
},
|
|
634
|
-
type: {
|
|
635
|
-
serializedName: "type",
|
|
636
|
-
readOnly: true,
|
|
637
|
-
type: {
|
|
638
|
-
name: "String"
|
|
639
|
-
}
|
|
640
|
-
},
|
|
641
|
-
properties: {
|
|
642
|
-
serializedName: "properties",
|
|
643
|
-
type: {
|
|
644
|
-
name: "Composite",
|
|
645
|
-
className: "PrivateEndpointConnectionProperties"
|
|
646
|
-
}
|
|
647
|
-
},
|
|
648
|
-
systemData: {
|
|
649
|
-
serializedName: "systemData",
|
|
650
|
-
type: {
|
|
651
|
-
name: "Composite",
|
|
652
|
-
className: "SystemData"
|
|
653
|
-
}
|
|
654
|
-
}
|
|
655
|
-
}
|
|
656
|
-
}
|
|
657
|
-
};
|
|
658
|
-
const PrivateEndpointConnectionProperties = {
|
|
659
|
-
type: {
|
|
660
|
-
name: "Composite",
|
|
661
|
-
className: "PrivateEndpointConnectionProperties",
|
|
662
|
-
modelProperties: {
|
|
663
|
-
privateEndpoint: {
|
|
664
|
-
serializedName: "privateEndpoint",
|
|
665
|
-
type: {
|
|
666
|
-
name: "Composite",
|
|
667
|
-
className: "PrivateEndpoint"
|
|
668
|
-
}
|
|
669
|
-
},
|
|
670
|
-
privateLinkServiceConnectionState: {
|
|
671
|
-
serializedName: "privateLinkServiceConnectionState",
|
|
672
|
-
type: {
|
|
673
|
-
name: "Composite",
|
|
674
|
-
className: "PrivateLinkServiceConnectionState"
|
|
675
|
-
}
|
|
676
|
-
}
|
|
677
|
-
}
|
|
678
|
-
}
|
|
679
|
-
};
|
|
680
|
-
const PrivateEndpoint = {
|
|
681
|
-
type: {
|
|
682
|
-
name: "Composite",
|
|
683
|
-
className: "PrivateEndpoint",
|
|
684
|
-
modelProperties: {
|
|
685
|
-
id: {
|
|
686
|
-
serializedName: "id",
|
|
687
|
-
readOnly: true,
|
|
688
|
-
type: {
|
|
689
|
-
name: "String"
|
|
690
|
-
}
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
|
-
}
|
|
694
|
-
};
|
|
695
|
-
const PrivateLinkServiceConnectionState = {
|
|
696
|
-
type: {
|
|
697
|
-
name: "Composite",
|
|
698
|
-
className: "PrivateLinkServiceConnectionState",
|
|
699
|
-
modelProperties: {
|
|
700
|
-
status: {
|
|
701
|
-
serializedName: "status",
|
|
702
|
-
required: true,
|
|
703
|
-
type: {
|
|
704
|
-
name: "String"
|
|
705
|
-
}
|
|
706
|
-
},
|
|
707
|
-
description: {
|
|
708
|
-
serializedName: "description",
|
|
709
|
-
required: true,
|
|
710
|
-
type: {
|
|
711
|
-
name: "String"
|
|
712
|
-
}
|
|
713
|
-
},
|
|
714
|
-
actionsRequired: {
|
|
715
|
-
serializedName: "actionsRequired",
|
|
716
|
-
type: {
|
|
717
|
-
name: "String"
|
|
718
|
-
}
|
|
719
|
-
}
|
|
720
|
-
}
|
|
721
|
-
}
|
|
722
|
-
};
|
|
723
|
-
const IotHubDefinitionDescription = {
|
|
724
|
-
type: {
|
|
725
|
-
name: "Composite",
|
|
726
|
-
className: "IotHubDefinitionDescription",
|
|
727
|
-
modelProperties: {
|
|
728
|
-
applyAllocationPolicy: {
|
|
729
|
-
serializedName: "applyAllocationPolicy",
|
|
730
|
-
type: {
|
|
731
|
-
name: "Boolean"
|
|
732
|
-
}
|
|
733
|
-
},
|
|
734
|
-
allocationWeight: {
|
|
735
|
-
serializedName: "allocationWeight",
|
|
736
|
-
type: {
|
|
737
|
-
name: "Number"
|
|
738
|
-
}
|
|
739
|
-
},
|
|
740
|
-
name: {
|
|
741
|
-
serializedName: "name",
|
|
742
|
-
readOnly: true,
|
|
743
|
-
type: {
|
|
744
|
-
name: "String"
|
|
745
|
-
}
|
|
746
|
-
},
|
|
747
|
-
connectionString: {
|
|
748
|
-
serializedName: "connectionString",
|
|
749
|
-
required: true,
|
|
750
|
-
type: {
|
|
751
|
-
name: "String"
|
|
752
|
-
}
|
|
753
|
-
},
|
|
754
|
-
location: {
|
|
755
|
-
serializedName: "location",
|
|
756
|
-
required: true,
|
|
757
|
-
type: {
|
|
758
|
-
name: "String"
|
|
759
|
-
}
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
}
|
|
763
|
-
};
|
|
764
|
-
const SharedAccessSignatureAuthorizationRuleAccessRightsDescription = {
|
|
765
|
-
type: {
|
|
766
|
-
name: "Composite",
|
|
767
|
-
className: "SharedAccessSignatureAuthorizationRuleAccessRightsDescription",
|
|
768
|
-
modelProperties: {
|
|
769
|
-
keyName: {
|
|
770
|
-
serializedName: "keyName",
|
|
771
|
-
required: true,
|
|
772
|
-
type: {
|
|
773
|
-
name: "String"
|
|
774
|
-
}
|
|
775
|
-
},
|
|
776
|
-
primaryKey: {
|
|
777
|
-
serializedName: "primaryKey",
|
|
778
|
-
type: {
|
|
779
|
-
name: "String"
|
|
780
|
-
}
|
|
781
|
-
},
|
|
782
|
-
secondaryKey: {
|
|
783
|
-
serializedName: "secondaryKey",
|
|
784
|
-
type: {
|
|
785
|
-
name: "String"
|
|
786
|
-
}
|
|
787
|
-
},
|
|
788
|
-
rights: {
|
|
789
|
-
serializedName: "rights",
|
|
790
|
-
required: true,
|
|
791
|
-
type: {
|
|
792
|
-
name: "String"
|
|
793
|
-
}
|
|
794
|
-
}
|
|
795
|
-
}
|
|
796
|
-
}
|
|
797
|
-
};
|
|
798
|
-
const IotDpsSkuInfo = {
|
|
799
|
-
type: {
|
|
800
|
-
name: "Composite",
|
|
801
|
-
className: "IotDpsSkuInfo",
|
|
802
|
-
modelProperties: {
|
|
803
|
-
name: {
|
|
804
|
-
serializedName: "name",
|
|
805
|
-
type: {
|
|
806
|
-
name: "String"
|
|
807
|
-
}
|
|
808
|
-
},
|
|
809
|
-
tier: {
|
|
810
|
-
serializedName: "tier",
|
|
811
|
-
readOnly: true,
|
|
812
|
-
type: {
|
|
813
|
-
name: "String"
|
|
814
|
-
}
|
|
815
|
-
},
|
|
816
|
-
capacity: {
|
|
817
|
-
serializedName: "capacity",
|
|
818
|
-
type: {
|
|
819
|
-
name: "Number"
|
|
820
|
-
}
|
|
821
|
-
}
|
|
822
|
-
}
|
|
823
|
-
}
|
|
824
|
-
};
|
|
825
|
-
const ManagedServiceIdentity = {
|
|
826
|
-
type: {
|
|
827
|
-
name: "Composite",
|
|
828
|
-
className: "ManagedServiceIdentity",
|
|
829
|
-
modelProperties: {
|
|
830
|
-
principalId: {
|
|
831
|
-
serializedName: "principalId",
|
|
832
|
-
readOnly: true,
|
|
833
|
-
type: {
|
|
834
|
-
name: "Uuid"
|
|
835
|
-
}
|
|
836
|
-
},
|
|
837
|
-
tenantId: {
|
|
838
|
-
serializedName: "tenantId",
|
|
839
|
-
readOnly: true,
|
|
840
|
-
type: {
|
|
841
|
-
name: "Uuid"
|
|
842
|
-
}
|
|
843
|
-
},
|
|
844
|
-
type: {
|
|
845
|
-
serializedName: "type",
|
|
846
|
-
required: true,
|
|
847
|
-
type: {
|
|
848
|
-
name: "String"
|
|
849
|
-
}
|
|
850
|
-
},
|
|
851
|
-
userAssignedIdentities: {
|
|
852
|
-
serializedName: "userAssignedIdentities",
|
|
853
|
-
type: {
|
|
854
|
-
name: "Dictionary",
|
|
855
|
-
value: {
|
|
856
|
-
type: { name: "Composite", className: "UserAssignedIdentity" }
|
|
857
|
-
}
|
|
858
|
-
}
|
|
859
|
-
}
|
|
860
|
-
}
|
|
861
|
-
}
|
|
862
|
-
};
|
|
863
|
-
const UserAssignedIdentity = {
|
|
864
|
-
type: {
|
|
865
|
-
name: "Composite",
|
|
866
|
-
className: "UserAssignedIdentity",
|
|
867
|
-
modelProperties: {
|
|
868
|
-
principalId: {
|
|
869
|
-
serializedName: "principalId",
|
|
870
|
-
readOnly: true,
|
|
871
|
-
type: {
|
|
872
|
-
name: "Uuid"
|
|
873
|
-
}
|
|
874
|
-
},
|
|
875
|
-
clientId: {
|
|
876
|
-
serializedName: "clientId",
|
|
877
|
-
readOnly: true,
|
|
878
|
-
type: {
|
|
879
|
-
name: "Uuid"
|
|
880
|
-
}
|
|
881
|
-
}
|
|
882
|
-
}
|
|
883
|
-
}
|
|
884
|
-
};
|
|
885
|
-
const Resource = {
|
|
886
|
-
type: {
|
|
887
|
-
name: "Composite",
|
|
888
|
-
className: "Resource",
|
|
889
|
-
modelProperties: {
|
|
890
|
-
id: {
|
|
891
|
-
serializedName: "id",
|
|
892
|
-
readOnly: true,
|
|
893
|
-
type: {
|
|
894
|
-
name: "String"
|
|
895
|
-
}
|
|
896
|
-
},
|
|
897
|
-
name: {
|
|
898
|
-
constraints: {
|
|
899
|
-
Pattern: new RegExp("^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$")
|
|
900
|
-
},
|
|
901
|
-
serializedName: "name",
|
|
902
|
-
readOnly: true,
|
|
903
|
-
type: {
|
|
904
|
-
name: "String"
|
|
905
|
-
}
|
|
906
|
-
},
|
|
907
|
-
type: {
|
|
908
|
-
serializedName: "type",
|
|
909
|
-
readOnly: true,
|
|
910
|
-
type: {
|
|
911
|
-
name: "String"
|
|
912
|
-
}
|
|
913
|
-
},
|
|
914
|
-
location: {
|
|
915
|
-
serializedName: "location",
|
|
916
|
-
required: true,
|
|
917
|
-
type: {
|
|
918
|
-
name: "String"
|
|
919
|
-
}
|
|
920
|
-
},
|
|
921
|
-
resourcegroup: {
|
|
922
|
-
serializedName: "resourcegroup",
|
|
923
|
-
type: {
|
|
924
|
-
name: "String"
|
|
925
|
-
}
|
|
926
|
-
},
|
|
927
|
-
subscriptionid: {
|
|
928
|
-
serializedName: "subscriptionid",
|
|
929
|
-
type: {
|
|
930
|
-
name: "String"
|
|
931
|
-
}
|
|
932
|
-
},
|
|
933
|
-
tags: {
|
|
934
|
-
serializedName: "tags",
|
|
935
|
-
type: {
|
|
936
|
-
name: "Dictionary",
|
|
937
|
-
value: { type: { name: "String" } }
|
|
938
|
-
}
|
|
939
|
-
}
|
|
940
|
-
}
|
|
941
|
-
}
|
|
942
|
-
};
|
|
943
|
-
const TagsResource = {
|
|
944
|
-
type: {
|
|
945
|
-
name: "Composite",
|
|
946
|
-
className: "TagsResource",
|
|
947
|
-
modelProperties: {
|
|
948
|
-
tags: {
|
|
949
|
-
serializedName: "tags",
|
|
950
|
-
type: {
|
|
951
|
-
name: "Dictionary",
|
|
952
|
-
value: { type: { name: "String" } }
|
|
953
|
-
}
|
|
954
|
-
}
|
|
955
|
-
}
|
|
956
|
-
}
|
|
957
|
-
};
|
|
958
|
-
const CertificateListDescription = {
|
|
959
|
-
type: {
|
|
960
|
-
name: "Composite",
|
|
961
|
-
className: "CertificateListDescription",
|
|
962
|
-
modelProperties: {
|
|
963
|
-
value: {
|
|
964
|
-
serializedName: "value",
|
|
965
|
-
type: {
|
|
966
|
-
name: "Sequence",
|
|
967
|
-
element: {
|
|
968
|
-
type: {
|
|
969
|
-
name: "Composite",
|
|
970
|
-
className: "CertificateResponse"
|
|
971
|
-
}
|
|
972
|
-
}
|
|
973
|
-
}
|
|
974
|
-
}
|
|
975
|
-
}
|
|
976
|
-
}
|
|
977
|
-
};
|
|
978
|
-
const ProvisioningServiceDescriptionListResult = {
|
|
979
|
-
type: {
|
|
980
|
-
name: "Composite",
|
|
981
|
-
className: "ProvisioningServiceDescriptionListResult",
|
|
982
|
-
modelProperties: {
|
|
983
|
-
value: {
|
|
984
|
-
serializedName: "value",
|
|
985
|
-
type: {
|
|
986
|
-
name: "Sequence",
|
|
987
|
-
element: {
|
|
988
|
-
type: {
|
|
989
|
-
name: "Composite",
|
|
990
|
-
className: "ProvisioningServiceDescription"
|
|
991
|
-
}
|
|
992
|
-
}
|
|
993
|
-
}
|
|
994
|
-
},
|
|
995
|
-
nextLink: {
|
|
996
|
-
serializedName: "nextLink",
|
|
997
|
-
readOnly: true,
|
|
998
|
-
type: {
|
|
999
|
-
name: "String"
|
|
1000
|
-
}
|
|
1001
|
-
}
|
|
1002
|
-
}
|
|
1003
|
-
}
|
|
1004
|
-
};
|
|
1005
|
-
const AsyncOperationResult = {
|
|
1006
|
-
type: {
|
|
1007
|
-
name: "Composite",
|
|
1008
|
-
className: "AsyncOperationResult",
|
|
1009
|
-
modelProperties: {
|
|
1010
|
-
status: {
|
|
1011
|
-
serializedName: "status",
|
|
1012
|
-
type: {
|
|
1013
|
-
name: "String"
|
|
1014
|
-
}
|
|
1015
|
-
},
|
|
1016
|
-
error: {
|
|
1017
|
-
serializedName: "error",
|
|
1018
|
-
type: {
|
|
1019
|
-
name: "Composite",
|
|
1020
|
-
className: "ErrorMessage"
|
|
1021
|
-
}
|
|
1022
|
-
}
|
|
1023
|
-
}
|
|
1024
|
-
}
|
|
1025
|
-
};
|
|
1026
|
-
const ErrorMessage = {
|
|
1027
|
-
type: {
|
|
1028
|
-
name: "Composite",
|
|
1029
|
-
className: "ErrorMessage",
|
|
1030
|
-
modelProperties: {
|
|
1031
|
-
code: {
|
|
1032
|
-
serializedName: "code",
|
|
1033
|
-
type: {
|
|
1034
|
-
name: "String"
|
|
1035
|
-
}
|
|
1036
|
-
},
|
|
1037
|
-
message: {
|
|
1038
|
-
serializedName: "message",
|
|
1039
|
-
type: {
|
|
1040
|
-
name: "String"
|
|
1041
|
-
}
|
|
1042
|
-
},
|
|
1043
|
-
details: {
|
|
1044
|
-
serializedName: "details",
|
|
1045
|
-
type: {
|
|
1046
|
-
name: "String"
|
|
1047
|
-
}
|
|
1048
|
-
}
|
|
1049
|
-
}
|
|
1050
|
-
}
|
|
1051
|
-
};
|
|
1052
|
-
const IotDpsSkuDefinitionListResult = {
|
|
1053
|
-
type: {
|
|
1054
|
-
name: "Composite",
|
|
1055
|
-
className: "IotDpsSkuDefinitionListResult",
|
|
1056
|
-
modelProperties: {
|
|
1057
|
-
value: {
|
|
1058
|
-
serializedName: "value",
|
|
1059
|
-
type: {
|
|
1060
|
-
name: "Sequence",
|
|
1061
|
-
element: {
|
|
1062
|
-
type: {
|
|
1063
|
-
name: "Composite",
|
|
1064
|
-
className: "IotDpsSkuDefinition"
|
|
1065
|
-
}
|
|
1066
|
-
}
|
|
1067
|
-
}
|
|
1068
|
-
},
|
|
1069
|
-
nextLink: {
|
|
1070
|
-
serializedName: "nextLink",
|
|
1071
|
-
readOnly: true,
|
|
1072
|
-
type: {
|
|
1073
|
-
name: "String"
|
|
1074
|
-
}
|
|
1075
|
-
}
|
|
1076
|
-
}
|
|
1077
|
-
}
|
|
1078
|
-
};
|
|
1079
|
-
const IotDpsSkuDefinition = {
|
|
1080
|
-
type: {
|
|
1081
|
-
name: "Composite",
|
|
1082
|
-
className: "IotDpsSkuDefinition",
|
|
1083
|
-
modelProperties: {
|
|
1084
|
-
name: {
|
|
1085
|
-
serializedName: "name",
|
|
1086
|
-
type: {
|
|
1087
|
-
name: "String"
|
|
1088
|
-
}
|
|
1089
|
-
}
|
|
1090
|
-
}
|
|
1091
|
-
}
|
|
1092
|
-
};
|
|
1093
|
-
const VerificationCodeResponse = {
|
|
1094
|
-
type: {
|
|
1095
|
-
name: "Composite",
|
|
1096
|
-
className: "VerificationCodeResponse",
|
|
1097
|
-
modelProperties: {
|
|
1098
|
-
name: {
|
|
1099
|
-
serializedName: "name",
|
|
1100
|
-
readOnly: true,
|
|
1101
|
-
type: {
|
|
1102
|
-
name: "String"
|
|
1103
|
-
}
|
|
1104
|
-
},
|
|
1105
|
-
etag: {
|
|
1106
|
-
serializedName: "etag",
|
|
1107
|
-
readOnly: true,
|
|
1108
|
-
type: {
|
|
1109
|
-
name: "String"
|
|
1110
|
-
}
|
|
1111
|
-
},
|
|
1112
|
-
id: {
|
|
1113
|
-
serializedName: "id",
|
|
1114
|
-
readOnly: true,
|
|
1115
|
-
type: {
|
|
1116
|
-
name: "String"
|
|
1117
|
-
}
|
|
1118
|
-
},
|
|
1119
|
-
type: {
|
|
1120
|
-
serializedName: "type",
|
|
1121
|
-
readOnly: true,
|
|
1122
|
-
type: {
|
|
1123
|
-
name: "String"
|
|
1124
|
-
}
|
|
1125
|
-
},
|
|
1126
|
-
properties: {
|
|
1127
|
-
serializedName: "properties",
|
|
1128
|
-
type: {
|
|
1129
|
-
name: "Composite",
|
|
1130
|
-
className: "VerificationCodeResponseProperties"
|
|
1131
|
-
}
|
|
1132
|
-
}
|
|
1133
|
-
}
|
|
1134
|
-
}
|
|
1135
|
-
};
|
|
1136
|
-
const VerificationCodeResponseProperties = {
|
|
1137
|
-
type: {
|
|
1138
|
-
name: "Composite",
|
|
1139
|
-
className: "VerificationCodeResponseProperties",
|
|
1140
|
-
modelProperties: {
|
|
1141
|
-
verificationCode: {
|
|
1142
|
-
serializedName: "verificationCode",
|
|
1143
|
-
type: {
|
|
1144
|
-
name: "String"
|
|
1145
|
-
}
|
|
1146
|
-
},
|
|
1147
|
-
subject: {
|
|
1148
|
-
serializedName: "subject",
|
|
1149
|
-
type: {
|
|
1150
|
-
name: "String"
|
|
1151
|
-
}
|
|
1152
|
-
},
|
|
1153
|
-
expiry: {
|
|
1154
|
-
serializedName: "expiry",
|
|
1155
|
-
type: {
|
|
1156
|
-
name: "String"
|
|
1157
|
-
}
|
|
1158
|
-
},
|
|
1159
|
-
thumbprint: {
|
|
1160
|
-
serializedName: "thumbprint",
|
|
1161
|
-
type: {
|
|
1162
|
-
name: "String"
|
|
1163
|
-
}
|
|
1164
|
-
},
|
|
1165
|
-
isVerified: {
|
|
1166
|
-
serializedName: "isVerified",
|
|
1167
|
-
type: {
|
|
1168
|
-
name: "Boolean"
|
|
1169
|
-
}
|
|
1170
|
-
},
|
|
1171
|
-
certificate: {
|
|
1172
|
-
serializedName: "certificate",
|
|
1173
|
-
type: {
|
|
1174
|
-
name: "ByteArray"
|
|
1175
|
-
}
|
|
1176
|
-
},
|
|
1177
|
-
created: {
|
|
1178
|
-
serializedName: "created",
|
|
1179
|
-
type: {
|
|
1180
|
-
name: "String"
|
|
1181
|
-
}
|
|
1182
|
-
},
|
|
1183
|
-
updated: {
|
|
1184
|
-
serializedName: "updated",
|
|
1185
|
-
type: {
|
|
1186
|
-
name: "String"
|
|
1187
|
-
}
|
|
1188
|
-
}
|
|
1189
|
-
}
|
|
1190
|
-
}
|
|
1191
|
-
};
|
|
1192
|
-
const VerificationCodeRequest = {
|
|
1193
|
-
type: {
|
|
1194
|
-
name: "Composite",
|
|
1195
|
-
className: "VerificationCodeRequest",
|
|
1196
|
-
modelProperties: {
|
|
1197
|
-
certificate: {
|
|
1198
|
-
serializedName: "certificate",
|
|
1199
|
-
type: {
|
|
1200
|
-
name: "String"
|
|
1201
|
-
}
|
|
1202
|
-
}
|
|
1203
|
-
}
|
|
1204
|
-
}
|
|
1205
|
-
};
|
|
1206
|
-
const OperationInputs = {
|
|
1207
|
-
type: {
|
|
1208
|
-
name: "Composite",
|
|
1209
|
-
className: "OperationInputs",
|
|
1210
|
-
modelProperties: {
|
|
1211
|
-
name: {
|
|
1212
|
-
serializedName: "name",
|
|
1213
|
-
required: true,
|
|
1214
|
-
type: {
|
|
1215
|
-
name: "String"
|
|
1216
|
-
}
|
|
1217
|
-
}
|
|
1218
|
-
}
|
|
1219
|
-
}
|
|
1220
|
-
};
|
|
1221
|
-
const NameAvailabilityInfo = {
|
|
1222
|
-
type: {
|
|
1223
|
-
name: "Composite",
|
|
1224
|
-
className: "NameAvailabilityInfo",
|
|
1225
|
-
modelProperties: {
|
|
1226
|
-
nameAvailable: {
|
|
1227
|
-
serializedName: "nameAvailable",
|
|
1228
|
-
type: {
|
|
1229
|
-
name: "Boolean"
|
|
1230
|
-
}
|
|
1231
|
-
},
|
|
1232
|
-
reason: {
|
|
1233
|
-
serializedName: "reason",
|
|
1234
|
-
type: {
|
|
1235
|
-
name: "String"
|
|
1236
|
-
}
|
|
1237
|
-
},
|
|
1238
|
-
message: {
|
|
1239
|
-
serializedName: "message",
|
|
1240
|
-
type: {
|
|
1241
|
-
name: "String"
|
|
1242
|
-
}
|
|
1243
|
-
}
|
|
1244
|
-
}
|
|
1245
|
-
}
|
|
1246
|
-
};
|
|
1247
|
-
const SharedAccessSignatureAuthorizationRuleListResult = {
|
|
1248
|
-
type: {
|
|
1249
|
-
name: "Composite",
|
|
1250
|
-
className: "SharedAccessSignatureAuthorizationRuleListResult",
|
|
1251
|
-
modelProperties: {
|
|
1252
|
-
value: {
|
|
1253
|
-
serializedName: "value",
|
|
1254
|
-
type: {
|
|
1255
|
-
name: "Sequence",
|
|
1256
|
-
element: {
|
|
1257
|
-
type: {
|
|
1258
|
-
name: "Composite",
|
|
1259
|
-
className: "SharedAccessSignatureAuthorizationRuleAccessRightsDescription"
|
|
1260
|
-
}
|
|
1261
|
-
}
|
|
1262
|
-
}
|
|
1263
|
-
},
|
|
1264
|
-
nextLink: {
|
|
1265
|
-
serializedName: "nextLink",
|
|
1266
|
-
readOnly: true,
|
|
1267
|
-
type: {
|
|
1268
|
-
name: "String"
|
|
1269
|
-
}
|
|
1270
|
-
}
|
|
1271
|
-
}
|
|
1272
|
-
}
|
|
1273
|
-
};
|
|
1274
|
-
const PrivateLinkResources = {
|
|
1275
|
-
type: {
|
|
1276
|
-
name: "Composite",
|
|
1277
|
-
className: "PrivateLinkResources",
|
|
1278
|
-
modelProperties: {
|
|
1279
|
-
value: {
|
|
1280
|
-
serializedName: "value",
|
|
1281
|
-
type: {
|
|
1282
|
-
name: "Sequence",
|
|
1283
|
-
element: {
|
|
1284
|
-
type: {
|
|
1285
|
-
name: "Composite",
|
|
1286
|
-
className: "GroupIdInformation"
|
|
1287
|
-
}
|
|
1288
|
-
}
|
|
1289
|
-
}
|
|
1290
|
-
}
|
|
1291
|
-
}
|
|
1292
|
-
}
|
|
1293
|
-
};
|
|
1294
|
-
const GroupIdInformation = {
|
|
1295
|
-
type: {
|
|
1296
|
-
name: "Composite",
|
|
1297
|
-
className: "GroupIdInformation",
|
|
1298
|
-
modelProperties: {
|
|
1299
|
-
id: {
|
|
1300
|
-
serializedName: "id",
|
|
1301
|
-
readOnly: true,
|
|
1302
|
-
type: {
|
|
1303
|
-
name: "String"
|
|
1304
|
-
}
|
|
1305
|
-
},
|
|
1306
|
-
name: {
|
|
1307
|
-
constraints: {
|
|
1308
|
-
Pattern: new RegExp("^(?![0-9]+$)(?!-)[a-zA-Z0-9-]{2,49}[a-zA-Z0-9]$")
|
|
1309
|
-
},
|
|
1310
|
-
serializedName: "name",
|
|
1311
|
-
readOnly: true,
|
|
1312
|
-
type: {
|
|
1313
|
-
name: "String"
|
|
1314
|
-
}
|
|
1315
|
-
},
|
|
1316
|
-
type: {
|
|
1317
|
-
serializedName: "type",
|
|
1318
|
-
readOnly: true,
|
|
1319
|
-
type: {
|
|
1320
|
-
name: "String"
|
|
1321
|
-
}
|
|
1322
|
-
},
|
|
1323
|
-
properties: {
|
|
1324
|
-
serializedName: "properties",
|
|
1325
|
-
type: {
|
|
1326
|
-
name: "Composite",
|
|
1327
|
-
className: "GroupIdInformationProperties"
|
|
1328
|
-
}
|
|
1329
|
-
}
|
|
1330
|
-
}
|
|
1331
|
-
}
|
|
1332
|
-
};
|
|
1333
|
-
const GroupIdInformationProperties = {
|
|
1334
|
-
type: {
|
|
1335
|
-
name: "Composite",
|
|
1336
|
-
className: "GroupIdInformationProperties",
|
|
1337
|
-
modelProperties: {
|
|
1338
|
-
groupId: {
|
|
1339
|
-
serializedName: "groupId",
|
|
1340
|
-
type: {
|
|
1341
|
-
name: "String"
|
|
1342
|
-
}
|
|
1343
|
-
},
|
|
1344
|
-
requiredMembers: {
|
|
1345
|
-
serializedName: "requiredMembers",
|
|
1346
|
-
type: {
|
|
1347
|
-
name: "Sequence",
|
|
1348
|
-
element: {
|
|
1349
|
-
type: {
|
|
1350
|
-
name: "String"
|
|
1351
|
-
}
|
|
1352
|
-
}
|
|
1353
|
-
}
|
|
1354
|
-
},
|
|
1355
|
-
requiredZoneNames: {
|
|
1356
|
-
serializedName: "requiredZoneNames",
|
|
1357
|
-
type: {
|
|
1358
|
-
name: "Sequence",
|
|
1359
|
-
element: {
|
|
1360
|
-
type: {
|
|
1361
|
-
name: "String"
|
|
1362
|
-
}
|
|
1363
|
-
}
|
|
1364
|
-
}
|
|
1365
|
-
}
|
|
1366
|
-
}
|
|
1367
|
-
}
|
|
1368
|
-
};
|
|
1369
|
-
const CertificateBodyDescription = {
|
|
1370
|
-
type: {
|
|
1371
|
-
name: "Composite",
|
|
1372
|
-
className: "CertificateBodyDescription",
|
|
1373
|
-
modelProperties: {
|
|
1374
|
-
certificate: {
|
|
1375
|
-
serializedName: "certificate",
|
|
1376
|
-
type: {
|
|
1377
|
-
name: "String"
|
|
1378
|
-
}
|
|
1379
|
-
},
|
|
1380
|
-
isVerified: {
|
|
1381
|
-
serializedName: "isVerified",
|
|
1382
|
-
type: {
|
|
1383
|
-
name: "Boolean"
|
|
1384
|
-
}
|
|
1385
|
-
}
|
|
1386
|
-
}
|
|
1387
|
-
}
|
|
1388
|
-
};
|
|
1389
|
-
const ProvisioningServiceDescription = {
|
|
1390
|
-
type: {
|
|
1391
|
-
name: "Composite",
|
|
1392
|
-
className: "ProvisioningServiceDescription",
|
|
1393
|
-
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { etag: {
|
|
1394
|
-
serializedName: "etag",
|
|
1395
|
-
type: {
|
|
1396
|
-
name: "String"
|
|
1397
|
-
}
|
|
1398
|
-
}, properties: {
|
|
1399
|
-
serializedName: "properties",
|
|
1400
|
-
type: {
|
|
1401
|
-
name: "Composite",
|
|
1402
|
-
className: "IotDpsPropertiesDescription"
|
|
1403
|
-
}
|
|
1404
|
-
}, sku: {
|
|
1405
|
-
serializedName: "sku",
|
|
1406
|
-
type: {
|
|
1407
|
-
name: "Composite",
|
|
1408
|
-
className: "IotDpsSkuInfo"
|
|
1409
|
-
}
|
|
1410
|
-
}, systemData: {
|
|
1411
|
-
serializedName: "systemData",
|
|
1412
|
-
type: {
|
|
1413
|
-
name: "Composite",
|
|
1414
|
-
className: "SystemData"
|
|
1415
|
-
}
|
|
1416
|
-
}, identity: {
|
|
1417
|
-
serializedName: "identity",
|
|
1418
|
-
type: {
|
|
1419
|
-
name: "Composite",
|
|
1420
|
-
className: "ManagedServiceIdentity"
|
|
1421
|
-
}
|
|
1422
|
-
} })
|
|
1423
|
-
}
|
|
1424
|
-
};
|
|
1425
|
-
const IotDpsResourceDeletePrivateEndpointConnectionHeaders = {
|
|
1426
|
-
type: {
|
|
1427
|
-
name: "Composite",
|
|
1428
|
-
className: "IotDpsResourceDeletePrivateEndpointConnectionHeaders",
|
|
1429
|
-
modelProperties: {
|
|
1430
|
-
azureAsyncOperation: {
|
|
1431
|
-
serializedName: "azure-asyncoperation",
|
|
1432
|
-
type: {
|
|
1433
|
-
name: "String"
|
|
1434
|
-
}
|
|
1435
|
-
},
|
|
1436
|
-
location: {
|
|
1437
|
-
serializedName: "location",
|
|
1438
|
-
type: {
|
|
1439
|
-
name: "String"
|
|
1440
|
-
}
|
|
1441
|
-
},
|
|
1442
|
-
retryAfter: {
|
|
1443
|
-
serializedName: "retry-after",
|
|
1444
|
-
type: {
|
|
1445
|
-
name: "String"
|
|
1446
|
-
}
|
|
1447
|
-
}
|
|
1448
|
-
}
|
|
1449
|
-
}
|
|
1450
|
-
};
|
|
1451
|
-
|
|
1452
|
-
var Mappers = /*#__PURE__*/Object.freeze({
|
|
1453
|
-
__proto__: null,
|
|
1454
|
-
OperationListResult: OperationListResult,
|
|
1455
|
-
Operation: Operation,
|
|
1456
|
-
OperationDisplay: OperationDisplay,
|
|
1457
|
-
ErrorDetails: ErrorDetails,
|
|
1458
|
-
CertificateResponse: CertificateResponse,
|
|
1459
|
-
CertificateProperties: CertificateProperties,
|
|
1460
|
-
SystemData: SystemData,
|
|
1461
|
-
IotDpsPropertiesDescription: IotDpsPropertiesDescription,
|
|
1462
|
-
IpFilterRule: IpFilterRule,
|
|
1463
|
-
PrivateEndpointConnection: PrivateEndpointConnection,
|
|
1464
|
-
PrivateEndpointConnectionProperties: PrivateEndpointConnectionProperties,
|
|
1465
|
-
PrivateEndpoint: PrivateEndpoint,
|
|
1466
|
-
PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
|
|
1467
|
-
IotHubDefinitionDescription: IotHubDefinitionDescription,
|
|
1468
|
-
SharedAccessSignatureAuthorizationRuleAccessRightsDescription: SharedAccessSignatureAuthorizationRuleAccessRightsDescription,
|
|
1469
|
-
IotDpsSkuInfo: IotDpsSkuInfo,
|
|
1470
|
-
ManagedServiceIdentity: ManagedServiceIdentity,
|
|
1471
|
-
UserAssignedIdentity: UserAssignedIdentity,
|
|
1472
|
-
Resource: Resource,
|
|
1473
|
-
TagsResource: TagsResource,
|
|
1474
|
-
CertificateListDescription: CertificateListDescription,
|
|
1475
|
-
ProvisioningServiceDescriptionListResult: ProvisioningServiceDescriptionListResult,
|
|
1476
|
-
AsyncOperationResult: AsyncOperationResult,
|
|
1477
|
-
ErrorMessage: ErrorMessage,
|
|
1478
|
-
IotDpsSkuDefinitionListResult: IotDpsSkuDefinitionListResult,
|
|
1479
|
-
IotDpsSkuDefinition: IotDpsSkuDefinition,
|
|
1480
|
-
VerificationCodeResponse: VerificationCodeResponse,
|
|
1481
|
-
VerificationCodeResponseProperties: VerificationCodeResponseProperties,
|
|
1482
|
-
VerificationCodeRequest: VerificationCodeRequest,
|
|
1483
|
-
OperationInputs: OperationInputs,
|
|
1484
|
-
NameAvailabilityInfo: NameAvailabilityInfo,
|
|
1485
|
-
SharedAccessSignatureAuthorizationRuleListResult: SharedAccessSignatureAuthorizationRuleListResult,
|
|
1486
|
-
PrivateLinkResources: PrivateLinkResources,
|
|
1487
|
-
GroupIdInformation: GroupIdInformation,
|
|
1488
|
-
GroupIdInformationProperties: GroupIdInformationProperties,
|
|
1489
|
-
CertificateBodyDescription: CertificateBodyDescription,
|
|
1490
|
-
ProvisioningServiceDescription: ProvisioningServiceDescription,
|
|
1491
|
-
IotDpsResourceDeletePrivateEndpointConnectionHeaders: IotDpsResourceDeletePrivateEndpointConnectionHeaders
|
|
1492
|
-
});
|
|
1493
|
-
|
|
1494
|
-
/*
|
|
1495
|
-
* Copyright (c) Microsoft Corporation.
|
|
1496
|
-
* Licensed under the MIT License.
|
|
1497
|
-
*
|
|
1498
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1499
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1500
|
-
*/
|
|
1501
|
-
const accept = {
|
|
1502
|
-
parameterPath: "accept",
|
|
1503
|
-
mapper: {
|
|
1504
|
-
defaultValue: "application/json",
|
|
1505
|
-
isConstant: true,
|
|
1506
|
-
serializedName: "Accept",
|
|
1507
|
-
type: {
|
|
1508
|
-
name: "String"
|
|
1509
|
-
}
|
|
1510
|
-
}
|
|
1511
|
-
};
|
|
1512
|
-
const $host = {
|
|
1513
|
-
parameterPath: "$host",
|
|
1514
|
-
mapper: {
|
|
1515
|
-
serializedName: "$host",
|
|
1516
|
-
required: true,
|
|
1517
|
-
type: {
|
|
1518
|
-
name: "String"
|
|
1519
|
-
}
|
|
1520
|
-
},
|
|
1521
|
-
skipEncoding: true
|
|
1522
|
-
};
|
|
1523
|
-
const apiVersion = {
|
|
1524
|
-
parameterPath: "apiVersion",
|
|
1525
|
-
mapper: {
|
|
1526
|
-
defaultValue: "2023-03-01-preview",
|
|
1527
|
-
isConstant: true,
|
|
1528
|
-
serializedName: "api-version",
|
|
1529
|
-
type: {
|
|
1530
|
-
name: "String"
|
|
1531
|
-
}
|
|
1532
|
-
}
|
|
1533
|
-
};
|
|
1534
|
-
const nextLink = {
|
|
1535
|
-
parameterPath: "nextLink",
|
|
1536
|
-
mapper: {
|
|
1537
|
-
serializedName: "nextLink",
|
|
1538
|
-
required: true,
|
|
1539
|
-
type: {
|
|
1540
|
-
name: "String"
|
|
1541
|
-
}
|
|
1542
|
-
},
|
|
1543
|
-
skipEncoding: true
|
|
1544
|
-
};
|
|
1545
|
-
const certificateName = {
|
|
1546
|
-
parameterPath: "certificateName",
|
|
1547
|
-
mapper: {
|
|
1548
|
-
serializedName: "certificateName",
|
|
1549
|
-
required: true,
|
|
1550
|
-
type: {
|
|
1551
|
-
name: "String"
|
|
1552
|
-
}
|
|
1553
|
-
}
|
|
1554
|
-
};
|
|
1555
|
-
const subscriptionId = {
|
|
1556
|
-
parameterPath: "subscriptionId",
|
|
1557
|
-
mapper: {
|
|
1558
|
-
serializedName: "subscriptionId",
|
|
1559
|
-
required: true,
|
|
1560
|
-
type: {
|
|
1561
|
-
name: "String"
|
|
1562
|
-
}
|
|
1563
|
-
}
|
|
1564
|
-
};
|
|
1565
|
-
const resourceGroupName = {
|
|
1566
|
-
parameterPath: "resourceGroupName",
|
|
1567
|
-
mapper: {
|
|
1568
|
-
serializedName: "resourceGroupName",
|
|
1569
|
-
required: true,
|
|
1570
|
-
type: {
|
|
1571
|
-
name: "String"
|
|
1572
|
-
}
|
|
1573
|
-
}
|
|
1574
|
-
};
|
|
1575
|
-
const provisioningServiceName = {
|
|
1576
|
-
parameterPath: "provisioningServiceName",
|
|
1577
|
-
mapper: {
|
|
1578
|
-
serializedName: "provisioningServiceName",
|
|
1579
|
-
required: true,
|
|
1580
|
-
type: {
|
|
1581
|
-
name: "String"
|
|
1582
|
-
}
|
|
1583
|
-
}
|
|
1584
|
-
};
|
|
1585
|
-
const ifMatch = {
|
|
1586
|
-
parameterPath: ["options", "ifMatch"],
|
|
1587
|
-
mapper: {
|
|
1588
|
-
serializedName: "If-Match",
|
|
1589
|
-
type: {
|
|
1590
|
-
name: "String"
|
|
1591
|
-
}
|
|
1592
|
-
}
|
|
1593
|
-
};
|
|
1594
|
-
const contentType = {
|
|
1595
|
-
parameterPath: ["options", "contentType"],
|
|
1596
|
-
mapper: {
|
|
1597
|
-
defaultValue: "application/json",
|
|
1598
|
-
isConstant: true,
|
|
1599
|
-
serializedName: "Content-Type",
|
|
1600
|
-
type: {
|
|
1601
|
-
name: "String"
|
|
1602
|
-
}
|
|
1603
|
-
}
|
|
1604
|
-
};
|
|
1605
|
-
const certificateDescription = {
|
|
1606
|
-
parameterPath: "certificateDescription",
|
|
1607
|
-
mapper: CertificateResponse
|
|
1608
|
-
};
|
|
1609
|
-
const certificateName1 = {
|
|
1610
|
-
parameterPath: "certificateName",
|
|
1611
|
-
mapper: {
|
|
1612
|
-
constraints: {
|
|
1613
|
-
MaxLength: 256
|
|
1614
|
-
},
|
|
1615
|
-
serializedName: "certificateName",
|
|
1616
|
-
required: true,
|
|
1617
|
-
type: {
|
|
1618
|
-
name: "String"
|
|
1619
|
-
}
|
|
1620
|
-
}
|
|
1621
|
-
};
|
|
1622
|
-
const ifMatch1 = {
|
|
1623
|
-
parameterPath: "ifMatch",
|
|
1624
|
-
mapper: {
|
|
1625
|
-
serializedName: "If-Match",
|
|
1626
|
-
required: true,
|
|
1627
|
-
type: {
|
|
1628
|
-
name: "String"
|
|
1629
|
-
}
|
|
1630
|
-
}
|
|
1631
|
-
};
|
|
1632
|
-
const certificateName11 = {
|
|
1633
|
-
parameterPath: ["options", "certificateName1"],
|
|
1634
|
-
mapper: {
|
|
1635
|
-
serializedName: "certificate.name",
|
|
1636
|
-
type: {
|
|
1637
|
-
name: "String"
|
|
1638
|
-
}
|
|
1639
|
-
}
|
|
1640
|
-
};
|
|
1641
|
-
const certificateRawBytes = {
|
|
1642
|
-
parameterPath: ["options", "certificateRawBytes"],
|
|
1643
|
-
mapper: {
|
|
1644
|
-
serializedName: "certificate.rawBytes",
|
|
1645
|
-
type: {
|
|
1646
|
-
name: "ByteArray"
|
|
1647
|
-
}
|
|
1648
|
-
}
|
|
1649
|
-
};
|
|
1650
|
-
const certificateIsVerified = {
|
|
1651
|
-
parameterPath: ["options", "certificateIsVerified"],
|
|
1652
|
-
mapper: {
|
|
1653
|
-
serializedName: "certificate.isVerified",
|
|
1654
|
-
type: {
|
|
1655
|
-
name: "Boolean"
|
|
1656
|
-
}
|
|
1657
|
-
}
|
|
1658
|
-
};
|
|
1659
|
-
const certificatePurpose = {
|
|
1660
|
-
parameterPath: ["options", "certificatePurpose"],
|
|
1661
|
-
mapper: {
|
|
1662
|
-
serializedName: "certificate.purpose",
|
|
1663
|
-
type: {
|
|
1664
|
-
name: "String"
|
|
1665
|
-
}
|
|
1666
|
-
}
|
|
1667
|
-
};
|
|
1668
|
-
const certificateCreated = {
|
|
1669
|
-
parameterPath: ["options", "certificateCreated"],
|
|
1670
|
-
mapper: {
|
|
1671
|
-
serializedName: "certificate.created",
|
|
1672
|
-
type: {
|
|
1673
|
-
name: "DateTime"
|
|
1674
|
-
}
|
|
1675
|
-
}
|
|
1676
|
-
};
|
|
1677
|
-
const certificateLastUpdated = {
|
|
1678
|
-
parameterPath: ["options", "certificateLastUpdated"],
|
|
1679
|
-
mapper: {
|
|
1680
|
-
serializedName: "certificate.lastUpdated",
|
|
1681
|
-
type: {
|
|
1682
|
-
name: "DateTime"
|
|
1683
|
-
}
|
|
1684
|
-
}
|
|
1685
|
-
};
|
|
1686
|
-
const certificateHasPrivateKey = {
|
|
1687
|
-
parameterPath: ["options", "certificateHasPrivateKey"],
|
|
1688
|
-
mapper: {
|
|
1689
|
-
serializedName: "certificate.hasPrivateKey",
|
|
1690
|
-
type: {
|
|
1691
|
-
name: "Boolean"
|
|
1692
|
-
}
|
|
1693
|
-
}
|
|
1694
|
-
};
|
|
1695
|
-
const certificateNonce = {
|
|
1696
|
-
parameterPath: ["options", "certificateNonce"],
|
|
1697
|
-
mapper: {
|
|
1698
|
-
serializedName: "certificate.nonce",
|
|
1699
|
-
type: {
|
|
1700
|
-
name: "String"
|
|
1701
|
-
}
|
|
1702
|
-
}
|
|
1703
|
-
};
|
|
1704
|
-
const request = {
|
|
1705
|
-
parameterPath: "request",
|
|
1706
|
-
mapper: VerificationCodeRequest
|
|
1707
|
-
};
|
|
1708
|
-
const iotDpsDescription = {
|
|
1709
|
-
parameterPath: "iotDpsDescription",
|
|
1710
|
-
mapper: ProvisioningServiceDescription
|
|
1711
|
-
};
|
|
1712
|
-
const provisioningServiceTags = {
|
|
1713
|
-
parameterPath: "provisioningServiceTags",
|
|
1714
|
-
mapper: TagsResource
|
|
1715
|
-
};
|
|
1716
|
-
const operationId = {
|
|
1717
|
-
parameterPath: "operationId",
|
|
1718
|
-
mapper: {
|
|
1719
|
-
serializedName: "operationId",
|
|
1720
|
-
required: true,
|
|
1721
|
-
type: {
|
|
1722
|
-
name: "String"
|
|
1723
|
-
}
|
|
1724
|
-
}
|
|
1725
|
-
};
|
|
1726
|
-
const asyncinfo = {
|
|
1727
|
-
parameterPath: "asyncinfo",
|
|
1728
|
-
mapper: {
|
|
1729
|
-
defaultValue: "true",
|
|
1730
|
-
serializedName: "asyncinfo",
|
|
1731
|
-
required: true,
|
|
1732
|
-
type: {
|
|
1733
|
-
name: "String"
|
|
1734
|
-
}
|
|
1735
|
-
}
|
|
1736
|
-
};
|
|
1737
|
-
const argumentsParam = {
|
|
1738
|
-
parameterPath: "argumentsParam",
|
|
1739
|
-
mapper: OperationInputs
|
|
1740
|
-
};
|
|
1741
|
-
const keyName = {
|
|
1742
|
-
parameterPath: "keyName",
|
|
1743
|
-
mapper: {
|
|
1744
|
-
serializedName: "keyName",
|
|
1745
|
-
required: true,
|
|
1746
|
-
type: {
|
|
1747
|
-
name: "String"
|
|
1748
|
-
}
|
|
1749
|
-
}
|
|
1750
|
-
};
|
|
1751
|
-
const resourceName = {
|
|
1752
|
-
parameterPath: "resourceName",
|
|
1753
|
-
mapper: {
|
|
1754
|
-
serializedName: "resourceName",
|
|
1755
|
-
required: true,
|
|
1756
|
-
type: {
|
|
1757
|
-
name: "String"
|
|
1758
|
-
}
|
|
1759
|
-
}
|
|
1760
|
-
};
|
|
1761
|
-
const groupId = {
|
|
1762
|
-
parameterPath: "groupId",
|
|
1763
|
-
mapper: {
|
|
1764
|
-
serializedName: "groupId",
|
|
1765
|
-
required: true,
|
|
1766
|
-
type: {
|
|
1767
|
-
name: "String"
|
|
1768
|
-
}
|
|
1769
|
-
}
|
|
1770
|
-
};
|
|
1771
|
-
const privateEndpointConnectionName = {
|
|
1772
|
-
parameterPath: "privateEndpointConnectionName",
|
|
1773
|
-
mapper: {
|
|
1774
|
-
serializedName: "privateEndpointConnectionName",
|
|
1775
|
-
required: true,
|
|
1776
|
-
type: {
|
|
1777
|
-
name: "String"
|
|
1778
|
-
}
|
|
1779
|
-
}
|
|
1780
|
-
};
|
|
1781
|
-
const privateEndpointConnection = {
|
|
1782
|
-
parameterPath: "privateEndpointConnection",
|
|
1783
|
-
mapper: PrivateEndpointConnection
|
|
1784
|
-
};
|
|
1785
|
-
|
|
1786
|
-
/*
|
|
1787
|
-
* Copyright (c) Microsoft Corporation.
|
|
1788
|
-
* Licensed under the MIT License.
|
|
1789
|
-
*
|
|
1790
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1791
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1792
|
-
*/
|
|
1793
|
-
/// <reference lib="esnext.asynciterable" />
|
|
1794
|
-
/** Class containing Operations operations. */
|
|
1795
|
-
class OperationsImpl {
|
|
1796
|
-
/**
|
|
1797
|
-
* Initialize a new instance of the class Operations class.
|
|
1798
|
-
* @param client Reference to the service client
|
|
1799
|
-
*/
|
|
1800
|
-
constructor(client) {
|
|
1801
|
-
this.client = client;
|
|
1802
|
-
}
|
|
1803
|
-
/**
|
|
1804
|
-
* Lists all of the available Microsoft.Devices REST API operations.
|
|
1805
|
-
* @param options The options parameters.
|
|
1806
|
-
*/
|
|
1807
|
-
list(options) {
|
|
1808
|
-
const iter = this.listPagingAll(options);
|
|
1809
|
-
return {
|
|
1810
|
-
next() {
|
|
1811
|
-
return iter.next();
|
|
1812
|
-
},
|
|
1813
|
-
[Symbol.asyncIterator]() {
|
|
1814
|
-
return this;
|
|
1815
|
-
},
|
|
1816
|
-
byPage: (settings) => {
|
|
1817
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1818
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
1819
|
-
}
|
|
1820
|
-
return this.listPagingPage(options, settings);
|
|
1821
|
-
}
|
|
1822
|
-
};
|
|
1823
|
-
}
|
|
1824
|
-
listPagingPage(options, settings) {
|
|
1825
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
1826
|
-
let result;
|
|
1827
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1828
|
-
if (!continuationToken) {
|
|
1829
|
-
result = yield tslib.__await(this._list(options));
|
|
1830
|
-
let page = result.value || [];
|
|
1831
|
-
continuationToken = result.nextLink;
|
|
1832
|
-
setContinuationToken(page, continuationToken);
|
|
1833
|
-
yield yield tslib.__await(page);
|
|
1834
|
-
}
|
|
1835
|
-
while (continuationToken) {
|
|
1836
|
-
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
1837
|
-
continuationToken = result.nextLink;
|
|
1838
|
-
let page = result.value || [];
|
|
1839
|
-
setContinuationToken(page, continuationToken);
|
|
1840
|
-
yield yield tslib.__await(page);
|
|
1841
|
-
}
|
|
1842
|
-
});
|
|
1843
|
-
}
|
|
1844
|
-
listPagingAll(options) {
|
|
1845
|
-
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
1846
|
-
var _a, e_1, _b, _c;
|
|
1847
|
-
try {
|
|
1848
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
1849
|
-
_c = _f.value;
|
|
1850
|
-
_d = false;
|
|
1851
|
-
try {
|
|
1852
|
-
const page = _c;
|
|
1853
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1854
|
-
}
|
|
1855
|
-
finally {
|
|
1856
|
-
_d = true;
|
|
1857
|
-
}
|
|
1858
|
-
}
|
|
1859
|
-
}
|
|
1860
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1861
|
-
finally {
|
|
1862
|
-
try {
|
|
1863
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1864
|
-
}
|
|
1865
|
-
finally { if (e_1) throw e_1.error; }
|
|
1866
|
-
}
|
|
1867
|
-
});
|
|
1868
|
-
}
|
|
1869
|
-
/**
|
|
1870
|
-
* Lists all of the available Microsoft.Devices REST API operations.
|
|
1871
|
-
* @param options The options parameters.
|
|
1872
|
-
*/
|
|
1873
|
-
_list(options) {
|
|
1874
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec$1);
|
|
1875
|
-
}
|
|
1876
|
-
/**
|
|
1877
|
-
* ListNext
|
|
1878
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
1879
|
-
* @param options The options parameters.
|
|
1880
|
-
*/
|
|
1881
|
-
_listNext(nextLink, options) {
|
|
1882
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
1883
|
-
}
|
|
1884
|
-
}
|
|
1885
|
-
// Operation Specifications
|
|
1886
|
-
const serializer$2 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
1887
|
-
const listOperationSpec$1 = {
|
|
1888
|
-
path: "/providers/Microsoft.Devices/operations",
|
|
1889
|
-
httpMethod: "GET",
|
|
1890
|
-
responses: {
|
|
1891
|
-
200: {
|
|
1892
|
-
bodyMapper: OperationListResult
|
|
1893
|
-
},
|
|
1894
|
-
default: {
|
|
1895
|
-
bodyMapper: ErrorDetails
|
|
1896
|
-
}
|
|
1897
|
-
},
|
|
1898
|
-
queryParameters: [apiVersion],
|
|
1899
|
-
urlParameters: [$host],
|
|
1900
|
-
headerParameters: [accept],
|
|
1901
|
-
serializer: serializer$2
|
|
1902
|
-
};
|
|
1903
|
-
const listNextOperationSpec = {
|
|
1904
|
-
path: "{nextLink}",
|
|
1905
|
-
httpMethod: "GET",
|
|
1906
|
-
responses: {
|
|
1907
|
-
200: {
|
|
1908
|
-
bodyMapper: OperationListResult
|
|
1909
|
-
},
|
|
1910
|
-
default: {
|
|
1911
|
-
bodyMapper: ErrorDetails
|
|
1912
|
-
}
|
|
1913
|
-
},
|
|
1914
|
-
urlParameters: [$host, nextLink],
|
|
1915
|
-
headerParameters: [accept],
|
|
1916
|
-
serializer: serializer$2
|
|
1917
|
-
};
|
|
1918
|
-
|
|
1919
|
-
/*
|
|
1920
|
-
* Copyright (c) Microsoft Corporation.
|
|
1921
|
-
* Licensed under the MIT License.
|
|
1922
|
-
*
|
|
1923
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1924
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1925
|
-
*/
|
|
1926
|
-
/** Class containing DpsCertificate operations. */
|
|
1927
|
-
class DpsCertificateImpl {
|
|
1928
|
-
/**
|
|
1929
|
-
* Initialize a new instance of the class DpsCertificate class.
|
|
1930
|
-
* @param client Reference to the service client
|
|
1931
|
-
*/
|
|
1932
|
-
constructor(client) {
|
|
1933
|
-
this.client = client;
|
|
1934
|
-
}
|
|
1935
|
-
/**
|
|
1936
|
-
* Get the certificate from the provisioning service.
|
|
1937
|
-
* @param certificateName Name of the certificate to retrieve.
|
|
1938
|
-
* @param resourceGroupName Resource group identifier.
|
|
1939
|
-
* @param provisioningServiceName Name of the provisioning service the certificate is associated with.
|
|
1940
|
-
* @param options The options parameters.
|
|
1941
|
-
*/
|
|
1942
|
-
get(certificateName, resourceGroupName, provisioningServiceName, options) {
|
|
1943
|
-
return this.client.sendOperationRequest({ certificateName, resourceGroupName, provisioningServiceName, options }, getOperationSpec$1);
|
|
1944
|
-
}
|
|
1945
|
-
/**
|
|
1946
|
-
* Add new certificate or update an existing certificate.
|
|
1947
|
-
* @param resourceGroupName Resource group identifier.
|
|
1948
|
-
* @param provisioningServiceName The name of the provisioning service.
|
|
1949
|
-
* @param certificateName The name of the certificate create or update.
|
|
1950
|
-
* @param certificateDescription The certificate body.
|
|
1951
|
-
* @param options The options parameters.
|
|
1952
|
-
*/
|
|
1953
|
-
createOrUpdate(resourceGroupName, provisioningServiceName, certificateName, certificateDescription, options) {
|
|
1954
|
-
return this.client.sendOperationRequest({
|
|
1955
|
-
resourceGroupName,
|
|
1956
|
-
provisioningServiceName,
|
|
1957
|
-
certificateName,
|
|
1958
|
-
certificateDescription,
|
|
1959
|
-
options
|
|
1960
|
-
}, createOrUpdateOperationSpec$1);
|
|
1961
|
-
}
|
|
1962
|
-
/**
|
|
1963
|
-
* Deletes the specified certificate associated with the Provisioning Service
|
|
1964
|
-
* @param resourceGroupName Resource group identifier.
|
|
1965
|
-
* @param ifMatch ETag of the certificate
|
|
1966
|
-
* @param provisioningServiceName The name of the provisioning service.
|
|
1967
|
-
* @param certificateName This is a mandatory field, and is the logical name of the certificate that
|
|
1968
|
-
* the provisioning service will access by.
|
|
1969
|
-
* @param options The options parameters.
|
|
1970
|
-
*/
|
|
1971
|
-
delete(resourceGroupName, ifMatch, provisioningServiceName, certificateName, options) {
|
|
1972
|
-
return this.client.sendOperationRequest({
|
|
1973
|
-
resourceGroupName,
|
|
1974
|
-
ifMatch,
|
|
1975
|
-
provisioningServiceName,
|
|
1976
|
-
certificateName,
|
|
1977
|
-
options
|
|
1978
|
-
}, deleteOperationSpec$1);
|
|
1979
|
-
}
|
|
1980
|
-
/**
|
|
1981
|
-
* Get all the certificates tied to the provisioning service.
|
|
1982
|
-
* @param resourceGroupName Name of resource group.
|
|
1983
|
-
* @param provisioningServiceName Name of provisioning service to retrieve certificates for.
|
|
1984
|
-
* @param options The options parameters.
|
|
1985
|
-
*/
|
|
1986
|
-
list(resourceGroupName, provisioningServiceName, options) {
|
|
1987
|
-
return this.client.sendOperationRequest({ resourceGroupName, provisioningServiceName, options }, listOperationSpec);
|
|
1988
|
-
}
|
|
1989
|
-
/**
|
|
1990
|
-
* Generate verification code for Proof of Possession.
|
|
1991
|
-
* @param certificateName The mandatory logical name of the certificate, that the provisioning service
|
|
1992
|
-
* uses to access.
|
|
1993
|
-
* @param ifMatch ETag of the certificate. This is required to update an existing certificate, and
|
|
1994
|
-
* ignored while creating a brand new certificate.
|
|
1995
|
-
* @param resourceGroupName name of resource group.
|
|
1996
|
-
* @param provisioningServiceName Name of provisioning service.
|
|
1997
|
-
* @param options The options parameters.
|
|
1998
|
-
*/
|
|
1999
|
-
generateVerificationCode(certificateName, ifMatch, resourceGroupName, provisioningServiceName, options) {
|
|
2000
|
-
return this.client.sendOperationRequest({
|
|
2001
|
-
certificateName,
|
|
2002
|
-
ifMatch,
|
|
2003
|
-
resourceGroupName,
|
|
2004
|
-
provisioningServiceName,
|
|
2005
|
-
options
|
|
2006
|
-
}, generateVerificationCodeOperationSpec);
|
|
2007
|
-
}
|
|
2008
|
-
/**
|
|
2009
|
-
* Verifies the certificate's private key possession by providing the leaf cert issued by the verifying
|
|
2010
|
-
* pre uploaded certificate.
|
|
2011
|
-
* @param certificateName The mandatory logical name of the certificate, that the provisioning service
|
|
2012
|
-
* uses to access.
|
|
2013
|
-
* @param ifMatch ETag of the certificate.
|
|
2014
|
-
* @param resourceGroupName Resource group name.
|
|
2015
|
-
* @param provisioningServiceName Provisioning service name.
|
|
2016
|
-
* @param request The name of the certificate
|
|
2017
|
-
* @param options The options parameters.
|
|
2018
|
-
*/
|
|
2019
|
-
verifyCertificate(certificateName, ifMatch, resourceGroupName, provisioningServiceName, request, options) {
|
|
2020
|
-
return this.client.sendOperationRequest({
|
|
2021
|
-
certificateName,
|
|
2022
|
-
ifMatch,
|
|
2023
|
-
resourceGroupName,
|
|
2024
|
-
provisioningServiceName,
|
|
2025
|
-
request,
|
|
2026
|
-
options
|
|
2027
|
-
}, verifyCertificateOperationSpec);
|
|
2028
|
-
}
|
|
2029
|
-
}
|
|
2030
|
-
// Operation Specifications
|
|
2031
|
-
const serializer$1 = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2032
|
-
const getOperationSpec$1 = {
|
|
2033
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}",
|
|
2034
|
-
httpMethod: "GET",
|
|
2035
|
-
responses: {
|
|
2036
|
-
200: {
|
|
2037
|
-
bodyMapper: CertificateResponse
|
|
2038
|
-
},
|
|
2039
|
-
default: {
|
|
2040
|
-
bodyMapper: ErrorDetails
|
|
2041
|
-
}
|
|
2042
|
-
},
|
|
2043
|
-
queryParameters: [apiVersion],
|
|
2044
|
-
urlParameters: [
|
|
2045
|
-
$host,
|
|
2046
|
-
certificateName,
|
|
2047
|
-
subscriptionId,
|
|
2048
|
-
resourceGroupName,
|
|
2049
|
-
provisioningServiceName
|
|
2050
|
-
],
|
|
2051
|
-
headerParameters: [accept, ifMatch],
|
|
2052
|
-
serializer: serializer$1
|
|
2053
|
-
};
|
|
2054
|
-
const createOrUpdateOperationSpec$1 = {
|
|
2055
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}",
|
|
2056
|
-
httpMethod: "PUT",
|
|
2057
|
-
responses: {
|
|
2058
|
-
200: {
|
|
2059
|
-
bodyMapper: CertificateResponse
|
|
2060
|
-
},
|
|
2061
|
-
default: {
|
|
2062
|
-
bodyMapper: ErrorDetails
|
|
2063
|
-
}
|
|
2064
|
-
},
|
|
2065
|
-
requestBody: certificateDescription,
|
|
2066
|
-
queryParameters: [apiVersion],
|
|
2067
|
-
urlParameters: [
|
|
2068
|
-
$host,
|
|
2069
|
-
subscriptionId,
|
|
2070
|
-
resourceGroupName,
|
|
2071
|
-
provisioningServiceName,
|
|
2072
|
-
certificateName1
|
|
2073
|
-
],
|
|
2074
|
-
headerParameters: [
|
|
2075
|
-
accept,
|
|
2076
|
-
ifMatch,
|
|
2077
|
-
contentType
|
|
2078
|
-
],
|
|
2079
|
-
mediaType: "json",
|
|
2080
|
-
serializer: serializer$1
|
|
2081
|
-
};
|
|
2082
|
-
const deleteOperationSpec$1 = {
|
|
2083
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}",
|
|
2084
|
-
httpMethod: "DELETE",
|
|
2085
|
-
responses: {
|
|
2086
|
-
200: {},
|
|
2087
|
-
204: {},
|
|
2088
|
-
default: {
|
|
2089
|
-
bodyMapper: ErrorDetails
|
|
2090
|
-
}
|
|
2091
|
-
},
|
|
2092
|
-
queryParameters: [
|
|
2093
|
-
apiVersion,
|
|
2094
|
-
certificateName11,
|
|
2095
|
-
certificateRawBytes,
|
|
2096
|
-
certificateIsVerified,
|
|
2097
|
-
certificatePurpose,
|
|
2098
|
-
certificateCreated,
|
|
2099
|
-
certificateLastUpdated,
|
|
2100
|
-
certificateHasPrivateKey,
|
|
2101
|
-
certificateNonce
|
|
2102
|
-
],
|
|
2103
|
-
urlParameters: [
|
|
2104
|
-
$host,
|
|
2105
|
-
certificateName,
|
|
2106
|
-
subscriptionId,
|
|
2107
|
-
resourceGroupName,
|
|
2108
|
-
provisioningServiceName
|
|
2109
|
-
],
|
|
2110
|
-
headerParameters: [accept, ifMatch1],
|
|
2111
|
-
serializer: serializer$1
|
|
2112
|
-
};
|
|
2113
|
-
const listOperationSpec = {
|
|
2114
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates",
|
|
2115
|
-
httpMethod: "GET",
|
|
2116
|
-
responses: {
|
|
2117
|
-
200: {
|
|
2118
|
-
bodyMapper: CertificateListDescription
|
|
2119
|
-
},
|
|
2120
|
-
default: {
|
|
2121
|
-
bodyMapper: ErrorDetails
|
|
2122
|
-
}
|
|
2123
|
-
},
|
|
2124
|
-
queryParameters: [apiVersion],
|
|
2125
|
-
urlParameters: [
|
|
2126
|
-
$host,
|
|
2127
|
-
subscriptionId,
|
|
2128
|
-
resourceGroupName,
|
|
2129
|
-
provisioningServiceName
|
|
2130
|
-
],
|
|
2131
|
-
headerParameters: [accept],
|
|
2132
|
-
serializer: serializer$1
|
|
2133
|
-
};
|
|
2134
|
-
const generateVerificationCodeOperationSpec = {
|
|
2135
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}/generateVerificationCode",
|
|
2136
|
-
httpMethod: "POST",
|
|
2137
|
-
responses: {
|
|
2138
|
-
200: {
|
|
2139
|
-
bodyMapper: VerificationCodeResponse
|
|
2140
|
-
},
|
|
2141
|
-
default: {
|
|
2142
|
-
bodyMapper: ErrorDetails
|
|
2143
|
-
}
|
|
2144
|
-
},
|
|
2145
|
-
queryParameters: [
|
|
2146
|
-
apiVersion,
|
|
2147
|
-
certificateName11,
|
|
2148
|
-
certificateRawBytes,
|
|
2149
|
-
certificateIsVerified,
|
|
2150
|
-
certificatePurpose,
|
|
2151
|
-
certificateCreated,
|
|
2152
|
-
certificateLastUpdated,
|
|
2153
|
-
certificateHasPrivateKey,
|
|
2154
|
-
certificateNonce
|
|
2155
|
-
],
|
|
2156
|
-
urlParameters: [
|
|
2157
|
-
$host,
|
|
2158
|
-
certificateName,
|
|
2159
|
-
subscriptionId,
|
|
2160
|
-
resourceGroupName,
|
|
2161
|
-
provisioningServiceName
|
|
2162
|
-
],
|
|
2163
|
-
headerParameters: [accept, ifMatch1],
|
|
2164
|
-
serializer: serializer$1
|
|
2165
|
-
};
|
|
2166
|
-
const verifyCertificateOperationSpec = {
|
|
2167
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/certificates/{certificateName}/verify",
|
|
2168
|
-
httpMethod: "POST",
|
|
2169
|
-
responses: {
|
|
2170
|
-
200: {
|
|
2171
|
-
bodyMapper: CertificateResponse
|
|
2172
|
-
},
|
|
2173
|
-
default: {
|
|
2174
|
-
bodyMapper: ErrorDetails
|
|
2175
|
-
}
|
|
2176
|
-
},
|
|
2177
|
-
requestBody: request,
|
|
2178
|
-
queryParameters: [
|
|
2179
|
-
apiVersion,
|
|
2180
|
-
certificateName11,
|
|
2181
|
-
certificateRawBytes,
|
|
2182
|
-
certificateIsVerified,
|
|
2183
|
-
certificatePurpose,
|
|
2184
|
-
certificateCreated,
|
|
2185
|
-
certificateLastUpdated,
|
|
2186
|
-
certificateHasPrivateKey,
|
|
2187
|
-
certificateNonce
|
|
2188
|
-
],
|
|
2189
|
-
urlParameters: [
|
|
2190
|
-
$host,
|
|
2191
|
-
certificateName,
|
|
2192
|
-
subscriptionId,
|
|
2193
|
-
resourceGroupName,
|
|
2194
|
-
provisioningServiceName
|
|
2195
|
-
],
|
|
2196
|
-
headerParameters: [
|
|
2197
|
-
accept,
|
|
2198
|
-
contentType,
|
|
2199
|
-
ifMatch1
|
|
2200
|
-
],
|
|
2201
|
-
mediaType: "json",
|
|
2202
|
-
serializer: serializer$1
|
|
2203
|
-
};
|
|
2204
|
-
|
|
2205
|
-
/*
|
|
2206
|
-
* Copyright (c) Microsoft Corporation.
|
|
2207
|
-
* Licensed under the MIT License.
|
|
2208
|
-
*
|
|
2209
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2210
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2211
|
-
*/
|
|
2212
|
-
function createLroSpec(inputs) {
|
|
2213
|
-
const { args, spec, sendOperationFn } = inputs;
|
|
2214
|
-
return {
|
|
2215
|
-
requestMethod: spec.httpMethod,
|
|
2216
|
-
requestPath: spec.path,
|
|
2217
|
-
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
2218
|
-
sendPollRequest: (path, options) => {
|
|
2219
|
-
const restSpec = tslib.__rest(spec, ["requestBody"]);
|
|
2220
|
-
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
2221
|
-
}
|
|
2222
|
-
};
|
|
2223
|
-
}
|
|
2224
|
-
|
|
2225
|
-
/*
|
|
2226
|
-
* Copyright (c) Microsoft Corporation.
|
|
2227
|
-
* Licensed under the MIT License.
|
|
2228
|
-
*
|
|
2229
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
2230
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
2231
|
-
*/
|
|
2232
|
-
/// <reference lib="esnext.asynciterable" />
|
|
2233
|
-
/** Class containing IotDpsResource operations. */
|
|
2234
|
-
class IotDpsResourceImpl {
|
|
2235
|
-
/**
|
|
2236
|
-
* Initialize a new instance of the class IotDpsResource class.
|
|
2237
|
-
* @param client Reference to the service client
|
|
2238
|
-
*/
|
|
2239
|
-
constructor(client) {
|
|
2240
|
-
this.client = client;
|
|
2241
|
-
}
|
|
2242
|
-
/**
|
|
2243
|
-
* List all the provisioning services for a given subscription id.
|
|
2244
|
-
* @param options The options parameters.
|
|
2245
|
-
*/
|
|
2246
|
-
listBySubscription(options) {
|
|
2247
|
-
const iter = this.listBySubscriptionPagingAll(options);
|
|
2248
|
-
return {
|
|
2249
|
-
next() {
|
|
2250
|
-
return iter.next();
|
|
2251
|
-
},
|
|
2252
|
-
[Symbol.asyncIterator]() {
|
|
2253
|
-
return this;
|
|
2254
|
-
},
|
|
2255
|
-
byPage: (settings) => {
|
|
2256
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2257
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
2258
|
-
}
|
|
2259
|
-
return this.listBySubscriptionPagingPage(options, settings);
|
|
2260
|
-
}
|
|
2261
|
-
};
|
|
2262
|
-
}
|
|
2263
|
-
listBySubscriptionPagingPage(options, settings) {
|
|
2264
|
-
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
2265
|
-
let result;
|
|
2266
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2267
|
-
if (!continuationToken) {
|
|
2268
|
-
result = yield tslib.__await(this._listBySubscription(options));
|
|
2269
|
-
let page = result.value || [];
|
|
2270
|
-
continuationToken = result.nextLink;
|
|
2271
|
-
setContinuationToken(page, continuationToken);
|
|
2272
|
-
yield yield tslib.__await(page);
|
|
2273
|
-
}
|
|
2274
|
-
while (continuationToken) {
|
|
2275
|
-
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
2276
|
-
continuationToken = result.nextLink;
|
|
2277
|
-
let page = result.value || [];
|
|
2278
|
-
setContinuationToken(page, continuationToken);
|
|
2279
|
-
yield yield tslib.__await(page);
|
|
2280
|
-
}
|
|
2281
|
-
});
|
|
2282
|
-
}
|
|
2283
|
-
listBySubscriptionPagingAll(options) {
|
|
2284
|
-
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
2285
|
-
var _a, e_1, _b, _c;
|
|
2286
|
-
try {
|
|
2287
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
2288
|
-
_c = _f.value;
|
|
2289
|
-
_d = false;
|
|
2290
|
-
try {
|
|
2291
|
-
const page = _c;
|
|
2292
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2293
|
-
}
|
|
2294
|
-
finally {
|
|
2295
|
-
_d = true;
|
|
2296
|
-
}
|
|
2297
|
-
}
|
|
2298
|
-
}
|
|
2299
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2300
|
-
finally {
|
|
2301
|
-
try {
|
|
2302
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2303
|
-
}
|
|
2304
|
-
finally { if (e_1) throw e_1.error; }
|
|
2305
|
-
}
|
|
2306
|
-
});
|
|
2307
|
-
}
|
|
2308
|
-
/**
|
|
2309
|
-
* Get a list of all provisioning services in the given resource group.
|
|
2310
|
-
* @param resourceGroupName Resource group identifier.
|
|
2311
|
-
* @param options The options parameters.
|
|
2312
|
-
*/
|
|
2313
|
-
listByResourceGroup(resourceGroupName, options) {
|
|
2314
|
-
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
2315
|
-
return {
|
|
2316
|
-
next() {
|
|
2317
|
-
return iter.next();
|
|
2318
|
-
},
|
|
2319
|
-
[Symbol.asyncIterator]() {
|
|
2320
|
-
return this;
|
|
2321
|
-
},
|
|
2322
|
-
byPage: (settings) => {
|
|
2323
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2324
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
2325
|
-
}
|
|
2326
|
-
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
2327
|
-
}
|
|
2328
|
-
};
|
|
2329
|
-
}
|
|
2330
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
2331
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
2332
|
-
let result;
|
|
2333
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2334
|
-
if (!continuationToken) {
|
|
2335
|
-
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
2336
|
-
let page = result.value || [];
|
|
2337
|
-
continuationToken = result.nextLink;
|
|
2338
|
-
setContinuationToken(page, continuationToken);
|
|
2339
|
-
yield yield tslib.__await(page);
|
|
2340
|
-
}
|
|
2341
|
-
while (continuationToken) {
|
|
2342
|
-
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
2343
|
-
continuationToken = result.nextLink;
|
|
2344
|
-
let page = result.value || [];
|
|
2345
|
-
setContinuationToken(page, continuationToken);
|
|
2346
|
-
yield yield tslib.__await(page);
|
|
2347
|
-
}
|
|
2348
|
-
});
|
|
2349
|
-
}
|
|
2350
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
2351
|
-
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
2352
|
-
var _a, e_2, _b, _c;
|
|
2353
|
-
try {
|
|
2354
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
2355
|
-
_c = _f.value;
|
|
2356
|
-
_d = false;
|
|
2357
|
-
try {
|
|
2358
|
-
const page = _c;
|
|
2359
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2360
|
-
}
|
|
2361
|
-
finally {
|
|
2362
|
-
_d = true;
|
|
2363
|
-
}
|
|
2364
|
-
}
|
|
2365
|
-
}
|
|
2366
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
2367
|
-
finally {
|
|
2368
|
-
try {
|
|
2369
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2370
|
-
}
|
|
2371
|
-
finally { if (e_2) throw e_2.error; }
|
|
2372
|
-
}
|
|
2373
|
-
});
|
|
2374
|
-
}
|
|
2375
|
-
/**
|
|
2376
|
-
* Gets the list of valid SKUs and tiers for a provisioning service.
|
|
2377
|
-
* @param provisioningServiceName Name of provisioning service.
|
|
2378
|
-
* @param resourceGroupName Name of resource group.
|
|
2379
|
-
* @param options The options parameters.
|
|
2380
|
-
*/
|
|
2381
|
-
listValidSkus(provisioningServiceName, resourceGroupName, options) {
|
|
2382
|
-
const iter = this.listValidSkusPagingAll(provisioningServiceName, resourceGroupName, options);
|
|
2383
|
-
return {
|
|
2384
|
-
next() {
|
|
2385
|
-
return iter.next();
|
|
2386
|
-
},
|
|
2387
|
-
[Symbol.asyncIterator]() {
|
|
2388
|
-
return this;
|
|
2389
|
-
},
|
|
2390
|
-
byPage: (settings) => {
|
|
2391
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2392
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
2393
|
-
}
|
|
2394
|
-
return this.listValidSkusPagingPage(provisioningServiceName, resourceGroupName, options, settings);
|
|
2395
|
-
}
|
|
2396
|
-
};
|
|
2397
|
-
}
|
|
2398
|
-
listValidSkusPagingPage(provisioningServiceName, resourceGroupName, options, settings) {
|
|
2399
|
-
return tslib.__asyncGenerator(this, arguments, function* listValidSkusPagingPage_1() {
|
|
2400
|
-
let result;
|
|
2401
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2402
|
-
if (!continuationToken) {
|
|
2403
|
-
result = yield tslib.__await(this._listValidSkus(provisioningServiceName, resourceGroupName, options));
|
|
2404
|
-
let page = result.value || [];
|
|
2405
|
-
continuationToken = result.nextLink;
|
|
2406
|
-
setContinuationToken(page, continuationToken);
|
|
2407
|
-
yield yield tslib.__await(page);
|
|
2408
|
-
}
|
|
2409
|
-
while (continuationToken) {
|
|
2410
|
-
result = yield tslib.__await(this._listValidSkusNext(provisioningServiceName, resourceGroupName, continuationToken, options));
|
|
2411
|
-
continuationToken = result.nextLink;
|
|
2412
|
-
let page = result.value || [];
|
|
2413
|
-
setContinuationToken(page, continuationToken);
|
|
2414
|
-
yield yield tslib.__await(page);
|
|
2415
|
-
}
|
|
2416
|
-
});
|
|
2417
|
-
}
|
|
2418
|
-
listValidSkusPagingAll(provisioningServiceName, resourceGroupName, options) {
|
|
2419
|
-
return tslib.__asyncGenerator(this, arguments, function* listValidSkusPagingAll_1() {
|
|
2420
|
-
var _a, e_3, _b, _c;
|
|
2421
|
-
try {
|
|
2422
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listValidSkusPagingPage(provisioningServiceName, resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
2423
|
-
_c = _f.value;
|
|
2424
|
-
_d = false;
|
|
2425
|
-
try {
|
|
2426
|
-
const page = _c;
|
|
2427
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2428
|
-
}
|
|
2429
|
-
finally {
|
|
2430
|
-
_d = true;
|
|
2431
|
-
}
|
|
2432
|
-
}
|
|
2433
|
-
}
|
|
2434
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
2435
|
-
finally {
|
|
2436
|
-
try {
|
|
2437
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2438
|
-
}
|
|
2439
|
-
finally { if (e_3) throw e_3.error; }
|
|
2440
|
-
}
|
|
2441
|
-
});
|
|
2442
|
-
}
|
|
2443
|
-
/**
|
|
2444
|
-
* List the primary and secondary keys for a provisioning service.
|
|
2445
|
-
* @param provisioningServiceName The provisioning service name to get the shared access keys for.
|
|
2446
|
-
* @param resourceGroupName resource group name
|
|
2447
|
-
* @param options The options parameters.
|
|
2448
|
-
*/
|
|
2449
|
-
listKeys(provisioningServiceName, resourceGroupName, options) {
|
|
2450
|
-
const iter = this.listKeysPagingAll(provisioningServiceName, resourceGroupName, options);
|
|
2451
|
-
return {
|
|
2452
|
-
next() {
|
|
2453
|
-
return iter.next();
|
|
2454
|
-
},
|
|
2455
|
-
[Symbol.asyncIterator]() {
|
|
2456
|
-
return this;
|
|
2457
|
-
},
|
|
2458
|
-
byPage: (settings) => {
|
|
2459
|
-
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2460
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
2461
|
-
}
|
|
2462
|
-
return this.listKeysPagingPage(provisioningServiceName, resourceGroupName, options, settings);
|
|
2463
|
-
}
|
|
2464
|
-
};
|
|
2465
|
-
}
|
|
2466
|
-
listKeysPagingPage(provisioningServiceName, resourceGroupName, options, settings) {
|
|
2467
|
-
return tslib.__asyncGenerator(this, arguments, function* listKeysPagingPage_1() {
|
|
2468
|
-
let result;
|
|
2469
|
-
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2470
|
-
if (!continuationToken) {
|
|
2471
|
-
result = yield tslib.__await(this._listKeys(provisioningServiceName, resourceGroupName, options));
|
|
2472
|
-
let page = result.value || [];
|
|
2473
|
-
continuationToken = result.nextLink;
|
|
2474
|
-
setContinuationToken(page, continuationToken);
|
|
2475
|
-
yield yield tslib.__await(page);
|
|
2476
|
-
}
|
|
2477
|
-
while (continuationToken) {
|
|
2478
|
-
result = yield tslib.__await(this._listKeysNext(provisioningServiceName, resourceGroupName, continuationToken, options));
|
|
2479
|
-
continuationToken = result.nextLink;
|
|
2480
|
-
let page = result.value || [];
|
|
2481
|
-
setContinuationToken(page, continuationToken);
|
|
2482
|
-
yield yield tslib.__await(page);
|
|
2483
|
-
}
|
|
2484
|
-
});
|
|
2485
|
-
}
|
|
2486
|
-
listKeysPagingAll(provisioningServiceName, resourceGroupName, options) {
|
|
2487
|
-
return tslib.__asyncGenerator(this, arguments, function* listKeysPagingAll_1() {
|
|
2488
|
-
var _a, e_4, _b, _c;
|
|
2489
|
-
try {
|
|
2490
|
-
for (var _d = true, _e = tslib.__asyncValues(this.listKeysPagingPage(provisioningServiceName, resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a;) {
|
|
2491
|
-
_c = _f.value;
|
|
2492
|
-
_d = false;
|
|
2493
|
-
try {
|
|
2494
|
-
const page = _c;
|
|
2495
|
-
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2496
|
-
}
|
|
2497
|
-
finally {
|
|
2498
|
-
_d = true;
|
|
2499
|
-
}
|
|
2500
|
-
}
|
|
2501
|
-
}
|
|
2502
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
2503
|
-
finally {
|
|
2504
|
-
try {
|
|
2505
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2506
|
-
}
|
|
2507
|
-
finally { if (e_4) throw e_4.error; }
|
|
2508
|
-
}
|
|
2509
|
-
});
|
|
2510
|
-
}
|
|
2511
|
-
/**
|
|
2512
|
-
* Get the metadata of the provisioning service without SAS keys.
|
|
2513
|
-
* @param resourceGroupName Resource group name.
|
|
2514
|
-
* @param provisioningServiceName Name of the provisioning service to retrieve.
|
|
2515
|
-
* @param options The options parameters.
|
|
2516
|
-
*/
|
|
2517
|
-
get(resourceGroupName, provisioningServiceName, options) {
|
|
2518
|
-
return this.client.sendOperationRequest({ resourceGroupName, provisioningServiceName, options }, getOperationSpec);
|
|
2519
|
-
}
|
|
2520
|
-
/**
|
|
2521
|
-
* Create or update the metadata of the provisioning service. The usual pattern to modify a property is
|
|
2522
|
-
* to retrieve the provisioning service metadata and security metadata, and then combine them with the
|
|
2523
|
-
* modified values in a new body to update the provisioning service.
|
|
2524
|
-
* @param resourceGroupName Resource group identifier.
|
|
2525
|
-
* @param provisioningServiceName Name of provisioning service to create or update.
|
|
2526
|
-
* @param iotDpsDescription Description of the provisioning service to create or update.
|
|
2527
|
-
* @param options The options parameters.
|
|
2528
|
-
*/
|
|
2529
|
-
beginCreateOrUpdate(resourceGroupName, provisioningServiceName, iotDpsDescription, options) {
|
|
2530
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2531
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2532
|
-
return this.client.sendOperationRequest(args, spec);
|
|
2533
|
-
});
|
|
2534
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2535
|
-
var _a;
|
|
2536
|
-
let currentRawResponse = undefined;
|
|
2537
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2538
|
-
const callback = (rawResponse, flatResponse) => {
|
|
2539
|
-
currentRawResponse = rawResponse;
|
|
2540
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2541
|
-
};
|
|
2542
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2543
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2544
|
-
return {
|
|
2545
|
-
flatResponse,
|
|
2546
|
-
rawResponse: {
|
|
2547
|
-
statusCode: currentRawResponse.status,
|
|
2548
|
-
body: currentRawResponse.parsedBody,
|
|
2549
|
-
headers: currentRawResponse.headers.toJSON()
|
|
2550
|
-
}
|
|
2551
|
-
};
|
|
2552
|
-
});
|
|
2553
|
-
const lro = createLroSpec({
|
|
2554
|
-
sendOperationFn,
|
|
2555
|
-
args: {
|
|
2556
|
-
resourceGroupName,
|
|
2557
|
-
provisioningServiceName,
|
|
2558
|
-
iotDpsDescription,
|
|
2559
|
-
options
|
|
2560
|
-
},
|
|
2561
|
-
spec: createOrUpdateOperationSpec
|
|
2562
|
-
});
|
|
2563
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2564
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2565
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2566
|
-
});
|
|
2567
|
-
yield poller.poll();
|
|
2568
|
-
return poller;
|
|
2569
|
-
});
|
|
2570
|
-
}
|
|
2571
|
-
/**
|
|
2572
|
-
* Create or update the metadata of the provisioning service. The usual pattern to modify a property is
|
|
2573
|
-
* to retrieve the provisioning service metadata and security metadata, and then combine them with the
|
|
2574
|
-
* modified values in a new body to update the provisioning service.
|
|
2575
|
-
* @param resourceGroupName Resource group identifier.
|
|
2576
|
-
* @param provisioningServiceName Name of provisioning service to create or update.
|
|
2577
|
-
* @param iotDpsDescription Description of the provisioning service to create or update.
|
|
2578
|
-
* @param options The options parameters.
|
|
2579
|
-
*/
|
|
2580
|
-
beginCreateOrUpdateAndWait(resourceGroupName, provisioningServiceName, iotDpsDescription, options) {
|
|
2581
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2582
|
-
const poller = yield this.beginCreateOrUpdate(resourceGroupName, provisioningServiceName, iotDpsDescription, options);
|
|
2583
|
-
return poller.pollUntilDone();
|
|
2584
|
-
});
|
|
2585
|
-
}
|
|
2586
|
-
/**
|
|
2587
|
-
* Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method
|
|
2588
|
-
* @param resourceGroupName Resource group identifier.
|
|
2589
|
-
* @param provisioningServiceName Name of provisioning service to create or update.
|
|
2590
|
-
* @param provisioningServiceTags Updated tag information to set into the provisioning service
|
|
2591
|
-
* instance.
|
|
2592
|
-
* @param options The options parameters.
|
|
2593
|
-
*/
|
|
2594
|
-
beginUpdate(resourceGroupName, provisioningServiceName, provisioningServiceTags, options) {
|
|
2595
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2596
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2597
|
-
return this.client.sendOperationRequest(args, spec);
|
|
2598
|
-
});
|
|
2599
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2600
|
-
var _a;
|
|
2601
|
-
let currentRawResponse = undefined;
|
|
2602
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2603
|
-
const callback = (rawResponse, flatResponse) => {
|
|
2604
|
-
currentRawResponse = rawResponse;
|
|
2605
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2606
|
-
};
|
|
2607
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2608
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2609
|
-
return {
|
|
2610
|
-
flatResponse,
|
|
2611
|
-
rawResponse: {
|
|
2612
|
-
statusCode: currentRawResponse.status,
|
|
2613
|
-
body: currentRawResponse.parsedBody,
|
|
2614
|
-
headers: currentRawResponse.headers.toJSON()
|
|
2615
|
-
}
|
|
2616
|
-
};
|
|
2617
|
-
});
|
|
2618
|
-
const lro = createLroSpec({
|
|
2619
|
-
sendOperationFn,
|
|
2620
|
-
args: {
|
|
2621
|
-
resourceGroupName,
|
|
2622
|
-
provisioningServiceName,
|
|
2623
|
-
provisioningServiceTags,
|
|
2624
|
-
options
|
|
2625
|
-
},
|
|
2626
|
-
spec: updateOperationSpec
|
|
2627
|
-
});
|
|
2628
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2629
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2630
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2631
|
-
});
|
|
2632
|
-
yield poller.poll();
|
|
2633
|
-
return poller;
|
|
2634
|
-
});
|
|
2635
|
-
}
|
|
2636
|
-
/**
|
|
2637
|
-
* Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method
|
|
2638
|
-
* @param resourceGroupName Resource group identifier.
|
|
2639
|
-
* @param provisioningServiceName Name of provisioning service to create or update.
|
|
2640
|
-
* @param provisioningServiceTags Updated tag information to set into the provisioning service
|
|
2641
|
-
* instance.
|
|
2642
|
-
* @param options The options parameters.
|
|
2643
|
-
*/
|
|
2644
|
-
beginUpdateAndWait(resourceGroupName, provisioningServiceName, provisioningServiceTags, options) {
|
|
2645
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2646
|
-
const poller = yield this.beginUpdate(resourceGroupName, provisioningServiceName, provisioningServiceTags, options);
|
|
2647
|
-
return poller.pollUntilDone();
|
|
2648
|
-
});
|
|
2649
|
-
}
|
|
2650
|
-
/**
|
|
2651
|
-
* Deletes the Provisioning Service.
|
|
2652
|
-
* @param resourceGroupName Resource group identifier.
|
|
2653
|
-
* @param provisioningServiceName Name of provisioning service to delete.
|
|
2654
|
-
* @param options The options parameters.
|
|
2655
|
-
*/
|
|
2656
|
-
beginDelete(resourceGroupName, provisioningServiceName, options) {
|
|
2657
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2658
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2659
|
-
return this.client.sendOperationRequest(args, spec);
|
|
2660
|
-
});
|
|
2661
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2662
|
-
var _a;
|
|
2663
|
-
let currentRawResponse = undefined;
|
|
2664
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2665
|
-
const callback = (rawResponse, flatResponse) => {
|
|
2666
|
-
currentRawResponse = rawResponse;
|
|
2667
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2668
|
-
};
|
|
2669
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2670
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2671
|
-
return {
|
|
2672
|
-
flatResponse,
|
|
2673
|
-
rawResponse: {
|
|
2674
|
-
statusCode: currentRawResponse.status,
|
|
2675
|
-
body: currentRawResponse.parsedBody,
|
|
2676
|
-
headers: currentRawResponse.headers.toJSON()
|
|
2677
|
-
}
|
|
2678
|
-
};
|
|
2679
|
-
});
|
|
2680
|
-
const lro = createLroSpec({
|
|
2681
|
-
sendOperationFn,
|
|
2682
|
-
args: { resourceGroupName, provisioningServiceName, options },
|
|
2683
|
-
spec: deleteOperationSpec
|
|
2684
|
-
});
|
|
2685
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2686
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2687
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2688
|
-
});
|
|
2689
|
-
yield poller.poll();
|
|
2690
|
-
return poller;
|
|
2691
|
-
});
|
|
2692
|
-
}
|
|
2693
|
-
/**
|
|
2694
|
-
* Deletes the Provisioning Service.
|
|
2695
|
-
* @param resourceGroupName Resource group identifier.
|
|
2696
|
-
* @param provisioningServiceName Name of provisioning service to delete.
|
|
2697
|
-
* @param options The options parameters.
|
|
2698
|
-
*/
|
|
2699
|
-
beginDeleteAndWait(resourceGroupName, provisioningServiceName, options) {
|
|
2700
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2701
|
-
const poller = yield this.beginDelete(resourceGroupName, provisioningServiceName, options);
|
|
2702
|
-
return poller.pollUntilDone();
|
|
2703
|
-
});
|
|
2704
|
-
}
|
|
2705
|
-
/**
|
|
2706
|
-
* List all the provisioning services for a given subscription id.
|
|
2707
|
-
* @param options The options parameters.
|
|
2708
|
-
*/
|
|
2709
|
-
_listBySubscription(options) {
|
|
2710
|
-
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
2711
|
-
}
|
|
2712
|
-
/**
|
|
2713
|
-
* Get a list of all provisioning services in the given resource group.
|
|
2714
|
-
* @param resourceGroupName Resource group identifier.
|
|
2715
|
-
* @param options The options parameters.
|
|
2716
|
-
*/
|
|
2717
|
-
_listByResourceGroup(resourceGroupName, options) {
|
|
2718
|
-
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
2719
|
-
}
|
|
2720
|
-
/**
|
|
2721
|
-
* Gets the status of a long running operation, such as create, update or delete a provisioning
|
|
2722
|
-
* service.
|
|
2723
|
-
* @param operationId Operation id corresponding to long running operation. Use this to poll for the
|
|
2724
|
-
* status.
|
|
2725
|
-
* @param resourceGroupName Resource group identifier.
|
|
2726
|
-
* @param provisioningServiceName Name of provisioning service that the operation is running on.
|
|
2727
|
-
* @param asyncinfo Async header used to poll on the status of the operation, obtained while creating
|
|
2728
|
-
* the long running operation.
|
|
2729
|
-
* @param options The options parameters.
|
|
2730
|
-
*/
|
|
2731
|
-
getOperationResult(operationId, resourceGroupName, provisioningServiceName, asyncinfo, options) {
|
|
2732
|
-
return this.client.sendOperationRequest({
|
|
2733
|
-
operationId,
|
|
2734
|
-
resourceGroupName,
|
|
2735
|
-
provisioningServiceName,
|
|
2736
|
-
asyncinfo,
|
|
2737
|
-
options
|
|
2738
|
-
}, getOperationResultOperationSpec);
|
|
2739
|
-
}
|
|
2740
|
-
/**
|
|
2741
|
-
* Gets the list of valid SKUs and tiers for a provisioning service.
|
|
2742
|
-
* @param provisioningServiceName Name of provisioning service.
|
|
2743
|
-
* @param resourceGroupName Name of resource group.
|
|
2744
|
-
* @param options The options parameters.
|
|
2745
|
-
*/
|
|
2746
|
-
_listValidSkus(provisioningServiceName, resourceGroupName, options) {
|
|
2747
|
-
return this.client.sendOperationRequest({ provisioningServiceName, resourceGroupName, options }, listValidSkusOperationSpec);
|
|
2748
|
-
}
|
|
2749
|
-
/**
|
|
2750
|
-
* Check if a provisioning service name is available. This will validate if the name is syntactically
|
|
2751
|
-
* valid and if the name is usable
|
|
2752
|
-
* @param argumentsParam Set the name parameter in the OperationInputs structure to the name of the
|
|
2753
|
-
* provisioning service to check.
|
|
2754
|
-
* @param options The options parameters.
|
|
2755
|
-
*/
|
|
2756
|
-
checkProvisioningServiceNameAvailability(argumentsParam, options) {
|
|
2757
|
-
return this.client.sendOperationRequest({ argumentsParam, options }, checkProvisioningServiceNameAvailabilityOperationSpec);
|
|
2758
|
-
}
|
|
2759
|
-
/**
|
|
2760
|
-
* List the primary and secondary keys for a provisioning service.
|
|
2761
|
-
* @param provisioningServiceName The provisioning service name to get the shared access keys for.
|
|
2762
|
-
* @param resourceGroupName resource group name
|
|
2763
|
-
* @param options The options parameters.
|
|
2764
|
-
*/
|
|
2765
|
-
_listKeys(provisioningServiceName, resourceGroupName, options) {
|
|
2766
|
-
return this.client.sendOperationRequest({ provisioningServiceName, resourceGroupName, options }, listKeysOperationSpec);
|
|
2767
|
-
}
|
|
2768
|
-
/**
|
|
2769
|
-
* List primary and secondary keys for a specific key name
|
|
2770
|
-
* @param provisioningServiceName Name of the provisioning service.
|
|
2771
|
-
* @param keyName Logical key name to get key-values for.
|
|
2772
|
-
* @param resourceGroupName The name of the resource group that contains the provisioning service.
|
|
2773
|
-
* @param options The options parameters.
|
|
2774
|
-
*/
|
|
2775
|
-
listKeysForKeyName(provisioningServiceName, keyName, resourceGroupName, options) {
|
|
2776
|
-
return this.client.sendOperationRequest({ provisioningServiceName, keyName, resourceGroupName, options }, listKeysForKeyNameOperationSpec);
|
|
2777
|
-
}
|
|
2778
|
-
/**
|
|
2779
|
-
* List private link resources for the given provisioning service
|
|
2780
|
-
* @param resourceGroupName The name of the resource group that contains the provisioning service.
|
|
2781
|
-
* @param resourceName The name of the provisioning service.
|
|
2782
|
-
* @param options The options parameters.
|
|
2783
|
-
*/
|
|
2784
|
-
listPrivateLinkResources(resourceGroupName, resourceName, options) {
|
|
2785
|
-
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listPrivateLinkResourcesOperationSpec);
|
|
2786
|
-
}
|
|
2787
|
-
/**
|
|
2788
|
-
* Get the specified private link resource for the given provisioning service
|
|
2789
|
-
* @param resourceGroupName The name of the resource group that contains the provisioning service.
|
|
2790
|
-
* @param resourceName The name of the provisioning service.
|
|
2791
|
-
* @param groupId The name of the private link resource
|
|
2792
|
-
* @param options The options parameters.
|
|
2793
|
-
*/
|
|
2794
|
-
getPrivateLinkResources(resourceGroupName, resourceName, groupId, options) {
|
|
2795
|
-
return this.client.sendOperationRequest({ resourceGroupName, resourceName, groupId, options }, getPrivateLinkResourcesOperationSpec);
|
|
2796
|
-
}
|
|
2797
|
-
/**
|
|
2798
|
-
* List private endpoint connection properties
|
|
2799
|
-
* @param resourceGroupName The name of the resource group that contains the provisioning service.
|
|
2800
|
-
* @param resourceName The name of the provisioning service.
|
|
2801
|
-
* @param options The options parameters.
|
|
2802
|
-
*/
|
|
2803
|
-
listPrivateEndpointConnections(resourceGroupName, resourceName, options) {
|
|
2804
|
-
return this.client.sendOperationRequest({ resourceGroupName, resourceName, options }, listPrivateEndpointConnectionsOperationSpec);
|
|
2805
|
-
}
|
|
2806
|
-
/**
|
|
2807
|
-
* Get private endpoint connection properties
|
|
2808
|
-
* @param resourceGroupName The name of the resource group that contains the provisioning service.
|
|
2809
|
-
* @param resourceName The name of the provisioning service.
|
|
2810
|
-
* @param privateEndpointConnectionName The name of the private endpoint connection
|
|
2811
|
-
* @param options The options parameters.
|
|
2812
|
-
*/
|
|
2813
|
-
getPrivateEndpointConnection(resourceGroupName, resourceName, privateEndpointConnectionName, options) {
|
|
2814
|
-
return this.client.sendOperationRequest({
|
|
2815
|
-
resourceGroupName,
|
|
2816
|
-
resourceName,
|
|
2817
|
-
privateEndpointConnectionName,
|
|
2818
|
-
options
|
|
2819
|
-
}, getPrivateEndpointConnectionOperationSpec);
|
|
2820
|
-
}
|
|
2821
|
-
/**
|
|
2822
|
-
* Create or update the status of a private endpoint connection with the specified name
|
|
2823
|
-
* @param resourceGroupName The name of the resource group that contains the provisioning service.
|
|
2824
|
-
* @param resourceName The name of the provisioning service.
|
|
2825
|
-
* @param privateEndpointConnectionName The name of the private endpoint connection
|
|
2826
|
-
* @param privateEndpointConnection The private endpoint connection with updated properties
|
|
2827
|
-
* @param options The options parameters.
|
|
2828
|
-
*/
|
|
2829
|
-
beginCreateOrUpdatePrivateEndpointConnection(resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, options) {
|
|
2830
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2831
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2832
|
-
return this.client.sendOperationRequest(args, spec);
|
|
2833
|
-
});
|
|
2834
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2835
|
-
var _a;
|
|
2836
|
-
let currentRawResponse = undefined;
|
|
2837
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2838
|
-
const callback = (rawResponse, flatResponse) => {
|
|
2839
|
-
currentRawResponse = rawResponse;
|
|
2840
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2841
|
-
};
|
|
2842
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2843
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2844
|
-
return {
|
|
2845
|
-
flatResponse,
|
|
2846
|
-
rawResponse: {
|
|
2847
|
-
statusCode: currentRawResponse.status,
|
|
2848
|
-
body: currentRawResponse.parsedBody,
|
|
2849
|
-
headers: currentRawResponse.headers.toJSON()
|
|
2850
|
-
}
|
|
2851
|
-
};
|
|
2852
|
-
});
|
|
2853
|
-
const lro = createLroSpec({
|
|
2854
|
-
sendOperationFn,
|
|
2855
|
-
args: {
|
|
2856
|
-
resourceGroupName,
|
|
2857
|
-
resourceName,
|
|
2858
|
-
privateEndpointConnectionName,
|
|
2859
|
-
privateEndpointConnection,
|
|
2860
|
-
options
|
|
2861
|
-
},
|
|
2862
|
-
spec: createOrUpdatePrivateEndpointConnectionOperationSpec
|
|
2863
|
-
});
|
|
2864
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2865
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2866
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2867
|
-
});
|
|
2868
|
-
yield poller.poll();
|
|
2869
|
-
return poller;
|
|
2870
|
-
});
|
|
2871
|
-
}
|
|
2872
|
-
/**
|
|
2873
|
-
* Create or update the status of a private endpoint connection with the specified name
|
|
2874
|
-
* @param resourceGroupName The name of the resource group that contains the provisioning service.
|
|
2875
|
-
* @param resourceName The name of the provisioning service.
|
|
2876
|
-
* @param privateEndpointConnectionName The name of the private endpoint connection
|
|
2877
|
-
* @param privateEndpointConnection The private endpoint connection with updated properties
|
|
2878
|
-
* @param options The options parameters.
|
|
2879
|
-
*/
|
|
2880
|
-
beginCreateOrUpdatePrivateEndpointConnectionAndWait(resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, options) {
|
|
2881
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2882
|
-
const poller = yield this.beginCreateOrUpdatePrivateEndpointConnection(resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, options);
|
|
2883
|
-
return poller.pollUntilDone();
|
|
2884
|
-
});
|
|
2885
|
-
}
|
|
2886
|
-
/**
|
|
2887
|
-
* Delete private endpoint connection with the specified name
|
|
2888
|
-
* @param resourceGroupName The name of the resource group that contains the provisioning service.
|
|
2889
|
-
* @param resourceName The name of the provisioning service.
|
|
2890
|
-
* @param privateEndpointConnectionName The name of the private endpoint connection
|
|
2891
|
-
* @param options The options parameters.
|
|
2892
|
-
*/
|
|
2893
|
-
beginDeletePrivateEndpointConnection(resourceGroupName, resourceName, privateEndpointConnectionName, options) {
|
|
2894
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2895
|
-
const directSendOperation = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2896
|
-
return this.client.sendOperationRequest(args, spec);
|
|
2897
|
-
});
|
|
2898
|
-
const sendOperationFn = (args, spec) => tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2899
|
-
var _a;
|
|
2900
|
-
let currentRawResponse = undefined;
|
|
2901
|
-
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
2902
|
-
const callback = (rawResponse, flatResponse) => {
|
|
2903
|
-
currentRawResponse = rawResponse;
|
|
2904
|
-
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
2905
|
-
};
|
|
2906
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
2907
|
-
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
2908
|
-
return {
|
|
2909
|
-
flatResponse,
|
|
2910
|
-
rawResponse: {
|
|
2911
|
-
statusCode: currentRawResponse.status,
|
|
2912
|
-
body: currentRawResponse.parsedBody,
|
|
2913
|
-
headers: currentRawResponse.headers.toJSON()
|
|
2914
|
-
}
|
|
2915
|
-
};
|
|
2916
|
-
});
|
|
2917
|
-
const lro = createLroSpec({
|
|
2918
|
-
sendOperationFn,
|
|
2919
|
-
args: {
|
|
2920
|
-
resourceGroupName,
|
|
2921
|
-
resourceName,
|
|
2922
|
-
privateEndpointConnectionName,
|
|
2923
|
-
options
|
|
2924
|
-
},
|
|
2925
|
-
spec: deletePrivateEndpointConnectionOperationSpec
|
|
2926
|
-
});
|
|
2927
|
-
const poller = yield coreLro.createHttpPoller(lro, {
|
|
2928
|
-
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
2929
|
-
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
2930
|
-
});
|
|
2931
|
-
yield poller.poll();
|
|
2932
|
-
return poller;
|
|
2933
|
-
});
|
|
2934
|
-
}
|
|
2935
|
-
/**
|
|
2936
|
-
* Delete private endpoint connection with the specified name
|
|
2937
|
-
* @param resourceGroupName The name of the resource group that contains the provisioning service.
|
|
2938
|
-
* @param resourceName The name of the provisioning service.
|
|
2939
|
-
* @param privateEndpointConnectionName The name of the private endpoint connection
|
|
2940
|
-
* @param options The options parameters.
|
|
2941
|
-
*/
|
|
2942
|
-
beginDeletePrivateEndpointConnectionAndWait(resourceGroupName, resourceName, privateEndpointConnectionName, options) {
|
|
2943
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
2944
|
-
const poller = yield this.beginDeletePrivateEndpointConnection(resourceGroupName, resourceName, privateEndpointConnectionName, options);
|
|
2945
|
-
return poller.pollUntilDone();
|
|
2946
|
-
});
|
|
2947
|
-
}
|
|
2948
|
-
/**
|
|
2949
|
-
* ListBySubscriptionNext
|
|
2950
|
-
* @param nextLink The nextLink from the previous successful call to the ListBySubscription method.
|
|
2951
|
-
* @param options The options parameters.
|
|
2952
|
-
*/
|
|
2953
|
-
_listBySubscriptionNext(nextLink, options) {
|
|
2954
|
-
return this.client.sendOperationRequest({ nextLink, options }, listBySubscriptionNextOperationSpec);
|
|
2955
|
-
}
|
|
2956
|
-
/**
|
|
2957
|
-
* ListByResourceGroupNext
|
|
2958
|
-
* @param resourceGroupName Resource group identifier.
|
|
2959
|
-
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
2960
|
-
* @param options The options parameters.
|
|
2961
|
-
*/
|
|
2962
|
-
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
2963
|
-
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
2964
|
-
}
|
|
2965
|
-
/**
|
|
2966
|
-
* ListValidSkusNext
|
|
2967
|
-
* @param provisioningServiceName Name of provisioning service.
|
|
2968
|
-
* @param resourceGroupName Name of resource group.
|
|
2969
|
-
* @param nextLink The nextLink from the previous successful call to the ListValidSkus method.
|
|
2970
|
-
* @param options The options parameters.
|
|
2971
|
-
*/
|
|
2972
|
-
_listValidSkusNext(provisioningServiceName, resourceGroupName, nextLink, options) {
|
|
2973
|
-
return this.client.sendOperationRequest({ provisioningServiceName, resourceGroupName, nextLink, options }, listValidSkusNextOperationSpec);
|
|
2974
|
-
}
|
|
2975
|
-
/**
|
|
2976
|
-
* ListKeysNext
|
|
2977
|
-
* @param provisioningServiceName The provisioning service name to get the shared access keys for.
|
|
2978
|
-
* @param resourceGroupName resource group name
|
|
2979
|
-
* @param nextLink The nextLink from the previous successful call to the ListKeys method.
|
|
2980
|
-
* @param options The options parameters.
|
|
2981
|
-
*/
|
|
2982
|
-
_listKeysNext(provisioningServiceName, resourceGroupName, nextLink, options) {
|
|
2983
|
-
return this.client.sendOperationRequest({ provisioningServiceName, resourceGroupName, nextLink, options }, listKeysNextOperationSpec);
|
|
2984
|
-
}
|
|
2985
|
-
}
|
|
2986
|
-
// Operation Specifications
|
|
2987
|
-
const serializer = coreClient__namespace.createSerializer(Mappers, /* isXml */ false);
|
|
2988
|
-
const getOperationSpec = {
|
|
2989
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}",
|
|
2990
|
-
httpMethod: "GET",
|
|
2991
|
-
responses: {
|
|
2992
|
-
200: {
|
|
2993
|
-
bodyMapper: ProvisioningServiceDescription
|
|
2994
|
-
},
|
|
2995
|
-
default: {
|
|
2996
|
-
bodyMapper: ErrorDetails
|
|
2997
|
-
}
|
|
2998
|
-
},
|
|
2999
|
-
queryParameters: [apiVersion],
|
|
3000
|
-
urlParameters: [
|
|
3001
|
-
$host,
|
|
3002
|
-
subscriptionId,
|
|
3003
|
-
resourceGroupName,
|
|
3004
|
-
provisioningServiceName
|
|
3005
|
-
],
|
|
3006
|
-
headerParameters: [accept],
|
|
3007
|
-
serializer
|
|
3008
|
-
};
|
|
3009
|
-
const createOrUpdateOperationSpec = {
|
|
3010
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}",
|
|
3011
|
-
httpMethod: "PUT",
|
|
3012
|
-
responses: {
|
|
3013
|
-
200: {
|
|
3014
|
-
bodyMapper: ProvisioningServiceDescription
|
|
3015
|
-
},
|
|
3016
|
-
201: {
|
|
3017
|
-
bodyMapper: ProvisioningServiceDescription
|
|
3018
|
-
},
|
|
3019
|
-
202: {
|
|
3020
|
-
bodyMapper: ProvisioningServiceDescription
|
|
3021
|
-
},
|
|
3022
|
-
204: {
|
|
3023
|
-
bodyMapper: ProvisioningServiceDescription
|
|
3024
|
-
},
|
|
3025
|
-
default: {
|
|
3026
|
-
bodyMapper: ErrorDetails
|
|
3027
|
-
}
|
|
3028
|
-
},
|
|
3029
|
-
requestBody: iotDpsDescription,
|
|
3030
|
-
queryParameters: [apiVersion],
|
|
3031
|
-
urlParameters: [
|
|
3032
|
-
$host,
|
|
3033
|
-
subscriptionId,
|
|
3034
|
-
resourceGroupName,
|
|
3035
|
-
provisioningServiceName
|
|
3036
|
-
],
|
|
3037
|
-
headerParameters: [accept, contentType],
|
|
3038
|
-
mediaType: "json",
|
|
3039
|
-
serializer
|
|
3040
|
-
};
|
|
3041
|
-
const updateOperationSpec = {
|
|
3042
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}",
|
|
3043
|
-
httpMethod: "PATCH",
|
|
3044
|
-
responses: {
|
|
3045
|
-
200: {
|
|
3046
|
-
bodyMapper: ProvisioningServiceDescription
|
|
3047
|
-
},
|
|
3048
|
-
201: {
|
|
3049
|
-
bodyMapper: ProvisioningServiceDescription
|
|
3050
|
-
},
|
|
3051
|
-
202: {
|
|
3052
|
-
bodyMapper: ProvisioningServiceDescription
|
|
3053
|
-
},
|
|
3054
|
-
204: {
|
|
3055
|
-
bodyMapper: ProvisioningServiceDescription
|
|
3056
|
-
}
|
|
3057
|
-
},
|
|
3058
|
-
requestBody: provisioningServiceTags,
|
|
3059
|
-
queryParameters: [apiVersion],
|
|
3060
|
-
urlParameters: [
|
|
3061
|
-
$host,
|
|
3062
|
-
subscriptionId,
|
|
3063
|
-
resourceGroupName,
|
|
3064
|
-
provisioningServiceName
|
|
3065
|
-
],
|
|
3066
|
-
headerParameters: [accept, contentType],
|
|
3067
|
-
mediaType: "json",
|
|
3068
|
-
serializer
|
|
3069
|
-
};
|
|
3070
|
-
const deleteOperationSpec = {
|
|
3071
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}",
|
|
3072
|
-
httpMethod: "DELETE",
|
|
3073
|
-
responses: {
|
|
3074
|
-
200: {},
|
|
3075
|
-
201: {},
|
|
3076
|
-
202: {},
|
|
3077
|
-
204: {},
|
|
3078
|
-
default: {
|
|
3079
|
-
bodyMapper: ErrorDetails
|
|
3080
|
-
}
|
|
3081
|
-
},
|
|
3082
|
-
queryParameters: [apiVersion],
|
|
3083
|
-
urlParameters: [
|
|
3084
|
-
$host,
|
|
3085
|
-
subscriptionId,
|
|
3086
|
-
resourceGroupName,
|
|
3087
|
-
provisioningServiceName
|
|
3088
|
-
],
|
|
3089
|
-
headerParameters: [accept],
|
|
3090
|
-
serializer
|
|
3091
|
-
};
|
|
3092
|
-
const listBySubscriptionOperationSpec = {
|
|
3093
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Devices/provisioningServices",
|
|
3094
|
-
httpMethod: "GET",
|
|
3095
|
-
responses: {
|
|
3096
|
-
200: {
|
|
3097
|
-
bodyMapper: ProvisioningServiceDescriptionListResult
|
|
3098
|
-
},
|
|
3099
|
-
default: {
|
|
3100
|
-
bodyMapper: ErrorDetails
|
|
3101
|
-
}
|
|
3102
|
-
},
|
|
3103
|
-
queryParameters: [apiVersion],
|
|
3104
|
-
urlParameters: [$host, subscriptionId],
|
|
3105
|
-
headerParameters: [accept],
|
|
3106
|
-
serializer
|
|
3107
|
-
};
|
|
3108
|
-
const listByResourceGroupOperationSpec = {
|
|
3109
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices",
|
|
3110
|
-
httpMethod: "GET",
|
|
3111
|
-
responses: {
|
|
3112
|
-
200: {
|
|
3113
|
-
bodyMapper: ProvisioningServiceDescriptionListResult
|
|
3114
|
-
},
|
|
3115
|
-
default: {
|
|
3116
|
-
bodyMapper: ErrorDetails
|
|
3117
|
-
}
|
|
3118
|
-
},
|
|
3119
|
-
queryParameters: [apiVersion],
|
|
3120
|
-
urlParameters: [
|
|
3121
|
-
$host,
|
|
3122
|
-
subscriptionId,
|
|
3123
|
-
resourceGroupName
|
|
3124
|
-
],
|
|
3125
|
-
headerParameters: [accept],
|
|
3126
|
-
serializer
|
|
3127
|
-
};
|
|
3128
|
-
const getOperationResultOperationSpec = {
|
|
3129
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/operationresults/{operationId}",
|
|
3130
|
-
httpMethod: "GET",
|
|
3131
|
-
responses: {
|
|
3132
|
-
200: {
|
|
3133
|
-
bodyMapper: AsyncOperationResult
|
|
3134
|
-
},
|
|
3135
|
-
default: {
|
|
3136
|
-
bodyMapper: ErrorDetails
|
|
3137
|
-
}
|
|
3138
|
-
},
|
|
3139
|
-
queryParameters: [apiVersion, asyncinfo],
|
|
3140
|
-
urlParameters: [
|
|
3141
|
-
$host,
|
|
3142
|
-
subscriptionId,
|
|
3143
|
-
resourceGroupName,
|
|
3144
|
-
provisioningServiceName,
|
|
3145
|
-
operationId
|
|
3146
|
-
],
|
|
3147
|
-
headerParameters: [accept],
|
|
3148
|
-
serializer
|
|
3149
|
-
};
|
|
3150
|
-
const listValidSkusOperationSpec = {
|
|
3151
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/skus",
|
|
3152
|
-
httpMethod: "GET",
|
|
3153
|
-
responses: {
|
|
3154
|
-
200: {
|
|
3155
|
-
bodyMapper: IotDpsSkuDefinitionListResult
|
|
3156
|
-
},
|
|
3157
|
-
default: {
|
|
3158
|
-
bodyMapper: ErrorDetails
|
|
3159
|
-
}
|
|
3160
|
-
},
|
|
3161
|
-
queryParameters: [apiVersion],
|
|
3162
|
-
urlParameters: [
|
|
3163
|
-
$host,
|
|
3164
|
-
subscriptionId,
|
|
3165
|
-
resourceGroupName,
|
|
3166
|
-
provisioningServiceName
|
|
3167
|
-
],
|
|
3168
|
-
headerParameters: [accept],
|
|
3169
|
-
serializer
|
|
3170
|
-
};
|
|
3171
|
-
const checkProvisioningServiceNameAvailabilityOperationSpec = {
|
|
3172
|
-
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Devices/checkProvisioningServiceNameAvailability",
|
|
3173
|
-
httpMethod: "POST",
|
|
3174
|
-
responses: {
|
|
3175
|
-
200: {
|
|
3176
|
-
bodyMapper: NameAvailabilityInfo
|
|
3177
|
-
},
|
|
3178
|
-
default: {
|
|
3179
|
-
bodyMapper: ErrorDetails
|
|
3180
|
-
}
|
|
3181
|
-
},
|
|
3182
|
-
requestBody: argumentsParam,
|
|
3183
|
-
queryParameters: [apiVersion],
|
|
3184
|
-
urlParameters: [$host, subscriptionId],
|
|
3185
|
-
headerParameters: [accept, contentType],
|
|
3186
|
-
mediaType: "json",
|
|
3187
|
-
serializer
|
|
3188
|
-
};
|
|
3189
|
-
const listKeysOperationSpec = {
|
|
3190
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/listkeys",
|
|
3191
|
-
httpMethod: "POST",
|
|
3192
|
-
responses: {
|
|
3193
|
-
200: {
|
|
3194
|
-
bodyMapper: SharedAccessSignatureAuthorizationRuleListResult
|
|
3195
|
-
},
|
|
3196
|
-
default: {
|
|
3197
|
-
bodyMapper: ErrorDetails
|
|
3198
|
-
}
|
|
3199
|
-
},
|
|
3200
|
-
queryParameters: [apiVersion],
|
|
3201
|
-
urlParameters: [
|
|
3202
|
-
$host,
|
|
3203
|
-
subscriptionId,
|
|
3204
|
-
resourceGroupName,
|
|
3205
|
-
provisioningServiceName
|
|
3206
|
-
],
|
|
3207
|
-
headerParameters: [accept],
|
|
3208
|
-
serializer
|
|
3209
|
-
};
|
|
3210
|
-
const listKeysForKeyNameOperationSpec = {
|
|
3211
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/keys/{keyName}/listkeys",
|
|
3212
|
-
httpMethod: "POST",
|
|
3213
|
-
responses: {
|
|
3214
|
-
200: {
|
|
3215
|
-
bodyMapper: SharedAccessSignatureAuthorizationRuleAccessRightsDescription
|
|
3216
|
-
},
|
|
3217
|
-
default: {
|
|
3218
|
-
bodyMapper: ErrorDetails
|
|
3219
|
-
}
|
|
3220
|
-
},
|
|
3221
|
-
queryParameters: [apiVersion],
|
|
3222
|
-
urlParameters: [
|
|
3223
|
-
$host,
|
|
3224
|
-
subscriptionId,
|
|
3225
|
-
resourceGroupName,
|
|
3226
|
-
provisioningServiceName,
|
|
3227
|
-
keyName
|
|
3228
|
-
],
|
|
3229
|
-
headerParameters: [accept],
|
|
3230
|
-
serializer
|
|
3231
|
-
};
|
|
3232
|
-
const listPrivateLinkResourcesOperationSpec = {
|
|
3233
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateLinkResources",
|
|
3234
|
-
httpMethod: "GET",
|
|
3235
|
-
responses: {
|
|
3236
|
-
200: {
|
|
3237
|
-
bodyMapper: PrivateLinkResources
|
|
3238
|
-
},
|
|
3239
|
-
default: {
|
|
3240
|
-
bodyMapper: ErrorDetails
|
|
3241
|
-
}
|
|
3242
|
-
},
|
|
3243
|
-
queryParameters: [apiVersion],
|
|
3244
|
-
urlParameters: [
|
|
3245
|
-
$host,
|
|
3246
|
-
subscriptionId,
|
|
3247
|
-
resourceGroupName,
|
|
3248
|
-
resourceName
|
|
3249
|
-
],
|
|
3250
|
-
headerParameters: [accept],
|
|
3251
|
-
serializer
|
|
3252
|
-
};
|
|
3253
|
-
const getPrivateLinkResourcesOperationSpec = {
|
|
3254
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateLinkResources/{groupId}",
|
|
3255
|
-
httpMethod: "GET",
|
|
3256
|
-
responses: {
|
|
3257
|
-
200: {
|
|
3258
|
-
bodyMapper: GroupIdInformation
|
|
3259
|
-
},
|
|
3260
|
-
default: {
|
|
3261
|
-
bodyMapper: ErrorDetails
|
|
3262
|
-
}
|
|
3263
|
-
},
|
|
3264
|
-
queryParameters: [apiVersion],
|
|
3265
|
-
urlParameters: [
|
|
3266
|
-
$host,
|
|
3267
|
-
subscriptionId,
|
|
3268
|
-
resourceGroupName,
|
|
3269
|
-
resourceName,
|
|
3270
|
-
groupId
|
|
3271
|
-
],
|
|
3272
|
-
headerParameters: [accept],
|
|
3273
|
-
serializer
|
|
3274
|
-
};
|
|
3275
|
-
const listPrivateEndpointConnectionsOperationSpec = {
|
|
3276
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections",
|
|
3277
|
-
httpMethod: "GET",
|
|
3278
|
-
responses: {
|
|
3279
|
-
200: {
|
|
3280
|
-
bodyMapper: {
|
|
3281
|
-
type: {
|
|
3282
|
-
name: "Sequence",
|
|
3283
|
-
element: {
|
|
3284
|
-
type: { name: "Composite", className: "PrivateEndpointConnection" }
|
|
3285
|
-
}
|
|
3286
|
-
}
|
|
3287
|
-
}
|
|
3288
|
-
},
|
|
3289
|
-
default: {
|
|
3290
|
-
bodyMapper: ErrorDetails
|
|
3291
|
-
}
|
|
3292
|
-
},
|
|
3293
|
-
queryParameters: [apiVersion],
|
|
3294
|
-
urlParameters: [
|
|
3295
|
-
$host,
|
|
3296
|
-
subscriptionId,
|
|
3297
|
-
resourceGroupName,
|
|
3298
|
-
resourceName
|
|
3299
|
-
],
|
|
3300
|
-
headerParameters: [accept],
|
|
3301
|
-
serializer
|
|
3302
|
-
};
|
|
3303
|
-
const getPrivateEndpointConnectionOperationSpec = {
|
|
3304
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
3305
|
-
httpMethod: "GET",
|
|
3306
|
-
responses: {
|
|
3307
|
-
200: {
|
|
3308
|
-
bodyMapper: PrivateEndpointConnection
|
|
3309
|
-
},
|
|
3310
|
-
default: {
|
|
3311
|
-
bodyMapper: ErrorDetails
|
|
3312
|
-
}
|
|
3313
|
-
},
|
|
3314
|
-
queryParameters: [apiVersion],
|
|
3315
|
-
urlParameters: [
|
|
3316
|
-
$host,
|
|
3317
|
-
subscriptionId,
|
|
3318
|
-
resourceGroupName,
|
|
3319
|
-
resourceName,
|
|
3320
|
-
privateEndpointConnectionName
|
|
3321
|
-
],
|
|
3322
|
-
headerParameters: [accept],
|
|
3323
|
-
serializer
|
|
3324
|
-
};
|
|
3325
|
-
const createOrUpdatePrivateEndpointConnectionOperationSpec = {
|
|
3326
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
3327
|
-
httpMethod: "PUT",
|
|
3328
|
-
responses: {
|
|
3329
|
-
200: {
|
|
3330
|
-
bodyMapper: PrivateEndpointConnection
|
|
3331
|
-
},
|
|
3332
|
-
201: {
|
|
3333
|
-
bodyMapper: PrivateEndpointConnection
|
|
3334
|
-
},
|
|
3335
|
-
202: {
|
|
3336
|
-
bodyMapper: PrivateEndpointConnection
|
|
3337
|
-
},
|
|
3338
|
-
204: {
|
|
3339
|
-
bodyMapper: PrivateEndpointConnection
|
|
3340
|
-
},
|
|
3341
|
-
default: {
|
|
3342
|
-
bodyMapper: ErrorDetails
|
|
3343
|
-
}
|
|
3344
|
-
},
|
|
3345
|
-
requestBody: privateEndpointConnection,
|
|
3346
|
-
queryParameters: [apiVersion],
|
|
3347
|
-
urlParameters: [
|
|
3348
|
-
$host,
|
|
3349
|
-
subscriptionId,
|
|
3350
|
-
resourceGroupName,
|
|
3351
|
-
resourceName,
|
|
3352
|
-
privateEndpointConnectionName
|
|
3353
|
-
],
|
|
3354
|
-
headerParameters: [accept, contentType],
|
|
3355
|
-
mediaType: "json",
|
|
3356
|
-
serializer
|
|
3357
|
-
};
|
|
3358
|
-
const deletePrivateEndpointConnectionOperationSpec = {
|
|
3359
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}",
|
|
3360
|
-
httpMethod: "DELETE",
|
|
3361
|
-
responses: {
|
|
3362
|
-
200: {
|
|
3363
|
-
bodyMapper: PrivateEndpointConnection
|
|
3364
|
-
},
|
|
3365
|
-
201: {
|
|
3366
|
-
bodyMapper: PrivateEndpointConnection
|
|
3367
|
-
},
|
|
3368
|
-
202: {
|
|
3369
|
-
bodyMapper: PrivateEndpointConnection
|
|
3370
|
-
},
|
|
3371
|
-
204: {
|
|
3372
|
-
bodyMapper: PrivateEndpointConnection
|
|
3373
|
-
},
|
|
3374
|
-
default: {
|
|
3375
|
-
bodyMapper: ErrorDetails
|
|
3376
|
-
}
|
|
3377
|
-
},
|
|
3378
|
-
queryParameters: [apiVersion],
|
|
3379
|
-
urlParameters: [
|
|
3380
|
-
$host,
|
|
3381
|
-
subscriptionId,
|
|
3382
|
-
resourceGroupName,
|
|
3383
|
-
resourceName,
|
|
3384
|
-
privateEndpointConnectionName
|
|
3385
|
-
],
|
|
3386
|
-
headerParameters: [accept],
|
|
3387
|
-
serializer
|
|
3388
|
-
};
|
|
3389
|
-
const listBySubscriptionNextOperationSpec = {
|
|
3390
|
-
path: "{nextLink}",
|
|
3391
|
-
httpMethod: "GET",
|
|
3392
|
-
responses: {
|
|
3393
|
-
200: {
|
|
3394
|
-
bodyMapper: ProvisioningServiceDescriptionListResult
|
|
3395
|
-
},
|
|
3396
|
-
default: {
|
|
3397
|
-
bodyMapper: ErrorDetails
|
|
3398
|
-
}
|
|
3399
|
-
},
|
|
3400
|
-
urlParameters: [
|
|
3401
|
-
$host,
|
|
3402
|
-
nextLink,
|
|
3403
|
-
subscriptionId
|
|
3404
|
-
],
|
|
3405
|
-
headerParameters: [accept],
|
|
3406
|
-
serializer
|
|
3407
|
-
};
|
|
3408
|
-
const listByResourceGroupNextOperationSpec = {
|
|
3409
|
-
path: "{nextLink}",
|
|
3410
|
-
httpMethod: "GET",
|
|
3411
|
-
responses: {
|
|
3412
|
-
200: {
|
|
3413
|
-
bodyMapper: ProvisioningServiceDescriptionListResult
|
|
3414
|
-
},
|
|
3415
|
-
default: {
|
|
3416
|
-
bodyMapper: ErrorDetails
|
|
3417
|
-
}
|
|
3418
|
-
},
|
|
3419
|
-
urlParameters: [
|
|
3420
|
-
$host,
|
|
3421
|
-
nextLink,
|
|
3422
|
-
subscriptionId,
|
|
3423
|
-
resourceGroupName
|
|
3424
|
-
],
|
|
3425
|
-
headerParameters: [accept],
|
|
3426
|
-
serializer
|
|
3427
|
-
};
|
|
3428
|
-
const listValidSkusNextOperationSpec = {
|
|
3429
|
-
path: "{nextLink}",
|
|
3430
|
-
httpMethod: "GET",
|
|
3431
|
-
responses: {
|
|
3432
|
-
200: {
|
|
3433
|
-
bodyMapper: IotDpsSkuDefinitionListResult
|
|
3434
|
-
},
|
|
3435
|
-
default: {
|
|
3436
|
-
bodyMapper: ErrorDetails
|
|
3437
|
-
}
|
|
3438
|
-
},
|
|
3439
|
-
urlParameters: [
|
|
3440
|
-
$host,
|
|
3441
|
-
nextLink,
|
|
3442
|
-
subscriptionId,
|
|
3443
|
-
resourceGroupName,
|
|
3444
|
-
provisioningServiceName
|
|
3445
|
-
],
|
|
3446
|
-
headerParameters: [accept],
|
|
3447
|
-
serializer
|
|
3448
|
-
};
|
|
3449
|
-
const listKeysNextOperationSpec = {
|
|
3450
|
-
path: "{nextLink}",
|
|
3451
|
-
httpMethod: "GET",
|
|
3452
|
-
responses: {
|
|
3453
|
-
200: {
|
|
3454
|
-
bodyMapper: SharedAccessSignatureAuthorizationRuleListResult
|
|
3455
|
-
},
|
|
3456
|
-
default: {
|
|
3457
|
-
bodyMapper: ErrorDetails
|
|
3458
|
-
}
|
|
3459
|
-
},
|
|
3460
|
-
urlParameters: [
|
|
3461
|
-
$host,
|
|
3462
|
-
nextLink,
|
|
3463
|
-
subscriptionId,
|
|
3464
|
-
resourceGroupName,
|
|
3465
|
-
provisioningServiceName
|
|
3466
|
-
],
|
|
3467
|
-
headerParameters: [accept],
|
|
3468
|
-
serializer
|
|
3469
|
-
};
|
|
3470
|
-
|
|
3471
|
-
/*
|
|
3472
|
-
* Copyright (c) Microsoft Corporation.
|
|
3473
|
-
* Licensed under the MIT License.
|
|
3474
|
-
*
|
|
3475
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
3476
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
3477
|
-
*/
|
|
3478
|
-
class IotDpsClient extends coreClient__namespace.ServiceClient {
|
|
3479
|
-
/**
|
|
3480
|
-
* Initializes a new instance of the IotDpsClient class.
|
|
3481
|
-
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
3482
|
-
* @param subscriptionId The subscription identifier.
|
|
3483
|
-
* @param options The parameter options
|
|
3484
|
-
*/
|
|
3485
|
-
constructor(credentials, subscriptionId, options) {
|
|
3486
|
-
var _a, _b, _c;
|
|
3487
|
-
if (credentials === undefined) {
|
|
3488
|
-
throw new Error("'credentials' cannot be null");
|
|
3489
|
-
}
|
|
3490
|
-
if (subscriptionId === undefined) {
|
|
3491
|
-
throw new Error("'subscriptionId' cannot be null");
|
|
3492
|
-
}
|
|
3493
|
-
// Initializing default values for options
|
|
3494
|
-
if (!options) {
|
|
3495
|
-
options = {};
|
|
3496
|
-
}
|
|
3497
|
-
const defaults = {
|
|
3498
|
-
requestContentType: "application/json; charset=utf-8",
|
|
3499
|
-
credential: credentials
|
|
3500
|
-
};
|
|
3501
|
-
const packageDetails = `azsdk-js-arm-deviceprovisioningservices/6.0.0-beta.1`;
|
|
3502
|
-
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
3503
|
-
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
3504
|
-
: `${packageDetails}`;
|
|
3505
|
-
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
3506
|
-
userAgentPrefix
|
|
3507
|
-
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
3508
|
-
super(optionsWithDefaults);
|
|
3509
|
-
let bearerTokenAuthenticationPolicyFound = false;
|
|
3510
|
-
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
3511
|
-
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
3512
|
-
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
3513
|
-
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
3514
|
-
}
|
|
3515
|
-
if (!options ||
|
|
3516
|
-
!options.pipeline ||
|
|
3517
|
-
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
3518
|
-
!bearerTokenAuthenticationPolicyFound) {
|
|
3519
|
-
this.pipeline.removePolicy({
|
|
3520
|
-
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
3521
|
-
});
|
|
3522
|
-
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
3523
|
-
credential: credentials,
|
|
3524
|
-
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
3525
|
-
challengeCallbacks: {
|
|
3526
|
-
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
3527
|
-
}
|
|
3528
|
-
}));
|
|
3529
|
-
}
|
|
3530
|
-
// Parameter assignments
|
|
3531
|
-
this.subscriptionId = subscriptionId;
|
|
3532
|
-
// Assigning values to Constant parameters
|
|
3533
|
-
this.$host = options.$host || "https://management.azure.com";
|
|
3534
|
-
this.apiVersion = options.apiVersion || "2023-03-01-preview";
|
|
3535
|
-
this.operations = new OperationsImpl(this);
|
|
3536
|
-
this.dpsCertificate = new DpsCertificateImpl(this);
|
|
3537
|
-
this.iotDpsResource = new IotDpsResourceImpl(this);
|
|
3538
|
-
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
3539
|
-
}
|
|
3540
|
-
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
3541
|
-
addCustomApiVersionPolicy(apiVersion) {
|
|
3542
|
-
if (!apiVersion) {
|
|
3543
|
-
return;
|
|
3544
|
-
}
|
|
3545
|
-
const apiVersionPolicy = {
|
|
3546
|
-
name: "CustomApiVersionPolicy",
|
|
3547
|
-
sendRequest(request, next) {
|
|
3548
|
-
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
3549
|
-
const param = request.url.split("?");
|
|
3550
|
-
if (param.length > 1) {
|
|
3551
|
-
const newParams = param[1].split("&").map((item) => {
|
|
3552
|
-
if (item.indexOf("api-version") > -1) {
|
|
3553
|
-
return "api-version=" + apiVersion;
|
|
3554
|
-
}
|
|
3555
|
-
else {
|
|
3556
|
-
return item;
|
|
3557
|
-
}
|
|
3558
|
-
});
|
|
3559
|
-
request.url = param[0] + "?" + newParams.join("&");
|
|
3560
|
-
}
|
|
3561
|
-
return next(request);
|
|
3562
|
-
});
|
|
3563
|
-
}
|
|
3564
|
-
};
|
|
3565
|
-
this.pipeline.addPolicy(apiVersionPolicy);
|
|
3566
|
-
}
|
|
3567
|
-
}
|
|
3568
|
-
|
|
3569
|
-
exports.IotDpsClient = IotDpsClient;
|
|
3570
|
-
exports.getContinuationToken = getContinuationToken;
|
|
3571
|
-
//# sourceMappingURL=index.js.map
|