@azure/arm-deviceprovisioningservices 6.0.0-beta.2 → 6.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +9 -12
- package/dist/browser/api/dpsCertificate/index.d.ts +3 -0
- package/dist/browser/api/dpsCertificate/index.js +4 -0
- package/dist/browser/api/dpsCertificate/index.js.map +1 -0
- package/dist/browser/api/dpsCertificate/operations.d.ts +35 -0
- package/dist/browser/api/dpsCertificate/operations.js +258 -0
- package/dist/browser/api/dpsCertificate/operations.js.map +1 -0
- package/dist/browser/api/dpsCertificate/options.d.ts +73 -0
- package/dist/browser/api/dpsCertificate/options.js +4 -0
- package/dist/browser/api/dpsCertificate/options.js.map +1 -0
- package/dist/browser/api/index.d.ts +2 -0
- package/dist/browser/api/index.js +4 -0
- package/dist/browser/api/index.js.map +1 -0
- package/dist/browser/api/iotDpsContext.d.ts +22 -0
- package/dist/browser/api/iotDpsContext.js +39 -0
- package/dist/browser/api/iotDpsContext.js.map +1 -0
- package/dist/browser/api/iotDpsResource/index.d.ts +3 -0
- package/dist/browser/api/iotDpsResource/index.js +4 -0
- package/dist/browser/api/iotDpsResource/index.js.map +1 -0
- package/dist/browser/api/iotDpsResource/operations.d.ts +80 -0
- package/dist/browser/api/iotDpsResource/operations.js +603 -0
- package/dist/browser/api/iotDpsResource/operations.js.map +1 -0
- package/dist/browser/api/iotDpsResource/options.d.ts +63 -0
- package/dist/browser/api/iotDpsResource/options.js +4 -0
- package/dist/browser/api/iotDpsResource/options.js.map +1 -0
- package/dist/browser/api/operations/index.d.ts +3 -0
- package/dist/browser/api/operations/index.js +4 -0
- package/dist/browser/api/operations/index.js.map +1 -0
- package/dist/browser/api/operations/operations.d.ts +10 -0
- package/dist/browser/api/operations/operations.js +34 -0
- package/dist/browser/api/operations/operations.js.map +1 -0
- package/dist/browser/api/operations/options.d.ts +5 -0
- package/dist/browser/api/operations/options.js +4 -0
- package/dist/browser/api/operations/options.js.map +1 -0
- package/dist/browser/classic/dpsCertificate/index.d.ts +26 -0
- package/dist/browser/classic/dpsCertificate/index.js +19 -0
- package/dist/browser/classic/dpsCertificate/index.js.map +1 -0
- package/dist/browser/classic/index.d.ts +4 -0
- package/dist/browser/classic/index.js +4 -0
- package/dist/browser/classic/index.js.map +1 -0
- package/dist/browser/classic/iotDpsResource/index.d.ts +49 -0
- package/dist/browser/classic/iotDpsResource/index.js +30 -0
- package/dist/browser/classic/iotDpsResource/index.js.map +1 -0
- package/dist/browser/classic/operations/index.d.ts +11 -0
- package/dist/browser/classic/operations/index.js +14 -0
- package/dist/browser/classic/operations/index.js.map +1 -0
- package/dist/browser/index.d.ts +11 -3
- package/dist/browser/index.js +6 -11
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/iotDpsClient.d.ts +19 -20
- package/dist/browser/iotDpsClient.js +28 -105
- package/dist/browser/iotDpsClient.js.map +1 -1
- package/dist/browser/logger.d.ts +2 -0
- package/dist/browser/logger.js +5 -0
- package/dist/browser/logger.js.map +1 -0
- package/dist/browser/models/index.d.ts +1 -978
- package/dist/browser/models/index.js +3 -127
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +710 -0
- package/dist/browser/models/models.js +749 -0
- package/dist/browser/models/models.js.map +1 -0
- package/dist/browser/restorePollerHelpers.d.ts +21 -0
- package/dist/browser/restorePollerHelpers.js +104 -0
- package/dist/browser/restorePollerHelpers.js.map +1 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js +38 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/browser/static-helpers/pagingHelpers.js +118 -0
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/browser/static-helpers/pollingHelpers.js +79 -0
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/browser/static-helpers/urlTemplate.js +185 -0
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/api/dpsCertificate/index.d.ts +3 -0
- package/dist/commonjs/api/dpsCertificate/index.js +13 -0
- package/dist/commonjs/api/dpsCertificate/index.js.map +1 -0
- package/dist/commonjs/api/dpsCertificate/operations.d.ts +35 -0
- package/dist/commonjs/api/dpsCertificate/operations.js +278 -0
- package/dist/commonjs/api/dpsCertificate/operations.js.map +1 -0
- package/dist/commonjs/api/dpsCertificate/options.d.ts +73 -0
- package/dist/commonjs/api/dpsCertificate/options.js +5 -0
- package/dist/commonjs/api/dpsCertificate/options.js.map +1 -0
- package/dist/commonjs/api/index.d.ts +2 -0
- package/dist/commonjs/api/index.js +8 -0
- package/dist/commonjs/api/index.js.map +1 -0
- package/dist/commonjs/api/iotDpsContext.d.ts +22 -0
- package/dist/commonjs/api/iotDpsContext.js +42 -0
- package/dist/commonjs/api/iotDpsContext.js.map +1 -0
- package/dist/commonjs/api/iotDpsResource/index.d.ts +3 -0
- package/dist/commonjs/api/iotDpsResource/index.js +24 -0
- package/dist/commonjs/api/iotDpsResource/index.js.map +1 -0
- package/dist/commonjs/api/iotDpsResource/operations.d.ts +80 -0
- package/dist/commonjs/api/iotDpsResource/operations.js +656 -0
- package/dist/commonjs/api/iotDpsResource/operations.js.map +1 -0
- package/dist/commonjs/api/iotDpsResource/options.d.ts +63 -0
- package/dist/commonjs/api/iotDpsResource/options.js +5 -0
- package/dist/commonjs/api/iotDpsResource/options.js.map +1 -0
- package/dist/commonjs/api/operations/index.d.ts +3 -0
- package/dist/commonjs/api/operations/index.js +8 -0
- package/dist/commonjs/api/operations/index.js.map +1 -0
- package/dist/commonjs/api/operations/operations.d.ts +10 -0
- package/dist/commonjs/api/operations/operations.js +39 -0
- package/dist/commonjs/api/operations/operations.js.map +1 -0
- package/dist/commonjs/api/operations/options.d.ts +5 -0
- package/dist/commonjs/api/operations/options.js +5 -0
- package/dist/commonjs/api/operations/options.js.map +1 -0
- package/dist/commonjs/classic/dpsCertificate/index.d.ts +26 -0
- package/dist/commonjs/classic/dpsCertificate/index.js +22 -0
- package/dist/commonjs/classic/dpsCertificate/index.js.map +1 -0
- package/dist/commonjs/classic/index.d.ts +4 -0
- package/dist/commonjs/classic/index.js +5 -0
- package/dist/commonjs/classic/index.js.map +1 -0
- package/dist/commonjs/classic/iotDpsResource/index.d.ts +49 -0
- package/dist/commonjs/classic/iotDpsResource/index.js +33 -0
- package/dist/commonjs/classic/iotDpsResource/index.js.map +1 -0
- package/dist/commonjs/classic/operations/index.d.ts +11 -0
- package/dist/commonjs/classic/operations/index.js +17 -0
- package/dist/commonjs/classic/operations/index.js.map +1 -0
- package/dist/commonjs/index.d.ts +11 -3
- package/dist/commonjs/index.js +20 -14
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/iotDpsClient.d.ts +19 -20
- package/dist/commonjs/iotDpsClient.js +28 -106
- package/dist/commonjs/iotDpsClient.js.map +1 -1
- package/dist/commonjs/logger.d.ts +2 -0
- package/dist/commonjs/logger.js +8 -0
- package/dist/commonjs/logger.js.map +1 -0
- package/dist/commonjs/models/index.d.ts +1 -978
- package/dist/commonjs/models/index.js +16 -128
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/models.d.ts +710 -0
- package/dist/commonjs/models/models.js +833 -0
- package/dist/commonjs/models/models.js.map +1 -0
- package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
- package/dist/commonjs/restorePollerHelpers.js +107 -0
- package/dist/commonjs/restorePollerHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js +42 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js +121 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js +82 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/commonjs/static-helpers/urlTemplate.js +188 -0
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/api/dpsCertificate/index.d.ts +3 -0
- package/dist/esm/api/dpsCertificate/index.js +4 -0
- package/dist/esm/api/dpsCertificate/index.js.map +1 -0
- package/dist/esm/api/dpsCertificate/operations.d.ts +35 -0
- package/dist/esm/api/dpsCertificate/operations.js +258 -0
- package/dist/esm/api/dpsCertificate/operations.js.map +1 -0
- package/dist/esm/api/dpsCertificate/options.d.ts +73 -0
- package/dist/esm/api/dpsCertificate/options.js +4 -0
- package/dist/esm/api/dpsCertificate/options.js.map +1 -0
- package/dist/esm/api/index.d.ts +2 -0
- package/dist/esm/api/index.js +4 -0
- package/dist/esm/api/index.js.map +1 -0
- package/dist/esm/api/iotDpsContext.d.ts +22 -0
- package/dist/esm/api/iotDpsContext.js +39 -0
- package/dist/esm/api/iotDpsContext.js.map +1 -0
- package/dist/esm/api/iotDpsResource/index.d.ts +3 -0
- package/dist/esm/api/iotDpsResource/index.js +4 -0
- package/dist/esm/api/iotDpsResource/index.js.map +1 -0
- package/dist/esm/api/iotDpsResource/operations.d.ts +80 -0
- package/dist/esm/api/iotDpsResource/operations.js +603 -0
- package/dist/esm/api/iotDpsResource/operations.js.map +1 -0
- package/dist/esm/api/iotDpsResource/options.d.ts +63 -0
- package/dist/esm/api/iotDpsResource/options.js +4 -0
- package/dist/esm/api/iotDpsResource/options.js.map +1 -0
- package/dist/esm/api/operations/index.d.ts +3 -0
- package/dist/esm/api/operations/index.js +4 -0
- package/dist/esm/api/operations/index.js.map +1 -0
- package/dist/esm/api/operations/operations.d.ts +10 -0
- package/dist/esm/api/operations/operations.js +34 -0
- package/dist/esm/api/operations/operations.js.map +1 -0
- package/dist/esm/api/operations/options.d.ts +5 -0
- package/dist/esm/api/operations/options.js +4 -0
- package/dist/esm/api/operations/options.js.map +1 -0
- package/dist/esm/classic/dpsCertificate/index.d.ts +26 -0
- package/dist/esm/classic/dpsCertificate/index.js +19 -0
- package/dist/esm/classic/dpsCertificate/index.js.map +1 -0
- package/dist/esm/classic/index.d.ts +4 -0
- package/dist/esm/classic/index.js +4 -0
- package/dist/esm/classic/index.js.map +1 -0
- package/dist/esm/classic/iotDpsResource/index.d.ts +49 -0
- package/dist/esm/classic/iotDpsResource/index.js +30 -0
- package/dist/esm/classic/iotDpsResource/index.js.map +1 -0
- package/dist/esm/classic/operations/index.d.ts +11 -0
- package/dist/esm/classic/operations/index.js +14 -0
- package/dist/esm/classic/operations/index.js.map +1 -0
- package/dist/esm/index.d.ts +11 -3
- package/dist/esm/index.js +6 -11
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/iotDpsClient.d.ts +19 -20
- package/dist/esm/iotDpsClient.js +28 -105
- package/dist/esm/iotDpsClient.js.map +1 -1
- package/dist/esm/logger.d.ts +2 -0
- package/dist/esm/logger.js +5 -0
- package/dist/esm/logger.js.map +1 -0
- package/dist/esm/models/index.d.ts +1 -978
- package/dist/esm/models/index.js +3 -127
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +710 -0
- package/dist/esm/models/models.js +749 -0
- package/dist/esm/models/models.js.map +1 -0
- package/dist/esm/restorePollerHelpers.d.ts +21 -0
- package/dist/esm/restorePollerHelpers.js +104 -0
- package/dist/esm/restorePollerHelpers.js.map +1 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js +38 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/esm/static-helpers/pagingHelpers.js +118 -0
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/esm/static-helpers/pollingHelpers.js +79 -0
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/esm/static-helpers/urlTemplate.js +185 -0
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
- package/dist/react-native/api/dpsCertificate/index.d.ts +3 -0
- package/dist/react-native/api/dpsCertificate/index.js +4 -0
- package/dist/react-native/api/dpsCertificate/index.js.map +1 -0
- package/dist/react-native/api/dpsCertificate/operations.d.ts +35 -0
- package/dist/react-native/api/dpsCertificate/operations.js +258 -0
- package/dist/react-native/api/dpsCertificate/operations.js.map +1 -0
- package/dist/react-native/api/dpsCertificate/options.d.ts +73 -0
- package/dist/react-native/api/dpsCertificate/options.js +4 -0
- package/dist/react-native/api/dpsCertificate/options.js.map +1 -0
- package/dist/react-native/api/index.d.ts +2 -0
- package/dist/react-native/api/index.js +4 -0
- package/dist/react-native/api/index.js.map +1 -0
- package/dist/react-native/api/iotDpsContext.d.ts +22 -0
- package/dist/react-native/api/iotDpsContext.js +39 -0
- package/dist/react-native/api/iotDpsContext.js.map +1 -0
- package/dist/react-native/api/iotDpsResource/index.d.ts +3 -0
- package/dist/react-native/api/iotDpsResource/index.js +4 -0
- package/dist/react-native/api/iotDpsResource/index.js.map +1 -0
- package/dist/react-native/api/iotDpsResource/operations.d.ts +80 -0
- package/dist/react-native/api/iotDpsResource/operations.js +603 -0
- package/dist/react-native/api/iotDpsResource/operations.js.map +1 -0
- package/dist/react-native/api/iotDpsResource/options.d.ts +63 -0
- package/dist/react-native/api/iotDpsResource/options.js +4 -0
- package/dist/react-native/api/iotDpsResource/options.js.map +1 -0
- package/dist/react-native/api/operations/index.d.ts +3 -0
- package/dist/react-native/api/operations/index.js +4 -0
- package/dist/react-native/api/operations/index.js.map +1 -0
- package/dist/react-native/api/operations/operations.d.ts +10 -0
- package/dist/react-native/api/operations/operations.js +34 -0
- package/dist/react-native/api/operations/operations.js.map +1 -0
- package/dist/react-native/api/operations/options.d.ts +5 -0
- package/dist/react-native/api/operations/options.js +4 -0
- package/dist/react-native/api/operations/options.js.map +1 -0
- package/dist/react-native/classic/dpsCertificate/index.d.ts +26 -0
- package/dist/react-native/classic/dpsCertificate/index.js +19 -0
- package/dist/react-native/classic/dpsCertificate/index.js.map +1 -0
- package/dist/react-native/classic/index.d.ts +4 -0
- package/dist/react-native/classic/index.js +4 -0
- package/dist/react-native/classic/index.js.map +1 -0
- package/dist/react-native/classic/iotDpsResource/index.d.ts +49 -0
- package/dist/react-native/classic/iotDpsResource/index.js +30 -0
- package/dist/react-native/classic/iotDpsResource/index.js.map +1 -0
- package/dist/react-native/classic/operations/index.d.ts +11 -0
- package/dist/react-native/classic/operations/index.js +14 -0
- package/dist/react-native/classic/operations/index.js.map +1 -0
- package/dist/react-native/index.d.ts +11 -3
- package/dist/react-native/index.js +6 -11
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/iotDpsClient.d.ts +19 -20
- package/dist/react-native/iotDpsClient.js +28 -105
- package/dist/react-native/iotDpsClient.js.map +1 -1
- package/dist/react-native/logger.d.ts +2 -0
- package/dist/react-native/logger.js +5 -0
- package/dist/react-native/logger.js.map +1 -0
- package/dist/react-native/models/index.d.ts +1 -978
- package/dist/react-native/models/index.js +3 -127
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/models.d.ts +710 -0
- package/dist/react-native/models/models.js +749 -0
- package/dist/react-native/models/models.js.map +1 -0
- package/dist/react-native/restorePollerHelpers.d.ts +21 -0
- package/dist/react-native/restorePollerHelpers.js +104 -0
- package/dist/react-native/restorePollerHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/react-native/static-helpers/cloudSettingHelpers.js +38 -0
- package/dist/react-native/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/pagingHelpers.d.ts +72 -0
- package/dist/react-native/static-helpers/pagingHelpers.js +118 -0
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/pollingHelpers.d.ts +30 -0
- package/dist/react-native/static-helpers/pollingHelpers.js +79 -0
- package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/react-native/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/react-native/static-helpers/urlTemplate.js +185 -0
- package/dist/react-native/static-helpers/urlTemplate.js.map +1 -0
- package/package.json +141 -38
- package/CHANGELOG.md +0 -83
- package/dist/browser/index.d.ts.map +0 -1
- package/dist/browser/iotDpsClient.d.ts.map +0 -1
- package/dist/browser/lroImpl.d.ts +0 -11
- package/dist/browser/lroImpl.d.ts.map +0 -1
- package/dist/browser/lroImpl.js +0 -18
- package/dist/browser/lroImpl.js.map +0 -1
- package/dist/browser/models/index.d.ts.map +0 -1
- package/dist/browser/models/mappers.d.ts +0 -40
- package/dist/browser/models/mappers.d.ts.map +0 -1
- package/dist/browser/models/mappers.js +0 -1268
- package/dist/browser/models/mappers.js.map +0 -1
- package/dist/browser/models/parameters.d.ts +0 -34
- package/dist/browser/models/parameters.d.ts.map +0 -1
- package/dist/browser/models/parameters.js +0 -293
- package/dist/browser/models/parameters.js.map +0 -1
- package/dist/browser/operations/dpsCertificate.d.ts +0 -70
- package/dist/browser/operations/dpsCertificate.d.ts.map +0 -1
- package/dist/browser/operations/dpsCertificate.js +0 -290
- package/dist/browser/operations/dpsCertificate.js.map +0 -1
- package/dist/browser/operations/index.d.ts +0 -4
- package/dist/browser/operations/index.d.ts.map +0 -1
- package/dist/browser/operations/index.js +0 -11
- package/dist/browser/operations/index.js.map +0 -1
- package/dist/browser/operations/iotDpsResource.d.ts +0 -253
- package/dist/browser/operations/iotDpsResource.d.ts.map +0 -1
- package/dist/browser/operations/iotDpsResource.js +0 -1170
- package/dist/browser/operations/iotDpsResource.js.map +0 -1
- package/dist/browser/operations/operations.d.ts +0 -32
- package/dist/browser/operations/operations.d.ts.map +0 -1
- package/dist/browser/operations/operations.js +0 -116
- package/dist/browser/operations/operations.js.map +0 -1
- package/dist/browser/operationsInterfaces/dpsCertificate.d.ts +0 -62
- package/dist/browser/operationsInterfaces/dpsCertificate.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/dpsCertificate.js +0 -9
- package/dist/browser/operationsInterfaces/dpsCertificate.js.map +0 -1
- package/dist/browser/operationsInterfaces/index.d.ts +0 -4
- package/dist/browser/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/index.js +0 -11
- package/dist/browser/operationsInterfaces/index.js.map +0 -1
- package/dist/browser/operationsInterfaces/iotDpsResource.d.ts +0 -183
- package/dist/browser/operationsInterfaces/iotDpsResource.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/iotDpsResource.js +0 -9
- package/dist/browser/operationsInterfaces/iotDpsResource.js.map +0 -1
- package/dist/browser/operationsInterfaces/operations.d.ts +0 -11
- package/dist/browser/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/operations.js +0 -9
- package/dist/browser/operationsInterfaces/operations.js.map +0 -1
- package/dist/browser/pagingHelper.d.ts +0 -13
- package/dist/browser/pagingHelper.d.ts.map +0 -1
- package/dist/browser/pagingHelper.js +0 -30
- package/dist/browser/pagingHelper.js.map +0 -1
- package/dist/commonjs/index.d.ts.map +0 -1
- package/dist/commonjs/iotDpsClient.d.ts.map +0 -1
- package/dist/commonjs/lroImpl.d.ts +0 -11
- package/dist/commonjs/lroImpl.d.ts.map +0 -1
- package/dist/commonjs/lroImpl.js +0 -21
- package/dist/commonjs/lroImpl.js.map +0 -1
- package/dist/commonjs/models/index.d.ts.map +0 -1
- package/dist/commonjs/models/mappers.d.ts +0 -40
- package/dist/commonjs/models/mappers.d.ts.map +0 -1
- package/dist/commonjs/models/mappers.js +0 -1271
- package/dist/commonjs/models/mappers.js.map +0 -1
- package/dist/commonjs/models/parameters.d.ts +0 -34
- package/dist/commonjs/models/parameters.d.ts.map +0 -1
- package/dist/commonjs/models/parameters.js +0 -296
- package/dist/commonjs/models/parameters.js.map +0 -1
- package/dist/commonjs/operations/dpsCertificate.d.ts +0 -70
- package/dist/commonjs/operations/dpsCertificate.d.ts.map +0 -1
- package/dist/commonjs/operations/dpsCertificate.js +0 -295
- package/dist/commonjs/operations/dpsCertificate.js.map +0 -1
- package/dist/commonjs/operations/index.d.ts +0 -4
- package/dist/commonjs/operations/index.d.ts.map +0 -1
- package/dist/commonjs/operations/index.js +0 -14
- package/dist/commonjs/operations/index.js.map +0 -1
- package/dist/commonjs/operations/iotDpsResource.d.ts +0 -253
- package/dist/commonjs/operations/iotDpsResource.d.ts.map +0 -1
- package/dist/commonjs/operations/iotDpsResource.js +0 -1175
- package/dist/commonjs/operations/iotDpsResource.js.map +0 -1
- package/dist/commonjs/operations/operations.d.ts +0 -32
- package/dist/commonjs/operations/operations.d.ts.map +0 -1
- package/dist/commonjs/operations/operations.js +0 -121
- package/dist/commonjs/operations/operations.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/dpsCertificate.d.ts +0 -62
- package/dist/commonjs/operationsInterfaces/dpsCertificate.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/dpsCertificate.js +0 -10
- package/dist/commonjs/operationsInterfaces/dpsCertificate.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/index.d.ts +0 -4
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/index.js +0 -14
- package/dist/commonjs/operationsInterfaces/index.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/iotDpsResource.d.ts +0 -183
- package/dist/commonjs/operationsInterfaces/iotDpsResource.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/iotDpsResource.js +0 -10
- package/dist/commonjs/operationsInterfaces/iotDpsResource.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/operations.d.ts +0 -11
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/operations.js +0 -10
- package/dist/commonjs/operationsInterfaces/operations.js.map +0 -1
- package/dist/commonjs/pagingHelper.d.ts +0 -13
- package/dist/commonjs/pagingHelper.d.ts.map +0 -1
- package/dist/commonjs/pagingHelper.js +0 -34
- package/dist/commonjs/pagingHelper.js.map +0 -1
- package/dist/esm/index.d.ts.map +0 -1
- package/dist/esm/iotDpsClient.d.ts.map +0 -1
- package/dist/esm/lroImpl.d.ts +0 -11
- package/dist/esm/lroImpl.d.ts.map +0 -1
- package/dist/esm/lroImpl.js +0 -18
- package/dist/esm/lroImpl.js.map +0 -1
- package/dist/esm/models/index.d.ts.map +0 -1
- package/dist/esm/models/mappers.d.ts +0 -40
- package/dist/esm/models/mappers.d.ts.map +0 -1
- package/dist/esm/models/mappers.js +0 -1268
- package/dist/esm/models/mappers.js.map +0 -1
- package/dist/esm/models/parameters.d.ts +0 -34
- package/dist/esm/models/parameters.d.ts.map +0 -1
- package/dist/esm/models/parameters.js +0 -293
- package/dist/esm/models/parameters.js.map +0 -1
- package/dist/esm/operations/dpsCertificate.d.ts +0 -70
- package/dist/esm/operations/dpsCertificate.d.ts.map +0 -1
- package/dist/esm/operations/dpsCertificate.js +0 -290
- package/dist/esm/operations/dpsCertificate.js.map +0 -1
- package/dist/esm/operations/index.d.ts +0 -4
- package/dist/esm/operations/index.d.ts.map +0 -1
- package/dist/esm/operations/index.js +0 -11
- package/dist/esm/operations/index.js.map +0 -1
- package/dist/esm/operations/iotDpsResource.d.ts +0 -253
- package/dist/esm/operations/iotDpsResource.d.ts.map +0 -1
- package/dist/esm/operations/iotDpsResource.js +0 -1170
- package/dist/esm/operations/iotDpsResource.js.map +0 -1
- package/dist/esm/operations/operations.d.ts +0 -32
- package/dist/esm/operations/operations.d.ts.map +0 -1
- package/dist/esm/operations/operations.js +0 -116
- package/dist/esm/operations/operations.js.map +0 -1
- package/dist/esm/operationsInterfaces/dpsCertificate.d.ts +0 -62
- package/dist/esm/operationsInterfaces/dpsCertificate.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/dpsCertificate.js +0 -9
- package/dist/esm/operationsInterfaces/dpsCertificate.js.map +0 -1
- package/dist/esm/operationsInterfaces/index.d.ts +0 -4
- package/dist/esm/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/index.js +0 -11
- package/dist/esm/operationsInterfaces/index.js.map +0 -1
- package/dist/esm/operationsInterfaces/iotDpsResource.d.ts +0 -183
- package/dist/esm/operationsInterfaces/iotDpsResource.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/iotDpsResource.js +0 -9
- package/dist/esm/operationsInterfaces/iotDpsResource.js.map +0 -1
- package/dist/esm/operationsInterfaces/operations.d.ts +0 -11
- package/dist/esm/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/operations.js +0 -9
- package/dist/esm/operationsInterfaces/operations.js.map +0 -1
- package/dist/esm/pagingHelper.d.ts +0 -13
- package/dist/esm/pagingHelper.d.ts.map +0 -1
- package/dist/esm/pagingHelper.js +0 -30
- package/dist/esm/pagingHelper.js.map +0 -1
- package/dist/react-native/index.d.ts.map +0 -1
- package/dist/react-native/iotDpsClient.d.ts.map +0 -1
- package/dist/react-native/lroImpl.d.ts +0 -11
- package/dist/react-native/lroImpl.d.ts.map +0 -1
- package/dist/react-native/lroImpl.js +0 -18
- package/dist/react-native/lroImpl.js.map +0 -1
- package/dist/react-native/models/index.d.ts.map +0 -1
- package/dist/react-native/models/mappers.d.ts +0 -40
- package/dist/react-native/models/mappers.d.ts.map +0 -1
- package/dist/react-native/models/mappers.js +0 -1268
- package/dist/react-native/models/mappers.js.map +0 -1
- package/dist/react-native/models/parameters.d.ts +0 -34
- package/dist/react-native/models/parameters.d.ts.map +0 -1
- package/dist/react-native/models/parameters.js +0 -293
- package/dist/react-native/models/parameters.js.map +0 -1
- package/dist/react-native/operations/dpsCertificate.d.ts +0 -70
- package/dist/react-native/operations/dpsCertificate.d.ts.map +0 -1
- package/dist/react-native/operations/dpsCertificate.js +0 -290
- package/dist/react-native/operations/dpsCertificate.js.map +0 -1
- package/dist/react-native/operations/index.d.ts +0 -4
- package/dist/react-native/operations/index.d.ts.map +0 -1
- package/dist/react-native/operations/index.js +0 -11
- package/dist/react-native/operations/index.js.map +0 -1
- package/dist/react-native/operations/iotDpsResource.d.ts +0 -253
- package/dist/react-native/operations/iotDpsResource.d.ts.map +0 -1
- package/dist/react-native/operations/iotDpsResource.js +0 -1170
- package/dist/react-native/operations/iotDpsResource.js.map +0 -1
- package/dist/react-native/operations/operations.d.ts +0 -32
- package/dist/react-native/operations/operations.d.ts.map +0 -1
- package/dist/react-native/operations/operations.js +0 -116
- package/dist/react-native/operations/operations.js.map +0 -1
- package/dist/react-native/operationsInterfaces/dpsCertificate.d.ts +0 -62
- package/dist/react-native/operationsInterfaces/dpsCertificate.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/dpsCertificate.js +0 -9
- package/dist/react-native/operationsInterfaces/dpsCertificate.js.map +0 -1
- package/dist/react-native/operationsInterfaces/index.d.ts +0 -4
- package/dist/react-native/operationsInterfaces/index.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/index.js +0 -11
- package/dist/react-native/operationsInterfaces/index.js.map +0 -1
- package/dist/react-native/operationsInterfaces/iotDpsResource.d.ts +0 -183
- package/dist/react-native/operationsInterfaces/iotDpsResource.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/iotDpsResource.js +0 -9
- package/dist/react-native/operationsInterfaces/iotDpsResource.js.map +0 -1
- package/dist/react-native/operationsInterfaces/operations.d.ts +0 -11
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/operations.js +0 -9
- package/dist/react-native/operationsInterfaces/operations.js.map +0 -1
- package/dist/react-native/pagingHelper.d.ts +0 -13
- package/dist/react-native/pagingHelper.d.ts.map +0 -1
- package/dist/react-native/pagingHelper.js +0 -30
- package/dist/react-native/pagingHelper.js.map +0 -1
- package/review/arm-deviceprovisioningservices-node.api.md +0 -724
|
@@ -0,0 +1,656 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports._checkProvisioningServiceNameAvailabilitySend = _checkProvisioningServiceNameAvailabilitySend;
|
|
6
|
+
exports._checkProvisioningServiceNameAvailabilityDeserialize = _checkProvisioningServiceNameAvailabilityDeserialize;
|
|
7
|
+
exports.checkProvisioningServiceNameAvailability = checkProvisioningServiceNameAvailability;
|
|
8
|
+
exports._listPrivateEndpointConnectionsSend = _listPrivateEndpointConnectionsSend;
|
|
9
|
+
exports._listPrivateEndpointConnectionsDeserialize = _listPrivateEndpointConnectionsDeserialize;
|
|
10
|
+
exports.listPrivateEndpointConnections = listPrivateEndpointConnections;
|
|
11
|
+
exports._deletePrivateEndpointConnectionSend = _deletePrivateEndpointConnectionSend;
|
|
12
|
+
exports._deletePrivateEndpointConnectionDeserialize = _deletePrivateEndpointConnectionDeserialize;
|
|
13
|
+
exports.deletePrivateEndpointConnection = deletePrivateEndpointConnection;
|
|
14
|
+
exports._createOrUpdatePrivateEndpointConnectionSend = _createOrUpdatePrivateEndpointConnectionSend;
|
|
15
|
+
exports._createOrUpdatePrivateEndpointConnectionDeserialize = _createOrUpdatePrivateEndpointConnectionDeserialize;
|
|
16
|
+
exports.createOrUpdatePrivateEndpointConnection = createOrUpdatePrivateEndpointConnection;
|
|
17
|
+
exports._getPrivateEndpointConnectionSend = _getPrivateEndpointConnectionSend;
|
|
18
|
+
exports._getPrivateEndpointConnectionDeserialize = _getPrivateEndpointConnectionDeserialize;
|
|
19
|
+
exports.getPrivateEndpointConnection = getPrivateEndpointConnection;
|
|
20
|
+
exports._listPrivateLinkResourcesSend = _listPrivateLinkResourcesSend;
|
|
21
|
+
exports._listPrivateLinkResourcesDeserialize = _listPrivateLinkResourcesDeserialize;
|
|
22
|
+
exports.listPrivateLinkResources = listPrivateLinkResources;
|
|
23
|
+
exports._getPrivateLinkResourcesSend = _getPrivateLinkResourcesSend;
|
|
24
|
+
exports._getPrivateLinkResourcesDeserialize = _getPrivateLinkResourcesDeserialize;
|
|
25
|
+
exports.getPrivateLinkResources = getPrivateLinkResources;
|
|
26
|
+
exports._listKeysForKeyNameSend = _listKeysForKeyNameSend;
|
|
27
|
+
exports._listKeysForKeyNameDeserialize = _listKeysForKeyNameDeserialize;
|
|
28
|
+
exports.listKeysForKeyName = listKeysForKeyName;
|
|
29
|
+
exports._listKeysSend = _listKeysSend;
|
|
30
|
+
exports._listKeysDeserialize = _listKeysDeserialize;
|
|
31
|
+
exports.listKeys = listKeys;
|
|
32
|
+
exports._listValidSkusSend = _listValidSkusSend;
|
|
33
|
+
exports._listValidSkusDeserialize = _listValidSkusDeserialize;
|
|
34
|
+
exports.listValidSkus = listValidSkus;
|
|
35
|
+
exports._listBySubscriptionSend = _listBySubscriptionSend;
|
|
36
|
+
exports._listBySubscriptionDeserialize = _listBySubscriptionDeserialize;
|
|
37
|
+
exports.listBySubscription = listBySubscription;
|
|
38
|
+
exports._listByResourceGroupSend = _listByResourceGroupSend;
|
|
39
|
+
exports._listByResourceGroupDeserialize = _listByResourceGroupDeserialize;
|
|
40
|
+
exports.listByResourceGroup = listByResourceGroup;
|
|
41
|
+
exports._$deleteSend = _$deleteSend;
|
|
42
|
+
exports._$deleteDeserialize = _$deleteDeserialize;
|
|
43
|
+
exports.$delete = $delete;
|
|
44
|
+
exports._updateSend = _updateSend;
|
|
45
|
+
exports._updateDeserialize = _updateDeserialize;
|
|
46
|
+
exports.update = update;
|
|
47
|
+
exports._createOrUpdateSend = _createOrUpdateSend;
|
|
48
|
+
exports._createOrUpdateDeserialize = _createOrUpdateDeserialize;
|
|
49
|
+
exports.createOrUpdate = createOrUpdate;
|
|
50
|
+
exports._getSend = _getSend;
|
|
51
|
+
exports._getDeserialize = _getDeserialize;
|
|
52
|
+
exports.get = get;
|
|
53
|
+
exports._getOperationResultSend = _getOperationResultSend;
|
|
54
|
+
exports._getOperationResultDeserialize = _getOperationResultDeserialize;
|
|
55
|
+
exports.getOperationResult = getOperationResult;
|
|
56
|
+
const models_js_1 = require("../../models/models.js");
|
|
57
|
+
const pagingHelpers_js_1 = require("../../static-helpers/pagingHelpers.js");
|
|
58
|
+
const pollingHelpers_js_1 = require("../../static-helpers/pollingHelpers.js");
|
|
59
|
+
const urlTemplate_js_1 = require("../../static-helpers/urlTemplate.js");
|
|
60
|
+
const core_client_1 = require("@azure-rest/core-client");
|
|
61
|
+
function _checkProvisioningServiceNameAvailabilitySend(context, argumentsParam, options = {
|
|
62
|
+
requestOptions: {},
|
|
63
|
+
}) {
|
|
64
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/providers/Microsoft.Devices/checkProvisioningServiceNameAvailability{?api%2Dversion}", {
|
|
65
|
+
subscriptionId: context.subscriptionId,
|
|
66
|
+
"api%2Dversion": context.apiVersion,
|
|
67
|
+
}, {
|
|
68
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
69
|
+
});
|
|
70
|
+
return context.path(path).post({
|
|
71
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
72
|
+
contentType: "application/json",
|
|
73
|
+
headers: {
|
|
74
|
+
accept: "application/json",
|
|
75
|
+
...options.requestOptions?.headers,
|
|
76
|
+
},
|
|
77
|
+
body: (0, models_js_1.operationInputsSerializer)(argumentsParam),
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
async function _checkProvisioningServiceNameAvailabilityDeserialize(result) {
|
|
81
|
+
const expectedStatuses = ["200"];
|
|
82
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
83
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
84
|
+
error.details = (0, models_js_1.errorDetailsDeserializer)(result.body);
|
|
85
|
+
throw error;
|
|
86
|
+
}
|
|
87
|
+
return (0, models_js_1.nameAvailabilityInfoDeserializer)(result.body);
|
|
88
|
+
}
|
|
89
|
+
/** Check if a provisioning service name is available. This will validate if the name is syntactically valid and if the name is usable */
|
|
90
|
+
async function checkProvisioningServiceNameAvailability(context, argumentsParam, options = {
|
|
91
|
+
requestOptions: {},
|
|
92
|
+
}) {
|
|
93
|
+
const result = await _checkProvisioningServiceNameAvailabilitySend(context, argumentsParam, options);
|
|
94
|
+
return _checkProvisioningServiceNameAvailabilityDeserialize(result);
|
|
95
|
+
}
|
|
96
|
+
function _listPrivateEndpointConnectionsSend(context, resourceGroupName, resourceName, options = {
|
|
97
|
+
requestOptions: {},
|
|
98
|
+
}) {
|
|
99
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections{?api%2Dversion}", {
|
|
100
|
+
subscriptionId: context.subscriptionId,
|
|
101
|
+
resourceGroupName: resourceGroupName,
|
|
102
|
+
resourceName: resourceName,
|
|
103
|
+
"api%2Dversion": context.apiVersion,
|
|
104
|
+
}, {
|
|
105
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
106
|
+
});
|
|
107
|
+
return context.path(path).get({
|
|
108
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
109
|
+
headers: {
|
|
110
|
+
accept: "application/json",
|
|
111
|
+
...options.requestOptions?.headers,
|
|
112
|
+
},
|
|
113
|
+
});
|
|
114
|
+
}
|
|
115
|
+
async function _listPrivateEndpointConnectionsDeserialize(result) {
|
|
116
|
+
const expectedStatuses = ["200"];
|
|
117
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
118
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
119
|
+
error.details = (0, models_js_1.errorDetailsDeserializer)(result.body);
|
|
120
|
+
throw error;
|
|
121
|
+
}
|
|
122
|
+
return (0, models_js_1.privateEndpointConnectionArrayDeserializer_1)(result.body);
|
|
123
|
+
}
|
|
124
|
+
/** List private endpoint connection properties */
|
|
125
|
+
async function listPrivateEndpointConnections(context, resourceGroupName, resourceName, options = {
|
|
126
|
+
requestOptions: {},
|
|
127
|
+
}) {
|
|
128
|
+
const result = await _listPrivateEndpointConnectionsSend(context, resourceGroupName, resourceName, options);
|
|
129
|
+
return _listPrivateEndpointConnectionsDeserialize(result);
|
|
130
|
+
}
|
|
131
|
+
function _deletePrivateEndpointConnectionSend(context, resourceGroupName, resourceName, privateEndpointConnectionName, options = {
|
|
132
|
+
requestOptions: {},
|
|
133
|
+
}) {
|
|
134
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}{?api%2Dversion}", {
|
|
135
|
+
subscriptionId: context.subscriptionId,
|
|
136
|
+
resourceGroupName: resourceGroupName,
|
|
137
|
+
resourceName: resourceName,
|
|
138
|
+
privateEndpointConnectionName: privateEndpointConnectionName,
|
|
139
|
+
"api%2Dversion": context.apiVersion,
|
|
140
|
+
}, {
|
|
141
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
142
|
+
});
|
|
143
|
+
return context.path(path).delete({
|
|
144
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
145
|
+
headers: {
|
|
146
|
+
accept: "application/json",
|
|
147
|
+
...options.requestOptions?.headers,
|
|
148
|
+
},
|
|
149
|
+
});
|
|
150
|
+
}
|
|
151
|
+
async function _deletePrivateEndpointConnectionDeserialize(result) {
|
|
152
|
+
const expectedStatuses = ["200", "202", "204"];
|
|
153
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
154
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
155
|
+
error.details = (0, models_js_1.errorDetailsDeserializer)(result.body);
|
|
156
|
+
throw error;
|
|
157
|
+
}
|
|
158
|
+
return (0, models_js_1.privateEndpointConnectionDeserializer)(result.body);
|
|
159
|
+
}
|
|
160
|
+
/** Delete private endpoint connection with the specified name */
|
|
161
|
+
function deletePrivateEndpointConnection(context, resourceGroupName, resourceName, privateEndpointConnectionName, options = {
|
|
162
|
+
requestOptions: {},
|
|
163
|
+
}) {
|
|
164
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _deletePrivateEndpointConnectionDeserialize, ["200", "202", "204"], {
|
|
165
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
166
|
+
abortSignal: options?.abortSignal,
|
|
167
|
+
getInitialResponse: () => _deletePrivateEndpointConnectionSend(context, resourceGroupName, resourceName, privateEndpointConnectionName, options),
|
|
168
|
+
resourceLocationConfig: "location",
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
function _createOrUpdatePrivateEndpointConnectionSend(context, resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, options = {
|
|
172
|
+
requestOptions: {},
|
|
173
|
+
}) {
|
|
174
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}{?api%2Dversion}", {
|
|
175
|
+
subscriptionId: context.subscriptionId,
|
|
176
|
+
resourceGroupName: resourceGroupName,
|
|
177
|
+
resourceName: resourceName,
|
|
178
|
+
privateEndpointConnectionName: privateEndpointConnectionName,
|
|
179
|
+
"api%2Dversion": context.apiVersion,
|
|
180
|
+
}, {
|
|
181
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
182
|
+
});
|
|
183
|
+
return context.path(path).put({
|
|
184
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
185
|
+
contentType: "application/json",
|
|
186
|
+
headers: {
|
|
187
|
+
accept: "application/json",
|
|
188
|
+
...options.requestOptions?.headers,
|
|
189
|
+
},
|
|
190
|
+
body: (0, models_js_1.privateEndpointConnectionSerializer)(privateEndpointConnection),
|
|
191
|
+
});
|
|
192
|
+
}
|
|
193
|
+
async function _createOrUpdatePrivateEndpointConnectionDeserialize(result) {
|
|
194
|
+
const expectedStatuses = ["200", "201", "202"];
|
|
195
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
196
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
197
|
+
error.details = (0, models_js_1.errorDetailsDeserializer)(result.body);
|
|
198
|
+
throw error;
|
|
199
|
+
}
|
|
200
|
+
return (0, models_js_1.privateEndpointConnectionDeserializer)(result.body);
|
|
201
|
+
}
|
|
202
|
+
/** Create or update the status of a private endpoint connection with the specified name */
|
|
203
|
+
function createOrUpdatePrivateEndpointConnection(context, resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, options = {
|
|
204
|
+
requestOptions: {},
|
|
205
|
+
}) {
|
|
206
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _createOrUpdatePrivateEndpointConnectionDeserialize, ["200", "201", "202"], {
|
|
207
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
208
|
+
abortSignal: options?.abortSignal,
|
|
209
|
+
getInitialResponse: () => _createOrUpdatePrivateEndpointConnectionSend(context, resourceGroupName, resourceName, privateEndpointConnectionName, privateEndpointConnection, options),
|
|
210
|
+
resourceLocationConfig: "location",
|
|
211
|
+
});
|
|
212
|
+
}
|
|
213
|
+
function _getPrivateEndpointConnectionSend(context, resourceGroupName, resourceName, privateEndpointConnectionName, options = {
|
|
214
|
+
requestOptions: {},
|
|
215
|
+
}) {
|
|
216
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateEndpointConnections/{privateEndpointConnectionName}{?api%2Dversion}", {
|
|
217
|
+
subscriptionId: context.subscriptionId,
|
|
218
|
+
resourceGroupName: resourceGroupName,
|
|
219
|
+
resourceName: resourceName,
|
|
220
|
+
privateEndpointConnectionName: privateEndpointConnectionName,
|
|
221
|
+
"api%2Dversion": context.apiVersion,
|
|
222
|
+
}, {
|
|
223
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
224
|
+
});
|
|
225
|
+
return context.path(path).get({
|
|
226
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
227
|
+
headers: {
|
|
228
|
+
accept: "application/json",
|
|
229
|
+
...options.requestOptions?.headers,
|
|
230
|
+
},
|
|
231
|
+
});
|
|
232
|
+
}
|
|
233
|
+
async function _getPrivateEndpointConnectionDeserialize(result) {
|
|
234
|
+
const expectedStatuses = ["200"];
|
|
235
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
236
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
237
|
+
error.details = (0, models_js_1.errorDetailsDeserializer)(result.body);
|
|
238
|
+
throw error;
|
|
239
|
+
}
|
|
240
|
+
return (0, models_js_1.privateEndpointConnectionDeserializer)(result.body);
|
|
241
|
+
}
|
|
242
|
+
/** Get private endpoint connection properties */
|
|
243
|
+
async function getPrivateEndpointConnection(context, resourceGroupName, resourceName, privateEndpointConnectionName, options = {
|
|
244
|
+
requestOptions: {},
|
|
245
|
+
}) {
|
|
246
|
+
const result = await _getPrivateEndpointConnectionSend(context, resourceGroupName, resourceName, privateEndpointConnectionName, options);
|
|
247
|
+
return _getPrivateEndpointConnectionDeserialize(result);
|
|
248
|
+
}
|
|
249
|
+
function _listPrivateLinkResourcesSend(context, resourceGroupName, resourceName, options = {
|
|
250
|
+
requestOptions: {},
|
|
251
|
+
}) {
|
|
252
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateLinkResources{?api%2Dversion}", {
|
|
253
|
+
subscriptionId: context.subscriptionId,
|
|
254
|
+
resourceGroupName: resourceGroupName,
|
|
255
|
+
resourceName: resourceName,
|
|
256
|
+
"api%2Dversion": context.apiVersion,
|
|
257
|
+
}, {
|
|
258
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
259
|
+
});
|
|
260
|
+
return context.path(path).get({
|
|
261
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
262
|
+
headers: {
|
|
263
|
+
accept: "application/json",
|
|
264
|
+
...options.requestOptions?.headers,
|
|
265
|
+
},
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
async function _listPrivateLinkResourcesDeserialize(result) {
|
|
269
|
+
const expectedStatuses = ["200"];
|
|
270
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
271
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
272
|
+
error.details = (0, models_js_1.errorDetailsDeserializer)(result.body);
|
|
273
|
+
throw error;
|
|
274
|
+
}
|
|
275
|
+
return (0, models_js_1._privateLinkResourcesDeserializer)(result.body);
|
|
276
|
+
}
|
|
277
|
+
/** List private link resources for the given provisioning service */
|
|
278
|
+
function listPrivateLinkResources(context, resourceGroupName, resourceName, options = {
|
|
279
|
+
requestOptions: {},
|
|
280
|
+
}) {
|
|
281
|
+
return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _listPrivateLinkResourcesSend(context, resourceGroupName, resourceName, options), _listPrivateLinkResourcesDeserialize, ["200"], { itemName: "value" });
|
|
282
|
+
}
|
|
283
|
+
function _getPrivateLinkResourcesSend(context, resourceGroupName, resourceName, groupId, options = {
|
|
284
|
+
requestOptions: {},
|
|
285
|
+
}) {
|
|
286
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{resourceName}/privateLinkResources/{groupId}{?api%2Dversion}", {
|
|
287
|
+
subscriptionId: context.subscriptionId,
|
|
288
|
+
resourceGroupName: resourceGroupName,
|
|
289
|
+
resourceName: resourceName,
|
|
290
|
+
groupId: groupId,
|
|
291
|
+
"api%2Dversion": context.apiVersion,
|
|
292
|
+
}, {
|
|
293
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
294
|
+
});
|
|
295
|
+
return context.path(path).get({
|
|
296
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
297
|
+
headers: {
|
|
298
|
+
accept: "application/json",
|
|
299
|
+
...options.requestOptions?.headers,
|
|
300
|
+
},
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
async function _getPrivateLinkResourcesDeserialize(result) {
|
|
304
|
+
const expectedStatuses = ["200"];
|
|
305
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
306
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
307
|
+
error.details = (0, models_js_1.errorDetailsDeserializer)(result.body);
|
|
308
|
+
throw error;
|
|
309
|
+
}
|
|
310
|
+
return (0, models_js_1.groupIdInformationDeserializer)(result.body);
|
|
311
|
+
}
|
|
312
|
+
/** Get the specified private link resource for the given provisioning service */
|
|
313
|
+
async function getPrivateLinkResources(context, resourceGroupName, resourceName, groupId, options = {
|
|
314
|
+
requestOptions: {},
|
|
315
|
+
}) {
|
|
316
|
+
const result = await _getPrivateLinkResourcesSend(context, resourceGroupName, resourceName, groupId, options);
|
|
317
|
+
return _getPrivateLinkResourcesDeserialize(result);
|
|
318
|
+
}
|
|
319
|
+
function _listKeysForKeyNameSend(context, provisioningServiceName, keyName, resourceGroupName, options = {
|
|
320
|
+
requestOptions: {},
|
|
321
|
+
}) {
|
|
322
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/keys/{keyName}/listkeys{?api%2Dversion}", {
|
|
323
|
+
subscriptionId: context.subscriptionId,
|
|
324
|
+
resourceGroupName: resourceGroupName,
|
|
325
|
+
provisioningServiceName: provisioningServiceName,
|
|
326
|
+
keyName: keyName,
|
|
327
|
+
"api%2Dversion": context.apiVersion,
|
|
328
|
+
}, {
|
|
329
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
330
|
+
});
|
|
331
|
+
return context.path(path).post({
|
|
332
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
333
|
+
headers: {
|
|
334
|
+
accept: "application/json",
|
|
335
|
+
...options.requestOptions?.headers,
|
|
336
|
+
},
|
|
337
|
+
});
|
|
338
|
+
}
|
|
339
|
+
async function _listKeysForKeyNameDeserialize(result) {
|
|
340
|
+
const expectedStatuses = ["200"];
|
|
341
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
342
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
343
|
+
error.details = (0, models_js_1.errorDetailsDeserializer)(result.body);
|
|
344
|
+
throw error;
|
|
345
|
+
}
|
|
346
|
+
return (0, models_js_1.sharedAccessSignatureAuthorizationRuleAccessRightsDescriptionDeserializer)(result.body);
|
|
347
|
+
}
|
|
348
|
+
/** List primary and secondary keys for a specific key name */
|
|
349
|
+
async function listKeysForKeyName(context, provisioningServiceName, keyName, resourceGroupName, options = {
|
|
350
|
+
requestOptions: {},
|
|
351
|
+
}) {
|
|
352
|
+
const result = await _listKeysForKeyNameSend(context, provisioningServiceName, keyName, resourceGroupName, options);
|
|
353
|
+
return _listKeysForKeyNameDeserialize(result);
|
|
354
|
+
}
|
|
355
|
+
function _listKeysSend(context, provisioningServiceName, resourceGroupName, options = { requestOptions: {} }) {
|
|
356
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/listkeys{?api%2Dversion}", {
|
|
357
|
+
subscriptionId: context.subscriptionId,
|
|
358
|
+
resourceGroupName: resourceGroupName,
|
|
359
|
+
provisioningServiceName: provisioningServiceName,
|
|
360
|
+
"api%2Dversion": context.apiVersion,
|
|
361
|
+
}, {
|
|
362
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
363
|
+
});
|
|
364
|
+
return context.path(path).post({
|
|
365
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
366
|
+
headers: {
|
|
367
|
+
accept: "application/json",
|
|
368
|
+
...options.requestOptions?.headers,
|
|
369
|
+
},
|
|
370
|
+
});
|
|
371
|
+
}
|
|
372
|
+
async function _listKeysDeserialize(result) {
|
|
373
|
+
const expectedStatuses = ["200"];
|
|
374
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
375
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
376
|
+
error.details = (0, models_js_1.errorDetailsDeserializer)(result.body);
|
|
377
|
+
throw error;
|
|
378
|
+
}
|
|
379
|
+
return (0, models_js_1._sharedAccessSignatureAuthorizationRuleListResultDeserializer)(result.body);
|
|
380
|
+
}
|
|
381
|
+
/** List the primary and secondary keys for a provisioning service. */
|
|
382
|
+
function listKeys(context, provisioningServiceName, resourceGroupName, options = { requestOptions: {} }) {
|
|
383
|
+
return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _listKeysSend(context, provisioningServiceName, resourceGroupName, options), _listKeysDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
384
|
+
}
|
|
385
|
+
function _listValidSkusSend(context, provisioningServiceName, resourceGroupName, options = { requestOptions: {} }) {
|
|
386
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/skus{?api%2Dversion}", {
|
|
387
|
+
subscriptionId: context.subscriptionId,
|
|
388
|
+
resourceGroupName: resourceGroupName,
|
|
389
|
+
provisioningServiceName: provisioningServiceName,
|
|
390
|
+
"api%2Dversion": context.apiVersion,
|
|
391
|
+
}, {
|
|
392
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
393
|
+
});
|
|
394
|
+
return context.path(path).get({
|
|
395
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
396
|
+
headers: {
|
|
397
|
+
accept: "application/json",
|
|
398
|
+
...options.requestOptions?.headers,
|
|
399
|
+
},
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
async function _listValidSkusDeserialize(result) {
|
|
403
|
+
const expectedStatuses = ["200"];
|
|
404
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
405
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
406
|
+
error.details = (0, models_js_1.errorDetailsDeserializer)(result.body);
|
|
407
|
+
throw error;
|
|
408
|
+
}
|
|
409
|
+
return (0, models_js_1._iotDpsSkuDefinitionListResultDeserializer)(result.body);
|
|
410
|
+
}
|
|
411
|
+
/** Gets the list of valid SKUs and tiers for a provisioning service. */
|
|
412
|
+
function listValidSkus(context, provisioningServiceName, resourceGroupName, options = { requestOptions: {} }) {
|
|
413
|
+
return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _listValidSkusSend(context, provisioningServiceName, resourceGroupName, options), _listValidSkusDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
414
|
+
}
|
|
415
|
+
function _listBySubscriptionSend(context, options = {
|
|
416
|
+
requestOptions: {},
|
|
417
|
+
}) {
|
|
418
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/providers/Microsoft.Devices/provisioningServices{?api%2Dversion}", {
|
|
419
|
+
subscriptionId: context.subscriptionId,
|
|
420
|
+
"api%2Dversion": context.apiVersion,
|
|
421
|
+
}, {
|
|
422
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
423
|
+
});
|
|
424
|
+
return context.path(path).get({
|
|
425
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
426
|
+
headers: {
|
|
427
|
+
accept: "application/json",
|
|
428
|
+
...options.requestOptions?.headers,
|
|
429
|
+
},
|
|
430
|
+
});
|
|
431
|
+
}
|
|
432
|
+
async function _listBySubscriptionDeserialize(result) {
|
|
433
|
+
const expectedStatuses = ["200"];
|
|
434
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
435
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
436
|
+
error.details = (0, models_js_1.errorDetailsDeserializer)(result.body);
|
|
437
|
+
throw error;
|
|
438
|
+
}
|
|
439
|
+
return (0, models_js_1._provisioningServiceDescriptionListResultDeserializer)(result.body);
|
|
440
|
+
}
|
|
441
|
+
/** List all the provisioning services for a given subscription id. */
|
|
442
|
+
function listBySubscription(context, options = {
|
|
443
|
+
requestOptions: {},
|
|
444
|
+
}) {
|
|
445
|
+
return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _listBySubscriptionSend(context, options), _listBySubscriptionDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
446
|
+
}
|
|
447
|
+
function _listByResourceGroupSend(context, resourceGroupName, options = {
|
|
448
|
+
requestOptions: {},
|
|
449
|
+
}) {
|
|
450
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices{?api%2Dversion}", {
|
|
451
|
+
subscriptionId: context.subscriptionId,
|
|
452
|
+
resourceGroupName: resourceGroupName,
|
|
453
|
+
"api%2Dversion": context.apiVersion,
|
|
454
|
+
}, {
|
|
455
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
456
|
+
});
|
|
457
|
+
return context.path(path).get({
|
|
458
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
459
|
+
headers: {
|
|
460
|
+
accept: "application/json",
|
|
461
|
+
...options.requestOptions?.headers,
|
|
462
|
+
},
|
|
463
|
+
});
|
|
464
|
+
}
|
|
465
|
+
async function _listByResourceGroupDeserialize(result) {
|
|
466
|
+
const expectedStatuses = ["200"];
|
|
467
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
468
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
469
|
+
error.details = (0, models_js_1.errorDetailsDeserializer)(result.body);
|
|
470
|
+
throw error;
|
|
471
|
+
}
|
|
472
|
+
return (0, models_js_1._provisioningServiceDescriptionListResultDeserializer)(result.body);
|
|
473
|
+
}
|
|
474
|
+
/** Get a list of all provisioning services in the given resource group. */
|
|
475
|
+
function listByResourceGroup(context, resourceGroupName, options = {
|
|
476
|
+
requestOptions: {},
|
|
477
|
+
}) {
|
|
478
|
+
return (0, pagingHelpers_js_1.buildPagedAsyncIterator)(context, () => _listByResourceGroupSend(context, resourceGroupName, options), _listByResourceGroupDeserialize, ["200"], { itemName: "value", nextLinkName: "nextLink" });
|
|
479
|
+
}
|
|
480
|
+
function _$deleteSend(context, resourceGroupName, provisioningServiceName, options = { requestOptions: {} }) {
|
|
481
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}{?api%2Dversion}", {
|
|
482
|
+
subscriptionId: context.subscriptionId,
|
|
483
|
+
resourceGroupName: resourceGroupName,
|
|
484
|
+
provisioningServiceName: provisioningServiceName,
|
|
485
|
+
"api%2Dversion": context.apiVersion,
|
|
486
|
+
}, {
|
|
487
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
488
|
+
});
|
|
489
|
+
return context.path(path).delete({ ...(0, core_client_1.operationOptionsToRequestParameters)(options) });
|
|
490
|
+
}
|
|
491
|
+
async function _$deleteDeserialize(result) {
|
|
492
|
+
const expectedStatuses = ["200", "202", "204", "404"];
|
|
493
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
494
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
495
|
+
error.details = (0, models_js_1.errorDetailsDeserializer)(result.body);
|
|
496
|
+
throw error;
|
|
497
|
+
}
|
|
498
|
+
return;
|
|
499
|
+
}
|
|
500
|
+
/** Deletes the Provisioning Service. */
|
|
501
|
+
/**
|
|
502
|
+
* @fixme delete is a reserved word that cannot be used as an operation name.
|
|
503
|
+
* Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
|
|
504
|
+
* to the operation to override the generated name.
|
|
505
|
+
*/
|
|
506
|
+
function $delete(context, resourceGroupName, provisioningServiceName, options = { requestOptions: {} }) {
|
|
507
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _$deleteDeserialize, ["200", "202", "204", "404"], {
|
|
508
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
509
|
+
abortSignal: options?.abortSignal,
|
|
510
|
+
getInitialResponse: () => _$deleteSend(context, resourceGroupName, provisioningServiceName, options),
|
|
511
|
+
resourceLocationConfig: "location",
|
|
512
|
+
});
|
|
513
|
+
}
|
|
514
|
+
function _updateSend(context, resourceGroupName, provisioningServiceName, provisioningServiceTags, options = { requestOptions: {} }) {
|
|
515
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}{?api%2Dversion}", {
|
|
516
|
+
subscriptionId: context.subscriptionId,
|
|
517
|
+
resourceGroupName: resourceGroupName,
|
|
518
|
+
provisioningServiceName: provisioningServiceName,
|
|
519
|
+
"api%2Dversion": context.apiVersion,
|
|
520
|
+
}, {
|
|
521
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
522
|
+
});
|
|
523
|
+
return context.path(path).patch({
|
|
524
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
525
|
+
contentType: "application/json",
|
|
526
|
+
headers: {
|
|
527
|
+
accept: "application/json",
|
|
528
|
+
...options.requestOptions?.headers,
|
|
529
|
+
},
|
|
530
|
+
body: (0, models_js_1.tagsResourceSerializer)(provisioningServiceTags),
|
|
531
|
+
});
|
|
532
|
+
}
|
|
533
|
+
async function _updateDeserialize(result) {
|
|
534
|
+
const expectedStatuses = ["200", "202"];
|
|
535
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
536
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
537
|
+
error.details = (0, models_js_1.errorResponseDeserializer)(result.body);
|
|
538
|
+
throw error;
|
|
539
|
+
}
|
|
540
|
+
return (0, models_js_1.provisioningServiceDescriptionDeserializer)(result.body);
|
|
541
|
+
}
|
|
542
|
+
/** Update an existing provisioning service's tags. to update other fields use the CreateOrUpdate method */
|
|
543
|
+
function update(context, resourceGroupName, provisioningServiceName, provisioningServiceTags, options = { requestOptions: {} }) {
|
|
544
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _updateDeserialize, ["200", "202"], {
|
|
545
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
546
|
+
abortSignal: options?.abortSignal,
|
|
547
|
+
getInitialResponse: () => _updateSend(context, resourceGroupName, provisioningServiceName, provisioningServiceTags, options),
|
|
548
|
+
resourceLocationConfig: "location",
|
|
549
|
+
});
|
|
550
|
+
}
|
|
551
|
+
function _createOrUpdateSend(context, resourceGroupName, provisioningServiceName, iotDpsDescription, options = { requestOptions: {} }) {
|
|
552
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}{?api%2Dversion}", {
|
|
553
|
+
subscriptionId: context.subscriptionId,
|
|
554
|
+
resourceGroupName: resourceGroupName,
|
|
555
|
+
provisioningServiceName: provisioningServiceName,
|
|
556
|
+
"api%2Dversion": context.apiVersion,
|
|
557
|
+
}, {
|
|
558
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
559
|
+
});
|
|
560
|
+
return context.path(path).put({
|
|
561
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
562
|
+
contentType: "application/json",
|
|
563
|
+
headers: {
|
|
564
|
+
accept: "application/json",
|
|
565
|
+
...options.requestOptions?.headers,
|
|
566
|
+
},
|
|
567
|
+
body: (0, models_js_1.provisioningServiceDescriptionSerializer)(iotDpsDescription),
|
|
568
|
+
});
|
|
569
|
+
}
|
|
570
|
+
async function _createOrUpdateDeserialize(result) {
|
|
571
|
+
const expectedStatuses = ["200", "201", "202"];
|
|
572
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
573
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
574
|
+
error.details = (0, models_js_1.errorDetailsDeserializer)(result.body);
|
|
575
|
+
throw error;
|
|
576
|
+
}
|
|
577
|
+
return (0, models_js_1.provisioningServiceDescriptionDeserializer)(result.body);
|
|
578
|
+
}
|
|
579
|
+
/** Create or update the metadata of the provisioning service. The usual pattern to modify a property is to retrieve the provisioning service metadata and security metadata, and then combine them with the modified values in a new body to update the provisioning service. */
|
|
580
|
+
function createOrUpdate(context, resourceGroupName, provisioningServiceName, iotDpsDescription, options = { requestOptions: {} }) {
|
|
581
|
+
return (0, pollingHelpers_js_1.getLongRunningPoller)(context, _createOrUpdateDeserialize, ["200", "201", "202"], {
|
|
582
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
583
|
+
abortSignal: options?.abortSignal,
|
|
584
|
+
getInitialResponse: () => _createOrUpdateSend(context, resourceGroupName, provisioningServiceName, iotDpsDescription, options),
|
|
585
|
+
resourceLocationConfig: "location",
|
|
586
|
+
});
|
|
587
|
+
}
|
|
588
|
+
function _getSend(context, resourceGroupName, provisioningServiceName, options = { requestOptions: {} }) {
|
|
589
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}{?api%2Dversion}", {
|
|
590
|
+
subscriptionId: context.subscriptionId,
|
|
591
|
+
resourceGroupName: resourceGroupName,
|
|
592
|
+
provisioningServiceName: provisioningServiceName,
|
|
593
|
+
"api%2Dversion": context.apiVersion,
|
|
594
|
+
}, {
|
|
595
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
596
|
+
});
|
|
597
|
+
return context.path(path).get({
|
|
598
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
599
|
+
headers: {
|
|
600
|
+
accept: "application/json",
|
|
601
|
+
...options.requestOptions?.headers,
|
|
602
|
+
},
|
|
603
|
+
});
|
|
604
|
+
}
|
|
605
|
+
async function _getDeserialize(result) {
|
|
606
|
+
const expectedStatuses = ["200"];
|
|
607
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
608
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
609
|
+
error.details = (0, models_js_1.errorDetailsDeserializer)(result.body);
|
|
610
|
+
throw error;
|
|
611
|
+
}
|
|
612
|
+
return (0, models_js_1.provisioningServiceDescriptionDeserializer)(result.body);
|
|
613
|
+
}
|
|
614
|
+
/** Get the metadata of the provisioning service without SAS keys. */
|
|
615
|
+
async function get(context, resourceGroupName, provisioningServiceName, options = { requestOptions: {} }) {
|
|
616
|
+
const result = await _getSend(context, resourceGroupName, provisioningServiceName, options);
|
|
617
|
+
return _getDeserialize(result);
|
|
618
|
+
}
|
|
619
|
+
function _getOperationResultSend(context, operationId, resourceGroupName, provisioningServiceName, asyncinfo, options = {
|
|
620
|
+
requestOptions: {},
|
|
621
|
+
}) {
|
|
622
|
+
const path = (0, urlTemplate_js_1.expandUrlTemplate)("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Devices/provisioningServices/{provisioningServiceName}/operationresults/{operationId}{?api%2Dversion,asyncinfo}", {
|
|
623
|
+
subscriptionId: context.subscriptionId,
|
|
624
|
+
resourceGroupName: resourceGroupName,
|
|
625
|
+
provisioningServiceName: provisioningServiceName,
|
|
626
|
+
operationId: operationId,
|
|
627
|
+
"api%2Dversion": context.apiVersion,
|
|
628
|
+
asyncinfo: asyncinfo,
|
|
629
|
+
}, {
|
|
630
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
631
|
+
});
|
|
632
|
+
return context.path(path).get({
|
|
633
|
+
...(0, core_client_1.operationOptionsToRequestParameters)(options),
|
|
634
|
+
headers: {
|
|
635
|
+
accept: "application/json",
|
|
636
|
+
...options.requestOptions?.headers,
|
|
637
|
+
},
|
|
638
|
+
});
|
|
639
|
+
}
|
|
640
|
+
async function _getOperationResultDeserialize(result) {
|
|
641
|
+
const expectedStatuses = ["200"];
|
|
642
|
+
if (!expectedStatuses.includes(result.status)) {
|
|
643
|
+
const error = (0, core_client_1.createRestError)(result);
|
|
644
|
+
error.details = (0, models_js_1.errorDetailsDeserializer)(result.body);
|
|
645
|
+
throw error;
|
|
646
|
+
}
|
|
647
|
+
return (0, models_js_1.asyncOperationResultDeserializer)(result.body);
|
|
648
|
+
}
|
|
649
|
+
/** Gets the status of a long running operation, such as create, update or delete a provisioning service. */
|
|
650
|
+
async function getOperationResult(context, operationId, resourceGroupName, provisioningServiceName, asyncinfo, options = {
|
|
651
|
+
requestOptions: {},
|
|
652
|
+
}) {
|
|
653
|
+
const result = await _getOperationResultSend(context, operationId, resourceGroupName, provisioningServiceName, asyncinfo, options);
|
|
654
|
+
return _getOperationResultDeserialize(result);
|
|
655
|
+
}
|
|
656
|
+
//# sourceMappingURL=operations.js.map
|