@azure/arm-confidentialledger 1.3.0-beta.1 → 1.3.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/CHANGELOG.md +130 -4
- package/LICENSE +3 -3
- package/README.md +24 -18
- package/{dist-esm/src → dist/browser}/confidentialLedgerClient.d.ts +2 -2
- package/dist/browser/confidentialLedgerClient.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/confidentialLedgerClient.js +29 -32
- package/dist/browser/confidentialLedgerClient.js.map +1 -0
- package/dist/browser/index.d.ts +5 -0
- package/dist/browser/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/index.js +4 -4
- package/dist/browser/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/lroImpl.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/lroImpl.js +1 -1
- package/dist/browser/lroImpl.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/index.d.ts +199 -24
- package/dist/browser/models/index.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/models/index.js +26 -0
- package/dist/browser/models/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/mappers.d.ts +8 -0
- package/dist/browser/models/mappers.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/models/mappers.js +439 -213
- package/dist/browser/models/mappers.js.map +1 -0
- package/{dist-esm/src → dist/browser}/models/parameters.d.ts +4 -0
- package/{dist-esm/src → dist/browser}/models/parameters.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/models/parameters.js +55 -39
- package/dist/browser/models/parameters.js.map +1 -0
- package/dist/browser/operations/index.d.ts +4 -0
- package/{dist-esm/src → dist/browser}/operations/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/operations/index.js +3 -3
- package/dist/browser/operations/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/ledger.d.ts +35 -3
- package/dist/browser/operations/ledger.d.ts.map +1 -0
- package/dist/browser/operations/ledger.js +702 -0
- package/dist/browser/operations/ledger.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/managedCCFOperations.d.ts +37 -5
- package/dist/browser/operations/managedCCFOperations.d.ts.map +1 -0
- package/dist/browser/operations/managedCCFOperations.js +702 -0
- package/dist/browser/operations/managedCCFOperations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.d.ts +3 -3
- package/dist/browser/operations/operations.d.ts.map +1 -0
- package/{dist-esm/src → dist/browser}/operations/operations.js +18 -16
- package/dist/browser/operations/operations.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +4 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.d.ts.map +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/index.js +3 -3
- package/dist/browser/operationsInterfaces/index.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/ledger.d.ts +33 -1
- package/dist/browser/operationsInterfaces/ledger.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/ledger.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/managedCCFOperations.d.ts +35 -3
- package/dist/browser/operationsInterfaces/managedCCFOperations.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/managedCCFOperations.js.map +1 -0
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts +1 -1
- package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/operations.js.map +1 -0
- package/dist/browser/package.json +3 -0
- package/dist/browser/pagingHelper.js.map +1 -0
- package/dist/commonjs/confidentialLedgerClient.d.ts +28 -0
- package/dist/commonjs/confidentialLedgerClient.d.ts.map +1 -0
- package/dist/commonjs/confidentialLedgerClient.js +134 -0
- package/dist/commonjs/confidentialLedgerClient.js.map +1 -0
- package/dist/commonjs/index.d.ts +5 -0
- package/dist/commonjs/index.d.ts.map +1 -0
- package/dist/commonjs/index.js +19 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/lroImpl.d.ts +11 -0
- package/dist/commonjs/lroImpl.d.ts.map +1 -0
- package/dist/commonjs/lroImpl.js +24 -0
- package/dist/commonjs/lroImpl.js.map +1 -0
- package/{types/arm-confidentialledger.d.ts → dist/commonjs/models/index.d.ts} +725 -805
- package/dist/commonjs/models/index.d.ts.map +1 -0
- package/dist/commonjs/models/index.js +117 -0
- package/dist/commonjs/models/index.js.map +1 -0
- package/dist/commonjs/models/mappers.d.ts +32 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -0
- package/dist/commonjs/models/mappers.js +888 -0
- package/dist/commonjs/models/mappers.js.map +1 -0
- package/dist/commonjs/models/parameters.d.ts +19 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -0
- package/dist/commonjs/models/parameters.js +157 -0
- package/dist/commonjs/models/parameters.js.map +1 -0
- package/dist/commonjs/operations/index.d.ts +4 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -0
- package/dist/commonjs/operations/index.js +14 -0
- package/dist/commonjs/operations/index.js.map +1 -0
- package/dist/commonjs/operations/ledger.d.ts +139 -0
- package/dist/commonjs/operations/ledger.d.ts.map +1 -0
- package/dist/commonjs/operations/ledger.js +706 -0
- package/dist/commonjs/operations/ledger.js.map +1 -0
- package/dist/commonjs/operations/managedCCFOperations.d.ts +139 -0
- package/dist/commonjs/operations/managedCCFOperations.d.ts.map +1 -0
- package/dist/commonjs/operations/managedCCFOperations.js +706 -0
- package/dist/commonjs/operations/managedCCFOperations.js.map +1 -0
- package/dist/commonjs/operations/operations.d.ts +32 -0
- package/dist/commonjs/operations/operations.d.ts.map +1 -0
- package/dist/commonjs/operations/operations.js +137 -0
- package/dist/commonjs/operations/operations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts +4 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/index.js +14 -0
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/ledger.d.ts +103 -0
- package/dist/commonjs/operationsInterfaces/ledger.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/ledger.js +10 -0
- package/dist/commonjs/operationsInterfaces/ledger.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/managedCCFOperations.d.ts +103 -0
- package/dist/commonjs/operationsInterfaces/managedCCFOperations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/managedCCFOperations.js +10 -0
- package/dist/commonjs/operationsInterfaces/managedCCFOperations.js.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts +11 -0
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/operations.js +10 -0
- package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
- package/dist/commonjs/package.json +3 -0
- package/dist/commonjs/pagingHelper.d.ts +13 -0
- package/dist/commonjs/pagingHelper.d.ts.map +1 -0
- package/dist/commonjs/pagingHelper.js +36 -0
- package/dist/commonjs/pagingHelper.js.map +1 -0
- package/{types → dist/commonjs}/tsdoc-metadata.json +1 -1
- package/dist/esm/confidentialLedgerClient.d.ts +28 -0
- package/dist/esm/confidentialLedgerClient.d.ts.map +1 -0
- package/dist/esm/confidentialLedgerClient.js +129 -0
- package/dist/esm/confidentialLedgerClient.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -0
- package/{src/index.ts → dist/esm/index.js} +5 -5
- package/dist/esm/index.js.map +1 -0
- package/dist/esm/lroImpl.d.ts +11 -0
- package/dist/esm/lroImpl.d.ts.map +1 -0
- package/dist/esm/lroImpl.js +21 -0
- package/dist/esm/lroImpl.js.map +1 -0
- package/dist/esm/models/index.d.ts +725 -0
- package/dist/esm/models/index.d.ts.map +1 -0
- package/dist/esm/models/index.js +114 -0
- package/dist/esm/models/index.js.map +1 -0
- package/dist/esm/models/mappers.d.ts +32 -0
- package/dist/esm/models/mappers.d.ts.map +1 -0
- package/dist/esm/models/mappers.js +885 -0
- package/dist/esm/models/mappers.js.map +1 -0
- package/dist/esm/models/parameters.d.ts +19 -0
- package/dist/esm/models/parameters.d.ts.map +1 -0
- package/dist/esm/models/parameters.js +154 -0
- package/dist/esm/models/parameters.js.map +1 -0
- package/dist/esm/operations/index.d.ts +4 -0
- package/dist/esm/operations/index.d.ts.map +1 -0
- package/dist/esm/operations/index.js +11 -0
- package/dist/esm/operations/index.js.map +1 -0
- package/dist/esm/operations/ledger.d.ts +139 -0
- package/dist/esm/operations/ledger.d.ts.map +1 -0
- package/dist/esm/operations/ledger.js +702 -0
- package/dist/esm/operations/ledger.js.map +1 -0
- package/dist/esm/operations/managedCCFOperations.d.ts +139 -0
- package/dist/esm/operations/managedCCFOperations.d.ts.map +1 -0
- package/dist/esm/operations/managedCCFOperations.js +702 -0
- package/dist/esm/operations/managedCCFOperations.js.map +1 -0
- package/dist/esm/operations/operations.d.ts +32 -0
- package/dist/esm/operations/operations.d.ts.map +1 -0
- package/dist/esm/operations/operations.js +133 -0
- package/dist/esm/operations/operations.js.map +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts +4 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/index.js +11 -0
- package/dist/esm/operationsInterfaces/index.js.map +1 -0
- package/dist/esm/operationsInterfaces/ledger.d.ts +103 -0
- package/dist/esm/operationsInterfaces/ledger.d.ts.map +1 -0
- package/{src/operations/index.ts → dist/esm/operationsInterfaces/ledger.js} +2 -4
- package/dist/esm/operationsInterfaces/ledger.js.map +1 -0
- package/dist/esm/operationsInterfaces/managedCCFOperations.d.ts +103 -0
- package/dist/esm/operationsInterfaces/managedCCFOperations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/managedCCFOperations.js +9 -0
- package/dist/esm/operationsInterfaces/managedCCFOperations.js.map +1 -0
- package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
- package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/operations.js +9 -0
- package/dist/esm/operationsInterfaces/operations.js.map +1 -0
- package/dist/esm/package.json +3 -0
- package/dist/esm/pagingHelper.d.ts +13 -0
- package/dist/esm/pagingHelper.d.ts.map +1 -0
- package/dist/esm/pagingHelper.js +32 -0
- package/dist/esm/pagingHelper.js.map +1 -0
- package/dist/react-native/confidentialLedgerClient.d.ts +28 -0
- package/dist/react-native/confidentialLedgerClient.d.ts.map +1 -0
- package/dist/react-native/confidentialLedgerClient.js +129 -0
- package/dist/react-native/confidentialLedgerClient.js.map +1 -0
- package/dist/react-native/index.d.ts +5 -0
- package/dist/react-native/index.d.ts.map +1 -0
- package/dist/react-native/index.js +13 -0
- package/dist/react-native/index.js.map +1 -0
- package/dist/react-native/lroImpl.d.ts +11 -0
- package/dist/react-native/lroImpl.d.ts.map +1 -0
- package/dist/react-native/lroImpl.js +21 -0
- package/dist/react-native/lroImpl.js.map +1 -0
- package/dist/react-native/models/index.d.ts +725 -0
- package/dist/react-native/models/index.d.ts.map +1 -0
- package/dist/react-native/models/index.js +114 -0
- package/dist/react-native/models/index.js.map +1 -0
- package/dist/react-native/models/mappers.d.ts +32 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -0
- package/dist/react-native/models/mappers.js +885 -0
- package/dist/react-native/models/mappers.js.map +1 -0
- package/dist/react-native/models/parameters.d.ts +19 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -0
- package/dist/react-native/models/parameters.js +154 -0
- package/dist/react-native/models/parameters.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +4 -0
- package/dist/react-native/operations/index.d.ts.map +1 -0
- package/dist/react-native/operations/index.js +11 -0
- package/dist/react-native/operations/index.js.map +1 -0
- package/dist/react-native/operations/ledger.d.ts +139 -0
- package/dist/react-native/operations/ledger.d.ts.map +1 -0
- package/dist/react-native/operations/ledger.js +702 -0
- package/dist/react-native/operations/ledger.js.map +1 -0
- package/dist/react-native/operations/managedCCFOperations.d.ts +139 -0
- package/dist/react-native/operations/managedCCFOperations.d.ts.map +1 -0
- package/dist/react-native/operations/managedCCFOperations.js +702 -0
- package/dist/react-native/operations/managedCCFOperations.js.map +1 -0
- package/dist/react-native/operations/operations.d.ts +32 -0
- package/dist/react-native/operations/operations.d.ts.map +1 -0
- package/dist/react-native/operations/operations.js +133 -0
- package/dist/react-native/operations/operations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +4 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/index.js +11 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -0
- package/dist/react-native/operationsInterfaces/ledger.d.ts +103 -0
- package/dist/react-native/operationsInterfaces/ledger.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/ledger.js +9 -0
- package/dist/react-native/operationsInterfaces/ledger.js.map +1 -0
- package/dist/react-native/operationsInterfaces/managedCCFOperations.d.ts +103 -0
- package/dist/react-native/operationsInterfaces/managedCCFOperations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/managedCCFOperations.js +9 -0
- package/dist/react-native/operationsInterfaces/managedCCFOperations.js.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts +11 -0
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/operations.js +9 -0
- package/dist/react-native/operationsInterfaces/operations.js.map +1 -0
- package/dist/react-native/package.json +3 -0
- package/dist/react-native/pagingHelper.d.ts +13 -0
- package/dist/react-native/pagingHelper.d.ts.map +1 -0
- package/dist/react-native/pagingHelper.js +32 -0
- package/dist/react-native/pagingHelper.js.map +1 -0
- package/package.json +81 -71
- package/review/arm-confidentialledger.api.md +134 -2
- package/dist/index.js +0 -2305
- package/dist/index.js.map +0 -1
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist-esm/samples-dev/checkNameAvailabilitySample.d.ts +0 -2
- package/dist-esm/samples-dev/checkNameAvailabilitySample.d.ts.map +0 -1
- package/dist-esm/samples-dev/checkNameAvailabilitySample.js +0 -41
- package/dist-esm/samples-dev/checkNameAvailabilitySample.js.map +0 -1
- package/dist-esm/samples-dev/ledgerCreateSample.d.ts +0 -2
- package/dist-esm/samples-dev/ledgerCreateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/ledgerCreateSample.js +0 -60
- package/dist-esm/samples-dev/ledgerCreateSample.js.map +0 -1
- package/dist-esm/samples-dev/ledgerDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/ledgerDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/ledgerDeleteSample.js +0 -40
- package/dist-esm/samples-dev/ledgerDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/ledgerGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/ledgerGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/ledgerGetSample.js +0 -40
- package/dist-esm/samples-dev/ledgerGetSample.js.map +0 -1
- package/dist-esm/samples-dev/ledgerListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/ledgerListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/ledgerListByResourceGroupSample.js +0 -53
- package/dist-esm/samples-dev/ledgerListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/ledgerListBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/ledgerListBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/ledgerListBySubscriptionSample.js +0 -51
- package/dist-esm/samples-dev/ledgerListBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/ledgerUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/ledgerUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/ledgerUpdateSample.js +0 -63
- package/dist-esm/samples-dev/ledgerUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/managedCcfCreateSample.d.ts +0 -2
- package/dist-esm/samples-dev/managedCcfCreateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/managedCcfCreateSample.js +0 -58
- package/dist-esm/samples-dev/managedCcfCreateSample.js.map +0 -1
- package/dist-esm/samples-dev/managedCcfDeleteSample.d.ts +0 -2
- package/dist-esm/samples-dev/managedCcfDeleteSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/managedCcfDeleteSample.js +0 -40
- package/dist-esm/samples-dev/managedCcfDeleteSample.js.map +0 -1
- package/dist-esm/samples-dev/managedCcfGetSample.d.ts +0 -2
- package/dist-esm/samples-dev/managedCcfGetSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/managedCcfGetSample.js +0 -40
- package/dist-esm/samples-dev/managedCcfGetSample.js.map +0 -1
- package/dist-esm/samples-dev/managedCcfListByResourceGroupSample.d.ts +0 -2
- package/dist-esm/samples-dev/managedCcfListByResourceGroupSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/managedCcfListByResourceGroupSample.js +0 -53
- package/dist-esm/samples-dev/managedCcfListByResourceGroupSample.js.map +0 -1
- package/dist-esm/samples-dev/managedCcfListBySubscriptionSample.d.ts +0 -2
- package/dist-esm/samples-dev/managedCcfListBySubscriptionSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/managedCcfListBySubscriptionSample.js +0 -51
- package/dist-esm/samples-dev/managedCcfListBySubscriptionSample.js.map +0 -1
- package/dist-esm/samples-dev/managedCcfUpdateSample.d.ts +0 -2
- package/dist-esm/samples-dev/managedCcfUpdateSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/managedCcfUpdateSample.js +0 -50
- package/dist-esm/samples-dev/managedCcfUpdateSample.js.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
- package/dist-esm/samples-dev/operationsListSample.js +0 -51
- package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
- package/dist-esm/src/confidentialLedgerClient.d.ts.map +0 -1
- package/dist-esm/src/confidentialLedgerClient.js.map +0 -1
- package/dist-esm/src/index.d.ts +0 -6
- package/dist-esm/src/index.d.ts.map +0 -1
- package/dist-esm/src/index.js.map +0 -1
- package/dist-esm/src/lroImpl.js.map +0 -1
- package/dist-esm/src/models/index.d.ts.map +0 -1
- package/dist-esm/src/models/index.js.map +0 -1
- package/dist-esm/src/models/mappers.d.ts.map +0 -1
- package/dist-esm/src/models/mappers.js.map +0 -1
- package/dist-esm/src/models/parameters.js.map +0 -1
- package/dist-esm/src/operations/index.d.ts +0 -4
- package/dist-esm/src/operations/index.js.map +0 -1
- package/dist-esm/src/operations/ledger.d.ts.map +0 -1
- package/dist-esm/src/operations/ledger.js +0 -540
- package/dist-esm/src/operations/ledger.js.map +0 -1
- package/dist-esm/src/operations/managedCCFOperations.d.ts.map +0 -1
- package/dist-esm/src/operations/managedCCFOperations.js +0 -532
- package/dist-esm/src/operations/managedCCFOperations.js.map +0 -1
- package/dist-esm/src/operations/operations.d.ts.map +0 -1
- package/dist-esm/src/operations/operations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +0 -4
- package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/ledger.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/ledger.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/managedCCFOperations.d.ts.map +0 -1
- package/dist-esm/src/operationsInterfaces/managedCCFOperations.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
- package/dist-esm/src/pagingHelper.js.map +0 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
- package/rollup.config.js +0 -122
- package/src/confidentialLedgerClient.ts +0 -196
- package/src/lroImpl.ts +0 -42
- package/src/models/index.ts +0 -635
- package/src/models/mappers.ts +0 -692
- package/src/models/parameters.ts +0 -160
- package/src/operations/ledger.ts +0 -711
- package/src/operations/managedCCFOperations.ts +0 -696
- package/src/operations/operations.ts +0 -149
- package/src/operationsInterfaces/index.ts +0 -11
- package/src/operationsInterfaces/ledger.ts +0 -132
- package/src/operationsInterfaces/managedCCFOperations.ts +0 -132
- package/src/operationsInterfaces/operations.ts +0 -25
- package/src/pagingHelper.ts +0 -39
- package/tsconfig.json +0 -33
- /package/{dist-esm/src → dist/browser}/lroImpl.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/ledger.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/managedCCFOperations.js +0 -0
- /package/{dist-esm/src → dist/browser}/operationsInterfaces/operations.js +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.d.ts.map +0 -0
- /package/{dist-esm/src → dist/browser}/pagingHelper.js +0 -0
package/CHANGELOG.md
CHANGED
@@ -1,8 +1,134 @@
|
|
1
1
|
# Release History
|
2
2
|
|
3
|
+
## 1.3.0-beta.3 (2025-05-16)
|
4
|
+
Compared with version 1.2.0
|
5
|
+
|
6
|
+
### Features Added
|
7
|
+
|
8
|
+
- Added operation group ManagedCCFOperations
|
9
|
+
- Added operation Ledger.beginBackup
|
10
|
+
- Added operation Ledger.beginBackupAndWait
|
11
|
+
- Added operation Ledger.beginRestore
|
12
|
+
- Added operation Ledger.beginRestoreAndWait
|
13
|
+
- Added Interface CertificateTags
|
14
|
+
- Added Interface ConfidentialLedgerBackup
|
15
|
+
- Added Interface ConfidentialLedgerBackupResponse
|
16
|
+
- Added Interface ConfidentialLedgerRestore
|
17
|
+
- Added Interface ConfidentialLedgerRestoreResponse
|
18
|
+
- Added Interface DeploymentType
|
19
|
+
- Added Interface LedgerBackupOptionalParams
|
20
|
+
- Added Interface LedgerRestoreOptionalParams
|
21
|
+
- Added Interface ManagedCCF
|
22
|
+
- Added Interface ManagedCCFBackup
|
23
|
+
- Added Interface ManagedCCFBackupOptionalParams
|
24
|
+
- Added Interface ManagedCCFBackupResponse
|
25
|
+
- Added Interface ManagedCCFCreateOptionalParams
|
26
|
+
- Added Interface ManagedCCFDeleteOptionalParams
|
27
|
+
- Added Interface ManagedCCFGetOptionalParams
|
28
|
+
- Added Interface ManagedCCFList
|
29
|
+
- Added Interface ManagedCCFListByResourceGroupNextOptionalParams
|
30
|
+
- Added Interface ManagedCCFListByResourceGroupOptionalParams
|
31
|
+
- Added Interface ManagedCCFListBySubscriptionNextOptionalParams
|
32
|
+
- Added Interface ManagedCCFListBySubscriptionOptionalParams
|
33
|
+
- Added Interface ManagedCCFProperties
|
34
|
+
- Added Interface ManagedCCFRestore
|
35
|
+
- Added Interface ManagedCCFRestoreOptionalParams
|
36
|
+
- Added Interface ManagedCCFRestoreResponse
|
37
|
+
- Added Interface ManagedCCFUpdateOptionalParams
|
38
|
+
- Added Interface MemberIdentityCertificate
|
39
|
+
- Added Interface TrackedResource
|
40
|
+
- Added Type Alias ApplicationType
|
41
|
+
- Added Type Alias EnclavePlatform
|
42
|
+
- Added Type Alias LanguageRuntime
|
43
|
+
- Added Type Alias LedgerBackupResponse
|
44
|
+
- Added Type Alias LedgerRestoreResponse
|
45
|
+
- Added Type Alias LedgerSku
|
46
|
+
- Added Type Alias ManagedCCFBackupOperationResponse
|
47
|
+
- Added Type Alias ManagedCCFCreateResponse
|
48
|
+
- Added Type Alias ManagedCCFGetResponse
|
49
|
+
- Added Type Alias ManagedCCFListByResourceGroupNextResponse
|
50
|
+
- Added Type Alias ManagedCCFListByResourceGroupResponse
|
51
|
+
- Added Type Alias ManagedCCFListBySubscriptionNextResponse
|
52
|
+
- Added Type Alias ManagedCCFListBySubscriptionResponse
|
53
|
+
- Added Type Alias ManagedCCFRestoreOperationResponse
|
54
|
+
- Added Type Alias ManagedCCFUpdateResponse
|
55
|
+
- Added Type Alias RunningState
|
56
|
+
- Interface LedgerProperties has a new optional parameter applicationType
|
57
|
+
- Interface LedgerProperties has a new optional parameter enclavePlatform
|
58
|
+
- Interface LedgerProperties has a new optional parameter hostLevel
|
59
|
+
- Interface LedgerProperties has a new optional parameter ledgerSku
|
60
|
+
- Interface LedgerProperties has a new optional parameter maxBodySizeInMb
|
61
|
+
- Interface LedgerProperties has a new optional parameter nodeCount
|
62
|
+
- Interface LedgerProperties has a new optional parameter runningState
|
63
|
+
- Interface LedgerProperties has a new optional parameter subjectName
|
64
|
+
- Interface LedgerProperties has a new optional parameter workerThreads
|
65
|
+
- Interface LedgerProperties has a new optional parameter writeLBAddressPrefix
|
66
|
+
- Added Enum KnownApplicationType
|
67
|
+
- Added Enum KnownEnclavePlatform
|
68
|
+
- Added Enum KnownLanguageRuntime
|
69
|
+
- Added Enum KnownLedgerSku
|
70
|
+
- Added Enum KnownRunningState
|
71
|
+
|
72
|
+
## 1.3.0-beta.2 (2024-04-16)
|
73
|
+
|
74
|
+
### Features Added
|
75
|
+
|
76
|
+
- Added operation group ManagedCCFOperations
|
77
|
+
- Added operation Ledger.beginBackup
|
78
|
+
- Added operation Ledger.beginBackupAndWait
|
79
|
+
- Added operation Ledger.beginRestore
|
80
|
+
- Added operation Ledger.beginRestoreAndWait
|
81
|
+
- Added Interface CertificateTags
|
82
|
+
- Added Interface ConfidentialLedgerBackup
|
83
|
+
- Added Interface ConfidentialLedgerBackupResponse
|
84
|
+
- Added Interface ConfidentialLedgerRestore
|
85
|
+
- Added Interface ConfidentialLedgerRestoreResponse
|
86
|
+
- Added Interface DeploymentType
|
87
|
+
- Added Interface LedgerBackupOptionalParams
|
88
|
+
- Added Interface LedgerRestoreOptionalParams
|
89
|
+
- Added Interface ManagedCCF
|
90
|
+
- Added Interface ManagedCCFBackup
|
91
|
+
- Added Interface ManagedCCFBackupOptionalParams
|
92
|
+
- Added Interface ManagedCCFBackupResponse
|
93
|
+
- Added Interface ManagedCCFCreateOptionalParams
|
94
|
+
- Added Interface ManagedCCFDeleteOptionalParams
|
95
|
+
- Added Interface ManagedCCFGetOptionalParams
|
96
|
+
- Added Interface ManagedCCFList
|
97
|
+
- Added Interface ManagedCCFListByResourceGroupNextOptionalParams
|
98
|
+
- Added Interface ManagedCCFListByResourceGroupOptionalParams
|
99
|
+
- Added Interface ManagedCCFListBySubscriptionNextOptionalParams
|
100
|
+
- Added Interface ManagedCCFListBySubscriptionOptionalParams
|
101
|
+
- Added Interface ManagedCCFProperties
|
102
|
+
- Added Interface ManagedCCFRestore
|
103
|
+
- Added Interface ManagedCCFRestoreOptionalParams
|
104
|
+
- Added Interface ManagedCCFRestoreResponse
|
105
|
+
- Added Interface ManagedCCFUpdateOptionalParams
|
106
|
+
- Added Interface MemberIdentityCertificate
|
107
|
+
- Added Interface TrackedResource
|
108
|
+
- Added Type Alias LanguageRuntime
|
109
|
+
- Added Type Alias LedgerBackupResponse
|
110
|
+
- Added Type Alias LedgerRestoreResponse
|
111
|
+
- Added Type Alias LedgerSku
|
112
|
+
- Added Type Alias ManagedCCFBackupOperationResponse
|
113
|
+
- Added Type Alias ManagedCCFCreateResponse
|
114
|
+
- Added Type Alias ManagedCCFGetResponse
|
115
|
+
- Added Type Alias ManagedCCFListByResourceGroupNextResponse
|
116
|
+
- Added Type Alias ManagedCCFListByResourceGroupResponse
|
117
|
+
- Added Type Alias ManagedCCFListBySubscriptionNextResponse
|
118
|
+
- Added Type Alias ManagedCCFListBySubscriptionResponse
|
119
|
+
- Added Type Alias ManagedCCFRestoreOperationResponse
|
120
|
+
- Added Type Alias ManagedCCFUpdateResponse
|
121
|
+
- Added Type Alias RunningState
|
122
|
+
- Interface LedgerProperties has a new optional parameter ledgerSku
|
123
|
+
- Interface LedgerProperties has a new optional parameter runningState
|
124
|
+
- Added Enum KnownLanguageRuntime
|
125
|
+
- Added Enum KnownLedgerSku
|
126
|
+
- Added Enum KnownRunningState
|
127
|
+
|
128
|
+
|
3
129
|
## 1.3.0-beta.1 (2023-04-19)
|
4
130
|
|
5
|
-
|
131
|
+
### Features Added
|
6
132
|
|
7
133
|
- Added operation group ManagedCCFOperations
|
8
134
|
- Added Interface CertificateTags
|
@@ -35,7 +161,7 @@
|
|
35
161
|
|
36
162
|
## 1.2.0 (2023-01-12)
|
37
163
|
|
38
|
-
|
164
|
+
### Features Added
|
39
165
|
|
40
166
|
- Interface LedgerListByResourceGroupNextOptionalParams no longer has parameter filter
|
41
167
|
- Interface LedgerListBySubscriptionNextOptionalParams no longer has parameter filter
|
@@ -43,11 +169,11 @@
|
|
43
169
|
|
44
170
|
## 1.1.0 (2022-07-05)
|
45
171
|
|
46
|
-
|
172
|
+
### Features Added
|
47
173
|
|
48
174
|
- Added Interface ConfidentialLedger
|
49
175
|
|
50
176
|
|
51
177
|
## 1.0.0 (2022-05-30)
|
52
178
|
|
53
|
-
The package of @azure/arm-confidentialledger is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/js
|
179
|
+
The package of @azure/arm-confidentialledger is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ).
|
package/LICENSE
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
|
1
|
+
Copyright (c) Microsoft Corporation.
|
2
2
|
|
3
|
-
|
3
|
+
MIT License
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
@@ -12,7 +12,7 @@ furnished to do so, subject to the following conditions:
|
|
12
12
|
The above copyright notice and this permission notice shall be included in all
|
13
13
|
copies or substantial portions of the Software.
|
14
14
|
|
15
|
-
THE SOFTWARE IS PROVIDED
|
15
|
+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
16
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
17
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
package/README.md
CHANGED
@@ -6,7 +6,7 @@ Microsoft Azure Confidential Compute Ledger Control Plane REST API version 2020-
|
|
6
6
|
|
7
7
|
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/confidentialledger/arm-confidentialledger) |
|
8
8
|
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-confidentialledger) |
|
9
|
-
[API reference documentation](https://
|
9
|
+
[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-confidentialledger?view=azure-node-preview) |
|
10
10
|
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
|
11
11
|
|
12
12
|
## Getting started
|
@@ -44,26 +44,32 @@ npm install @azure/identity
|
|
44
44
|
```
|
45
45
|
|
46
46
|
You will also need to **register a new AAD application and grant access to Azure ConfidentialLedger** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
|
47
|
-
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
|
48
47
|
|
49
|
-
For more information about how to create an Azure AD Application check out [this guide](https://
|
48
|
+
For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
|
50
49
|
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
50
|
+
Using Node.js and Node-like environments, you can use the `DefaultAzureCredential` class to authenticate the client.
|
51
|
+
|
52
|
+
```ts snippet:ReadmeSampleCreateClient_Node
|
53
|
+
import { ConfidentialLedgerClient } from "@azure/arm-confidentialledger";
|
54
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
55
55
|
|
56
56
|
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
57
57
|
const client = new ConfidentialLedgerClient(new DefaultAzureCredential(), subscriptionId);
|
58
|
-
|
59
|
-
// For client-side applications running in the browser, use this code instead:
|
60
|
-
// const credential = new InteractiveBrowserCredential({
|
61
|
-
// tenantId: "<YOUR_TENANT_ID>",
|
62
|
-
// clientId: "<YOUR_CLIENT_ID>"
|
63
|
-
// });
|
64
|
-
// const client = new ConfidentialLedgerClient(credential, subscriptionId);
|
65
58
|
```
|
66
59
|
|
60
|
+
For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
|
61
|
+
|
62
|
+
```ts snippet:ReadmeSampleCreateClient_Browser
|
63
|
+
import { InteractiveBrowserCredential } from "@azure/identity";
|
64
|
+
import { ConfidentialLedgerClient } from "@azure/arm-confidentialledger";
|
65
|
+
|
66
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
67
|
+
const credential = new InteractiveBrowserCredential({
|
68
|
+
tenantId: "<YOUR_TENANT_ID>",
|
69
|
+
clientId: "<YOUR_CLIENT_ID>",
|
70
|
+
});
|
71
|
+
const client = new ConfidentialLedgerClient(credential, subscriptionId);
|
72
|
+
```
|
67
73
|
|
68
74
|
### JavaScript Bundle
|
69
75
|
To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
|
@@ -80,8 +86,9 @@ To use this client library in the browser, first you need to use a bundler. For
|
|
80
86
|
|
81
87
|
Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
|
82
88
|
|
83
|
-
```
|
84
|
-
|
89
|
+
```ts snippet:SetLogLevel
|
90
|
+
import { setLogLevel } from "@azure/logger";
|
91
|
+
|
85
92
|
setLogLevel("info");
|
86
93
|
```
|
87
94
|
|
@@ -99,9 +106,8 @@ If you'd like to contribute to this library, please read the [contributing guide
|
|
99
106
|
|
100
107
|
- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
|
101
108
|
|
102
|
-

|
103
109
|
|
104
|
-
[azure_cli]: https://
|
110
|
+
[azure_cli]: https://learn.microsoft.com/cli/azure
|
105
111
|
[azure_sub]: https://azure.microsoft.com/free/
|
106
112
|
[azure_sub]: https://azure.microsoft.com/free/
|
107
113
|
[azure_portal]: https://portal.azure.com
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import * as coreClient from "@azure/core-client";
|
2
2
|
import * as coreAuth from "@azure/core-auth";
|
3
|
-
import { Operations, Ledger, ManagedCCFOperations } from "./operationsInterfaces";
|
4
|
-
import { ConfidentialLedgerClientOptionalParams, CheckNameAvailabilityRequest, CheckNameAvailabilityOptionalParams, CheckNameAvailabilityOperationResponse } from "./models";
|
3
|
+
import { Operations, Ledger, ManagedCCFOperations } from "./operationsInterfaces/index.js";
|
4
|
+
import { ConfidentialLedgerClientOptionalParams, CheckNameAvailabilityRequest, CheckNameAvailabilityOptionalParams, CheckNameAvailabilityOperationResponse } from "./models/index.js";
|
5
5
|
export declare class ConfidentialLedgerClient extends coreClient.ServiceClient {
|
6
6
|
$host: string;
|
7
7
|
apiVersion: string;
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"confidentialLedgerClient.d.ts","sourceRoot":"","sources":["../../src/confidentialLedgerClient.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAOjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAM7C,OAAO,EACL,UAAU,EACV,MAAM,EACN,oBAAoB,EACrB,MAAM,iCAAiC,CAAC;AAGzC,OAAO,EACL,sCAAsC,EACtC,4BAA4B,EAC5B,mCAAmC,EACnC,sCAAsC,EACvC,MAAM,mBAAmB,CAAC;AAE3B,qBAAa,wBAAyB,SAAQ,UAAU,CAAC,aAAa;IACpE,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,sCAAsC;IA+ElD,8GAA8G;IAC9G,OAAO,CAAC,yBAAyB;IA2BjC;;;;OAIG;IACH,qBAAqB,CACnB,uBAAuB,EAAE,4BAA4B,EACrD,OAAO,CAAC,EAAE,mCAAmC,GAC5C,OAAO,CAAC,sCAAsC,CAAC;IAOlD,UAAU,EAAE,UAAU,CAAC;IACvB,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB,EAAE,oBAAoB,CAAC;CAC5C"}
|
@@ -5,12 +5,11 @@
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
|
-
import { __awaiter } from "tslib";
|
9
8
|
import * as coreClient from "@azure/core-client";
|
10
9
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
11
|
-
import { OperationsImpl, LedgerImpl, ManagedCCFOperationsImpl } from "./operations";
|
12
|
-
import * as Parameters from "./models/parameters";
|
13
|
-
import * as Mappers from "./models/mappers";
|
10
|
+
import { OperationsImpl, LedgerImpl, ManagedCCFOperationsImpl, } from "./operations/index.js";
|
11
|
+
import * as Parameters from "./models/parameters.js";
|
12
|
+
import * as Mappers from "./models/mappers.js";
|
14
13
|
export class ConfidentialLedgerClient extends coreClient.ServiceClient {
|
15
14
|
/**
|
16
15
|
* Initializes a new instance of the ConfidentialLedgerClient class.
|
@@ -32,14 +31,14 @@ export class ConfidentialLedgerClient extends coreClient.ServiceClient {
|
|
32
31
|
}
|
33
32
|
const defaults = {
|
34
33
|
requestContentType: "application/json; charset=utf-8",
|
35
|
-
credential: credentials
|
34
|
+
credential: credentials,
|
36
35
|
};
|
37
|
-
const packageDetails = `azsdk-js-arm-confidentialledger/1.3.0-beta.
|
36
|
+
const packageDetails = `azsdk-js-arm-confidentialledger/1.3.0-beta.3`;
|
38
37
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
39
38
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
40
39
|
: `${packageDetails}`;
|
41
40
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
42
|
-
userAgentPrefix
|
41
|
+
userAgentPrefix,
|
43
42
|
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
44
43
|
super(optionsWithDefaults);
|
45
44
|
let bearerTokenAuthenticationPolicyFound = false;
|
@@ -53,21 +52,21 @@ export class ConfidentialLedgerClient extends coreClient.ServiceClient {
|
|
53
52
|
options.pipeline.getOrderedPolicies().length == 0 ||
|
54
53
|
!bearerTokenAuthenticationPolicyFound) {
|
55
54
|
this.pipeline.removePolicy({
|
56
|
-
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
55
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName,
|
57
56
|
});
|
58
57
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
59
58
|
credential: credentials,
|
60
59
|
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
61
60
|
challengeCallbacks: {
|
62
|
-
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
|
63
|
-
}
|
61
|
+
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
|
62
|
+
},
|
64
63
|
}));
|
65
64
|
}
|
66
65
|
// Parameter assignments
|
67
66
|
this.subscriptionId = subscriptionId;
|
68
67
|
// Assigning values to Constant parameters
|
69
68
|
this.$host = options.$host || "https://management.azure.com";
|
70
|
-
this.apiVersion = options.apiVersion || "
|
69
|
+
this.apiVersion = options.apiVersion || "2024-09-19-preview";
|
71
70
|
this.operations = new OperationsImpl(this);
|
72
71
|
this.ledger = new LedgerImpl(this);
|
73
72
|
this.managedCCFOperations = new ManagedCCFOperationsImpl(this);
|
@@ -80,23 +79,21 @@ export class ConfidentialLedgerClient extends coreClient.ServiceClient {
|
|
80
79
|
}
|
81
80
|
const apiVersionPolicy = {
|
82
81
|
name: "CustomApiVersionPolicy",
|
83
|
-
sendRequest(request, next) {
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
});
|
99
|
-
}
|
82
|
+
async sendRequest(request, next) {
|
83
|
+
const param = request.url.split("?");
|
84
|
+
if (param.length > 1) {
|
85
|
+
const newParams = param[1].split("&").map((item) => {
|
86
|
+
if (item.indexOf("api-version") > -1) {
|
87
|
+
return "api-version=" + apiVersion;
|
88
|
+
}
|
89
|
+
else {
|
90
|
+
return item;
|
91
|
+
}
|
92
|
+
});
|
93
|
+
request.url = param[0] + "?" + newParams.join("&");
|
94
|
+
}
|
95
|
+
return next(request);
|
96
|
+
},
|
100
97
|
};
|
101
98
|
this.pipeline.addPolicy(apiVersionPolicy);
|
102
99
|
}
|
@@ -116,17 +113,17 @@ const checkNameAvailabilityOperationSpec = {
|
|
116
113
|
httpMethod: "POST",
|
117
114
|
responses: {
|
118
115
|
200: {
|
119
|
-
bodyMapper: Mappers.CheckNameAvailabilityResponse
|
116
|
+
bodyMapper: Mappers.CheckNameAvailabilityResponse,
|
120
117
|
},
|
121
118
|
default: {
|
122
|
-
bodyMapper: Mappers.ErrorResponse
|
123
|
-
}
|
119
|
+
bodyMapper: Mappers.ErrorResponse,
|
120
|
+
},
|
124
121
|
},
|
125
122
|
requestBody: Parameters.nameAvailabilityRequest,
|
126
123
|
queryParameters: [Parameters.apiVersion],
|
127
124
|
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
128
125
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
129
126
|
mediaType: "json",
|
130
|
-
serializer
|
127
|
+
serializer,
|
131
128
|
};
|
132
129
|
//# sourceMappingURL=confidentialLedgerClient.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"confidentialLedgerClient.js","sourceRoot":"","sources":["../../src/confidentialLedgerClient.ts"],"names":[],"mappings":"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","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport {\n PipelineRequest,\n PipelineResponse,\n SendRequest,\n} from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n OperationsImpl,\n LedgerImpl,\n ManagedCCFOperationsImpl,\n} from \"./operations/index.js\";\nimport {\n Operations,\n Ledger,\n ManagedCCFOperations,\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n ConfidentialLedgerClientOptionalParams,\n CheckNameAvailabilityRequest,\n CheckNameAvailabilityOptionalParams,\n CheckNameAvailabilityOperationResponse,\n} from \"./models/index.js\";\n\nexport class ConfidentialLedgerClient extends coreClient.ServiceClient {\n $host: string;\n apiVersion: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the ConfidentialLedgerClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId The ID of the target subscription.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: ConfidentialLedgerClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ConfidentialLedgerClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-arm-confidentialledger/1.3.0-beta.3`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.apiVersion = options.apiVersion || \"2024-09-19-preview\";\n this.operations = new OperationsImpl(this);\n this.ledger = new LedgerImpl(this);\n this.managedCCFOperations = new ManagedCCFOperationsImpl(this);\n this.addCustomApiVersionPolicy(options.apiVersion);\n }\n\n /** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */\n private addCustomApiVersionPolicy(apiVersion?: string) {\n if (!apiVersion) {\n return;\n }\n const apiVersionPolicy = {\n name: \"CustomApiVersionPolicy\",\n async sendRequest(\n request: PipelineRequest,\n next: SendRequest,\n ): Promise<PipelineResponse> {\n const param = request.url.split(\"?\");\n if (param.length > 1) {\n const newParams = param[1].split(\"&\").map((item) => {\n if (item.indexOf(\"api-version\") > -1) {\n return \"api-version=\" + apiVersion;\n } else {\n return item;\n }\n });\n request.url = param[0] + \"?\" + newParams.join(\"&\");\n }\n return next(request);\n },\n };\n this.pipeline.addPolicy(apiVersionPolicy);\n }\n\n /**\n * To check whether a resource name is available.\n * @param nameAvailabilityRequest Name availability request payload.\n * @param options The options parameters.\n */\n checkNameAvailability(\n nameAvailabilityRequest: CheckNameAvailabilityRequest,\n options?: CheckNameAvailabilityOptionalParams,\n ): Promise<CheckNameAvailabilityOperationResponse> {\n return this.sendOperationRequest(\n { nameAvailabilityRequest, options },\n checkNameAvailabilityOperationSpec,\n );\n }\n\n operations: Operations;\n ledger: Ledger;\n managedCCFOperations: ManagedCCFOperations;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.ConfidentialLedger/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityResponse,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n requestBody: Parameters.nameAvailabilityRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\n"]}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,cAAc,iCAAiC,CAAC"}
|
@@ -6,8 +6,8 @@
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
7
7
|
*/
|
8
8
|
/// <reference lib="esnext.asynciterable" />
|
9
|
-
export { getContinuationToken } from "./pagingHelper";
|
10
|
-
export * from "./models";
|
11
|
-
export { ConfidentialLedgerClient } from "./confidentialLedgerClient";
|
12
|
-
export * from "./operationsInterfaces";
|
9
|
+
export { getContinuationToken } from "./pagingHelper.js";
|
10
|
+
export * from "./models/index.js";
|
11
|
+
export { ConfidentialLedgerClient } from "./confidentialLedgerClient.js";
|
12
|
+
export * from "./operationsInterfaces/index.js";
|
13
13
|
//# sourceMappingURL=index.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,cAAc,mBAAmB,CAAC;AAClC,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AACzE,cAAc,iCAAiC,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\n/// <reference lib=\"esnext.asynciterable\" />\nexport { getContinuationToken } from \"./pagingHelper.js\";\nexport * from \"./models/index.js\";\nexport { ConfidentialLedgerClient } from \"./confidentialLedgerClient.js\";\nexport * from \"./operationsInterfaces/index.js\";\n"]}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAmB1B"}
|
@@ -15,7 +15,7 @@ export function createLroSpec(inputs) {
|
|
15
15
|
sendPollRequest: (path, options) => {
|
16
16
|
const { requestBody } = spec, restSpec = __rest(spec, ["requestBody"]);
|
17
17
|
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
18
|
-
}
|
18
|
+
},
|
19
19
|
};
|
20
20
|
}
|
21
21
|
//# sourceMappingURL=lroImpl.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAKH,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,KAAkB,IAAI,EAAjB,QAAQ,UAAK,IAAI,EAAnC,eAA4B,CAAO,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,kCACtB,QAAQ,KACX,UAAU,EAAE,KAAK,EACjB,IAAI,EACJ,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,IACjC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { AbortSignalLike } from \"@azure/abort-controller\";\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (\n path: string,\n options?: { abortSignal?: AbortSignalLike },\n ) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}
|