@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
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { SimplePollerLike, OperationState } from "@azure/core-lro";
|
|
3
|
+
import { ProvisioningServiceDescription, IotDpsResourceListBySubscriptionOptionalParams, IotDpsResourceListByResourceGroupOptionalParams, IotDpsSkuDefinition, IotDpsResourceListValidSkusOptionalParams, SharedAccessSignatureAuthorizationRuleAccessRightsDescription, IotDpsResourceListKeysOptionalParams, IotDpsResourceGetOptionalParams, IotDpsResourceGetResponse, IotDpsResourceCreateOrUpdateOptionalParams, IotDpsResourceCreateOrUpdateResponse, TagsResource, IotDpsResourceUpdateOptionalParams, IotDpsResourceUpdateResponse, IotDpsResourceDeleteOptionalParams, IotDpsResourceGetOperationResultOptionalParams, IotDpsResourceGetOperationResultResponse, OperationInputs, IotDpsResourceCheckProvisioningServiceNameAvailabilityOptionalParams, IotDpsResourceCheckProvisioningServiceNameAvailabilityResponse, IotDpsResourceListKeysForKeyNameOptionalParams, IotDpsResourceListKeysForKeyNameResponse, IotDpsResourceListPrivateLinkResourcesOptionalParams, IotDpsResourceListPrivateLinkResourcesResponse, IotDpsResourceGetPrivateLinkResourcesOptionalParams, IotDpsResourceGetPrivateLinkResourcesResponse, IotDpsResourceListPrivateEndpointConnectionsOptionalParams, IotDpsResourceListPrivateEndpointConnectionsResponse, IotDpsResourceGetPrivateEndpointConnectionOptionalParams, IotDpsResourceGetPrivateEndpointConnectionResponse, PrivateEndpointConnection, IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams, IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse, IotDpsResourceDeletePrivateEndpointConnectionOptionalParams, IotDpsResourceDeletePrivateEndpointConnectionResponse } from "../models/index.js";
|
|
4
|
+
/** Interface representing a IotDpsResource. */
|
|
5
|
+
export interface IotDpsResource {
|
|
6
|
+
/**
|
|
7
|
+
* List all the provisioning services for a given subscription id.
|
|
8
|
+
* @param options The options parameters.
|
|
9
|
+
*/
|
|
10
|
+
listBySubscription(options?: IotDpsResourceListBySubscriptionOptionalParams): PagedAsyncIterableIterator<ProvisioningServiceDescription>;
|
|
11
|
+
/**
|
|
12
|
+
* Get a list of all provisioning services in the given resource group.
|
|
13
|
+
* @param resourceGroupName Resource group identifier.
|
|
14
|
+
* @param options The options parameters.
|
|
15
|
+
*/
|
|
16
|
+
listByResourceGroup(resourceGroupName: string, options?: IotDpsResourceListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ProvisioningServiceDescription>;
|
|
17
|
+
/**
|
|
18
|
+
* Gets the list of valid SKUs and tiers for a provisioning service.
|
|
19
|
+
* @param provisioningServiceName Name of provisioning service.
|
|
20
|
+
* @param resourceGroupName Name of resource group.
|
|
21
|
+
* @param options The options parameters.
|
|
22
|
+
*/
|
|
23
|
+
listValidSkus(provisioningServiceName: string, resourceGroupName: string, options?: IotDpsResourceListValidSkusOptionalParams): PagedAsyncIterableIterator<IotDpsSkuDefinition>;
|
|
24
|
+
/**
|
|
25
|
+
* List the primary and secondary keys for a provisioning service.
|
|
26
|
+
* @param provisioningServiceName The provisioning service name to get the shared access keys for.
|
|
27
|
+
* @param resourceGroupName resource group name
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
listKeys(provisioningServiceName: string, resourceGroupName: string, options?: IotDpsResourceListKeysOptionalParams): PagedAsyncIterableIterator<SharedAccessSignatureAuthorizationRuleAccessRightsDescription>;
|
|
31
|
+
/**
|
|
32
|
+
* Get the metadata of the provisioning service without SAS keys.
|
|
33
|
+
* @param resourceGroupName Resource group name.
|
|
34
|
+
* @param provisioningServiceName Name of the provisioning service to retrieve.
|
|
35
|
+
* @param options The options parameters.
|
|
36
|
+
*/
|
|
37
|
+
get(resourceGroupName: string, provisioningServiceName: string, options?: IotDpsResourceGetOptionalParams): Promise<IotDpsResourceGetResponse>;
|
|
38
|
+
/**
|
|
39
|
+
* Create or update the metadata of the provisioning service. The usual pattern to modify a property is
|
|
40
|
+
* to retrieve the provisioning service metadata and security metadata, and then combine them with the
|
|
41
|
+
* modified values in a new body to update the provisioning service.
|
|
42
|
+
* @param resourceGroupName Resource group identifier.
|
|
43
|
+
* @param provisioningServiceName Name of provisioning service to create or update.
|
|
44
|
+
* @param iotDpsDescription Description of the provisioning service to create or update.
|
|
45
|
+
* @param options The options parameters.
|
|
46
|
+
*/
|
|
47
|
+
beginCreateOrUpdate(resourceGroupName: string, provisioningServiceName: string, iotDpsDescription: ProvisioningServiceDescription, options?: IotDpsResourceCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<IotDpsResourceCreateOrUpdateResponse>, IotDpsResourceCreateOrUpdateResponse>>;
|
|
48
|
+
/**
|
|
49
|
+
* Create or update the metadata of the provisioning service. The usual pattern to modify a property is
|
|
50
|
+
* to retrieve the provisioning service metadata and security metadata, and then combine them with the
|
|
51
|
+
* modified values in a new body to update the provisioning service.
|
|
52
|
+
* @param resourceGroupName Resource group identifier.
|
|
53
|
+
* @param provisioningServiceName Name of provisioning service to create or update.
|
|
54
|
+
* @param iotDpsDescription Description of the provisioning service to create or update.
|
|
55
|
+
* @param options The options parameters.
|
|
56
|
+
*/
|
|
57
|
+
beginCreateOrUpdateAndWait(resourceGroupName: string, provisioningServiceName: string, iotDpsDescription: ProvisioningServiceDescription, options?: IotDpsResourceCreateOrUpdateOptionalParams): Promise<IotDpsResourceCreateOrUpdateResponse>;
|
|
58
|
+
/**
|
|
59
|
+
* Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method
|
|
60
|
+
* @param resourceGroupName Resource group identifier.
|
|
61
|
+
* @param provisioningServiceName Name of provisioning service to create or update.
|
|
62
|
+
* @param provisioningServiceTags Updated tag information to set into the provisioning service
|
|
63
|
+
* instance.
|
|
64
|
+
* @param options The options parameters.
|
|
65
|
+
*/
|
|
66
|
+
beginUpdate(resourceGroupName: string, provisioningServiceName: string, provisioningServiceTags: TagsResource, options?: IotDpsResourceUpdateOptionalParams): Promise<SimplePollerLike<OperationState<IotDpsResourceUpdateResponse>, IotDpsResourceUpdateResponse>>;
|
|
67
|
+
/**
|
|
68
|
+
* Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method
|
|
69
|
+
* @param resourceGroupName Resource group identifier.
|
|
70
|
+
* @param provisioningServiceName Name of provisioning service to create or update.
|
|
71
|
+
* @param provisioningServiceTags Updated tag information to set into the provisioning service
|
|
72
|
+
* instance.
|
|
73
|
+
* @param options The options parameters.
|
|
74
|
+
*/
|
|
75
|
+
beginUpdateAndWait(resourceGroupName: string, provisioningServiceName: string, provisioningServiceTags: TagsResource, options?: IotDpsResourceUpdateOptionalParams): Promise<IotDpsResourceUpdateResponse>;
|
|
76
|
+
/**
|
|
77
|
+
* Deletes the Provisioning Service.
|
|
78
|
+
* @param resourceGroupName Resource group identifier.
|
|
79
|
+
* @param provisioningServiceName Name of provisioning service to delete.
|
|
80
|
+
* @param options The options parameters.
|
|
81
|
+
*/
|
|
82
|
+
beginDelete(resourceGroupName: string, provisioningServiceName: string, options?: IotDpsResourceDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
83
|
+
/**
|
|
84
|
+
* Deletes the Provisioning Service.
|
|
85
|
+
* @param resourceGroupName Resource group identifier.
|
|
86
|
+
* @param provisioningServiceName Name of provisioning service to delete.
|
|
87
|
+
* @param options The options parameters.
|
|
88
|
+
*/
|
|
89
|
+
beginDeleteAndWait(resourceGroupName: string, provisioningServiceName: string, options?: IotDpsResourceDeleteOptionalParams): Promise<void>;
|
|
90
|
+
/**
|
|
91
|
+
* Gets the status of a long running operation, such as create, update or delete a provisioning
|
|
92
|
+
* service.
|
|
93
|
+
* @param operationId Operation id corresponding to long running operation. Use this to poll for the
|
|
94
|
+
* status.
|
|
95
|
+
* @param resourceGroupName Resource group identifier.
|
|
96
|
+
* @param provisioningServiceName Name of provisioning service that the operation is running on.
|
|
97
|
+
* @param asyncinfo Async header used to poll on the status of the operation, obtained while creating
|
|
98
|
+
* the long running operation.
|
|
99
|
+
* @param options The options parameters.
|
|
100
|
+
*/
|
|
101
|
+
getOperationResult(operationId: string, resourceGroupName: string, provisioningServiceName: string, asyncinfo: string, options?: IotDpsResourceGetOperationResultOptionalParams): Promise<IotDpsResourceGetOperationResultResponse>;
|
|
102
|
+
/**
|
|
103
|
+
* Check if a provisioning service name is available. This will validate if the name is syntactically
|
|
104
|
+
* valid and if the name is usable
|
|
105
|
+
* @param argumentsParam Set the name parameter in the OperationInputs structure to the name of the
|
|
106
|
+
* provisioning service to check.
|
|
107
|
+
* @param options The options parameters.
|
|
108
|
+
*/
|
|
109
|
+
checkProvisioningServiceNameAvailability(argumentsParam: OperationInputs, options?: IotDpsResourceCheckProvisioningServiceNameAvailabilityOptionalParams): Promise<IotDpsResourceCheckProvisioningServiceNameAvailabilityResponse>;
|
|
110
|
+
/**
|
|
111
|
+
* List primary and secondary keys for a specific key name
|
|
112
|
+
* @param provisioningServiceName Name of the provisioning service.
|
|
113
|
+
* @param keyName Logical key name to get key-values for.
|
|
114
|
+
* @param resourceGroupName The name of the resource group that contains the provisioning service.
|
|
115
|
+
* @param options The options parameters.
|
|
116
|
+
*/
|
|
117
|
+
listKeysForKeyName(provisioningServiceName: string, keyName: string, resourceGroupName: string, options?: IotDpsResourceListKeysForKeyNameOptionalParams): Promise<IotDpsResourceListKeysForKeyNameResponse>;
|
|
118
|
+
/**
|
|
119
|
+
* List private link resources for the given provisioning service
|
|
120
|
+
* @param resourceGroupName The name of the resource group that contains the provisioning service.
|
|
121
|
+
* @param resourceName The name of the provisioning service.
|
|
122
|
+
* @param options The options parameters.
|
|
123
|
+
*/
|
|
124
|
+
listPrivateLinkResources(resourceGroupName: string, resourceName: string, options?: IotDpsResourceListPrivateLinkResourcesOptionalParams): Promise<IotDpsResourceListPrivateLinkResourcesResponse>;
|
|
125
|
+
/**
|
|
126
|
+
* Get the specified private link resource for the given provisioning service
|
|
127
|
+
* @param resourceGroupName The name of the resource group that contains the provisioning service.
|
|
128
|
+
* @param resourceName The name of the provisioning service.
|
|
129
|
+
* @param groupId The name of the private link resource
|
|
130
|
+
* @param options The options parameters.
|
|
131
|
+
*/
|
|
132
|
+
getPrivateLinkResources(resourceGroupName: string, resourceName: string, groupId: string, options?: IotDpsResourceGetPrivateLinkResourcesOptionalParams): Promise<IotDpsResourceGetPrivateLinkResourcesResponse>;
|
|
133
|
+
/**
|
|
134
|
+
* List private endpoint connection properties
|
|
135
|
+
* @param resourceGroupName The name of the resource group that contains the provisioning service.
|
|
136
|
+
* @param resourceName The name of the provisioning service.
|
|
137
|
+
* @param options The options parameters.
|
|
138
|
+
*/
|
|
139
|
+
listPrivateEndpointConnections(resourceGroupName: string, resourceName: string, options?: IotDpsResourceListPrivateEndpointConnectionsOptionalParams): Promise<IotDpsResourceListPrivateEndpointConnectionsResponse>;
|
|
140
|
+
/**
|
|
141
|
+
* Get private endpoint connection properties
|
|
142
|
+
* @param resourceGroupName The name of the resource group that contains the provisioning service.
|
|
143
|
+
* @param resourceName The name of the provisioning service.
|
|
144
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection
|
|
145
|
+
* @param options The options parameters.
|
|
146
|
+
*/
|
|
147
|
+
getPrivateEndpointConnection(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options?: IotDpsResourceGetPrivateEndpointConnectionOptionalParams): Promise<IotDpsResourceGetPrivateEndpointConnectionResponse>;
|
|
148
|
+
/**
|
|
149
|
+
* Create or update the status of a private endpoint connection with the specified name
|
|
150
|
+
* @param resourceGroupName The name of the resource group that contains the provisioning service.
|
|
151
|
+
* @param resourceName The name of the provisioning service.
|
|
152
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection
|
|
153
|
+
* @param privateEndpointConnection The private endpoint connection with updated properties
|
|
154
|
+
* @param options The options parameters.
|
|
155
|
+
*/
|
|
156
|
+
beginCreateOrUpdatePrivateEndpointConnection(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, options?: IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams): Promise<SimplePollerLike<OperationState<IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse>, IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse>>;
|
|
157
|
+
/**
|
|
158
|
+
* Create or update the status of a private endpoint connection with the specified name
|
|
159
|
+
* @param resourceGroupName The name of the resource group that contains the provisioning service.
|
|
160
|
+
* @param resourceName The name of the provisioning service.
|
|
161
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection
|
|
162
|
+
* @param privateEndpointConnection The private endpoint connection with updated properties
|
|
163
|
+
* @param options The options parameters.
|
|
164
|
+
*/
|
|
165
|
+
beginCreateOrUpdatePrivateEndpointConnectionAndWait(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, privateEndpointConnection: PrivateEndpointConnection, options?: IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams): Promise<IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse>;
|
|
166
|
+
/**
|
|
167
|
+
* Delete private endpoint connection with the specified name
|
|
168
|
+
* @param resourceGroupName The name of the resource group that contains the provisioning service.
|
|
169
|
+
* @param resourceName The name of the provisioning service.
|
|
170
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection
|
|
171
|
+
* @param options The options parameters.
|
|
172
|
+
*/
|
|
173
|
+
beginDeletePrivateEndpointConnection(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options?: IotDpsResourceDeletePrivateEndpointConnectionOptionalParams): Promise<SimplePollerLike<OperationState<IotDpsResourceDeletePrivateEndpointConnectionResponse>, IotDpsResourceDeletePrivateEndpointConnectionResponse>>;
|
|
174
|
+
/**
|
|
175
|
+
* Delete private endpoint connection with the specified name
|
|
176
|
+
* @param resourceGroupName The name of the resource group that contains the provisioning service.
|
|
177
|
+
* @param resourceName The name of the provisioning service.
|
|
178
|
+
* @param privateEndpointConnectionName The name of the private endpoint connection
|
|
179
|
+
* @param options The options parameters.
|
|
180
|
+
*/
|
|
181
|
+
beginDeletePrivateEndpointConnectionAndWait(resourceGroupName: string, resourceName: string, privateEndpointConnectionName: string, options?: IotDpsResourceDeletePrivateEndpointConnectionOptionalParams): Promise<IotDpsResourceDeletePrivateEndpointConnectionResponse>;
|
|
182
|
+
}
|
|
183
|
+
//# sourceMappingURL=iotDpsResource.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iotDpsResource.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/iotDpsResource.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACnE,OAAO,E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1C,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,6BAA6B,EAAE,MAAM,EACrC,yBAAyB,EAAE,yBAAyB,EACpD,OAAO,CAAC,EAAE,mEAAmE,GAC5E,OAAO,CACR,gBAAgB,CACd,cAAc,CACZ,6DAA6D,CAC9D,EACD,6DAA6D,CAC9D,CACF,CAAC;IACF;;;;;;;OAOG;IACH,mDAAmD,CACjD,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,6BAA6B,EAAE,MAAM,EACrC,yBAAyB,EAAE,yBAAyB,EACpD,OAAO,CAAC,EAAE,mEAAmE,GAC5E,OAAO,CAAC,6DAA6D,CAAC,CAAC;IAC1E;;;;;;OAMG;IACH,oCAAoC,CAClC,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,6BAA6B,EAAE,MAAM,EACrC,OAAO,CAAC,EAAE,2DAA2D,GACpE,OAAO,CACR,gBAAgB,CACd,cAAc,CAAC,qDAAqD,CAAC,EACrE,qDAAqD,CACtD,CACF,CAAC;IACF;;;;;;OAMG;IACH,2CAA2C,CACzC,iBAAiB,EAAE,MAAM,EACzB,YAAY,EAAE,MAAM,EACpB,6BAA6B,EAAE,MAAM,EACrC,OAAO,CAAC,EAAE,2DAA2D,GACpE,OAAO,CAAC,qDAAqD,CAAC,CAAC;CACnE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
//# sourceMappingURL=iotDpsResource.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iotDpsResource.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/iotDpsResource.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport {\n ProvisioningServiceDescription,\n IotDpsResourceListBySubscriptionOptionalParams,\n IotDpsResourceListByResourceGroupOptionalParams,\n IotDpsSkuDefinition,\n IotDpsResourceListValidSkusOptionalParams,\n SharedAccessSignatureAuthorizationRuleAccessRightsDescription,\n IotDpsResourceListKeysOptionalParams,\n IotDpsResourceGetOptionalParams,\n IotDpsResourceGetResponse,\n IotDpsResourceCreateOrUpdateOptionalParams,\n IotDpsResourceCreateOrUpdateResponse,\n TagsResource,\n IotDpsResourceUpdateOptionalParams,\n IotDpsResourceUpdateResponse,\n IotDpsResourceDeleteOptionalParams,\n IotDpsResourceGetOperationResultOptionalParams,\n IotDpsResourceGetOperationResultResponse,\n OperationInputs,\n IotDpsResourceCheckProvisioningServiceNameAvailabilityOptionalParams,\n IotDpsResourceCheckProvisioningServiceNameAvailabilityResponse,\n IotDpsResourceListKeysForKeyNameOptionalParams,\n IotDpsResourceListKeysForKeyNameResponse,\n IotDpsResourceListPrivateLinkResourcesOptionalParams,\n IotDpsResourceListPrivateLinkResourcesResponse,\n IotDpsResourceGetPrivateLinkResourcesOptionalParams,\n IotDpsResourceGetPrivateLinkResourcesResponse,\n IotDpsResourceListPrivateEndpointConnectionsOptionalParams,\n IotDpsResourceListPrivateEndpointConnectionsResponse,\n IotDpsResourceGetPrivateEndpointConnectionOptionalParams,\n IotDpsResourceGetPrivateEndpointConnectionResponse,\n PrivateEndpointConnection,\n IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams,\n IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse,\n IotDpsResourceDeletePrivateEndpointConnectionOptionalParams,\n IotDpsResourceDeletePrivateEndpointConnectionResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a IotDpsResource. */\nexport interface IotDpsResource {\n /**\n * List all the provisioning services for a given subscription id.\n * @param options The options parameters.\n */\n listBySubscription(\n options?: IotDpsResourceListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<ProvisioningServiceDescription>;\n /**\n * Get a list of all provisioning services in the given resource group.\n * @param resourceGroupName Resource group identifier.\n * @param options The options parameters.\n */\n listByResourceGroup(\n resourceGroupName: string,\n options?: IotDpsResourceListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<ProvisioningServiceDescription>;\n /**\n * Gets the list of valid SKUs and tiers for a provisioning service.\n * @param provisioningServiceName Name of provisioning service.\n * @param resourceGroupName Name of resource group.\n * @param options The options parameters.\n */\n listValidSkus(\n provisioningServiceName: string,\n resourceGroupName: string,\n options?: IotDpsResourceListValidSkusOptionalParams\n ): PagedAsyncIterableIterator<IotDpsSkuDefinition>;\n /**\n * List the primary and secondary keys for a provisioning service.\n * @param provisioningServiceName The provisioning service name to get the shared access keys for.\n * @param resourceGroupName resource group name\n * @param options The options parameters.\n */\n listKeys(\n provisioningServiceName: string,\n resourceGroupName: string,\n options?: IotDpsResourceListKeysOptionalParams\n ): PagedAsyncIterableIterator<\n SharedAccessSignatureAuthorizationRuleAccessRightsDescription\n >;\n /**\n * Get the metadata of the provisioning service without SAS keys.\n * @param resourceGroupName Resource group name.\n * @param provisioningServiceName Name of the provisioning service to retrieve.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n provisioningServiceName: string,\n options?: IotDpsResourceGetOptionalParams\n ): Promise<IotDpsResourceGetResponse>;\n /**\n * Create or update the metadata of the provisioning service. The usual pattern to modify a property is\n * to retrieve the provisioning service metadata and security metadata, and then combine them with the\n * modified values in a new body to update the provisioning service.\n * @param resourceGroupName Resource group identifier.\n * @param provisioningServiceName Name of provisioning service to create or update.\n * @param iotDpsDescription Description of the provisioning service to create or update.\n * @param options The options parameters.\n */\n beginCreateOrUpdate(\n resourceGroupName: string,\n provisioningServiceName: string,\n iotDpsDescription: ProvisioningServiceDescription,\n options?: IotDpsResourceCreateOrUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<IotDpsResourceCreateOrUpdateResponse>,\n IotDpsResourceCreateOrUpdateResponse\n >\n >;\n /**\n * Create or update the metadata of the provisioning service. The usual pattern to modify a property is\n * to retrieve the provisioning service metadata and security metadata, and then combine them with the\n * modified values in a new body to update the provisioning service.\n * @param resourceGroupName Resource group identifier.\n * @param provisioningServiceName Name of provisioning service to create or update.\n * @param iotDpsDescription Description of the provisioning service to create or update.\n * @param options The options parameters.\n */\n beginCreateOrUpdateAndWait(\n resourceGroupName: string,\n provisioningServiceName: string,\n iotDpsDescription: ProvisioningServiceDescription,\n options?: IotDpsResourceCreateOrUpdateOptionalParams\n ): Promise<IotDpsResourceCreateOrUpdateResponse>;\n /**\n * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method\n * @param resourceGroupName Resource group identifier.\n * @param provisioningServiceName Name of provisioning service to create or update.\n * @param provisioningServiceTags Updated tag information to set into the provisioning service\n * instance.\n * @param options The options parameters.\n */\n beginUpdate(\n resourceGroupName: string,\n provisioningServiceName: string,\n provisioningServiceTags: TagsResource,\n options?: IotDpsResourceUpdateOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<IotDpsResourceUpdateResponse>,\n IotDpsResourceUpdateResponse\n >\n >;\n /**\n * Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method\n * @param resourceGroupName Resource group identifier.\n * @param provisioningServiceName Name of provisioning service to create or update.\n * @param provisioningServiceTags Updated tag information to set into the provisioning service\n * instance.\n * @param options The options parameters.\n */\n beginUpdateAndWait(\n resourceGroupName: string,\n provisioningServiceName: string,\n provisioningServiceTags: TagsResource,\n options?: IotDpsResourceUpdateOptionalParams\n ): Promise<IotDpsResourceUpdateResponse>;\n /**\n * Deletes the Provisioning Service.\n * @param resourceGroupName Resource group identifier.\n * @param provisioningServiceName Name of provisioning service to delete.\n * @param options The options parameters.\n */\n beginDelete(\n resourceGroupName: string,\n provisioningServiceName: string,\n options?: IotDpsResourceDeleteOptionalParams\n ): Promise<SimplePollerLike<OperationState<void>, void>>;\n /**\n * Deletes the Provisioning Service.\n * @param resourceGroupName Resource group identifier.\n * @param provisioningServiceName Name of provisioning service to delete.\n * @param options The options parameters.\n */\n beginDeleteAndWait(\n resourceGroupName: string,\n provisioningServiceName: string,\n options?: IotDpsResourceDeleteOptionalParams\n ): Promise<void>;\n /**\n * Gets the status of a long running operation, such as create, update or delete a provisioning\n * service.\n * @param operationId Operation id corresponding to long running operation. Use this to poll for the\n * status.\n * @param resourceGroupName Resource group identifier.\n * @param provisioningServiceName Name of provisioning service that the operation is running on.\n * @param asyncinfo Async header used to poll on the status of the operation, obtained while creating\n * the long running operation.\n * @param options The options parameters.\n */\n getOperationResult(\n operationId: string,\n resourceGroupName: string,\n provisioningServiceName: string,\n asyncinfo: string,\n options?: IotDpsResourceGetOperationResultOptionalParams\n ): Promise<IotDpsResourceGetOperationResultResponse>;\n /**\n * Check if a provisioning service name is available. This will validate if the name is syntactically\n * valid and if the name is usable\n * @param argumentsParam Set the name parameter in the OperationInputs structure to the name of the\n * provisioning service to check.\n * @param options The options parameters.\n */\n checkProvisioningServiceNameAvailability(\n argumentsParam: OperationInputs,\n options?: IotDpsResourceCheckProvisioningServiceNameAvailabilityOptionalParams\n ): Promise<IotDpsResourceCheckProvisioningServiceNameAvailabilityResponse>;\n /**\n * List primary and secondary keys for a specific key name\n * @param provisioningServiceName Name of the provisioning service.\n * @param keyName Logical key name to get key-values for.\n * @param resourceGroupName The name of the resource group that contains the provisioning service.\n * @param options The options parameters.\n */\n listKeysForKeyName(\n provisioningServiceName: string,\n keyName: string,\n resourceGroupName: string,\n options?: IotDpsResourceListKeysForKeyNameOptionalParams\n ): Promise<IotDpsResourceListKeysForKeyNameResponse>;\n /**\n * List private link resources for the given provisioning service\n * @param resourceGroupName The name of the resource group that contains the provisioning service.\n * @param resourceName The name of the provisioning service.\n * @param options The options parameters.\n */\n listPrivateLinkResources(\n resourceGroupName: string,\n resourceName: string,\n options?: IotDpsResourceListPrivateLinkResourcesOptionalParams\n ): Promise<IotDpsResourceListPrivateLinkResourcesResponse>;\n /**\n * Get the specified private link resource for the given provisioning service\n * @param resourceGroupName The name of the resource group that contains the provisioning service.\n * @param resourceName The name of the provisioning service.\n * @param groupId The name of the private link resource\n * @param options The options parameters.\n */\n getPrivateLinkResources(\n resourceGroupName: string,\n resourceName: string,\n groupId: string,\n options?: IotDpsResourceGetPrivateLinkResourcesOptionalParams\n ): Promise<IotDpsResourceGetPrivateLinkResourcesResponse>;\n /**\n * List private endpoint connection properties\n * @param resourceGroupName The name of the resource group that contains the provisioning service.\n * @param resourceName The name of the provisioning service.\n * @param options The options parameters.\n */\n listPrivateEndpointConnections(\n resourceGroupName: string,\n resourceName: string,\n options?: IotDpsResourceListPrivateEndpointConnectionsOptionalParams\n ): Promise<IotDpsResourceListPrivateEndpointConnectionsResponse>;\n /**\n * Get private endpoint connection properties\n * @param resourceGroupName The name of the resource group that contains the provisioning service.\n * @param resourceName The name of the provisioning service.\n * @param privateEndpointConnectionName The name of the private endpoint connection\n * @param options The options parameters.\n */\n getPrivateEndpointConnection(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n options?: IotDpsResourceGetPrivateEndpointConnectionOptionalParams\n ): Promise<IotDpsResourceGetPrivateEndpointConnectionResponse>;\n /**\n * Create or update the status of a private endpoint connection with the specified name\n * @param resourceGroupName The name of the resource group that contains the provisioning service.\n * @param resourceName The name of the provisioning service.\n * @param privateEndpointConnectionName The name of the private endpoint connection\n * @param privateEndpointConnection The private endpoint connection with updated properties\n * @param options The options parameters.\n */\n beginCreateOrUpdatePrivateEndpointConnection(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n privateEndpointConnection: PrivateEndpointConnection,\n options?: IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<\n IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse\n >,\n IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse\n >\n >;\n /**\n * Create or update the status of a private endpoint connection with the specified name\n * @param resourceGroupName The name of the resource group that contains the provisioning service.\n * @param resourceName The name of the provisioning service.\n * @param privateEndpointConnectionName The name of the private endpoint connection\n * @param privateEndpointConnection The private endpoint connection with updated properties\n * @param options The options parameters.\n */\n beginCreateOrUpdatePrivateEndpointConnectionAndWait(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n privateEndpointConnection: PrivateEndpointConnection,\n options?: IotDpsResourceCreateOrUpdatePrivateEndpointConnectionOptionalParams\n ): Promise<IotDpsResourceCreateOrUpdatePrivateEndpointConnectionResponse>;\n /**\n * Delete private endpoint connection with the specified name\n * @param resourceGroupName The name of the resource group that contains the provisioning service.\n * @param resourceName The name of the provisioning service.\n * @param privateEndpointConnectionName The name of the private endpoint connection\n * @param options The options parameters.\n */\n beginDeletePrivateEndpointConnection(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n options?: IotDpsResourceDeletePrivateEndpointConnectionOptionalParams\n ): Promise<\n SimplePollerLike<\n OperationState<IotDpsResourceDeletePrivateEndpointConnectionResponse>,\n IotDpsResourceDeletePrivateEndpointConnectionResponse\n >\n >;\n /**\n * Delete private endpoint connection with the specified name\n * @param resourceGroupName The name of the resource group that contains the provisioning service.\n * @param resourceName The name of the provisioning service.\n * @param privateEndpointConnectionName The name of the private endpoint connection\n * @param options The options parameters.\n */\n beginDeletePrivateEndpointConnectionAndWait(\n resourceGroupName: string,\n resourceName: string,\n privateEndpointConnectionName: string,\n options?: IotDpsResourceDeletePrivateEndpointConnectionOptionalParams\n ): Promise<IotDpsResourceDeletePrivateEndpointConnectionResponse>;\n}\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Operation, OperationsListOptionalParams } from "../models/index.js";
|
|
3
|
+
/** Interface representing a Operations. */
|
|
4
|
+
export interface Operations {
|
|
5
|
+
/**
|
|
6
|
+
* Lists all of the available Microsoft.Devices REST API operations.
|
|
7
|
+
* @param options The options parameters.
|
|
8
|
+
*/
|
|
9
|
+
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,SAAS,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAC;AAG7E,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC,CAAC;CAC1C"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { Operation, OperationsListOptionalParams } from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Interface representing a Operations. */\nexport interface Operations {\n /**\n * Lists all of the available Microsoft.Devices REST API operations.\n * @param options The options parameters.\n */\n list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<Operation>;\n}\n"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export interface PageInfo {
|
|
2
|
+
continuationToken?: string;
|
|
3
|
+
}
|
|
4
|
+
/**
|
|
5
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
6
|
+
* returns a continuation token that can be used to begin paging from
|
|
7
|
+
* that point later.
|
|
8
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
9
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
10
|
+
*/
|
|
11
|
+
export declare function getContinuationToken(page: unknown): string | undefined;
|
|
12
|
+
export declare function setContinuationToken(page: unknown, continuationToken: string | undefined): void;
|
|
13
|
+
//# sourceMappingURL=pagingHelper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagingHelper.d.ts","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAQA,MAAM,WAAW,QAAQ;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAID;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAKtE;AAED,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,OAAO,EACb,iBAAiB,EAAE,MAAM,GAAG,SAAS,GACpC,IAAI,CAON"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) Microsoft Corporation.
|
|
4
|
+
* Licensed under the MIT License.
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.getContinuationToken = getContinuationToken;
|
|
11
|
+
exports.setContinuationToken = setContinuationToken;
|
|
12
|
+
const pageMap = new WeakMap();
|
|
13
|
+
/**
|
|
14
|
+
* Given the last `.value` produced by the `byPage` iterator,
|
|
15
|
+
* returns a continuation token that can be used to begin paging from
|
|
16
|
+
* that point later.
|
|
17
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
18
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
19
|
+
*/
|
|
20
|
+
function getContinuationToken(page) {
|
|
21
|
+
if (typeof page !== "object" || page === null) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
return pageMap.get(page)?.continuationToken;
|
|
25
|
+
}
|
|
26
|
+
function setContinuationToken(page, continuationToken) {
|
|
27
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
31
|
+
pageInfo.continuationToken = continuationToken;
|
|
32
|
+
pageMap.set(page, pageInfo);
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=pagingHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;AAeH,oDAKC;AAED,oDAUC;AA1BD,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,SAAgB,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,SAAgB,oBAAoB,CAClC,IAAa,EACb,iBAAqC;IAErC,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(\n page: unknown,\n continuationToken: string | undefined\n): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
-
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
-
{
|
|
4
|
-
"tsdocVersion": "0.12",
|
|
5
|
-
"toolPackages": [
|
|
6
|
-
{
|
|
7
|
-
"packageName": "@microsoft/api-extractor",
|
|
8
|
-
"packageVersion": "7.
|
|
9
|
-
}
|
|
10
|
-
]
|
|
11
|
-
}
|
|
1
|
+
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
+
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
+
{
|
|
4
|
+
"tsdocVersion": "0.12",
|
|
5
|
+
"toolPackages": [
|
|
6
|
+
{
|
|
7
|
+
"packageName": "@microsoft/api-extractor",
|
|
8
|
+
"packageVersion": "7.52.10"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,cAAc,iCAAiC,CAAC"}
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
|
|
9
8
|
/// <reference lib="esnext.asynciterable" />
|
|
10
|
-
export { getContinuationToken } from "./pagingHelper";
|
|
11
|
-
export * from "./models";
|
|
12
|
-
export { IotDpsClient } from "./iotDpsClient";
|
|
13
|
-
export * from "./operationsInterfaces";
|
|
9
|
+
export { getContinuationToken } from "./pagingHelper.js";
|
|
10
|
+
export * from "./models/index.js";
|
|
11
|
+
export { IotDpsClient } from "./iotDpsClient.js";
|
|
12
|
+
export * from "./operationsInterfaces/index.js";
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,cAAc,iCAAiC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { IotDpsClient } from \"./iotDpsClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
|
2
|
+
import * as coreAuth from "@azure/core-auth";
|
|
3
|
+
import { Operations, DpsCertificate, IotDpsResource } from "./operationsInterfaces/index.js";
|
|
4
|
+
import { IotDpsClientOptionalParams } from "./models/index.js";
|
|
5
|
+
export declare class IotDpsClient extends coreClient.ServiceClient {
|
|
6
|
+
$host: string;
|
|
7
|
+
apiVersion: string;
|
|
8
|
+
subscriptionId: string;
|
|
9
|
+
/**
|
|
10
|
+
* Initializes a new instance of the IotDpsClient class.
|
|
11
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
12
|
+
* @param subscriptionId The subscription identifier.
|
|
13
|
+
* @param options The parameter options
|
|
14
|
+
*/
|
|
15
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: IotDpsClientOptionalParams);
|
|
16
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
17
|
+
private addCustomApiVersionPolicy;
|
|
18
|
+
operations: Operations;
|
|
19
|
+
dpsCertificate: DpsCertificate;
|
|
20
|
+
iotDpsResource: IotDpsResource;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=iotDpsClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iotDpsClient.d.ts","sourceRoot":"","sources":["../../src/iotDpsClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAM7C,OAAO,EACL,UAAU,EACV,cAAc,EACd,cAAc,EACf,MAAM,iCAAiC,CAAC;AACzC,OAAO,EAAE,0BAA0B,EAAE,MAAM,mBAAmB,CAAC;AAE/D,qBAAa,YAAa,SAAQ,UAAU,CAAC,aAAa;IACxD,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,0BAA0B;IA8EtC,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC,UAAU,EAAE,UAAU,CAAC;IACvB,cAAc,EAAE,cAAc,CAAC;IAC/B,cAAc,EAAE,cAAc,CAAC;CAChC"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import * as coreClient from "@azure/core-client";
|
|
9
|
+
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
10
|
+
import { OperationsImpl, DpsCertificateImpl, IotDpsResourceImpl } from "./operations/index.js";
|
|
11
|
+
export class IotDpsClient extends coreClient.ServiceClient {
|
|
12
|
+
$host;
|
|
13
|
+
apiVersion;
|
|
14
|
+
subscriptionId;
|
|
15
|
+
/**
|
|
16
|
+
* Initializes a new instance of the IotDpsClient class.
|
|
17
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
18
|
+
* @param subscriptionId The subscription identifier.
|
|
19
|
+
* @param options The parameter options
|
|
20
|
+
*/
|
|
21
|
+
constructor(credentials, subscriptionId, options) {
|
|
22
|
+
if (credentials === undefined) {
|
|
23
|
+
throw new Error("'credentials' cannot be null");
|
|
24
|
+
}
|
|
25
|
+
if (subscriptionId === undefined) {
|
|
26
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
27
|
+
}
|
|
28
|
+
// Initializing default values for options
|
|
29
|
+
if (!options) {
|
|
30
|
+
options = {};
|
|
31
|
+
}
|
|
32
|
+
const defaults = {
|
|
33
|
+
requestContentType: "application/json; charset=utf-8",
|
|
34
|
+
credential: credentials
|
|
35
|
+
};
|
|
36
|
+
const packageDetails = `azsdk-js-arm-deviceprovisioningservices/6.0.0-beta.2`;
|
|
37
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
38
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
39
|
+
: `${packageDetails}`;
|
|
40
|
+
const optionsWithDefaults = {
|
|
41
|
+
...defaults,
|
|
42
|
+
...options,
|
|
43
|
+
userAgentOptions: {
|
|
44
|
+
userAgentPrefix
|
|
45
|
+
},
|
|
46
|
+
endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
|
|
47
|
+
};
|
|
48
|
+
super(optionsWithDefaults);
|
|
49
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
50
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
51
|
+
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
52
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
53
|
+
coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
54
|
+
}
|
|
55
|
+
if (!options ||
|
|
56
|
+
!options.pipeline ||
|
|
57
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
58
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
59
|
+
this.pipeline.removePolicy({
|
|
60
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
61
|
+
});
|
|
62
|
+
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
63
|
+
credential: credentials,
|
|
64
|
+
scopes: optionsWithDefaults.credentialScopes ??
|
|
65
|
+
`${optionsWithDefaults.endpoint}/.default`,
|
|
66
|
+
challengeCallbacks: {
|
|
67
|
+
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
|
68
|
+
}
|
|
69
|
+
}));
|
|
70
|
+
}
|
|
71
|
+
// Parameter assignments
|
|
72
|
+
this.subscriptionId = subscriptionId;
|
|
73
|
+
// Assigning values to Constant parameters
|
|
74
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
75
|
+
this.apiVersion = options.apiVersion || "2023-03-01-preview";
|
|
76
|
+
this.operations = new OperationsImpl(this);
|
|
77
|
+
this.dpsCertificate = new DpsCertificateImpl(this);
|
|
78
|
+
this.iotDpsResource = new IotDpsResourceImpl(this);
|
|
79
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
80
|
+
}
|
|
81
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
82
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
83
|
+
if (!apiVersion) {
|
|
84
|
+
return;
|
|
85
|
+
}
|
|
86
|
+
const apiVersionPolicy = {
|
|
87
|
+
name: "CustomApiVersionPolicy",
|
|
88
|
+
async sendRequest(request, next) {
|
|
89
|
+
const param = request.url.split("?");
|
|
90
|
+
if (param.length > 1) {
|
|
91
|
+
const newParams = param[1].split("&").map((item) => {
|
|
92
|
+
if (item.indexOf("api-version") > -1) {
|
|
93
|
+
return "api-version=" + apiVersion;
|
|
94
|
+
}
|
|
95
|
+
else {
|
|
96
|
+
return item;
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
100
|
+
}
|
|
101
|
+
return next(request);
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
105
|
+
}
|
|
106
|
+
operations;
|
|
107
|
+
dpsCertificate;
|
|
108
|
+
iotDpsResource;
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=iotDpsClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"iotDpsClient.js","sourceRoot":"","sources":["../../src/iotDpsClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAO9D,OAAO,EACL,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EACnB,MAAM,uBAAuB,CAAC;AAQ/B,MAAM,OAAO,YAAa,SAAQ,UAAU,CAAC,aAAa;IACxD,KAAK,CAAS;IACd,UAAU,CAAS;IACnB,cAAc,CAAS;IAEvB;;;;;OAKG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAoC;QAEpC,IAAI,WAAW,KAAK,SAAS,EAAE,CAAC;YAC9B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;QAClD,CAAC;QACD,IAAI,cAAc,KAAK,SAAS,EAAE,CAAC;YACjC,MAAM,IAAI,KAAK,CAAC,iCAAiC,CAAC,CAAC;QACrD,CAAC;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;YACb,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,MAAM,QAAQ,GAA+B;YAC3C,k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,EAAE,CAAC;4BACrC,OAAO,cAAc,GAAG,UAAU,CAAC;wBACrC,CAAC;6BAAM,CAAC;4BACN,OAAO,IAAI,CAAC;wBACd,CAAC;oBACH,CAAC,CAAC,CAAC;oBACH,OAAO,CAAC,GAAG,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,GAAG,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;gBACrD,CAAC;gBACD,OAAO,IAAI,CAAC,OAAO,CAAC,CAAC;YACvB,CAAC;SACF,CAAC;QACF,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,CAAC;IAED,UAAU,CAAa;IACvB,cAAc,CAAiB;IAC/B,cAAc,CAAiB;CAChC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n OperationsImpl,\n DpsCertificateImpl,\n IotDpsResourceImpl\n} from \"./operations/index.js\";\nimport {\n Operations,\n DpsCertificate,\n IotDpsResource\n} from \"./operationsInterfaces/index.js\";\nimport { IotDpsClientOptionalParams } from \"./models/index.js\";\n\nexport class IotDpsClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the IotDpsClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The subscription identifier.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: IotDpsClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: IotDpsClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-deviceprovisioningservices/6.0.0-beta.2`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2023-03-01-preview\";\n this.operations = new OperationsImpl(this);\n this.dpsCertificate = new DpsCertificateImpl(this);\n this.iotDpsResource = new IotDpsResourceImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n }\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n operations: Operations;\n dpsCertificate: DpsCertificate;\n iotDpsResource: IotDpsResource;\n}\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
|
2
|
+
export declare function createLroSpec<T>(inputs: {
|
|
3
|
+
sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
|
|
4
|
+
args: Record<string, unknown>;
|
|
5
|
+
spec: {
|
|
6
|
+
readonly requestBody?: unknown;
|
|
7
|
+
readonly path?: string;
|
|
8
|
+
readonly httpMethod: string;
|
|
9
|
+
} & Record<string, any>;
|
|
10
|
+
}): LongRunningOperation<T>;
|
|
11
|
+
//# sourceMappingURL=lroImpl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAmB1B"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export function createLroSpec(inputs) {
|
|
2
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
3
|
+
return {
|
|
4
|
+
requestMethod: spec.httpMethod,
|
|
5
|
+
requestPath: spec.path,
|
|
6
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
7
|
+
sendPollRequest: (path, options) => {
|
|
8
|
+
const { requestBody, ...restSpec } = spec;
|
|
9
|
+
return sendOperationFn(args, {
|
|
10
|
+
...restSpec,
|
|
11
|
+
httpMethod: "GET",
|
|
12
|
+
path,
|
|
13
|
+
abortSignal: options?.abortSignal
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=lroImpl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAUA,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,EAAE;gBAC3B,GAAG,QAAQ;gBACX,UAAU,EAAE,KAAK;gBACjB,IAAI;gBACJ,WAAW,EAAE,OAAO,EAAE,WAAW;aAClC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike }\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal\n });\n }\n };\n}\n"]}
|