@azure/arm-confidentialledger 1.3.0-beta.3 → 2.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -11
- package/dist/browser/api/confidentialLedgerContext.d.ts +22 -0
- package/dist/browser/api/confidentialLedgerContext.js +26 -0
- package/dist/browser/api/confidentialLedgerContext.js.map +1 -0
- package/dist/browser/api/index.d.ts +5 -0
- package/dist/browser/api/index.js +5 -0
- package/dist/browser/api/index.js.map +1 -0
- package/dist/browser/api/ledger/index.d.ts +3 -0
- package/dist/browser/api/ledger/index.js +4 -0
- package/dist/browser/api/ledger/index.js.map +1 -0
- package/dist/browser/api/ledger/operations.d.ts +35 -0
- package/dist/browser/api/ledger/operations.js +224 -0
- package/dist/browser/api/ledger/operations.js.map +1 -0
- package/dist/browser/api/ledger/options.d.ts +35 -0
- package/dist/browser/api/ledger/options.js +4 -0
- package/dist/browser/api/ledger/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 +31 -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/api/operations.d.ts +9 -0
- package/dist/browser/api/operations.js +34 -0
- package/dist/browser/api/operations.js.map +1 -0
- package/dist/browser/api/options.d.ts +5 -0
- package/dist/browser/api/options.js +4 -0
- package/dist/browser/api/options.js.map +1 -0
- package/dist/browser/classic/index.d.ts +3 -0
- package/dist/browser/classic/index.js +4 -0
- package/dist/browser/classic/index.js.map +1 -0
- package/dist/browser/classic/ledger/index.d.ts +41 -0
- package/dist/browser/classic/ledger/index.js +53 -0
- package/dist/browser/classic/ledger/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/confidentialLedgerClient.d.ts +20 -26
- package/dist/browser/confidentialLedgerClient.js +36 -123
- package/dist/browser/confidentialLedgerClient.js.map +1 -1
- package/dist/browser/index.d.ts +15 -3
- package/dist/browser/index.js +7 -11
- package/dist/browser/index.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 +2 -724
- package/dist/browser/models/index.js +3 -113
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +408 -0
- package/dist/browser/models/models.js +362 -0
- package/dist/browser/models/models.js.map +1 -0
- package/dist/browser/restorePollerHelpers.d.ts +21 -0
- package/dist/browser/restorePollerHelpers.js +97 -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 +74 -0
- package/dist/browser/static-helpers/pagingHelpers.js +143 -0
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pollingHelpers.d.ts +34 -0
- package/dist/browser/static-helpers/pollingHelpers.js +95 -0
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/simplePollerHelpers.d.ts +73 -0
- package/dist/browser/static-helpers/simplePollerHelpers.js +44 -0
- package/dist/browser/static-helpers/simplePollerHelpers.js.map +1 -0
- package/dist/browser/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/browser/static-helpers/urlTemplate.js +200 -0
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -0
- package/dist/commonjs/api/confidentialLedgerContext.d.ts +22 -0
- package/dist/commonjs/api/confidentialLedgerContext.js +47 -0
- package/dist/commonjs/api/confidentialLedgerContext.js.map +7 -0
- package/dist/commonjs/api/index.d.ts +5 -0
- package/dist/commonjs/api/index.js +31 -0
- package/dist/commonjs/api/index.js.map +7 -0
- package/dist/commonjs/api/ledger/index.d.ts +3 -0
- package/dist/commonjs/api/ledger/index.js +40 -0
- package/dist/commonjs/api/ledger/index.js.map +7 -0
- package/dist/commonjs/api/ledger/operations.d.ts +35 -0
- package/dist/commonjs/api/ledger/operations.js +321 -0
- package/dist/commonjs/api/ledger/operations.js.map +7 -0
- package/dist/commonjs/api/ledger/options.d.ts +35 -0
- package/dist/commonjs/api/ledger/options.js +16 -0
- package/dist/commonjs/api/ledger/options.js.map +7 -0
- package/dist/commonjs/api/operations/index.d.ts +3 -0
- package/dist/commonjs/api/operations/index.js +28 -0
- package/dist/commonjs/api/operations/index.js.map +7 -0
- package/dist/commonjs/api/operations/operations.d.ts +10 -0
- package/dist/commonjs/api/operations/operations.js +68 -0
- package/dist/commonjs/api/operations/operations.js.map +7 -0
- package/dist/commonjs/api/operations/options.d.ts +5 -0
- package/dist/commonjs/api/operations/options.js +16 -0
- package/dist/commonjs/api/operations/options.js.map +7 -0
- package/dist/commonjs/api/operations.d.ts +9 -0
- package/dist/commonjs/api/operations.js +65 -0
- package/dist/commonjs/api/operations.js.map +7 -0
- package/dist/commonjs/api/options.d.ts +5 -0
- package/dist/commonjs/api/options.js +16 -0
- package/dist/commonjs/api/options.js.map +7 -0
- package/dist/commonjs/classic/index.d.ts +3 -0
- package/dist/commonjs/classic/index.js +16 -0
- package/dist/commonjs/classic/index.js.map +7 -0
- package/dist/commonjs/classic/ledger/index.d.ts +41 -0
- package/dist/commonjs/classic/ledger/index.js +83 -0
- package/dist/commonjs/classic/ledger/index.js.map +7 -0
- package/dist/commonjs/classic/operations/index.d.ts +11 -0
- package/dist/commonjs/classic/operations/index.js +38 -0
- package/dist/commonjs/classic/operations/index.js.map +7 -0
- package/dist/commonjs/confidentialLedgerClient.d.ts +20 -26
- package/dist/commonjs/confidentialLedgerClient.js +61 -132
- package/dist/commonjs/confidentialLedgerClient.js.map +7 -1
- package/dist/commonjs/index.d.ts +15 -3
- package/dist/commonjs/index.js +60 -19
- package/dist/commonjs/index.js.map +7 -1
- package/dist/commonjs/logger.d.ts +2 -0
- package/dist/commonjs/logger.js +29 -0
- package/dist/commonjs/logger.js.map +7 -0
- package/dist/commonjs/models/index.d.ts +2 -724
- package/dist/commonjs/models/index.js +46 -117
- package/dist/commonjs/models/index.js.map +7 -1
- package/dist/commonjs/models/models.d.ts +408 -0
- package/dist/commonjs/models/models.js +398 -0
- package/dist/commonjs/models/models.js.map +7 -0
- package/dist/commonjs/restorePollerHelpers.d.ts +21 -0
- package/dist/commonjs/restorePollerHelpers.js +110 -0
- package/dist/commonjs/restorePollerHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js +52 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts +74 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js +143 -0
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts +34 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js +101 -0
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/simplePollerHelpers.d.ts +73 -0
- package/dist/commonjs/static-helpers/simplePollerHelpers.js +67 -0
- package/dist/commonjs/static-helpers/simplePollerHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/commonjs/static-helpers/urlTemplate.js +197 -0
- package/dist/commonjs/static-helpers/urlTemplate.js.map +7 -0
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/api/confidentialLedgerContext.d.ts +22 -0
- package/dist/esm/api/confidentialLedgerContext.js +26 -0
- package/dist/esm/api/confidentialLedgerContext.js.map +1 -0
- package/dist/esm/api/index.d.ts +5 -0
- package/dist/esm/api/index.js +5 -0
- package/dist/esm/api/index.js.map +1 -0
- package/dist/esm/api/ledger/index.d.ts +3 -0
- package/dist/esm/api/ledger/index.js +4 -0
- package/dist/esm/api/ledger/index.js.map +1 -0
- package/dist/esm/api/ledger/operations.d.ts +35 -0
- package/dist/esm/api/ledger/operations.js +224 -0
- package/dist/esm/api/ledger/operations.js.map +1 -0
- package/dist/esm/api/ledger/options.d.ts +35 -0
- package/dist/esm/api/ledger/options.js +4 -0
- package/dist/esm/api/ledger/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 +31 -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/api/operations.d.ts +9 -0
- package/dist/esm/api/operations.js +34 -0
- package/dist/esm/api/operations.js.map +1 -0
- package/dist/esm/api/options.d.ts +5 -0
- package/dist/esm/api/options.js +4 -0
- package/dist/esm/api/options.js.map +1 -0
- package/dist/esm/classic/index.d.ts +3 -0
- package/dist/esm/classic/index.js +4 -0
- package/dist/esm/classic/index.js.map +1 -0
- package/dist/esm/classic/ledger/index.d.ts +41 -0
- package/dist/esm/classic/ledger/index.js +53 -0
- package/dist/esm/classic/ledger/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/confidentialLedgerClient.d.ts +20 -26
- package/dist/esm/confidentialLedgerClient.js +36 -123
- package/dist/esm/confidentialLedgerClient.js.map +1 -1
- package/dist/esm/index.d.ts +15 -3
- package/dist/esm/index.js +7 -11
- package/dist/esm/index.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 +2 -724
- package/dist/esm/models/index.js +3 -113
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +408 -0
- package/dist/esm/models/models.js +362 -0
- package/dist/esm/models/models.js.map +1 -0
- package/dist/esm/restorePollerHelpers.d.ts +21 -0
- package/dist/esm/restorePollerHelpers.js +97 -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 +74 -0
- package/dist/esm/static-helpers/pagingHelpers.js +143 -0
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pollingHelpers.d.ts +34 -0
- package/dist/esm/static-helpers/pollingHelpers.js +95 -0
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/simplePollerHelpers.d.ts +73 -0
- package/dist/esm/static-helpers/simplePollerHelpers.js +44 -0
- package/dist/esm/static-helpers/simplePollerHelpers.js.map +1 -0
- package/dist/esm/static-helpers/urlTemplate.d.ts +5 -0
- package/dist/esm/static-helpers/urlTemplate.js +200 -0
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -0
- package/package.json +151 -100
- package/CHANGELOG.md +0 -179
- package/dist/browser/confidentialLedgerClient.d.ts.map +0 -1
- package/dist/browser/index.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 -21
- 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 -32
- package/dist/browser/models/mappers.d.ts.map +0 -1
- package/dist/browser/models/mappers.js +0 -885
- package/dist/browser/models/mappers.js.map +0 -1
- package/dist/browser/models/parameters.d.ts +0 -19
- package/dist/browser/models/parameters.d.ts.map +0 -1
- package/dist/browser/models/parameters.js +0 -154
- package/dist/browser/models/parameters.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/ledger.d.ts +0 -139
- package/dist/browser/operations/ledger.d.ts.map +0 -1
- package/dist/browser/operations/ledger.js +0 -702
- package/dist/browser/operations/ledger.js.map +0 -1
- package/dist/browser/operations/managedCCFOperations.d.ts +0 -139
- package/dist/browser/operations/managedCCFOperations.d.ts.map +0 -1
- package/dist/browser/operations/managedCCFOperations.js +0 -702
- package/dist/browser/operations/managedCCFOperations.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 -133
- package/dist/browser/operations/operations.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/ledger.d.ts +0 -103
- package/dist/browser/operationsInterfaces/ledger.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/ledger.js +0 -9
- package/dist/browser/operationsInterfaces/ledger.js.map +0 -1
- package/dist/browser/operationsInterfaces/managedCCFOperations.d.ts +0 -103
- package/dist/browser/operationsInterfaces/managedCCFOperations.d.ts.map +0 -1
- package/dist/browser/operationsInterfaces/managedCCFOperations.js +0 -9
- package/dist/browser/operationsInterfaces/managedCCFOperations.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 -32
- package/dist/browser/pagingHelper.js.map +0 -1
- package/dist/commonjs/confidentialLedgerClient.d.ts.map +0 -1
- package/dist/commonjs/index.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 -24
- 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 -32
- package/dist/commonjs/models/mappers.d.ts.map +0 -1
- package/dist/commonjs/models/mappers.js +0 -888
- package/dist/commonjs/models/mappers.js.map +0 -1
- package/dist/commonjs/models/parameters.d.ts +0 -19
- package/dist/commonjs/models/parameters.d.ts.map +0 -1
- package/dist/commonjs/models/parameters.js +0 -157
- package/dist/commonjs/models/parameters.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/ledger.d.ts +0 -139
- package/dist/commonjs/operations/ledger.d.ts.map +0 -1
- package/dist/commonjs/operations/ledger.js +0 -706
- package/dist/commonjs/operations/ledger.js.map +0 -1
- package/dist/commonjs/operations/managedCCFOperations.d.ts +0 -139
- package/dist/commonjs/operations/managedCCFOperations.d.ts.map +0 -1
- package/dist/commonjs/operations/managedCCFOperations.js +0 -706
- package/dist/commonjs/operations/managedCCFOperations.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 -137
- package/dist/commonjs/operations/operations.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/ledger.d.ts +0 -103
- package/dist/commonjs/operationsInterfaces/ledger.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/ledger.js +0 -10
- package/dist/commonjs/operationsInterfaces/ledger.js.map +0 -1
- package/dist/commonjs/operationsInterfaces/managedCCFOperations.d.ts +0 -103
- package/dist/commonjs/operationsInterfaces/managedCCFOperations.d.ts.map +0 -1
- package/dist/commonjs/operationsInterfaces/managedCCFOperations.js +0 -10
- package/dist/commonjs/operationsInterfaces/managedCCFOperations.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 -36
- package/dist/commonjs/pagingHelper.js.map +0 -1
- package/dist/esm/confidentialLedgerClient.d.ts.map +0 -1
- package/dist/esm/index.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 -21
- 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 -32
- package/dist/esm/models/mappers.d.ts.map +0 -1
- package/dist/esm/models/mappers.js +0 -885
- package/dist/esm/models/mappers.js.map +0 -1
- package/dist/esm/models/parameters.d.ts +0 -19
- package/dist/esm/models/parameters.d.ts.map +0 -1
- package/dist/esm/models/parameters.js +0 -154
- package/dist/esm/models/parameters.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/ledger.d.ts +0 -139
- package/dist/esm/operations/ledger.d.ts.map +0 -1
- package/dist/esm/operations/ledger.js +0 -702
- package/dist/esm/operations/ledger.js.map +0 -1
- package/dist/esm/operations/managedCCFOperations.d.ts +0 -139
- package/dist/esm/operations/managedCCFOperations.d.ts.map +0 -1
- package/dist/esm/operations/managedCCFOperations.js +0 -702
- package/dist/esm/operations/managedCCFOperations.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 -133
- package/dist/esm/operations/operations.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/ledger.d.ts +0 -103
- package/dist/esm/operationsInterfaces/ledger.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/ledger.js +0 -9
- package/dist/esm/operationsInterfaces/ledger.js.map +0 -1
- package/dist/esm/operationsInterfaces/managedCCFOperations.d.ts +0 -103
- package/dist/esm/operationsInterfaces/managedCCFOperations.d.ts.map +0 -1
- package/dist/esm/operationsInterfaces/managedCCFOperations.js +0 -9
- package/dist/esm/operationsInterfaces/managedCCFOperations.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 -32
- package/dist/esm/pagingHelper.js.map +0 -1
- package/dist/react-native/confidentialLedgerClient.d.ts +0 -28
- package/dist/react-native/confidentialLedgerClient.d.ts.map +0 -1
- package/dist/react-native/confidentialLedgerClient.js +0 -129
- package/dist/react-native/confidentialLedgerClient.js.map +0 -1
- package/dist/react-native/index.d.ts +0 -5
- package/dist/react-native/index.d.ts.map +0 -1
- package/dist/react-native/index.js +0 -13
- package/dist/react-native/index.js.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 -21
- package/dist/react-native/lroImpl.js.map +0 -1
- package/dist/react-native/models/index.d.ts +0 -725
- package/dist/react-native/models/index.d.ts.map +0 -1
- package/dist/react-native/models/index.js +0 -114
- package/dist/react-native/models/index.js.map +0 -1
- package/dist/react-native/models/mappers.d.ts +0 -32
- package/dist/react-native/models/mappers.d.ts.map +0 -1
- package/dist/react-native/models/mappers.js +0 -885
- package/dist/react-native/models/mappers.js.map +0 -1
- package/dist/react-native/models/parameters.d.ts +0 -19
- package/dist/react-native/models/parameters.d.ts.map +0 -1
- package/dist/react-native/models/parameters.js +0 -154
- package/dist/react-native/models/parameters.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/ledger.d.ts +0 -139
- package/dist/react-native/operations/ledger.d.ts.map +0 -1
- package/dist/react-native/operations/ledger.js +0 -702
- package/dist/react-native/operations/ledger.js.map +0 -1
- package/dist/react-native/operations/managedCCFOperations.d.ts +0 -139
- package/dist/react-native/operations/managedCCFOperations.d.ts.map +0 -1
- package/dist/react-native/operations/managedCCFOperations.js +0 -702
- package/dist/react-native/operations/managedCCFOperations.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 -133
- package/dist/react-native/operations/operations.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/ledger.d.ts +0 -103
- package/dist/react-native/operationsInterfaces/ledger.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/ledger.js +0 -9
- package/dist/react-native/operationsInterfaces/ledger.js.map +0 -1
- package/dist/react-native/operationsInterfaces/managedCCFOperations.d.ts +0 -103
- package/dist/react-native/operationsInterfaces/managedCCFOperations.d.ts.map +0 -1
- package/dist/react-native/operationsInterfaces/managedCCFOperations.js +0 -9
- package/dist/react-native/operationsInterfaces/managedCCFOperations.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/package.json +0 -3
- 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 -32
- package/dist/react-native/pagingHelper.js.map +0 -1
- package/review/arm-confidentialledger.api.md +0 -580
|
@@ -0,0 +1,362 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
export function checkNameAvailabilityRequestSerializer(item) {
|
|
4
|
+
return { name: item["name"], type: item["type"] };
|
|
5
|
+
}
|
|
6
|
+
export function checkNameAvailabilityResponseDeserializer(item) {
|
|
7
|
+
return {
|
|
8
|
+
nameAvailable: item["nameAvailable"],
|
|
9
|
+
reason: item["reason"],
|
|
10
|
+
message: item["message"],
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
/** Possible reasons for a name not being available. */
|
|
14
|
+
export var KnownCheckNameAvailabilityReason;
|
|
15
|
+
(function (KnownCheckNameAvailabilityReason) {
|
|
16
|
+
/** Name is invalid. */
|
|
17
|
+
KnownCheckNameAvailabilityReason["Invalid"] = "Invalid";
|
|
18
|
+
/** Name already exists. */
|
|
19
|
+
KnownCheckNameAvailabilityReason["AlreadyExists"] = "AlreadyExists";
|
|
20
|
+
})(KnownCheckNameAvailabilityReason || (KnownCheckNameAvailabilityReason = {}));
|
|
21
|
+
export function errorResponseDeserializer(item) {
|
|
22
|
+
return {
|
|
23
|
+
error: !item["error"] ? item["error"] : errorDetailDeserializer(item["error"]),
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
export function errorDetailDeserializer(item) {
|
|
27
|
+
return {
|
|
28
|
+
code: item["code"],
|
|
29
|
+
message: item["message"],
|
|
30
|
+
target: item["target"],
|
|
31
|
+
details: !item["details"] ? item["details"] : errorDetailArrayDeserializer(item["details"]),
|
|
32
|
+
additionalInfo: !item["additionalInfo"]
|
|
33
|
+
? item["additionalInfo"]
|
|
34
|
+
: errorAdditionalInfoArrayDeserializer(item["additionalInfo"]),
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export function errorDetailArrayDeserializer(result) {
|
|
38
|
+
return result.map((item) => {
|
|
39
|
+
return errorDetailDeserializer(item);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
export function errorAdditionalInfoArrayDeserializer(result) {
|
|
43
|
+
return result.map((item) => {
|
|
44
|
+
return errorAdditionalInfoDeserializer(item);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
export function errorAdditionalInfoDeserializer(item) {
|
|
48
|
+
return {
|
|
49
|
+
type: item["type"],
|
|
50
|
+
info: item["info"],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
export function _resourceProviderOperationListDeserializer(item) {
|
|
54
|
+
return {
|
|
55
|
+
value: !item["value"]
|
|
56
|
+
? item["value"]
|
|
57
|
+
: resourceProviderOperationDefinitionArrayDeserializer(item["value"]),
|
|
58
|
+
nextLink: item["nextLink"],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
export function resourceProviderOperationDefinitionArrayDeserializer(result) {
|
|
62
|
+
return result.map((item) => {
|
|
63
|
+
return resourceProviderOperationDefinitionDeserializer(item);
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
export function resourceProviderOperationDefinitionDeserializer(item) {
|
|
67
|
+
return {
|
|
68
|
+
name: item["name"],
|
|
69
|
+
isDataAction: item["isDataAction"],
|
|
70
|
+
display: !item["display"]
|
|
71
|
+
? item["display"]
|
|
72
|
+
: resourceProviderOperationDisplayDeserializer(item["display"]),
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
export function resourceProviderOperationDisplayDeserializer(item) {
|
|
76
|
+
return {
|
|
77
|
+
provider: item["provider"],
|
|
78
|
+
resource: item["resource"],
|
|
79
|
+
operation: item["operation"],
|
|
80
|
+
description: item["description"],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
export function confidentialLedgerSerializer(item) {
|
|
84
|
+
return {
|
|
85
|
+
tags: item["tags"],
|
|
86
|
+
location: item["location"],
|
|
87
|
+
properties: !item["properties"]
|
|
88
|
+
? item["properties"]
|
|
89
|
+
: ledgerPropertiesSerializer(item["properties"]),
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
export function confidentialLedgerDeserializer(item) {
|
|
93
|
+
return {
|
|
94
|
+
tags: !item["tags"]
|
|
95
|
+
? item["tags"]
|
|
96
|
+
: Object.fromEntries(Object.entries(item["tags"]).map(([k, p]) => [k, p])),
|
|
97
|
+
location: item["location"],
|
|
98
|
+
id: item["id"],
|
|
99
|
+
name: item["name"],
|
|
100
|
+
type: item["type"],
|
|
101
|
+
systemData: !item["systemData"]
|
|
102
|
+
? item["systemData"]
|
|
103
|
+
: systemDataDeserializer(item["systemData"]),
|
|
104
|
+
properties: !item["properties"]
|
|
105
|
+
? item["properties"]
|
|
106
|
+
: ledgerPropertiesDeserializer(item["properties"]),
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
export function ledgerPropertiesSerializer(item) {
|
|
110
|
+
return {
|
|
111
|
+
runningState: item["runningState"],
|
|
112
|
+
ledgerType: item["ledgerType"],
|
|
113
|
+
ledgerSku: item["ledgerSku"],
|
|
114
|
+
aadBasedSecurityPrincipals: !item["aadBasedSecurityPrincipals"]
|
|
115
|
+
? item["aadBasedSecurityPrincipals"]
|
|
116
|
+
: aadBasedSecurityPrincipalArraySerializer(item["aadBasedSecurityPrincipals"]),
|
|
117
|
+
certBasedSecurityPrincipals: !item["certBasedSecurityPrincipals"]
|
|
118
|
+
? item["certBasedSecurityPrincipals"]
|
|
119
|
+
: certBasedSecurityPrincipalArraySerializer(item["certBasedSecurityPrincipals"]),
|
|
120
|
+
hostLevel: item["hostLevel"],
|
|
121
|
+
maxBodySizeInMb: item["maxBodySizeInMb"],
|
|
122
|
+
subjectName: item["subjectName"],
|
|
123
|
+
nodeCount: item["nodeCount"],
|
|
124
|
+
writeLBAddressPrefix: item["writeLBAddressPrefix"],
|
|
125
|
+
workerThreads: item["workerThreads"],
|
|
126
|
+
applicationType: item["applicationType"],
|
|
127
|
+
scittConfiguration: item["scittConfiguration"],
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
export function ledgerPropertiesDeserializer(item) {
|
|
131
|
+
return {
|
|
132
|
+
ledgerName: item["ledgerName"],
|
|
133
|
+
ledgerUri: item["ledgerUri"],
|
|
134
|
+
identityServiceUri: item["identityServiceUri"],
|
|
135
|
+
ledgerInternalNamespace: item["ledgerInternalNamespace"],
|
|
136
|
+
runningState: item["runningState"],
|
|
137
|
+
ledgerType: item["ledgerType"],
|
|
138
|
+
provisioningState: item["provisioningState"],
|
|
139
|
+
ledgerSku: item["ledgerSku"],
|
|
140
|
+
aadBasedSecurityPrincipals: !item["aadBasedSecurityPrincipals"]
|
|
141
|
+
? item["aadBasedSecurityPrincipals"]
|
|
142
|
+
: aadBasedSecurityPrincipalArrayDeserializer(item["aadBasedSecurityPrincipals"]),
|
|
143
|
+
certBasedSecurityPrincipals: !item["certBasedSecurityPrincipals"]
|
|
144
|
+
? item["certBasedSecurityPrincipals"]
|
|
145
|
+
: certBasedSecurityPrincipalArrayDeserializer(item["certBasedSecurityPrincipals"]),
|
|
146
|
+
hostLevel: item["hostLevel"],
|
|
147
|
+
maxBodySizeInMb: item["maxBodySizeInMb"],
|
|
148
|
+
subjectName: item["subjectName"],
|
|
149
|
+
nodeCount: item["nodeCount"],
|
|
150
|
+
writeLBAddressPrefix: item["writeLBAddressPrefix"],
|
|
151
|
+
workerThreads: item["workerThreads"],
|
|
152
|
+
enclavePlatform: item["enclavePlatform"],
|
|
153
|
+
applicationType: item["applicationType"],
|
|
154
|
+
scittConfiguration: item["scittConfiguration"],
|
|
155
|
+
};
|
|
156
|
+
}
|
|
157
|
+
/** Object representing RunningState for Confidential Ledger. */
|
|
158
|
+
export var KnownRunningState;
|
|
159
|
+
(function (KnownRunningState) {
|
|
160
|
+
/** Active */
|
|
161
|
+
KnownRunningState["Active"] = "Active";
|
|
162
|
+
/** Paused */
|
|
163
|
+
KnownRunningState["Paused"] = "Paused";
|
|
164
|
+
/** Unknown */
|
|
165
|
+
KnownRunningState["Unknown"] = "Unknown";
|
|
166
|
+
/** Pausing */
|
|
167
|
+
KnownRunningState["Pausing"] = "Pausing";
|
|
168
|
+
/** Resuming */
|
|
169
|
+
KnownRunningState["Resuming"] = "Resuming";
|
|
170
|
+
})(KnownRunningState || (KnownRunningState = {}));
|
|
171
|
+
/** Type of the ledger. Private means transaction data is encrypted. */
|
|
172
|
+
export var KnownLedgerType;
|
|
173
|
+
(function (KnownLedgerType) {
|
|
174
|
+
/** Unknown */
|
|
175
|
+
KnownLedgerType["Unknown"] = "Unknown";
|
|
176
|
+
/** Public */
|
|
177
|
+
KnownLedgerType["Public"] = "Public";
|
|
178
|
+
/** Private */
|
|
179
|
+
KnownLedgerType["Private"] = "Private";
|
|
180
|
+
})(KnownLedgerType || (KnownLedgerType = {}));
|
|
181
|
+
/** Object representing ProvisioningState for Confidential Ledger. */
|
|
182
|
+
export var KnownProvisioningState;
|
|
183
|
+
(function (KnownProvisioningState) {
|
|
184
|
+
/** Unknown */
|
|
185
|
+
KnownProvisioningState["Unknown"] = "Unknown";
|
|
186
|
+
/** Succeeded */
|
|
187
|
+
KnownProvisioningState["Succeeded"] = "Succeeded";
|
|
188
|
+
/** Failed */
|
|
189
|
+
KnownProvisioningState["Failed"] = "Failed";
|
|
190
|
+
/** Canceled */
|
|
191
|
+
KnownProvisioningState["Canceled"] = "Canceled";
|
|
192
|
+
/** Creating */
|
|
193
|
+
KnownProvisioningState["Creating"] = "Creating";
|
|
194
|
+
/** Deleting */
|
|
195
|
+
KnownProvisioningState["Deleting"] = "Deleting";
|
|
196
|
+
/** Updating */
|
|
197
|
+
KnownProvisioningState["Updating"] = "Updating";
|
|
198
|
+
})(KnownProvisioningState || (KnownProvisioningState = {}));
|
|
199
|
+
/** SKU associated with the ledger resource */
|
|
200
|
+
export var KnownLedgerSku;
|
|
201
|
+
(function (KnownLedgerSku) {
|
|
202
|
+
/** Standard */
|
|
203
|
+
KnownLedgerSku["Standard"] = "Standard";
|
|
204
|
+
/** Basic */
|
|
205
|
+
KnownLedgerSku["Basic"] = "Basic";
|
|
206
|
+
/** Unknown */
|
|
207
|
+
KnownLedgerSku["Unknown"] = "Unknown";
|
|
208
|
+
})(KnownLedgerSku || (KnownLedgerSku = {}));
|
|
209
|
+
export function aadBasedSecurityPrincipalArraySerializer(result) {
|
|
210
|
+
return result.map((item) => {
|
|
211
|
+
return aadBasedSecurityPrincipalSerializer(item);
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
export function aadBasedSecurityPrincipalArrayDeserializer(result) {
|
|
215
|
+
return result.map((item) => {
|
|
216
|
+
return aadBasedSecurityPrincipalDeserializer(item);
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
export function aadBasedSecurityPrincipalSerializer(item) {
|
|
220
|
+
return {
|
|
221
|
+
principalId: item["principalId"],
|
|
222
|
+
tenantId: item["tenantId"],
|
|
223
|
+
ledgerRoleName: item["ledgerRoleName"],
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
export function aadBasedSecurityPrincipalDeserializer(item) {
|
|
227
|
+
return {
|
|
228
|
+
principalId: item["principalId"],
|
|
229
|
+
tenantId: item["tenantId"],
|
|
230
|
+
ledgerRoleName: item["ledgerRoleName"],
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
/** LedgerRole associated with the Security Principal of Ledger */
|
|
234
|
+
export var KnownLedgerRoleName;
|
|
235
|
+
(function (KnownLedgerRoleName) {
|
|
236
|
+
/** Reader */
|
|
237
|
+
KnownLedgerRoleName["Reader"] = "Reader";
|
|
238
|
+
/** Contributor */
|
|
239
|
+
KnownLedgerRoleName["Contributor"] = "Contributor";
|
|
240
|
+
/** Administrator */
|
|
241
|
+
KnownLedgerRoleName["Administrator"] = "Administrator";
|
|
242
|
+
})(KnownLedgerRoleName || (KnownLedgerRoleName = {}));
|
|
243
|
+
export function certBasedSecurityPrincipalArraySerializer(result) {
|
|
244
|
+
return result.map((item) => {
|
|
245
|
+
return certBasedSecurityPrincipalSerializer(item);
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
export function certBasedSecurityPrincipalArrayDeserializer(result) {
|
|
249
|
+
return result.map((item) => {
|
|
250
|
+
return certBasedSecurityPrincipalDeserializer(item);
|
|
251
|
+
});
|
|
252
|
+
}
|
|
253
|
+
export function certBasedSecurityPrincipalSerializer(item) {
|
|
254
|
+
return { cert: item["cert"], ledgerRoleName: item["ledgerRoleName"] };
|
|
255
|
+
}
|
|
256
|
+
export function certBasedSecurityPrincipalDeserializer(item) {
|
|
257
|
+
return {
|
|
258
|
+
cert: item["cert"],
|
|
259
|
+
ledgerRoleName: item["ledgerRoleName"],
|
|
260
|
+
};
|
|
261
|
+
}
|
|
262
|
+
/** Object representing the enclave platform for the Confidential Ledger application. Defaults to IntelSgx. */
|
|
263
|
+
export var KnownEnclavePlatform;
|
|
264
|
+
(function (KnownEnclavePlatform) {
|
|
265
|
+
/** IntelSgx */
|
|
266
|
+
KnownEnclavePlatform["IntelSgx"] = "IntelSgx";
|
|
267
|
+
/** AmdSevSnp */
|
|
268
|
+
KnownEnclavePlatform["AmdSevSnp"] = "AmdSevSnp";
|
|
269
|
+
})(KnownEnclavePlatform || (KnownEnclavePlatform = {}));
|
|
270
|
+
/** Object representing the application type of the Confidential Ledger. Defaults to ConfidentialLedger. */
|
|
271
|
+
export var KnownApplicationType;
|
|
272
|
+
(function (KnownApplicationType) {
|
|
273
|
+
/** ConfidentialLedger */
|
|
274
|
+
KnownApplicationType["ConfidentialLedger"] = "ConfidentialLedger";
|
|
275
|
+
/** CodeTransparency */
|
|
276
|
+
KnownApplicationType["CodeTransparency"] = "CodeTransparency";
|
|
277
|
+
})(KnownApplicationType || (KnownApplicationType = {}));
|
|
278
|
+
export function trackedResourceSerializer(item) {
|
|
279
|
+
return { tags: item["tags"], location: item["location"] };
|
|
280
|
+
}
|
|
281
|
+
export function trackedResourceDeserializer(item) {
|
|
282
|
+
return {
|
|
283
|
+
id: item["id"],
|
|
284
|
+
name: item["name"],
|
|
285
|
+
type: item["type"],
|
|
286
|
+
systemData: !item["systemData"]
|
|
287
|
+
? item["systemData"]
|
|
288
|
+
: systemDataDeserializer(item["systemData"]),
|
|
289
|
+
tags: !item["tags"]
|
|
290
|
+
? item["tags"]
|
|
291
|
+
: Object.fromEntries(Object.entries(item["tags"]).map(([k, p]) => [k, p])),
|
|
292
|
+
location: item["location"],
|
|
293
|
+
};
|
|
294
|
+
}
|
|
295
|
+
export function resourceSerializer(_item) {
|
|
296
|
+
return {};
|
|
297
|
+
}
|
|
298
|
+
export function resourceDeserializer(item) {
|
|
299
|
+
return {
|
|
300
|
+
id: item["id"],
|
|
301
|
+
name: item["name"],
|
|
302
|
+
type: item["type"],
|
|
303
|
+
systemData: !item["systemData"]
|
|
304
|
+
? item["systemData"]
|
|
305
|
+
: systemDataDeserializer(item["systemData"]),
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
export function systemDataDeserializer(item) {
|
|
309
|
+
return {
|
|
310
|
+
createdBy: item["createdBy"],
|
|
311
|
+
createdByType: item["createdByType"],
|
|
312
|
+
createdAt: !item["createdAt"] ? item["createdAt"] : new Date(item["createdAt"]),
|
|
313
|
+
lastModifiedBy: item["lastModifiedBy"],
|
|
314
|
+
lastModifiedByType: item["lastModifiedByType"],
|
|
315
|
+
lastModifiedAt: !item["lastModifiedAt"]
|
|
316
|
+
? item["lastModifiedAt"]
|
|
317
|
+
: new Date(item["lastModifiedAt"]),
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
/** The kind of entity that created the resource. */
|
|
321
|
+
export var KnownCreatedByType;
|
|
322
|
+
(function (KnownCreatedByType) {
|
|
323
|
+
/** The entity was created by a user. */
|
|
324
|
+
KnownCreatedByType["User"] = "User";
|
|
325
|
+
/** The entity was created by an application. */
|
|
326
|
+
KnownCreatedByType["Application"] = "Application";
|
|
327
|
+
/** The entity was created by a managed identity. */
|
|
328
|
+
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
329
|
+
/** The entity was created by a key. */
|
|
330
|
+
KnownCreatedByType["Key"] = "Key";
|
|
331
|
+
})(KnownCreatedByType || (KnownCreatedByType = {}));
|
|
332
|
+
export function _confidentialLedgerListDeserializer(item) {
|
|
333
|
+
return {
|
|
334
|
+
value: confidentialLedgerArrayDeserializer(item["value"]),
|
|
335
|
+
nextLink: item["nextLink"],
|
|
336
|
+
};
|
|
337
|
+
}
|
|
338
|
+
export function confidentialLedgerArraySerializer(result) {
|
|
339
|
+
return result.map((item) => {
|
|
340
|
+
return confidentialLedgerSerializer(item);
|
|
341
|
+
});
|
|
342
|
+
}
|
|
343
|
+
export function confidentialLedgerArrayDeserializer(result) {
|
|
344
|
+
return result.map((item) => {
|
|
345
|
+
return confidentialLedgerDeserializer(item);
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
export function confidentialLedgerFilesExportSerializer(item) {
|
|
349
|
+
return { restoreRegion: item["restoreRegion"], uri: item["uri"] };
|
|
350
|
+
}
|
|
351
|
+
export function confidentialLedgerFilesExportResponseDeserializer(item) {
|
|
352
|
+
return {
|
|
353
|
+
message: item["message"],
|
|
354
|
+
};
|
|
355
|
+
}
|
|
356
|
+
/** The available API versions. */
|
|
357
|
+
export var KnownVersions;
|
|
358
|
+
(function (KnownVersions) {
|
|
359
|
+
/** The 2026-02-23 API version. */
|
|
360
|
+
KnownVersions["V20260223"] = "2026-02-23";
|
|
361
|
+
})(KnownVersions || (KnownVersions = {}));
|
|
362
|
+
//# sourceMappingURL=models.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAgBlC,MAAM,UAAU,sCAAsC,CAAC,IAAkC;IACvF,OAAO,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,CAAC;AACpD,CAAC;AAYD,MAAM,UAAU,yCAAyC,CACvD,IAAS;IAET,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,eAAe,CAAC;QACpC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC;QACtB,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;KACzB,CAAC;AACJ,CAAC;AAED,uDAAuD;AACvD,MAAM,CAAN,IAAY,gCAKX;AALD,WAAY,gCAAgC;IAC1C,uBAAuB;IACvB,uDAAmB,CAAA;IACnB,2BAA2B;IAC3B,mEAA+B,CAAA;AACjC,CAAC,EALW,gCAAgC,KAAhC,gCAAgC,QAK3C;AAkBD,MAAM,UAAU,yBAAyB,CAAC,IAAS;IACjD,OAAO;Q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IAC9C,CAAC,CAAC,CAAC;AACL,CAAC;AAUD,MAAM,UAAU,uCAAuC,CAAC,IAAmC;IACzF,OAAO,EAAE,aAAa,EAAE,IAAI,CAAC,eAAe,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC;AACpE,CAAC;AAQD,MAAM,UAAU,iDAAiD,CAC/D,IAAS;IAET,OAAO;QACL,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC;KACzB,CAAC;AACJ,CAAC;AAED,kCAAkC;AAClC,MAAM,CAAN,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,kCAAkC;IAClC,yCAAwB,CAAA;AAC1B,CAAC,EAHW,aAAa,KAAb,aAAa,QAGxB","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/**\n * This file contains only generated model types and their (de)serializers.\n * Disable the following rules for internal models with '_' prefix and deserializers which require 'any' for raw JSON input.\n */\n/* eslint-disable @typescript-eslint/naming-convention */\n/* eslint-disable @typescript-eslint/explicit-module-boundary-types */\n/** The check availability request body. */\nexport interface CheckNameAvailabilityRequest {\n /** The name of the resource for which availability needs to be checked. */\n name?: string;\n /** The resource type. */\n type?: string;\n}\n\nexport function checkNameAvailabilityRequestSerializer(item: CheckNameAvailabilityRequest): any {\n return { name: item[\"name\"], type: item[\"type\"] };\n}\n\n/** The check availability result. */\nexport interface CheckNameAvailabilityResponse {\n /** Indicates if the resource name is available. */\n nameAvailable?: boolean;\n /** The reason why the given name is not available. */\n reason?: CheckNameAvailabilityReason;\n /** Detailed reason why the given name is not available. */\n message?: string;\n}\n\nexport function checkNameAvailabilityResponseDeserializer(\n item: any,\n): CheckNameAvailabilityResponse {\n return {\n nameAvailable: item[\"nameAvailable\"],\n reason: item[\"reason\"],\n message: item[\"message\"],\n };\n}\n\n/** Possible reasons for a name not being available. */\nexport enum KnownCheckNameAvailabilityReason {\n /** Name is invalid. */\n Invalid = \"Invalid\",\n /** Name already exists. */\n AlreadyExists = \"AlreadyExists\",\n}\n\n/**\n * Possible reasons for a name not being available. \\\n * {@link KnownCheckNameAvailabilityReason} can be used interchangeably with CheckNameAvailabilityReason,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Invalid**: Name is invalid. \\\n * **AlreadyExists**: Name already exists.\n */\nexport type CheckNameAvailabilityReason = string;\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n };\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: ErrorDetail[];\n /** The error additional info. */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\nexport function errorDetailDeserializer(item: any): ErrorDetail {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n target: item[\"target\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailArrayDeserializer(item[\"details\"]),\n additionalInfo: !item[\"additionalInfo\"]\n ? item[\"additionalInfo\"]\n : errorAdditionalInfoArrayDeserializer(item[\"additionalInfo\"]),\n };\n}\n\nexport function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[] {\n return result.map((item) => {\n return errorDetailDeserializer(item);\n });\n}\n\nexport function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[] {\n return result.map((item) => {\n return errorAdditionalInfoDeserializer(item);\n });\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: any;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: item[\"info\"],\n };\n}\n\n/** List containing this Resource Provider's available operations. */\nexport interface _ResourceProviderOperationList {\n /** The list of operations. */\n readonly value?: ResourceProviderOperationDefinition[];\n /** The URL to get the next set of results, if any. */\n nextLink?: string;\n}\n\nexport function _resourceProviderOperationListDeserializer(\n item: any,\n): _ResourceProviderOperationList {\n return {\n value: !item[\"value\"]\n ? item[\"value\"]\n : resourceProviderOperationDefinitionArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function resourceProviderOperationDefinitionArrayDeserializer(\n result: Array<ResourceProviderOperationDefinition>,\n): any[] {\n return result.map((item) => {\n return resourceProviderOperationDefinitionDeserializer(item);\n });\n}\n\n/** Describes the Resource Provider Operation. */\nexport interface ResourceProviderOperationDefinition {\n /** Resource provider operation name. */\n name?: string;\n /** Indicates whether the operation is data action or not. */\n isDataAction?: boolean;\n /** Details about the operations */\n display?: ResourceProviderOperationDisplay;\n}\n\nexport function resourceProviderOperationDefinitionDeserializer(\n item: any,\n): ResourceProviderOperationDefinition {\n return {\n name: item[\"name\"],\n isDataAction: item[\"isDataAction\"],\n display: !item[\"display\"]\n ? item[\"display\"]\n : resourceProviderOperationDisplayDeserializer(item[\"display\"]),\n };\n}\n\n/** Describes the properties of the Operation. */\nexport interface ResourceProviderOperationDisplay {\n /** Name of the resource provider. */\n provider?: string;\n /** Name of the resource type. */\n resource?: string;\n /** Name of the resource provider operation. */\n operation?: string;\n /** Description of the resource provider operation. */\n description?: string;\n}\n\nexport function resourceProviderOperationDisplayDeserializer(\n item: any,\n): ResourceProviderOperationDisplay {\n return {\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n operation: item[\"operation\"],\n description: item[\"description\"],\n };\n}\n\n/** Confidential Ledger. Contains the properties of Confidential Ledger Resource. */\nexport interface ConfidentialLedger extends TrackedResource {\n /** Properties of Confidential Ledger Resource. */\n properties?: LedgerProperties;\n}\n\nexport function confidentialLedgerSerializer(item: ConfidentialLedger): any {\n return {\n tags: item[\"tags\"],\n location: item[\"location\"],\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : ledgerPropertiesSerializer(item[\"properties\"]),\n };\n}\n\nexport function confidentialLedgerDeserializer(item: any): ConfidentialLedger {\n return {\n tags: !item[\"tags\"]\n ? item[\"tags\"]\n : Object.fromEntries(Object.entries(item[\"tags\"]).map(([k, p]: [string, any]) => [k, p])),\n location: item[\"location\"],\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : ledgerPropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** Additional Confidential Ledger properties. */\nexport interface LedgerProperties {\n /** Unique name for the Confidential Ledger. */\n readonly ledgerName?: string;\n /** Endpoint for calling Ledger Service. */\n readonly ledgerUri?: string;\n /** Endpoint for accessing network identity. */\n readonly identityServiceUri?: string;\n /** Internal namespace for the Ledger */\n readonly ledgerInternalNamespace?: string;\n /** Object representing RunningState for Ledger. */\n runningState?: RunningState;\n /** Type of Confidential Ledger */\n ledgerType?: LedgerType;\n /** Provisioning state of Ledger Resource */\n readonly provisioningState?: ProvisioningState;\n /** SKU associated with the ledger */\n ledgerSku?: LedgerSku;\n /** Array of all AAD based Security Principals. */\n aadBasedSecurityPrincipals?: AADBasedSecurityPrincipal[];\n /** Array of all cert based Security Principals. */\n certBasedSecurityPrincipals?: CertBasedSecurityPrincipal[];\n /** CCF Property for the logging level for the untrusted host: Trace, Debug, Info, Fail, Fatal. */\n hostLevel?: string;\n /** CCF Property for the maximum size of the http request body: 1MB, 5MB, 10MB. */\n maxBodySizeInMb?: number;\n /** CCF Property for the subject name to include in the node certificate. Default: CN=CCF Node. */\n subjectName?: string;\n /** Number of CCF nodes in the ACC Ledger. */\n nodeCount?: number;\n /** Prefix for the write load balancer. Example: write */\n writeLBAddressPrefix?: string;\n /** Number of additional threads processing incoming client requests in the enclave (modify with care!) */\n workerThreads?: number;\n /** Enclave platform of the Confidential Ledger. */\n readonly enclavePlatform?: EnclavePlatform;\n /** Application type of the Confidential Ledger. */\n applicationType?: ApplicationType;\n /** The SCITT Configuration that needs to be set for the Confidential Ledger. */\n scittConfiguration?: string;\n}\n\nexport function ledgerPropertiesSerializer(item: LedgerProperties): any {\n return {\n runningState: item[\"runningState\"],\n ledgerType: item[\"ledgerType\"],\n ledgerSku: item[\"ledgerSku\"],\n aadBasedSecurityPrincipals: !item[\"aadBasedSecurityPrincipals\"]\n ? item[\"aadBasedSecurityPrincipals\"]\n : aadBasedSecurityPrincipalArraySerializer(item[\"aadBasedSecurityPrincipals\"]),\n certBasedSecurityPrincipals: !item[\"certBasedSecurityPrincipals\"]\n ? item[\"certBasedSecurityPrincipals\"]\n : certBasedSecurityPrincipalArraySerializer(item[\"certBasedSecurityPrincipals\"]),\n hostLevel: item[\"hostLevel\"],\n maxBodySizeInMb: item[\"maxBodySizeInMb\"],\n subjectName: item[\"subjectName\"],\n nodeCount: item[\"nodeCount\"],\n writeLBAddressPrefix: item[\"writeLBAddressPrefix\"],\n workerThreads: item[\"workerThreads\"],\n applicationType: item[\"applicationType\"],\n scittConfiguration: item[\"scittConfiguration\"],\n };\n}\n\nexport function ledgerPropertiesDeserializer(item: any): LedgerProperties {\n return {\n ledgerName: item[\"ledgerName\"],\n ledgerUri: item[\"ledgerUri\"],\n identityServiceUri: item[\"identityServiceUri\"],\n ledgerInternalNamespace: item[\"ledgerInternalNamespace\"],\n runningState: item[\"runningState\"],\n ledgerType: item[\"ledgerType\"],\n provisioningState: item[\"provisioningState\"],\n ledgerSku: item[\"ledgerSku\"],\n aadBasedSecurityPrincipals: !item[\"aadBasedSecurityPrincipals\"]\n ? item[\"aadBasedSecurityPrincipals\"]\n : aadBasedSecurityPrincipalArrayDeserializer(item[\"aadBasedSecurityPrincipals\"]),\n certBasedSecurityPrincipals: !item[\"certBasedSecurityPrincipals\"]\n ? item[\"certBasedSecurityPrincipals\"]\n : certBasedSecurityPrincipalArrayDeserializer(item[\"certBasedSecurityPrincipals\"]),\n hostLevel: item[\"hostLevel\"],\n maxBodySizeInMb: item[\"maxBodySizeInMb\"],\n subjectName: item[\"subjectName\"],\n nodeCount: item[\"nodeCount\"],\n writeLBAddressPrefix: item[\"writeLBAddressPrefix\"],\n workerThreads: item[\"workerThreads\"],\n enclavePlatform: item[\"enclavePlatform\"],\n applicationType: item[\"applicationType\"],\n scittConfiguration: item[\"scittConfiguration\"],\n };\n}\n\n/** Object representing RunningState for Confidential Ledger. */\nexport enum KnownRunningState {\n /** Active */\n Active = \"Active\",\n /** Paused */\n Paused = \"Paused\",\n /** Unknown */\n Unknown = \"Unknown\",\n /** Pausing */\n Pausing = \"Pausing\",\n /** Resuming */\n Resuming = \"Resuming\",\n}\n\n/**\n * Object representing RunningState for Confidential Ledger. \\\n * {@link KnownRunningState} can be used interchangeably with RunningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Active** \\\n * **Paused** \\\n * **Unknown** \\\n * **Pausing** \\\n * **Resuming**\n */\nexport type RunningState = string;\n\n/** Type of the ledger. Private means transaction data is encrypted. */\nexport enum KnownLedgerType {\n /** Unknown */\n Unknown = \"Unknown\",\n /** Public */\n Public = \"Public\",\n /** Private */\n Private = \"Private\",\n}\n\n/**\n * Type of the ledger. Private means transaction data is encrypted. \\\n * {@link KnownLedgerType} can be used interchangeably with LedgerType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Unknown** \\\n * **Public** \\\n * **Private**\n */\nexport type LedgerType = string;\n\n/** Object representing ProvisioningState for Confidential Ledger. */\nexport enum KnownProvisioningState {\n /** Unknown */\n Unknown = \"Unknown\",\n /** Succeeded */\n Succeeded = \"Succeeded\",\n /** Failed */\n Failed = \"Failed\",\n /** Canceled */\n Canceled = \"Canceled\",\n /** Creating */\n Creating = \"Creating\",\n /** Deleting */\n Deleting = \"Deleting\",\n /** Updating */\n Updating = \"Updating\",\n}\n\n/**\n * Object representing ProvisioningState for Confidential Ledger. \\\n * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Unknown** \\\n * **Succeeded** \\\n * **Failed** \\\n * **Canceled** \\\n * **Creating** \\\n * **Deleting** \\\n * **Updating**\n */\nexport type ProvisioningState = string;\n\n/** SKU associated with the ledger resource */\nexport enum KnownLedgerSku {\n /** Standard */\n Standard = \"Standard\",\n /** Basic */\n Basic = \"Basic\",\n /** Unknown */\n Unknown = \"Unknown\",\n}\n\n/**\n * SKU associated with the ledger resource \\\n * {@link KnownLedgerSku} can be used interchangeably with LedgerSku,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Standard** \\\n * **Basic** \\\n * **Unknown**\n */\nexport type LedgerSku = string;\n\nexport function aadBasedSecurityPrincipalArraySerializer(\n result: Array<AADBasedSecurityPrincipal>,\n): any[] {\n return result.map((item) => {\n return aadBasedSecurityPrincipalSerializer(item);\n });\n}\n\nexport function aadBasedSecurityPrincipalArrayDeserializer(\n result: Array<AADBasedSecurityPrincipal>,\n): any[] {\n return result.map((item) => {\n return aadBasedSecurityPrincipalDeserializer(item);\n });\n}\n\n/** AAD based security principal with associated Ledger RoleName */\nexport interface AADBasedSecurityPrincipal {\n /** UUID/GUID based Principal Id of the Security Principal */\n principalId?: string;\n /** UUID/GUID based Tenant Id of the Security Principal */\n tenantId?: string;\n /** LedgerRole associated with the Security Principal of Ledger */\n ledgerRoleName?: LedgerRoleName;\n}\n\nexport function aadBasedSecurityPrincipalSerializer(item: AADBasedSecurityPrincipal): any {\n return {\n principalId: item[\"principalId\"],\n tenantId: item[\"tenantId\"],\n ledgerRoleName: item[\"ledgerRoleName\"],\n };\n}\n\nexport function aadBasedSecurityPrincipalDeserializer(item: any): AADBasedSecurityPrincipal {\n return {\n principalId: item[\"principalId\"],\n tenantId: item[\"tenantId\"],\n ledgerRoleName: item[\"ledgerRoleName\"],\n };\n}\n\n/** LedgerRole associated with the Security Principal of Ledger */\nexport enum KnownLedgerRoleName {\n /** Reader */\n Reader = \"Reader\",\n /** Contributor */\n Contributor = \"Contributor\",\n /** Administrator */\n Administrator = \"Administrator\",\n}\n\n/**\n * LedgerRole associated with the Security Principal of Ledger \\\n * {@link KnownLedgerRoleName} can be used interchangeably with LedgerRoleName,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Reader** \\\n * **Contributor** \\\n * **Administrator**\n */\nexport type LedgerRoleName = string;\n\nexport function certBasedSecurityPrincipalArraySerializer(\n result: Array<CertBasedSecurityPrincipal>,\n): any[] {\n return result.map((item) => {\n return certBasedSecurityPrincipalSerializer(item);\n });\n}\n\nexport function certBasedSecurityPrincipalArrayDeserializer(\n result: Array<CertBasedSecurityPrincipal>,\n): any[] {\n return result.map((item) => {\n return certBasedSecurityPrincipalDeserializer(item);\n });\n}\n\n/** Cert based security principal with Ledger RoleName */\nexport interface CertBasedSecurityPrincipal {\n /** Public key of the user cert (.pem or .cer) */\n cert?: string;\n /** LedgerRole associated with the Security Principal of Ledger */\n ledgerRoleName?: LedgerRoleName;\n}\n\nexport function certBasedSecurityPrincipalSerializer(item: CertBasedSecurityPrincipal): any {\n return { cert: item[\"cert\"], ledgerRoleName: item[\"ledgerRoleName\"] };\n}\n\nexport function certBasedSecurityPrincipalDeserializer(item: any): CertBasedSecurityPrincipal {\n return {\n cert: item[\"cert\"],\n ledgerRoleName: item[\"ledgerRoleName\"],\n };\n}\n\n/** Object representing the enclave platform for the Confidential Ledger application. Defaults to IntelSgx. */\nexport enum KnownEnclavePlatform {\n /** IntelSgx */\n IntelSgx = \"IntelSgx\",\n /** AmdSevSnp */\n AmdSevSnp = \"AmdSevSnp\",\n}\n\n/**\n * Object representing the enclave platform for the Confidential Ledger application. Defaults to IntelSgx. \\\n * {@link KnownEnclavePlatform} can be used interchangeably with EnclavePlatform,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **IntelSgx** \\\n * **AmdSevSnp**\n */\nexport type EnclavePlatform = string;\n\n/** Object representing the application type of the Confidential Ledger. Defaults to ConfidentialLedger. */\nexport enum KnownApplicationType {\n /** ConfidentialLedger */\n ConfidentialLedger = \"ConfidentialLedger\",\n /** CodeTransparency */\n CodeTransparency = \"CodeTransparency\",\n}\n\n/**\n * Object representing the application type of the Confidential Ledger. Defaults to ConfidentialLedger. \\\n * {@link KnownApplicationType} can be used interchangeably with ApplicationType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **ConfidentialLedger** \\\n * **CodeTransparency**\n */\nexport type ApplicationType = string;\n\n/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */\nexport interface TrackedResource extends Resource {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The geo-location where the resource lives */\n location: string;\n}\n\nexport function trackedResourceSerializer(item: TrackedResource): any {\n return { tags: item[\"tags\"], location: item[\"location\"] };\n}\n\nexport function trackedResourceDeserializer(item: any): TrackedResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n tags: !item[\"tags\"]\n ? item[\"tags\"]\n : Object.fromEntries(Object.entries(item[\"tags\"]).map(([k, p]: [string, any]) => [k, p])),\n location: item[\"location\"],\n };\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\n /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */\n readonly id?: string;\n /** The name of the resource */\n readonly name?: string;\n /** The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\" */\n readonly type?: string;\n /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */\n readonly systemData?: SystemData;\n}\n\nexport function resourceSerializer(_item: Resource): any {\n return {};\n}\n\nexport function resourceDeserializer(item: any): Resource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\nexport function systemDataDeserializer(item: any): SystemData {\n return {\n createdBy: item[\"createdBy\"],\n createdByType: item[\"createdByType\"],\n createdAt: !item[\"createdAt\"] ? item[\"createdAt\"] : new Date(item[\"createdAt\"]),\n lastModifiedBy: item[\"lastModifiedBy\"],\n lastModifiedByType: item[\"lastModifiedByType\"],\n lastModifiedAt: !item[\"lastModifiedAt\"]\n ? item[\"lastModifiedAt\"]\n : new Date(item[\"lastModifiedAt\"]),\n };\n}\n\n/** The kind of entity that created the resource. */\nexport enum KnownCreatedByType {\n /** The entity was created by a user. */\n User = \"User\",\n /** The entity was created by an application. */\n Application = \"Application\",\n /** The entity was created by a managed identity. */\n ManagedIdentity = \"ManagedIdentity\",\n /** The entity was created by a key. */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\n * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User**: The entity was created by a user. \\\n * **Application**: The entity was created by an application. \\\n * **ManagedIdentity**: The entity was created by a managed identity. \\\n * **Key**: The entity was created by a key.\n */\nexport type CreatedByType = string;\n\n/** Object that includes an array of Confidential Ledgers and a possible link for next set. */\nexport interface _ConfidentialLedgerList {\n /** The ConfidentialLedger items on this page */\n value: ConfidentialLedger[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _confidentialLedgerListDeserializer(item: any): _ConfidentialLedgerList {\n return {\n value: confidentialLedgerArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function confidentialLedgerArraySerializer(result: Array<ConfidentialLedger>): any[] {\n return result.map((item) => {\n return confidentialLedgerSerializer(item);\n });\n}\n\nexport function confidentialLedgerArrayDeserializer(result: Array<ConfidentialLedger>): any[] {\n return result.map((item) => {\n return confidentialLedgerDeserializer(item);\n });\n}\n\n/** Object representing Files Export properties of a Confidential Ledger Resource. */\nexport interface ConfidentialLedgerFilesExport {\n /** The region where the exported ledger files will eventually be restored to. */\n restoreRegion?: string;\n /** SAS URI used to access the Fileshare for exporting ledger files. */\n uri: string;\n}\n\nexport function confidentialLedgerFilesExportSerializer(item: ConfidentialLedgerFilesExport): any {\n return { restoreRegion: item[\"restoreRegion\"], uri: item[\"uri\"] };\n}\n\n/** Object representing the files export response of a Confidential Ledger Resource. */\nexport interface ConfidentialLedgerFilesExportResponse {\n /** Response body stating if the ledger files are being exported. */\n readonly message?: string;\n}\n\nexport function confidentialLedgerFilesExportResponseDeserializer(\n item: any,\n): ConfidentialLedgerFilesExportResponse {\n return {\n message: item[\"message\"],\n };\n}\n\n/** The available API versions. */\nexport enum KnownVersions {\n /** The 2026-02-23 API version. */\n V20260223 = \"2026-02-23\",\n}\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ConfidentialLedgerClient } from "./confidentialLedgerClient.js";
|
|
2
|
+
import { OperationOptions, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
3
|
+
import { AbortSignalLike } from "@azure/abort-controller";
|
|
4
|
+
import { PollerLike, OperationState } from "@azure/core-lro";
|
|
5
|
+
export interface RestorePollerOptions<TResult, TResponse extends PathUncheckedResponse = PathUncheckedResponse> extends OperationOptions {
|
|
6
|
+
/** Delay to wait until next poll, in milliseconds. */
|
|
7
|
+
updateIntervalInMs?: number;
|
|
8
|
+
/**
|
|
9
|
+
* The signal which can be used to abort requests.
|
|
10
|
+
*/
|
|
11
|
+
abortSignal?: AbortSignalLike;
|
|
12
|
+
/** Deserialization function for raw response body */
|
|
13
|
+
processResponseBody?: (result: TResponse) => Promise<TResult>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Creates a poller from the serialized state of another poller. This can be
|
|
17
|
+
* useful when you want to create pollers on a different host or a poller
|
|
18
|
+
* needs to be constructed after the original one is not in scope.
|
|
19
|
+
*/
|
|
20
|
+
export declare function restorePoller<TResponse extends PathUncheckedResponse, TResult>(client: ConfidentialLedgerClient, serializedState: string, sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>, options?: RestorePollerOptions<TResult>): PollerLike<OperationState<TResult>, TResult>;
|
|
21
|
+
//# sourceMappingURL=restorePollerHelpers.d.ts.map
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
import { _filesExportDeserialize, _$deleteDeserialize, _updateDeserialize, _createDeserialize, } from "./api/ledger/operations.js";
|
|
4
|
+
import { getLongRunningPoller } from "./static-helpers/pollingHelpers.js";
|
|
5
|
+
import { deserializeState, } from "@azure/core-lro";
|
|
6
|
+
/**
|
|
7
|
+
* Creates a poller from the serialized state of another poller. This can be
|
|
8
|
+
* useful when you want to create pollers on a different host or a poller
|
|
9
|
+
* needs to be constructed after the original one is not in scope.
|
|
10
|
+
*/
|
|
11
|
+
export function restorePoller(client, serializedState, sourceOperation, options) {
|
|
12
|
+
const pollerConfig = deserializeState(serializedState).config;
|
|
13
|
+
const { initialRequestUrl, requestMethod, metadata } = pollerConfig;
|
|
14
|
+
if (!initialRequestUrl || !requestMethod) {
|
|
15
|
+
throw new Error(`Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`);
|
|
16
|
+
}
|
|
17
|
+
const resourceLocationConfig = metadata?.["resourceLocationConfig"];
|
|
18
|
+
const { deserializer, expectedStatuses = [] } = getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};
|
|
19
|
+
const deserializeHelper = options?.processResponseBody ?? deserializer;
|
|
20
|
+
if (!deserializeHelper) {
|
|
21
|
+
throw new Error(`Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`);
|
|
22
|
+
}
|
|
23
|
+
const apiVersion = getApiVersionFromUrl(initialRequestUrl);
|
|
24
|
+
return getLongRunningPoller(client["_client"] ?? client, deserializeHelper, expectedStatuses, {
|
|
25
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
26
|
+
abortSignal: options?.abortSignal,
|
|
27
|
+
resourceLocationConfig,
|
|
28
|
+
restoreFrom: serializedState,
|
|
29
|
+
initialRequestUrl,
|
|
30
|
+
apiVersion,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
const deserializeMap = {
|
|
34
|
+
"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}/filesExport": { deserializer: _filesExportDeserialize, expectedStatuses: ["200", "202", "201"] },
|
|
35
|
+
"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}": { deserializer: _$deleteDeserialize, expectedStatuses: ["200", "202", "204"] },
|
|
36
|
+
"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}": { deserializer: _updateDeserialize, expectedStatuses: ["200", "201", "202"] },
|
|
37
|
+
"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}": { deserializer: _createDeserialize, expectedStatuses: ["200", "201", "202"] },
|
|
38
|
+
};
|
|
39
|
+
function getDeserializationHelper(urlStr, method) {
|
|
40
|
+
const path = new URL(urlStr).pathname;
|
|
41
|
+
const pathParts = path.split("/");
|
|
42
|
+
// Traverse list to match the longest candidate
|
|
43
|
+
// matchedLen: the length of candidate path
|
|
44
|
+
// matchedValue: the matched status code array
|
|
45
|
+
let matchedLen = -1, matchedValue;
|
|
46
|
+
// Iterate the responseMap to find a match
|
|
47
|
+
for (const [key, value] of Object.entries(deserializeMap)) {
|
|
48
|
+
// Extracting the path from the map key which is in format
|
|
49
|
+
// GET /path/foo
|
|
50
|
+
if (!key.startsWith(method)) {
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
const candidatePath = getPathFromMapKey(key);
|
|
54
|
+
// Get each part of the url path
|
|
55
|
+
const candidateParts = candidatePath.split("/");
|
|
56
|
+
// track if we have found a match to return the values found.
|
|
57
|
+
let found = true;
|
|
58
|
+
for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {
|
|
59
|
+
if (candidateParts[i]?.startsWith("{") && candidateParts[i]?.indexOf("}") !== -1) {
|
|
60
|
+
const start = candidateParts[i].indexOf("}") + 1, end = candidateParts[i]?.length;
|
|
61
|
+
// If the current part of the candidate is a "template" part
|
|
62
|
+
// Try to use the suffix of pattern to match the path
|
|
63
|
+
// {guid} ==> $
|
|
64
|
+
// {guid}:export ==> :export$
|
|
65
|
+
const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(pathParts[j] || "");
|
|
66
|
+
if (!isMatched) {
|
|
67
|
+
found = false;
|
|
68
|
+
break;
|
|
69
|
+
}
|
|
70
|
+
continue;
|
|
71
|
+
}
|
|
72
|
+
// If the candidate part is not a template and
|
|
73
|
+
// the parts don't match mark the candidate as not found
|
|
74
|
+
// to move on with the next candidate path.
|
|
75
|
+
if (candidateParts[i] !== pathParts[j]) {
|
|
76
|
+
found = false;
|
|
77
|
+
break;
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
// We finished evaluating the current candidate parts
|
|
81
|
+
// Update the matched value if and only if we found the longer pattern
|
|
82
|
+
if (found && candidatePath.length > matchedLen) {
|
|
83
|
+
matchedLen = candidatePath.length;
|
|
84
|
+
matchedValue = value;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
return matchedValue;
|
|
88
|
+
}
|
|
89
|
+
function getPathFromMapKey(mapKey) {
|
|
90
|
+
const pathStart = mapKey.indexOf("/");
|
|
91
|
+
return mapKey.slice(pathStart);
|
|
92
|
+
}
|
|
93
|
+
function getApiVersionFromUrl(urlStr) {
|
|
94
|
+
const url = new URL(urlStr);
|
|
95
|
+
return url.searchParams.get("api-version") ?? undefined;
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=restorePollerHelpers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"restorePollerHelpers.js","sourceRoot":"","sources":["../../src/restorePollerHelpers.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,uBAAuB,EACvB,mBAAmB,EACnB,kBAAkB,EAClB,kBAAkB,GACnB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAG1E,OAAO,EAGL,gBAAgB,GAEjB,MAAM,iBAAiB,CAAC;AAgBzB;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAC3B,MAAgC,EAChC,eAAuB,EACvB,eAAiF,EACjF,OAAuC;IAEvC,MAAM,YAAY,GAAG,gBAAgB,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC;IAC9D,MAAM,EAAE,iBAAiB,EAAE,aAAa,EAAE,QAAQ,EAAE,GAAG,YAAY,CAAC;IACpE,IAAI,CAAC,iBAAiB,IAAI,CAAC,aAAa,EAAE,CAAC;QACzC,MAAM,IAAI,KAAK,CACb,6BAA6B,eAAe,wBAAwB,eAAe,EAAE,IAAI,EAAE,CAC5F,CAAC;IACJ,CAAC;IACD,MAAM,sBAAsB,GAAG,QAAQ,EAAE,CAAC,wBAAwB,CAErD,CAAC;IACd,MAAM,EAAE,YAAY,EAAE,gBAAgB,GAAG,EAAE,EAAE,GAC3C,wBAAwB,CAAC,iBAAiB,EAAE,aAAa,CAAC,IAAI,EAAE,CAAC;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S,CAAC,CAAC,CAAC,IAAI,EAAE,CACnB,CAAC;gBAEF,IAAI,CAAC,SAAS,EAAE,CAAC;oBACf,KAAK,GAAG,KAAK,CAAC;oBACd,MAAM;gBACR,CAAC;gBACD,SAAS;YACX,CAAC;YAED,8CAA8C;YAC9C,wDAAwD;YACxD,2CAA2C;YAC3C,IAAI,cAAc,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;gBACvC,KAAK,GAAG,KAAK,CAAC;gBACd,MAAM;YACR,CAAC;QACH,CAAC;QAED,qDAAqD;QACrD,sEAAsE;QACtE,IAAI,KAAK,IAAI,aAAa,CAAC,MAAM,GAAG,UAAU,EAAE,CAAC;YAC/C,UAAU,GAAG,aAAa,CAAC,MAAM,CAAC;YAClC,YAAY,GAAG,KAAK,CAAC;QACvB,CAAC;IACH,CAAC;IAED,OAAO,YAAY,CAAC;AACtB,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAc;IACvC,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;AACjC,CAAC;AAED,SAAS,oBAAoB,CAAC,MAAc;IAC1C,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,CAAC;IAC5B,OAAO,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,SAAS,CAAC;AAC1D,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { ConfidentialLedgerClient } from \"./confidentialLedgerClient.js\";\nimport {\n _filesExportDeserialize,\n _$deleteDeserialize,\n _updateDeserialize,\n _createDeserialize,\n} from \"./api/ledger/operations.js\";\nimport { getLongRunningPoller } from \"./static-helpers/pollingHelpers.js\";\nimport { OperationOptions, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport {\n PollerLike,\n OperationState,\n deserializeState,\n ResourceLocationConfig,\n} from \"@azure/core-lro\";\n\nexport interface RestorePollerOptions<\n TResult,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n> extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /**\n * The signal which can be used to abort requests.\n */\n abortSignal?: AbortSignalLike;\n /** Deserialization function for raw response body */\n processResponseBody?: (result: TResponse) => Promise<TResult>;\n}\n\n/**\n * Creates a poller from the serialized state of another poller. This can be\n * useful when you want to create pollers on a different host or a poller\n * needs to be constructed after the original one is not in scope.\n */\nexport function restorePoller<TResponse extends PathUncheckedResponse, TResult>(\n client: ConfidentialLedgerClient,\n serializedState: string,\n sourceOperation: (...args: any[]) => PollerLike<OperationState<TResult>, TResult>,\n options?: RestorePollerOptions<TResult>,\n): PollerLike<OperationState<TResult>, TResult> {\n const pollerConfig = deserializeState(serializedState).config;\n const { initialRequestUrl, requestMethod, metadata } = pollerConfig;\n if (!initialRequestUrl || !requestMethod) {\n throw new Error(\n `Invalid serialized state: ${serializedState} for sourceOperation ${sourceOperation?.name}`,\n );\n }\n const resourceLocationConfig = metadata?.[\"resourceLocationConfig\"] as\n | ResourceLocationConfig\n | undefined;\n const { deserializer, expectedStatuses = [] } =\n getDeserializationHelper(initialRequestUrl, requestMethod) ?? {};\n const deserializeHelper = options?.processResponseBody ?? deserializer;\n if (!deserializeHelper) {\n throw new Error(\n `Please ensure the operation is in this client! We can't find its deserializeHelper for ${sourceOperation?.name}.`,\n );\n }\n const apiVersion = getApiVersionFromUrl(initialRequestUrl);\n return getLongRunningPoller(\n (client as any)[\"_client\"] ?? client,\n deserializeHelper as (result: TResponse) => Promise<TResult>,\n expectedStatuses,\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n resourceLocationConfig,\n restoreFrom: serializedState,\n initialRequestUrl,\n apiVersion,\n },\n );\n}\n\ninterface DeserializationHelper {\n deserializer: (result: PathUncheckedResponse) => Promise<any>;\n expectedStatuses: string[];\n}\n\nconst deserializeMap: Record<string, DeserializationHelper> = {\n \"POST /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}/filesExport\":\n { deserializer: _filesExportDeserialize, expectedStatuses: [\"200\", \"202\", \"201\"] },\n \"DELETE /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}\":\n { deserializer: _$deleteDeserialize, expectedStatuses: [\"200\", \"202\", \"204\"] },\n \"PATCH /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}\":\n { deserializer: _updateDeserialize, expectedStatuses: [\"200\", \"201\", \"202\"] },\n \"PUT /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ConfidentialLedger/ledgers/{ledgerName}\":\n { deserializer: _createDeserialize, expectedStatuses: [\"200\", \"201\", \"202\"] },\n};\n\nfunction getDeserializationHelper(\n urlStr: string,\n method: string,\n): DeserializationHelper | undefined {\n const path = new URL(urlStr).pathname;\n const pathParts = path.split(\"/\");\n\n // Traverse list to match the longest candidate\n // matchedLen: the length of candidate path\n // matchedValue: the matched status code array\n let matchedLen = -1,\n matchedValue: DeserializationHelper | undefined;\n\n // Iterate the responseMap to find a match\n for (const [key, value] of Object.entries(deserializeMap)) {\n // Extracting the path from the map key which is in format\n // GET /path/foo\n if (!key.startsWith(method)) {\n continue;\n }\n const candidatePath = getPathFromMapKey(key);\n // Get each part of the url path\n const candidateParts = candidatePath.split(\"/\");\n\n // track if we have found a match to return the values found.\n let found = true;\n for (let i = candidateParts.length - 1, j = pathParts.length - 1; i >= 1 && j >= 1; i--, j--) {\n if (candidateParts[i]?.startsWith(\"{\") && candidateParts[i]?.indexOf(\"}\") !== -1) {\n const start = candidateParts[i]!.indexOf(\"}\") + 1,\n end = candidateParts[i]?.length;\n // If the current part of the candidate is a \"template\" part\n // Try to use the suffix of pattern to match the path\n // {guid} ==> $\n // {guid}:export ==> :export$\n const isMatched = new RegExp(`${candidateParts[i]?.slice(start, end)}`).test(\n pathParts[j] || \"\",\n );\n\n if (!isMatched) {\n found = false;\n break;\n }\n continue;\n }\n\n // If the candidate part is not a template and\n // the parts don't match mark the candidate as not found\n // to move on with the next candidate path.\n if (candidateParts[i] !== pathParts[j]) {\n found = false;\n break;\n }\n }\n\n // We finished evaluating the current candidate parts\n // Update the matched value if and only if we found the longer pattern\n if (found && candidatePath.length > matchedLen) {\n matchedLen = candidatePath.length;\n matchedValue = value;\n }\n }\n\n return matchedValue;\n}\n\nfunction getPathFromMapKey(mapKey: string): string {\n const pathStart = mapKey.indexOf(\"/\");\n return mapKey.slice(pathStart);\n}\n\nfunction getApiVersionFromUrl(urlStr: string): string | undefined {\n const url = new URL(urlStr);\n return url.searchParams.get(\"api-version\") ?? undefined;\n}\n"]}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An enum to describe Azure Cloud environments.
|
|
3
|
+
* @enum {string}
|
|
4
|
+
*/
|
|
5
|
+
export declare enum AzureClouds {
|
|
6
|
+
/** Azure public cloud, which is the default cloud for Azure SDKs. */
|
|
7
|
+
AZURE_PUBLIC_CLOUD = "AZURE_PUBLIC_CLOUD",
|
|
8
|
+
/** Azure China cloud */
|
|
9
|
+
AZURE_CHINA_CLOUD = "AZURE_CHINA_CLOUD",
|
|
10
|
+
/** Azure US government cloud */
|
|
11
|
+
AZURE_US_GOVERNMENT = "AZURE_US_GOVERNMENT"
|
|
12
|
+
}
|
|
13
|
+
/** The supported values for cloud setting as a string literal type */
|
|
14
|
+
export type AzureSupportedClouds = `${AzureClouds}`;
|
|
15
|
+
/**
|
|
16
|
+
* Gets the Azure Resource Manager endpoint URL for the specified cloud setting.
|
|
17
|
+
* @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.
|
|
18
|
+
* @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.
|
|
19
|
+
* @throws {Error} Throws an error if an unknown cloud setting is provided.
|
|
20
|
+
*/
|
|
21
|
+
export declare function getArmEndpoint(cloudSetting?: AzureSupportedClouds): string | undefined;
|
|
22
|
+
//# sourceMappingURL=cloudSettingHelpers.d.ts.map
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
// Copyright (c) Microsoft Corporation.
|
|
2
|
+
// Licensed under the MIT License.
|
|
3
|
+
/**
|
|
4
|
+
* An enum to describe Azure Cloud environments.
|
|
5
|
+
* @enum {string}
|
|
6
|
+
*/
|
|
7
|
+
export var AzureClouds;
|
|
8
|
+
(function (AzureClouds) {
|
|
9
|
+
/** Azure public cloud, which is the default cloud for Azure SDKs. */
|
|
10
|
+
AzureClouds["AZURE_PUBLIC_CLOUD"] = "AZURE_PUBLIC_CLOUD";
|
|
11
|
+
/** Azure China cloud */
|
|
12
|
+
AzureClouds["AZURE_CHINA_CLOUD"] = "AZURE_CHINA_CLOUD";
|
|
13
|
+
/** Azure US government cloud */
|
|
14
|
+
AzureClouds["AZURE_US_GOVERNMENT"] = "AZURE_US_GOVERNMENT";
|
|
15
|
+
})(AzureClouds || (AzureClouds = {}));
|
|
16
|
+
/**
|
|
17
|
+
* Gets the Azure Resource Manager endpoint URL for the specified cloud setting.
|
|
18
|
+
* @param cloudSetting - The Azure cloud environment setting. Use one of the AzureClouds enum values.
|
|
19
|
+
* @returns The ARM endpoint URL for the specified cloud, or undefined if cloudSetting is undefined.
|
|
20
|
+
* @throws {Error} Throws an error if an unknown cloud setting is provided.
|
|
21
|
+
*/
|
|
22
|
+
export function getArmEndpoint(cloudSetting) {
|
|
23
|
+
if (cloudSetting === undefined) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
const cloudEndpoints = {
|
|
27
|
+
AZURE_CHINA_CLOUD: "https://management.chinacloudapi.cn/",
|
|
28
|
+
AZURE_US_GOVERNMENT: "https://management.usgovcloudapi.net/",
|
|
29
|
+
AZURE_PUBLIC_CLOUD: "https://management.azure.com/",
|
|
30
|
+
};
|
|
31
|
+
if (cloudSetting in cloudEndpoints) {
|
|
32
|
+
return cloudEndpoints[cloudSetting];
|
|
33
|
+
}
|
|
34
|
+
else {
|
|
35
|
+
throw new Error(`Unknown cloud setting: ${cloudSetting}. Please refer to the enum AzureClouds for possible values.`);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=cloudSettingHelpers.js.map
|