From bc742d50bbf697bc96aae4872d55600ddcc9c392 Mon Sep 17 00:00:00 2001
From: colawwj <70128817+colawwj@users.noreply.github.com>
Date: Fri, 21 Jan 2022 11:20:59 +0800
Subject: [PATCH]
reservations-resourcegraph-resourcemover-serialconsole-servicemap-signalr-storagecache-storagesync-track2
(#19962)
* reservations-release
* resourcemover
* serialconsole-release
* servicemap
* signalr-relesae
* storagecache
* reservations-resourcegraph-resourcemover-serialconsole-servicemap-signalr-storagecache-storagesync-track2
* resourcegraph
* update
---
common/config/rush/pnpm-lock.yaml | 216 +
eng/ignore-links.txt | 1 +
rush.json | 44 +-
.../arm-reservations/CHANGELOG.md | 11 +
sdk/reservations/arm-reservations/LICENSE | 21 +
sdk/reservations/arm-reservations/README.md | 137 +-
sdk/reservations/arm-reservations/_meta.json | 7 +
.../arm-reservations/api-extractor.json | 18 +
.../arm-reservations/package.json | 107 +-
.../node/my_test/recording_sample_test.js | 5 +
.../review/arm-reservations.api.md | 1605 ++++++
.../arm-reservations/rollup.config.js | 211 +-
sdk/reservations/arm-reservations/sample.env | 4 +
.../samples-dev/appliedReservationList.ts | 28 +
.../samples-dev/availableScopes.ts | 43 +
.../samples-dev/calculateExchange.ts | 59 +
.../arm-reservations/samples-dev/catalog.ts | 34 +
.../samples-dev/changeDirectory.ts | 37 +
.../arm-reservations/samples-dev/exchange.ts | 32 +
.../samples-dev/getOperations.ts | 30 +
.../samples-dev/getReservation.ts | 28 +
.../getReservationWithExpandPayments.ts | 30 +
.../arm-reservations/samples-dev/merge.ts | 37 +
.../samples-dev/patchReservation.ts | 37 +
.../arm-reservations/samples-dev/purchase.ts | 45 +
.../samples-dev/quotaRequestFailed.ts | 36 +
.../samples-dev/quotaRequestHistory.ts | 37 +
.../samples-dev/quotaRequestInProgress.ts | 36 +
.../samples-dev/quotaRequestStatus.ts | 36 +
.../samples-dev/quotasListUsagesForCompute.ts | 37 +
...quotasListUsagesMachineLearningServices.ts | 37 +
.../samples-dev/quotasRequestForCompute.ts | 36 +
.../quotasRequestPatchForCompute.ts | 61 +
.../samples-dev/quotasRequestPutForCompute.ts | 63 +
...achineLearningServicesDedicatedResource.ts | 66 +
...hineLearningServicesLowPriorityResource.ts | 66 +
.../samples-dev/reservationList.ts | 31 +
.../samples-dev/reservationOrderList.ts | 30 +
.../samples-dev/reservationRevisions.ts | 35 +
.../arm-reservations/samples-dev/split.ts | 36 +
.../samples/v7/javascript/README.md | 102 +
.../v7/javascript/appliedReservationList.js | 28 +
.../samples/v7/javascript/availableScopes.js | 40 +
.../v7/javascript/calculateExchange.js | 56 +
.../samples/v7/javascript/catalog.js | 34 +
.../samples/v7/javascript/changeDirectory.js | 31 +
.../samples/v7/javascript/exchange.js | 32 +
.../samples/v7/javascript/getOperations.js | 30 +
.../samples/v7/javascript/getReservation.js | 28 +
.../getReservationWithExpandPayments.js | 30 +
.../samples/v7/javascript/merge.js | 34 +
.../samples/v7/javascript/package.json | 32 +
.../samples/v7/javascript/patchReservation.js | 37 +
.../samples/v7/javascript/purchase.js | 42 +
.../v7/javascript/quotaRequestFailed.js | 31 +
.../v7/javascript/quotaRequestHistory.js | 33 +
.../v7/javascript/quotaRequestInProgress.js | 31 +
.../v7/javascript/quotaRequestStatus.js | 31 +
.../javascript/quotasListUsagesForCompute.js | 33 +
...quotasListUsagesMachineLearningServices.js | 33 +
.../v7/javascript/quotasRequestForCompute.js | 31 +
.../quotasRequestPatchForCompute.js | 58 +
.../javascript/quotasRequestPutForCompute.js | 60 +
...achineLearningServicesDedicatedResource.js | 61 +
...hineLearningServicesLowPriorityResource.js | 61 +
.../samples/v7/javascript/reservationList.js | 31 +
.../v7/javascript/reservationOrderList.js | 30 +
.../v7/javascript/reservationRevisions.js | 32 +
.../samples/v7/javascript/sample.env | 4 +
.../samples/v7/javascript/split.js | 33 +
.../samples/v7/typescript/README.md | 115 +
.../samples/v7/typescript/package.json | 41 +
.../samples/v7/typescript/sample.env | 4 +
.../typescript/src/appliedReservationList.ts | 28 +
.../v7/typescript/src/availableScopes.ts | 43 +
.../v7/typescript/src/calculateExchange.ts | 59 +
.../samples/v7/typescript/src/catalog.ts | 34 +
.../v7/typescript/src/changeDirectory.ts | 37 +
.../samples/v7/typescript/src/exchange.ts | 32 +
.../v7/typescript/src/getOperations.ts | 30 +
.../v7/typescript/src/getReservation.ts | 28 +
.../src/getReservationWithExpandPayments.ts | 30 +
.../samples/v7/typescript/src/merge.ts | 37 +
.../v7/typescript/src/patchReservation.ts | 37 +
.../samples/v7/typescript/src/purchase.ts | 45 +
.../v7/typescript/src/quotaRequestFailed.ts | 36 +
.../v7/typescript/src/quotaRequestHistory.ts | 37 +
.../typescript/src/quotaRequestInProgress.ts | 36 +
.../v7/typescript/src/quotaRequestStatus.ts | 36 +
.../src/quotasListUsagesForCompute.ts | 37 +
...quotasListUsagesMachineLearningServices.ts | 37 +
.../typescript/src/quotasRequestForCompute.ts | 36 +
.../src/quotasRequestPatchForCompute.ts | 61 +
.../src/quotasRequestPutForCompute.ts | 63 +
...achineLearningServicesDedicatedResource.ts | 66 +
...hineLearningServicesLowPriorityResource.ts | 66 +
.../v7/typescript/src/reservationList.ts | 31 +
.../v7/typescript/src/reservationOrderList.ts | 30 +
.../v7/typescript/src/reservationRevisions.ts | 35 +
.../samples/v7/typescript/src/split.ts | 36 +
.../samples/v7/typescript/tsconfig.json | 17 +
.../src/azureReservationAPI.ts | 252 +-
.../src/azureReservationAPIContext.ts | 53 -
.../arm-reservations/src/index.ts} | 12 +-
.../arm-reservations/src/lroImpl.ts | 34 +
.../src/models/calculateExchangeMappers.ts | 28 -
.../src/models/exchangeMappers.ts | 27 -
.../arm-reservations/src/models/index.ts | 4161 +++++++--------
.../arm-reservations/src/models/mappers.ts | 4085 ++++++++-------
.../arm-reservations/src/models/parameters.ts | 368 +-
.../src/models/quotaMappers.ts | 42 -
.../src/models/quotaRequestStatusMappers.ts | 39 -
.../src/models/reservationMappers.ts | 47 -
.../src/models/reservationOrderMappers.ts | 42 -
.../src/operations/calculateExchange.ts | 156 +-
.../src/operations/exchange.ts | 153 +-
.../arm-reservations/src/operations/index.ts | 3 +-
.../src/operations/operation.ts | 180 +-
.../arm-reservations/src/operations/quota.ts | 793 +--
.../src/operations/quotaRequestStatus.ts | 342 +-
.../src/operations/reservation.ts | 1341 +++--
.../src/operations/reservationOrder.ts | 463 +-
.../operationsInterfaces/calculateExchange.ts | 43 +
.../src/operationsInterfaces/exchange.ts | 40 +
.../src/operationsInterfaces/index.ts | 15 +
.../src/operationsInterfaces/operation.ts | 22 +
.../src/operationsInterfaces/quota.ts | 169 +
.../quotaRequestStatus.ts | 51 +
.../src/operationsInterfaces/reservation.ts | 194 +
.../operationsInterfaces/reservationOrder.ts | 93 +
.../arm-reservations/test/sampleTest.ts | 48 +
.../arm-reservations/tsconfig.json | 9 +-
sdk/reservations/ci.yml | 30 +
.../arm-resourcegraph/CHANGELOG.md | 11 +
sdk/resourcegraph/arm-resourcegraph/LICENSE | 21 +
sdk/resourcegraph/arm-resourcegraph/README.md | 134 +-
.../arm-resourcegraph/_meta.json | 7 +
.../arm-resourcegraph/api-extractor.json | 18 +
.../arm-resourcegraph/package.json | 105 +-
.../node/my_test/recording_sample_test.js | 5 +
.../review/arm-resourcegraph.api.md | 214 +
.../arm-resourcegraph/rollup.config.js | 211 +-
.../arm-resourcegraph/sample.env | 4 +
.../samples-dev/accessAPropertiesField.ts | 32 +
.../samples-dev/basicManagementGroupQuery.ts | 31 +
.../samples-dev/basicQuery.ts | 31 +
.../samples-dev/basicTenantQuery.ts | 30 +
.../samples-dev/complexQuery.ts | 32 +
.../samples-dev/filterResources.ts | 32 +
.../samples-dev/firstPageQuery.ts | 33 +
.../samples-dev/nextPageQuery.ts | 35 +
.../samples-dev/operationsList.ts | 30 +
.../samples-dev/queryWithAFacetRequest.ts | 51 +
.../samples-dev/randomPageQuery.ts | 33 +
...esourceHistoryManagementGroupScopeQuery.ts | 40 +
.../samples-dev/resourceHistoryQuery.ts | 40 +
.../summarizeResourcesByLocation.ts | 32 +
.../samples/v5-beta/javascript/README.md | 76 +
.../javascript/accessAPropertiesField.js | 32 +
.../javascript/basicManagementGroupQuery.js | 31 +
.../samples/v5-beta/javascript/basicQuery.js | 31 +
.../v5-beta/javascript/basicTenantQuery.js | 30 +
.../v5-beta/javascript/complexQuery.js | 32 +
.../v5-beta/javascript/filterResources.js | 32 +
.../v5-beta/javascript/firstPageQuery.js | 32 +
.../v5-beta/javascript/nextPageQuery.js | 34 +
.../v5-beta/javascript/operationsList.js | 30 +
.../samples/v5-beta/javascript/package.json | 32 +
.../javascript/queryWithAFacetRequest.js | 51 +
.../v5-beta/javascript/randomPageQuery.js | 32 +
...esourceHistoryManagementGroupScopeQuery.js | 37 +
.../javascript/resourceHistoryQuery.js | 37 +
.../samples/v5-beta/javascript/sample.env | 4 +
.../summarizeResourcesByLocation.js | 31 +
.../samples/v5-beta/typescript/README.md | 89 +
.../samples/v5-beta/typescript/package.json | 41 +
.../samples/v5-beta/typescript/sample.env | 4 +
.../typescript/src/accessAPropertiesField.ts | 32 +
.../src/basicManagementGroupQuery.ts | 31 +
.../v5-beta/typescript/src/basicQuery.ts | 31 +
.../typescript/src/basicTenantQuery.ts | 30 +
.../v5-beta/typescript/src/complexQuery.ts | 32 +
.../v5-beta/typescript/src/filterResources.ts | 32 +
.../v5-beta/typescript/src/firstPageQuery.ts | 33 +
.../v5-beta/typescript/src/nextPageQuery.ts | 35 +
.../v5-beta/typescript/src/operationsList.ts | 30 +
.../typescript/src/queryWithAFacetRequest.ts | 51 +
.../v5-beta/typescript/src/randomPageQuery.ts | 33 +
...esourceHistoryManagementGroupScopeQuery.ts | 40 +
.../typescript/src/resourceHistoryQuery.ts | 40 +
.../src/summarizeResourcesByLocation.ts | 32 +
.../samples/v5-beta/typescript/tsconfig.json | 17 +
.../arm-resourcegraph/src/index.ts} | 11 +-
.../arm-resourcegraph/src/models/index.ts | 842 +--
.../arm-resourcegraph/src/models/mappers.ts | 1219 ++---
.../src/models/parameters.ts | 84 +-
.../arm-resourcegraph/src/operations/index.ts | 3 +-
.../src/operations/operations.ts | 108 +-
.../src/operationsInterfaces/index.ts} | 6 +-
.../src/operationsInterfaces/operations.ts | 22 +
.../src/resourceGraphClient.ts | 351 +-
.../src/resourceGraphClientContext.ts | 59 -
.../arm-resourcegraph/test/sampleTest.ts | 48 +
.../arm-resourcegraph/tsconfig.json | 9 +-
sdk/resourcegraph/ci.yml | 30 +
.../arm-resourcemover/CHANGELOG.md | 11 +
sdk/resourcemover/arm-resourcemover/LICENSE | 21 +
sdk/resourcemover/arm-resourcemover/README.md | 138 +-
.../arm-resourcemover/_meta.json | 7 +
.../arm-resourcemover/api-extractor.json | 18 +
.../arm-resourcemover/package.json | 107 +-
.../node/my_test/recording_sample_test.js | 5 +
.../review/arm-resourcemover.api.md | 946 ++++
.../arm-resourcemover/rollup.config.js | 211 +-
.../arm-resourcemover/sample.env | 4 +
.../samples-dev/moveCollectionsBulkRemove.ts | 44 +
.../samples-dev/moveCollectionsCommit.ts | 44 +
.../samples-dev/moveCollectionsCreate.ts | 43 +
.../samples-dev/moveCollectionsDelete.ts | 33 +
.../samples-dev/moveCollectionsDiscard.ts | 44 +
.../samples-dev/moveCollectionsGet.ts | 33 +
.../moveCollectionsInitiateMove.ts | 44 +
...tionsListMoveCollectionsByResourceGroup.ts | 34 +
...ctionsListMoveCollectionsBySubscription.ts | 31 +
.../samples-dev/moveCollectionsPrepare.ts | 44 +
.../moveCollectionsResolveDependencies.ts | 33 +
.../samples-dev/moveCollectionsUpdate.ts | 42 +
.../samples-dev/moveResourcesCreate.ts | 65 +
.../samples-dev/moveResourcesDelete.ts | 35 +
.../samples-dev/moveResourcesGet.ts | 35 +
.../samples-dev/moveResourcesList.ts | 36 +
.../samples-dev/operationsDiscoveryGet.ts | 28 +
.../samples-dev/requiredForGet.ts | 36 +
.../samples-dev/unresolvedDependenciesGet.ts | 36 +
.../samples/v2/javascript/README.md | 86 +
.../javascript/moveCollectionsBulkRemove.js | 41 +
.../v2/javascript/moveCollectionsCommit.js | 41 +
.../v2/javascript/moveCollectionsCreate.js | 40 +
.../v2/javascript/moveCollectionsDelete.js | 33 +
.../v2/javascript/moveCollectionsDiscard.js | 41 +
.../v2/javascript/moveCollectionsGet.js | 30 +
.../javascript/moveCollectionsInitiateMove.js | 41 +
...tionsListMoveCollectionsByResourceGroup.js | 34 +
...ctionsListMoveCollectionsBySubscription.js | 31 +
.../v2/javascript/moveCollectionsPrepare.js | 41 +
.../moveCollectionsResolveDependencies.js | 33 +
.../v2/javascript/moveCollectionsUpdate.js | 39 +
.../v2/javascript/moveResourcesCreate.js | 61 +
.../v2/javascript/moveResourcesDelete.js | 35 +
.../samples/v2/javascript/moveResourcesGet.js | 35 +
.../v2/javascript/moveResourcesList.js | 33 +
.../v2/javascript/operationsDiscoveryGet.js | 28 +
.../samples/v2/javascript/package.json | 32 +
.../samples/v2/javascript/requiredForGet.js | 36 +
.../samples/v2/javascript/sample.env | 4 +
.../javascript/unresolvedDependenciesGet.js | 36 +
.../samples/v2/typescript/README.md | 99 +
.../samples/v2/typescript/package.json | 41 +
.../samples/v2/typescript/sample.env | 4 +
.../src/moveCollectionsBulkRemove.ts | 44 +
.../typescript/src/moveCollectionsCommit.ts | 44 +
.../typescript/src/moveCollectionsCreate.ts | 43 +
.../typescript/src/moveCollectionsDelete.ts | 33 +
.../typescript/src/moveCollectionsDiscard.ts | 44 +
.../v2/typescript/src/moveCollectionsGet.ts | 33 +
.../src/moveCollectionsInitiateMove.ts | 44 +
...tionsListMoveCollectionsByResourceGroup.ts | 34 +
...ctionsListMoveCollectionsBySubscription.ts | 31 +
.../typescript/src/moveCollectionsPrepare.ts | 44 +
.../src/moveCollectionsResolveDependencies.ts | 33 +
.../typescript/src/moveCollectionsUpdate.ts | 42 +
.../v2/typescript/src/moveResourcesCreate.ts | 65 +
.../v2/typescript/src/moveResourcesDelete.ts | 35 +
.../v2/typescript/src/moveResourcesGet.ts | 35 +
.../v2/typescript/src/moveResourcesList.ts | 36 +
.../typescript/src/operationsDiscoveryGet.ts | 28 +
.../v2/typescript/src/requiredForGet.ts | 36 +
.../src/unresolvedDependenciesGet.ts | 36 +
.../samples/v2/typescript/tsconfig.json | 17 +
.../arm-resourcemover/src/index.ts | 12 +
.../arm-resourcemover/src/lroImpl.ts | 34 +
.../arm-resourcemover/src/models/index.ts | 2943 ++++-------
.../arm-resourcemover/src/models/mappers.ts | 2566 ++++-----
.../src/models/moveCollectionsMappers.ts | 68 -
.../src/models/moveResourcesMappers.ts | 63 -
.../src/models/parameters.ts | 224 +-
.../arm-resourcemover/src/operations/index.ts | 3 +-
.../src/operations/moveCollections.ts | 1885 ++++---
.../src/operations/moveResources.ts | 612 ++-
.../operationsDiscoveryOperations.ts | 71 +-
.../src/operations/unresolvedDependencies.ts | 241 +-
.../src/operationsInterfaces/index.ts} | 13 +-
.../operationsInterfaces/moveCollections.ts | 321 ++
.../src/operationsInterfaces/moveResources.ts | 111 +
.../operationsDiscoveryOperations.ts | 20 +
.../unresolvedDependencies.ts | 29 +
.../src/resourceMoverServiceAPI.ts | 110 +-
.../src/resourceMoverServiceAPIContext.ts | 61 -
.../arm-resourcemover/test/sampleTest.ts | 48 +
.../arm-resourcemover/tsconfig.json | 9 +-
sdk/resourcemover/ci.yml | 30 +
.../arm-serialconsole/CHANGELOG.md | 11 +
sdk/serialconsole/arm-serialconsole/LICENSE | 21 +
sdk/serialconsole/arm-serialconsole/README.md | 133 +-
.../arm-serialconsole/_meta.json | 7 +
.../arm-serialconsole/api-extractor.json | 18 +
.../arm-serialconsole/package.json | 103 +-
.../node/my_test/recording_sample_test.js | 5 +
.../review/arm-serialconsole.api.md | 202 +
.../arm-serialconsole/rollup.config.js | 215 +-
.../arm-serialconsole/src/index.ts} | 10 +-
.../src/microsoftSerialConsoleClient.ts | 236 +-
.../microsoftSerialConsoleClientContext.ts | 62 -
.../src/models/consoleMappers.ts | 12 -
.../arm-serialconsole/src/models/index.ts | 303 +-
.../src/models/listConsoleMappers.ts | 12 -
.../src/models/listMappers.ts | 12 -
.../arm-serialconsole/src/models/mappers.ts | 358 +-
.../src/models/parameters.ts | 143 +-
.../src/operations/console.ts | 126 -
.../arm-serialconsole/src/operations/index.ts | 12 +-
.../arm-serialconsole/src/operations/list.ts | 77 -
.../src/operations/listConsole.ts | 78 -
.../src/operations/serialPorts.ts | 357 ++
.../src/operationsInterfaces/index.ts} | 7 +-
.../src/operationsInterfaces/serialPorts.ts | 128 +
.../arm-serialconsole/test/sampleTest.ts | 48 +
.../arm-serialconsole/tsconfig.json | 8 +-
sdk/serialconsole/ci.yml | 30 +
sdk/service-map/arm-servicemap/CHANGELOG.md | 11 +
sdk/service-map/arm-servicemap/LICENSE | 21 +
sdk/service-map/arm-servicemap/README.md | 146 +-
sdk/service-map/arm-servicemap/_meta.json | 7 +
.../arm-servicemap/api-extractor.json | 18 +
sdk/service-map/arm-servicemap/package.json | 105 +-
.../node/my_test/recording_sample_test.js | 5 +
.../review/arm-servicemap.api.md | 1034 ++++
.../arm-servicemap/rollup.config.js | 215 +-
sdk/service-map/arm-servicemap/sample.env | 4 +
.../samples-dev/smClientGroupsGet.ts | 40 +
.../smClientGroupsGetMembersCountGet.ts | 40 +
.../smClientGroupsListMembersGet.ts | 43 +
.../samples-dev/smMachineGroupsCreatePost.ts | 47 +
.../samples-dev/smMachineGroupsDelete.ts | 35 +
.../samples-dev/smMachineGroupsGet.ts | 35 +
.../smMachineGroupsListByWorkspaceGet.ts | 40 +
.../samples-dev/smMachineGroupsUpdatePut.ts | 49 +
.../samples-dev/smMachinesGet.ts | 38 +
.../samples-dev/smMachinesGetLivenessGet.ts | 39 +
.../smMachinesListByWorkspaceGet.ts | 40 +
.../smMachinesListConnectionsGet.ts | 42 +
...smMachinesListMachineGroupMembershipGet.ts | 42 +
.../samples-dev/smMachinesListPortsGet.ts | 42 +
.../samples-dev/smMachinesListProcessesGet.ts | 42 +
.../samples-dev/smMachinesPortsGet.ts | 41 +
.../smMachinesPortsGetLivenessGet.ts | 41 +
...mMachinesPortsListAcceptingProcessesGet.ts | 44 +
.../smMachinesPortsListConnectionsGet.ts | 44 +
.../samples-dev/smMachinesProcessesGet.ts | 40 +
.../smMachinesProcessesGetLivenessGet.ts | 41 +
...mMachinesProcessesListAcceptingPortsGet.ts | 44 +
.../smMachinesProcessesListConnectionsGet.ts | 44 +
...mMapsGenerateMachineGroupDependencyPost.ts | 42 +
...smMapsGenerateMachineListDependencyPost.ts | 44 +
...MapsGenerateSingleMachineDependencyPost.ts | 44 +
.../samples-dev/smSummariesGetMachinesGet.ts | 37 +
.../samples/v3-beta/javascript/README.md | 102 +
.../samples/v3-beta/javascript/package.json | 32 +
.../samples/v3-beta/javascript/sample.env | 4 +
.../v3-beta/javascript/smClientGroupsGet.js | 39 +
.../smClientGroupsGetMembersCountGet.js | 39 +
.../smClientGroupsListMembersGet.js | 42 +
.../javascript/smMachineGroupsCreatePost.js | 42 +
.../javascript/smMachineGroupsDelete.js | 35 +
.../v3-beta/javascript/smMachineGroupsGet.js | 31 +
.../smMachineGroupsListByWorkspaceGet.js | 40 +
.../javascript/smMachineGroupsUpdatePut.js | 48 +
.../v3-beta/javascript/smMachinesGet.js | 33 +
.../javascript/smMachinesGetLivenessGet.js | 39 +
.../smMachinesListByWorkspaceGet.js | 40 +
.../smMachinesListConnectionsGet.js | 42 +
...smMachinesListMachineGroupMembershipGet.js | 42 +
.../javascript/smMachinesListPortsGet.js | 42 +
.../javascript/smMachinesListProcessesGet.js | 42 +
.../v3-beta/javascript/smMachinesPortsGet.js | 41 +
.../smMachinesPortsGetLivenessGet.js | 41 +
...mMachinesPortsListAcceptingProcessesGet.js | 44 +
.../smMachinesPortsListConnectionsGet.js | 44 +
.../javascript/smMachinesProcessesGet.js | 40 +
.../smMachinesProcessesGetLivenessGet.js | 41 +
...mMachinesProcessesListAcceptingPortsGet.js | 44 +
.../smMachinesProcessesListConnectionsGet.js | 44 +
...mMapsGenerateMachineGroupDependencyPost.js | 38 +
...smMapsGenerateMachineListDependencyPost.js | 40 +
...MapsGenerateSingleMachineDependencyPost.js | 37 +
.../javascript/smSummariesGetMachinesGet.js | 33 +
.../samples/v3-beta/typescript/README.md | 115 +
.../samples/v3-beta/typescript/package.json | 41 +
.../samples/v3-beta/typescript/sample.env | 4 +
.../typescript/src/smClientGroupsGet.ts | 40 +
.../src/smClientGroupsGetMembersCountGet.ts | 40 +
.../src/smClientGroupsListMembersGet.ts | 43 +
.../src/smMachineGroupsCreatePost.ts | 47 +
.../typescript/src/smMachineGroupsDelete.ts | 35 +
.../typescript/src/smMachineGroupsGet.ts | 35 +
.../src/smMachineGroupsListByWorkspaceGet.ts | 40 +
.../src/smMachineGroupsUpdatePut.ts | 49 +
.../v3-beta/typescript/src/smMachinesGet.ts | 38 +
.../src/smMachinesGetLivenessGet.ts | 39 +
.../src/smMachinesListByWorkspaceGet.ts | 40 +
.../src/smMachinesListConnectionsGet.ts | 42 +
...smMachinesListMachineGroupMembershipGet.ts | 42 +
.../typescript/src/smMachinesListPortsGet.ts | 42 +
.../src/smMachinesListProcessesGet.ts | 42 +
.../typescript/src/smMachinesPortsGet.ts | 41 +
.../src/smMachinesPortsGetLivenessGet.ts | 41 +
...mMachinesPortsListAcceptingProcessesGet.ts | 44 +
.../src/smMachinesPortsListConnectionsGet.ts | 44 +
.../typescript/src/smMachinesProcessesGet.ts | 40 +
.../src/smMachinesProcessesGetLivenessGet.ts | 41 +
...mMachinesProcessesListAcceptingPortsGet.ts | 44 +
.../smMachinesProcessesListConnectionsGet.ts | 44 +
...mMapsGenerateMachineGroupDependencyPost.ts | 42 +
...smMapsGenerateMachineListDependencyPost.ts | 44 +
...MapsGenerateSingleMachineDependencyPost.ts | 44 +
.../src/smSummariesGetMachinesGet.ts | 37 +
.../samples/v3-beta/typescript/tsconfig.json | 17 +
.../arm-servicemap/src/index.ts} | 12 +-
.../src/models/clientGroupsMappers.ts | 56 -
.../arm-servicemap/src/models/index.ts | 3822 +++++---------
.../src/models/machineGroupsMappers.ts | 55 -
.../src/models/machinesMappers.ts | 60 -
.../arm-servicemap/src/models/mappers.ts | 2723 +++++-----
.../arm-servicemap/src/models/mapsMappers.ts | 63 -
.../arm-servicemap/src/models/parameters.ts | 330 +-
.../arm-servicemap/src/models/portsMappers.ts | 57 -
.../src/models/processesMappers.ts | 57 -
.../src/models/summariesMappers.ts | 54 -
.../src/operations/clientGroups.ts | 396 +-
.../arm-servicemap/src/operations/index.ts | 8 +-
.../src/operations/machineGroups.ts | 506 +-
.../arm-servicemap/src/operations/machines.ts | 1278 +++--
.../arm-servicemap/src/operations/maps.ts | 107 +-
.../arm-servicemap/src/operations/ports.ts | 629 ++-
.../src/operations/processes.ts | 630 ++-
.../src/operations/summaries.ts | 99 +-
.../src/operationsInterfaces/clientGroups.ts | 61 +
.../src/operationsInterfaces/index.ts | 15 +
.../src/operationsInterfaces/machineGroups.ts | 90 +
.../src/operationsInterfaces/machines.ts | 126 +
.../src/operationsInterfaces/maps.ts | 30 +
.../src/operationsInterfaces/ports.ts | 85 +
.../src/operationsInterfaces/processes.ts | 84 +
.../src/operationsInterfaces/summaries.ts | 27 +
.../arm-servicemap/src/serviceMap.ts | 103 +
.../src/servicemapManagementClient.ts | 54 -
.../src/servicemapManagementClientContext.ts | 62 -
.../arm-servicemap/test/sampleTest.ts | 48 +
sdk/service-map/arm-servicemap/tsconfig.json | 9 +-
sdk/service-map/ci.yml | 30 +
sdk/signalr/arm-signalr/CHANGELOG.md | 11 +
sdk/signalr/arm-signalr/LICENSE | 21 +
sdk/signalr/arm-signalr/README.md | 137 +-
sdk/signalr/arm-signalr/_meta.json | 7 +
sdk/signalr/arm-signalr/api-extractor.json | 18 +
sdk/signalr/arm-signalr/package.json | 107 +-
.../node/my_test/recording_sample_test.js | 5 +
.../arm-signalr/review/arm-signalr.api.md | 873 +++
sdk/signalr/arm-signalr/rollup.config.js | 205 +-
sdk/signalr/arm-signalr/sample.env | 4 +
.../arm-signalr/samples-dev/operationsList.ts | 31 +
.../signalRCheckNameAvailability.ts | 39 +
.../samples-dev/signalRCreateOrUpdate.ts | 76 +
.../arm-signalr/samples-dev/signalRDelete.ts | 33 +
.../arm-signalr/samples-dev/signalRGet.ts | 30 +
.../samples-dev/signalRListByResourceGroup.ts | 34 +
.../samples-dev/signalRListBySubscription.ts | 31 +
.../samples-dev/signalRListKeys.ts | 30 +
.../samples-dev/signalRListSkus.ts | 30 +
...signalRPrivateEndpointConnectionsDelete.ts | 36 +
.../signalRPrivateEndpointConnectionsGet.ts | 36 +
.../signalRPrivateEndpointConnectionsList.ts | 36 +
...signalRPrivateEndpointConnectionsUpdate.ts | 50 +
.../signalRPrivateLinkResourcesList.ts | 36 +
.../samples-dev/signalRRegenerateKey.ts | 38 +
.../arm-signalr/samples-dev/signalRRestart.ts | 33 +
...haredPrivateLinkResourcesCreateOrUpdate.ts | 45 +
...signalRSharedPrivateLinkResourcesDelete.ts | 35 +
.../signalRSharedPrivateLinkResourcesGet.ts | 35 +
.../signalRSharedPrivateLinkResourcesList.ts | 36 +
.../arm-signalr/samples-dev/signalRUpdate.ts | 76 +
.../arm-signalr/samples-dev/usagesList.ts | 32 +
.../samples/v5/javascript/README.md | 92 +
.../samples/v5/javascript/operationsList.js | 31 +
.../samples/v5/javascript/package.json | 32 +
.../samples/v5/javascript/sample.env | 4 +
.../signalRCheckNameAvailability.js | 33 +
.../v5/javascript/signalRCreateOrUpdate.js | 76 +
.../samples/v5/javascript/signalRDelete.js | 30 +
.../samples/v5/javascript/signalRGet.js | 30 +
.../javascript/signalRListByResourceGroup.js | 32 +
.../javascript/signalRListBySubscription.js | 31 +
.../samples/v5/javascript/signalRListKeys.js | 30 +
.../samples/v5/javascript/signalRListSkus.js | 30 +
...signalRPrivateEndpointConnectionsDelete.js | 35 +
.../signalRPrivateEndpointConnectionsGet.js | 35 +
.../signalRPrivateEndpointConnectionsList.js | 36 +
...signalRPrivateEndpointConnectionsUpdate.js | 45 +
.../signalRPrivateLinkResourcesList.js | 33 +
.../v5/javascript/signalRRegenerateKey.js | 35 +
.../samples/v5/javascript/signalRRestart.js | 30 +
...haredPrivateLinkResourcesCreateOrUpdate.js | 42 +
...signalRSharedPrivateLinkResourcesDelete.js | 35 +
.../signalRSharedPrivateLinkResourcesGet.js | 35 +
.../signalRSharedPrivateLinkResourcesList.js | 36 +
.../samples/v5/javascript/signalRUpdate.js | 76 +
.../samples/v5/javascript/usagesList.js | 32 +
.../samples/v5/typescript/README.md | 105 +
.../samples/v5/typescript/package.json | 41 +
.../samples/v5/typescript/sample.env | 4 +
.../v5/typescript/src/operationsList.ts | 31 +
.../src/signalRCheckNameAvailability.ts | 39 +
.../typescript/src/signalRCreateOrUpdate.ts | 76 +
.../v5/typescript/src/signalRDelete.ts | 33 +
.../samples/v5/typescript/src/signalRGet.ts | 30 +
.../src/signalRListByResourceGroup.ts | 34 +
.../src/signalRListBySubscription.ts | 31 +
.../v5/typescript/src/signalRListKeys.ts | 30 +
.../v5/typescript/src/signalRListSkus.ts | 30 +
...signalRPrivateEndpointConnectionsDelete.ts | 36 +
.../signalRPrivateEndpointConnectionsGet.ts | 36 +
.../signalRPrivateEndpointConnectionsList.ts | 36 +
...signalRPrivateEndpointConnectionsUpdate.ts | 50 +
.../src/signalRPrivateLinkResourcesList.ts | 36 +
.../v5/typescript/src/signalRRegenerateKey.ts | 38 +
.../v5/typescript/src/signalRRestart.ts | 33 +
...haredPrivateLinkResourcesCreateOrUpdate.ts | 45 +
...signalRSharedPrivateLinkResourcesDelete.ts | 35 +
.../signalRSharedPrivateLinkResourcesGet.ts | 35 +
.../signalRSharedPrivateLinkResourcesList.ts | 36 +
.../v5/typescript/src/signalRUpdate.ts | 76 +
.../samples/v5/typescript/src/usagesList.ts | 32 +
.../samples/v5/typescript/tsconfig.json | 17 +
sdk/signalr/arm-signalr/src/index.ts | 12 +
sdk/signalr/arm-signalr/src/lroImpl.ts | 34 +
sdk/signalr/arm-signalr/src/models/index.ts | 2487 ++++-----
sdk/signalr/arm-signalr/src/models/mappers.ts | 2269 ++++----
.../src/models/operationsMappers.ts | 21 -
.../arm-signalr/src/models/parameters.ts | 173 +-
.../arm-signalr/src/models/signalRMappers.ts | 44 -
...ignalRPrivateEndpointConnectionsMappers.ts | 40 -
.../signalRPrivateLinkResourcesMappers.ts | 40 -
...ignalRSharedPrivateLinkResourcesMappers.ts | 40 -
.../arm-signalr/src/operations/index.ts | 3 +-
.../arm-signalr/src/operations/operations.ts | 187 +-
.../arm-signalr/src/operations/signalR.ts | 1448 ++---
.../signalRPrivateEndpointConnections.ts | 574 +-
.../operations/signalRPrivateLinkResources.ts | 249 +-
.../signalRSharedPrivateLinkResources.ts | 605 ++-
.../arm-signalr/src/operations/usages.ts | 216 +-
.../src/operationsInterfaces/index.ts | 14 +
.../src/operationsInterfaces/operations.ts | 22 +
.../src/operationsInterfaces/signalR.ts | 248 +
.../signalRPrivateEndpointConnections.ts | 94 +
.../signalRPrivateLinkResources.ts | 30 +
.../signalRSharedPrivateLinkResources.ts | 117 +
.../src/operationsInterfaces/usages.ts | 24 +
.../src/signalRManagementClient.ts | 127 +-
.../src/signalRManagementClientContext.ts | 69 -
sdk/signalr/arm-signalr/test/sampleTest.ts | 48 +
sdk/signalr/arm-signalr/tsconfig.json | 9 +-
sdk/signalr/ci.yml | 30 +
.../arm-storagecache/CHANGELOG.md | 11 +
sdk/storagecache/arm-storagecache/LICENSE | 21 +
sdk/storagecache/arm-storagecache/README.md | 134 +-
sdk/storagecache/arm-storagecache/_meta.json | 7 +
.../arm-storagecache/api-extractor.json | 18 +
.../arm-storagecache/package.json | 110 +-
.../node/my_test/recording_sample_test.js | 5 +
.../review/arm-storagecache.api.md | 883 ++++
.../arm-storagecache/rollup.config.js | 211 +-
sdk/storagecache/arm-storagecache/sample.env | 4 +
.../samples-dev/ascOperationsGet.ts | 30 +
.../samples-dev/cachesCreateOrUpdate.ts | 94 +
.../cachesCreateOrUpdateLdapOnly.ts | 80 +
.../samples-dev/cachesDebugInfo.ts | 33 +
.../samples-dev/cachesDelete.ts | 33 +
.../samples-dev/cachesDnsRefresh.ts | 35 +
.../samples-dev/cachesFlush.ts | 33 +
.../arm-storagecache/samples-dev/cachesGet.ts | 30 +
.../samples-dev/cachesList.ts | 31 +
.../samples-dev/cachesListByResourceGroup.ts | 32 +
.../samples-dev/cachesStart.ts | 33 +
.../samples-dev/cachesStop.ts | 33 +
.../samples-dev/cachesUpdate.ts | 105 +
.../samples-dev/cachesUpdateLdapOnly.ts | 107 +
.../samples-dev/cachesUpgradeFirmware.ts | 33 +
.../arm-storagecache/samples-dev/skusList.ts | 31 +
.../storageTargetsCreateOrUpdate.ts | 58 +
.../storageTargetsCreateOrUpdateBlobNfs.ts | 49 +
...storageTargetsCreateOrUpdateNoJunctions.ts | 44 +
.../samples-dev/storageTargetsDelete.ts | 35 +
.../samples-dev/storageTargetsFlush.ts | 35 +
.../samples-dev/storageTargetsGet.ts | 35 +
.../samples-dev/storageTargetsList.ts | 36 +
.../samples-dev/storageTargetsResume.ts | 35 +
.../samples-dev/storageTargetsSuspend.ts | 35 +
.../samples-dev/usageModelsList.ts | 31 +
.../samples/v5/javascript/README.md | 100 +
.../samples/v5/javascript/ascOperationsGet.js | 30 +
.../v5/javascript/cachesCreateOrUpdate.js | 94 +
.../cachesCreateOrUpdateLdapOnly.js | 79 +
.../samples/v5/javascript/cachesDebugInfo.js | 30 +
.../samples/v5/javascript/cachesDelete.js | 30 +
.../samples/v5/javascript/cachesDnsRefresh.js | 35 +
.../samples/v5/javascript/cachesFlush.js | 30 +
.../samples/v5/javascript/cachesGet.js | 30 +
.../samples/v5/javascript/cachesList.js | 31 +
.../javascript/cachesListByResourceGroup.js | 32 +
.../samples/v5/javascript/cachesStart.js | 30 +
.../samples/v5/javascript/cachesStop.js | 30 +
.../samples/v5/javascript/cachesUpdate.js | 101 +
.../v5/javascript/cachesUpdateLdapOnly.js | 103 +
.../v5/javascript/cachesUpgradeFirmware.js | 30 +
.../samples/v5/javascript/package.json | 32 +
.../samples/v5/javascript/sample.env | 4 +
.../samples/v5/javascript/skusList.js | 31 +
.../storageTargetsCreateOrUpdate.js | 55 +
.../storageTargetsCreateOrUpdateBlobNfs.js | 46 +
...storageTargetsCreateOrUpdateNoJunctions.js | 41 +
.../v5/javascript/storageTargetsDelete.js | 35 +
.../v5/javascript/storageTargetsFlush.js | 35 +
.../v5/javascript/storageTargetsGet.js | 31 +
.../v5/javascript/storageTargetsList.js | 33 +
.../v5/javascript/storageTargetsResume.js | 35 +
.../v5/javascript/storageTargetsSuspend.js | 35 +
.../samples/v5/javascript/usageModelsList.js | 31 +
.../samples/v5/typescript/README.md | 113 +
.../samples/v5/typescript/package.json | 41 +
.../samples/v5/typescript/sample.env | 4 +
.../v5/typescript/src/ascOperationsGet.ts | 30 +
.../v5/typescript/src/cachesCreateOrUpdate.ts | 94 +
.../src/cachesCreateOrUpdateLdapOnly.ts | 80 +
.../v5/typescript/src/cachesDebugInfo.ts | 33 +
.../samples/v5/typescript/src/cachesDelete.ts | 33 +
.../v5/typescript/src/cachesDnsRefresh.ts | 35 +
.../samples/v5/typescript/src/cachesFlush.ts | 33 +
.../samples/v5/typescript/src/cachesGet.ts | 30 +
.../samples/v5/typescript/src/cachesList.ts | 31 +
.../src/cachesListByResourceGroup.ts | 32 +
.../samples/v5/typescript/src/cachesStart.ts | 33 +
.../samples/v5/typescript/src/cachesStop.ts | 33 +
.../samples/v5/typescript/src/cachesUpdate.ts | 105 +
.../v5/typescript/src/cachesUpdateLdapOnly.ts | 107 +
.../typescript/src/cachesUpgradeFirmware.ts | 33 +
.../samples/v5/typescript/src/skusList.ts | 31 +
.../src/storageTargetsCreateOrUpdate.ts | 58 +
.../storageTargetsCreateOrUpdateBlobNfs.ts | 49 +
...storageTargetsCreateOrUpdateNoJunctions.ts | 44 +
.../v5/typescript/src/storageTargetsDelete.ts | 35 +
.../v5/typescript/src/storageTargetsFlush.ts | 35 +
.../v5/typescript/src/storageTargetsGet.ts | 35 +
.../v5/typescript/src/storageTargetsList.ts | 36 +
.../v5/typescript/src/storageTargetsResume.ts | 35 +
.../typescript/src/storageTargetsSuspend.ts | 35 +
.../v5/typescript/src/usageModelsList.ts | 31 +
.../samples/v5/typescript/tsconfig.json | 17 +
.../arm-storagecache/src/index.ts | 12 +
.../arm-storagecache/src/lroImpl.ts | 34 +
.../src/models/cachesMappers.ts | 39 -
.../arm-storagecache/src/models/index.ts | 2403 ++++-----
.../arm-storagecache/src/models/mappers.ts | 1565 +++---
.../src/models/operationsMappers.ts | 17 -
.../arm-storagecache/src/models/parameters.ts | 193 +-
.../src/models/skusMappers.ts | 16 -
.../src/models/storageTargetsMappers.ts | 39 -
.../src/operations/ascOperations.ts | 88 +-
.../arm-storagecache/src/operations/caches.ts | 1560 +++---
.../arm-storagecache/src/operations/index.ts | 4 +-
.../src/operations/operations.ts | 178 +-
.../arm-storagecache/src/operations/skus.ts | 195 +-
.../src/operations/storageTargetOperations.ts | 374 ++
.../src/operations/storageTargets.ts | 774 +--
.../src/operations/usageModels.ts | 198 +-
.../src/operationsInterfaces/ascOperations.ts | 27 +
.../src/operationsInterfaces/caches.ts | 245 +
.../src/operationsInterfaces/index.ts | 15 +
.../src/operationsInterfaces/operations.ts | 22 +
.../src/operationsInterfaces/skus.ts | 22 +
.../storageTargetOperations.ts | 104 +
.../operationsInterfaces/storageTargets.ts | 150 +
.../src/operationsInterfaces/usageModels.ts | 22 +
.../src/storageCacheManagementClient.ts | 128 +-
.../storageCacheManagementClientContext.ts | 62 -
.../arm-storagecache/test/sampleTest.ts | 48 +
.../arm-storagecache/tsconfig.json | 9 +-
sdk/storagecache/ci.yml | 30 +
sdk/storagesync/arm-storagesync/CHANGELOG.md | 11 +
sdk/storagesync/arm-storagesync/LICENSE | 21 +
sdk/storagesync/arm-storagesync/README.md | 147 +-
sdk/storagesync/arm-storagesync/_meta.json | 7 +
.../arm-storagesync/api-extractor.json | 18 +
sdk/storagesync/arm-storagesync/package.json | 107 +-
.../node/my_test/recording_sample_test.js | 5 +
.../review/arm-storagesync.api.md | 1614 ++++++
.../arm-storagesync/rollup.config.js | 215 +-
sdk/storagesync/arm-storagesync/sample.env | 4 +
.../samples-dev/cloudEndpointsCreate.ts | 49 +
.../samples-dev/cloudEndpointsDelete.ts | 37 +
.../samples-dev/cloudEndpointsGet.ts | 37 +
.../cloudEndpointsListBySyncGroup.ts | 38 +
.../samples-dev/cloudEndpointsPostBackup.ts | 42 +
.../samples-dev/cloudEndpointsPostRestore.ts | 54 +
.../samples-dev/cloudEndpointsPreBackup.ts | 42 +
.../samples-dev/cloudEndpointsPreRestore.ts | 51 +
.../cloudEndpointsRestoreheartbeat.ts | 37 +
.../cloudEndpointsTriggerChangeDetection.ts | 45 +
.../samples-dev/operationsList.ts | 31 +
.../privateEndpointConnectionsCreate.ts | 45 +
.../privateEndpointConnectionsDelete.ts | 35 +
.../privateEndpointConnectionsGet.ts | 35 +
...ointConnectionsListByStorageSyncService.ts | 36 +
.../samples-dev/privateLinkResourcesList.ts | 33 +
.../samples-dev/registeredServersCreate.ts | 48 +
.../samples-dev/registeredServersDelete.ts | 35 +
.../samples-dev/registeredServersGet.ts | 35 +
...gisteredServersListByStorageSyncService.ts | 36 +
.../registeredServersTriggerRollover.ts | 43 +
.../samples-dev/serverEndpointsCreate.ts | 54 +
.../samples-dev/serverEndpointsDelete.ts | 37 +
.../samples-dev/serverEndpointsGet.ts | 37 +
.../serverEndpointsListBySyncGroup.ts | 38 +
.../serverEndpointsRecallAction.ts | 42 +
.../samples-dev/serverEndpointsUpdate.ts | 49 +
...rviceCheckNameAvailabilityAlreadyExists.ts | 39 +
...ncServiceCheckNameAvailabilityAvailable.ts | 39 +
.../samples-dev/storageSyncServicesCreate.ts | 42 +
.../samples-dev/storageSyncServicesDelete.ts | 33 +
.../samples-dev/storageSyncServicesGet.ts | 33 +
.../storageSyncServicesListByResourceGroup.ts | 34 +
.../storageSyncServicesListBySubscription.ts | 31 +
.../samples-dev/storageSyncServicesUpdate.ts | 42 +
.../samples-dev/syncGroupsCreate.ts | 40 +
.../samples-dev/syncGroupsDelete.ts | 35 +
.../samples-dev/syncGroupsGet.ts | 35 +
.../syncGroupsListByStorageSyncService.ts | 36 +
.../samples-dev/workflowsAbort.ts | 35 +
.../samples-dev/workflowsGet.ts | 34 +
.../workflowsListByStorageSyncService.ts | 36 +
.../samples/v9/javascript/README.md | 132 +
.../v9/javascript/cloudEndpointsCreate.js | 45 +
.../v9/javascript/cloudEndpointsDelete.js | 37 +
.../v9/javascript/cloudEndpointsGet.js | 37 +
.../cloudEndpointsListBySyncGroup.js | 38 +
.../v9/javascript/cloudEndpointsPostBackup.js | 41 +
.../javascript/cloudEndpointsPostRestore.js | 51 +
.../v9/javascript/cloudEndpointsPreBackup.js | 41 +
.../v9/javascript/cloudEndpointsPreRestore.js | 48 +
.../cloudEndpointsRestoreheartbeat.js | 37 +
.../cloudEndpointsTriggerChangeDetection.js | 42 +
.../samples/v9/javascript/operationsList.js | 31 +
.../samples/v9/javascript/package.json | 32 +
.../privateEndpointConnectionsCreate.js | 42 +
.../privateEndpointConnectionsDelete.js | 35 +
.../privateEndpointConnectionsGet.js | 35 +
...ointConnectionsListByStorageSyncService.js | 36 +
.../v9/javascript/privateLinkResourcesList.js | 33 +
.../v9/javascript/registeredServersCreate.js | 45 +
.../v9/javascript/registeredServersDelete.js | 35 +
.../v9/javascript/registeredServersGet.js | 35 +
...gisteredServersListByStorageSyncService.js | 36 +
.../registeredServersTriggerRollover.js | 40 +
.../samples/v9/javascript/sample.env | 4 +
.../v9/javascript/serverEndpointsCreate.js | 51 +
.../v9/javascript/serverEndpointsDelete.js | 37 +
.../v9/javascript/serverEndpointsGet.js | 37 +
.../serverEndpointsListBySyncGroup.js | 38 +
.../javascript/serverEndpointsRecallAction.js | 39 +
.../v9/javascript/serverEndpointsUpdate.js | 46 +
...rviceCheckNameAvailabilityAlreadyExists.js | 33 +
...ncServiceCheckNameAvailabilityAvailable.js | 33 +
.../javascript/storageSyncServicesCreate.js | 39 +
.../javascript/storageSyncServicesDelete.js | 33 +
.../v9/javascript/storageSyncServicesGet.js | 30 +
.../storageSyncServicesListByResourceGroup.js | 32 +
.../storageSyncServicesListBySubscription.js | 31 +
.../javascript/storageSyncServicesUpdate.js | 39 +
.../samples/v9/javascript/syncGroupsCreate.js | 37 +
.../samples/v9/javascript/syncGroupsDelete.js | 35 +
.../samples/v9/javascript/syncGroupsGet.js | 35 +
.../syncGroupsListByStorageSyncService.js | 36 +
.../samples/v9/javascript/workflowsAbort.js | 35 +
.../samples/v9/javascript/workflowsGet.js | 31 +
.../workflowsListByStorageSyncService.js | 36 +
.../samples/v9/typescript/README.md | 145 +
.../samples/v9/typescript/package.json | 41 +
.../samples/v9/typescript/sample.env | 4 +
.../v9/typescript/src/cloudEndpointsCreate.ts | 49 +
.../v9/typescript/src/cloudEndpointsDelete.ts | 37 +
.../v9/typescript/src/cloudEndpointsGet.ts | 37 +
.../src/cloudEndpointsListBySyncGroup.ts | 38 +
.../src/cloudEndpointsPostBackup.ts | 42 +
.../src/cloudEndpointsPostRestore.ts | 54 +
.../typescript/src/cloudEndpointsPreBackup.ts | 42 +
.../src/cloudEndpointsPreRestore.ts | 51 +
.../src/cloudEndpointsRestoreheartbeat.ts | 37 +
.../cloudEndpointsTriggerChangeDetection.ts | 45 +
.../v9/typescript/src/operationsList.ts | 31 +
.../src/privateEndpointConnectionsCreate.ts | 45 +
.../src/privateEndpointConnectionsDelete.ts | 35 +
.../src/privateEndpointConnectionsGet.ts | 35 +
...ointConnectionsListByStorageSyncService.ts | 36 +
.../src/privateLinkResourcesList.ts | 33 +
.../typescript/src/registeredServersCreate.ts | 48 +
.../typescript/src/registeredServersDelete.ts | 35 +
.../v9/typescript/src/registeredServersGet.ts | 35 +
...gisteredServersListByStorageSyncService.ts | 36 +
.../src/registeredServersTriggerRollover.ts | 43 +
.../typescript/src/serverEndpointsCreate.ts | 54 +
.../typescript/src/serverEndpointsDelete.ts | 37 +
.../v9/typescript/src/serverEndpointsGet.ts | 37 +
.../src/serverEndpointsListBySyncGroup.ts | 38 +
.../src/serverEndpointsRecallAction.ts | 42 +
.../typescript/src/serverEndpointsUpdate.ts | 49 +
...rviceCheckNameAvailabilityAlreadyExists.ts | 39 +
...ncServiceCheckNameAvailabilityAvailable.ts | 39 +
.../src/storageSyncServicesCreate.ts | 42 +
.../src/storageSyncServicesDelete.ts | 33 +
.../typescript/src/storageSyncServicesGet.ts | 33 +
.../storageSyncServicesListByResourceGroup.ts | 34 +
.../storageSyncServicesListBySubscription.ts | 31 +
.../src/storageSyncServicesUpdate.ts | 42 +
.../v9/typescript/src/syncGroupsCreate.ts | 40 +
.../v9/typescript/src/syncGroupsDelete.ts | 35 +
.../v9/typescript/src/syncGroupsGet.ts | 35 +
.../src/syncGroupsListByStorageSyncService.ts | 36 +
.../v9/typescript/src/workflowsAbort.ts | 35 +
.../samples/v9/typescript/src/workflowsGet.ts | 34 +
.../src/workflowsListByStorageSyncService.ts | 36 +
.../samples/v9/typescript/tsconfig.json | 17 +
sdk/storagesync/arm-storagesync/src/index.ts | 12 +
.../arm-storagesync/src/lroImpl.ts | 34 +
.../src/microsoftStorageSync.ts | 164 +
.../src/models/cloudEndpointsMappers.ts | 52 -
.../arm-storagesync/src/models/index.ts | 4657 ++++++++---------
.../arm-storagesync/src/models/mappers.ts | 4071 ++++++++------
.../operationStatusOperationsMappers.ts | 15 -
.../src/models/operationsMappers.ts | 17 -
.../arm-storagesync/src/models/parameters.ts | 315 +-
.../src/models/registeredServersMappers.ts | 42 -
.../src/models/serverEndpointsMappers.ts | 44 -
.../src/models/storageSyncServicesMappers.ts | 46 -
.../src/models/syncGroupsMappers.ts | 40 -
.../src/models/workflowsMappers.ts | 39 -
.../src/operations/cloudEndpoints.ts | 1445 +++--
.../arm-storagesync/src/operations/index.ts | 10 +-
.../operations/operationStatusOperations.ts | 106 +-
.../src/operations/operations.ts | 182 +-
.../operations/privateEndpointConnections.ts | 451 ++
.../src/operations/privateLinkResources.ts | 70 +
.../src/operations/registeredServers.ts | 641 ++-
.../src/operations/serverEndpoints.ts | 930 ++--
.../src/operations/storageSyncServices.ts | 752 ++-
.../src/operations/syncGroups.ts | 350 +-
.../src/operations/workflows.ts | 280 +-
.../operationsInterfaces/cloudEndpoints.ts | 338 ++
.../src/operationsInterfaces/index.ts | 18 +
.../operationStatusOperations.ts | 31 +
.../src/operationsInterfaces/operations.ts | 22 +
.../privateEndpointConnections.ts | 119 +
.../privateLinkResources.ts | 28 +
.../operationsInterfaces/registeredServers.ts | 154 +
.../operationsInterfaces/serverEndpoints.ts | 207 +
.../storageSyncServices.ts | 155 +
.../src/operationsInterfaces/syncGroups.ts | 77 +
.../src/operationsInterfaces/workflows.ts | 59 +
.../src/storageSyncManagementClient.ts | 56 -
.../src/storageSyncManagementClientContext.ts | 62 -
.../arm-storagesync/test/sampleTest.ts | 48 +
sdk/storagesync/arm-storagesync/tsconfig.json | 9 +-
sdk/storagesync/ci.yml | 30 +
881 files changed, 74014 insertions(+), 34358 deletions(-)
create mode 100644 sdk/reservations/arm-reservations/CHANGELOG.md
create mode 100644 sdk/reservations/arm-reservations/LICENSE
create mode 100644 sdk/reservations/arm-reservations/_meta.json
create mode 100644 sdk/reservations/arm-reservations/api-extractor.json
create mode 100644 sdk/reservations/arm-reservations/recordings/node/my_test/recording_sample_test.js
create mode 100644 sdk/reservations/arm-reservations/review/arm-reservations.api.md
create mode 100644 sdk/reservations/arm-reservations/sample.env
create mode 100644 sdk/reservations/arm-reservations/samples-dev/appliedReservationList.ts
create mode 100644 sdk/reservations/arm-reservations/samples-dev/availableScopes.ts
create mode 100644 sdk/reservations/arm-reservations/samples-dev/calculateExchange.ts
create mode 100644 sdk/reservations/arm-reservations/samples-dev/catalog.ts
create mode 100644 sdk/reservations/arm-reservations/samples-dev/changeDirectory.ts
create mode 100644 sdk/reservations/arm-reservations/samples-dev/exchange.ts
create mode 100644 sdk/reservations/arm-reservations/samples-dev/getOperations.ts
create mode 100644 sdk/reservations/arm-reservations/samples-dev/getReservation.ts
create mode 100644 sdk/reservations/arm-reservations/samples-dev/getReservationWithExpandPayments.ts
create mode 100644 sdk/reservations/arm-reservations/samples-dev/merge.ts
create mode 100644 sdk/reservations/arm-reservations/samples-dev/patchReservation.ts
create mode 100644 sdk/reservations/arm-reservations/samples-dev/purchase.ts
create mode 100644 sdk/reservations/arm-reservations/samples-dev/quotaRequestFailed.ts
create mode 100644 sdk/reservations/arm-reservations/samples-dev/quotaRequestHistory.ts
create mode 100644 sdk/reservations/arm-reservations/samples-dev/quotaRequestInProgress.ts
create mode 100644 sdk/reservations/arm-reservations/samples-dev/quotaRequestStatus.ts
create mode 100644 sdk/reservations/arm-reservations/samples-dev/quotasListUsagesForCompute.ts
create mode 100644 sdk/reservations/arm-reservations/samples-dev/quotasListUsagesMachineLearningServices.ts
create mode 100644 sdk/reservations/arm-reservations/samples-dev/quotasRequestForCompute.ts
create mode 100644 sdk/reservations/arm-reservations/samples-dev/quotasRequestPatchForCompute.ts
create mode 100644 sdk/reservations/arm-reservations/samples-dev/quotasRequestPutForCompute.ts
create mode 100644 sdk/reservations/arm-reservations/samples-dev/quotasRequestPutForMachineLearningServicesDedicatedResource.ts
create mode 100644 sdk/reservations/arm-reservations/samples-dev/quotasRequestPutForMachineLearningServicesLowPriorityResource.ts
create mode 100644 sdk/reservations/arm-reservations/samples-dev/reservationList.ts
create mode 100644 sdk/reservations/arm-reservations/samples-dev/reservationOrderList.ts
create mode 100644 sdk/reservations/arm-reservations/samples-dev/reservationRevisions.ts
create mode 100644 sdk/reservations/arm-reservations/samples-dev/split.ts
create mode 100644 sdk/reservations/arm-reservations/samples/v7/javascript/README.md
create mode 100644 sdk/reservations/arm-reservations/samples/v7/javascript/appliedReservationList.js
create mode 100644 sdk/reservations/arm-reservations/samples/v7/javascript/availableScopes.js
create mode 100644 sdk/reservations/arm-reservations/samples/v7/javascript/calculateExchange.js
create mode 100644 sdk/reservations/arm-reservations/samples/v7/javascript/catalog.js
create mode 100644 sdk/reservations/arm-reservations/samples/v7/javascript/changeDirectory.js
create mode 100644 sdk/reservations/arm-reservations/samples/v7/javascript/exchange.js
create mode 100644 sdk/reservations/arm-reservations/samples/v7/javascript/getOperations.js
create mode 100644 sdk/reservations/arm-reservations/samples/v7/javascript/getReservation.js
create mode 100644 sdk/reservations/arm-reservations/samples/v7/javascript/getReservationWithExpandPayments.js
create mode 100644 sdk/reservations/arm-reservations/samples/v7/javascript/merge.js
create mode 100644 sdk/reservations/arm-reservations/samples/v7/javascript/package.json
create mode 100644 sdk/reservations/arm-reservations/samples/v7/javascript/patchReservation.js
create mode 100644 sdk/reservations/arm-reservations/samples/v7/javascript/purchase.js
create mode 100644 sdk/reservations/arm-reservations/samples/v7/javascript/quotaRequestFailed.js
create mode 100644 sdk/reservations/arm-reservations/samples/v7/javascript/quotaRequestHistory.js
create mode 100644 sdk/reservations/arm-reservations/samples/v7/javascript/quotaRequestInProgress.js
create mode 100644 sdk/reservations/arm-reservations/samples/v7/javascript/quotaRequestStatus.js
create mode 100644 sdk/reservations/arm-reservations/samples/v7/javascript/quotasListUsagesForCompute.js
create mode 100644 sdk/reservations/arm-reservations/samples/v7/javascript/quotasListUsagesMachineLearningServices.js
create mode 100644 sdk/reservations/arm-reservations/samples/v7/javascript/quotasRequestForCompute.js
create mode 100644 sdk/reservations/arm-reservations/samples/v7/javascript/quotasRequestPatchForCompute.js
create mode 100644 sdk/reservations/arm-reservations/samples/v7/javascript/quotasRequestPutForCompute.js
create mode 100644 sdk/reservations/arm-reservations/samples/v7/javascript/quotasRequestPutForMachineLearningServicesDedicatedResource.js
create mode 100644 sdk/reservations/arm-reservations/samples/v7/javascript/quotasRequestPutForMachineLearningServicesLowPriorityResource.js
create mode 100644 sdk/reservations/arm-reservations/samples/v7/javascript/reservationList.js
create mode 100644 sdk/reservations/arm-reservations/samples/v7/javascript/reservationOrderList.js
create mode 100644 sdk/reservations/arm-reservations/samples/v7/javascript/reservationRevisions.js
create mode 100644 sdk/reservations/arm-reservations/samples/v7/javascript/sample.env
create mode 100644 sdk/reservations/arm-reservations/samples/v7/javascript/split.js
create mode 100644 sdk/reservations/arm-reservations/samples/v7/typescript/README.md
create mode 100644 sdk/reservations/arm-reservations/samples/v7/typescript/package.json
create mode 100644 sdk/reservations/arm-reservations/samples/v7/typescript/sample.env
create mode 100644 sdk/reservations/arm-reservations/samples/v7/typescript/src/appliedReservationList.ts
create mode 100644 sdk/reservations/arm-reservations/samples/v7/typescript/src/availableScopes.ts
create mode 100644 sdk/reservations/arm-reservations/samples/v7/typescript/src/calculateExchange.ts
create mode 100644 sdk/reservations/arm-reservations/samples/v7/typescript/src/catalog.ts
create mode 100644 sdk/reservations/arm-reservations/samples/v7/typescript/src/changeDirectory.ts
create mode 100644 sdk/reservations/arm-reservations/samples/v7/typescript/src/exchange.ts
create mode 100644 sdk/reservations/arm-reservations/samples/v7/typescript/src/getOperations.ts
create mode 100644 sdk/reservations/arm-reservations/samples/v7/typescript/src/getReservation.ts
create mode 100644 sdk/reservations/arm-reservations/samples/v7/typescript/src/getReservationWithExpandPayments.ts
create mode 100644 sdk/reservations/arm-reservations/samples/v7/typescript/src/merge.ts
create mode 100644 sdk/reservations/arm-reservations/samples/v7/typescript/src/patchReservation.ts
create mode 100644 sdk/reservations/arm-reservations/samples/v7/typescript/src/purchase.ts
create mode 100644 sdk/reservations/arm-reservations/samples/v7/typescript/src/quotaRequestFailed.ts
create mode 100644 sdk/reservations/arm-reservations/samples/v7/typescript/src/quotaRequestHistory.ts
create mode 100644 sdk/reservations/arm-reservations/samples/v7/typescript/src/quotaRequestInProgress.ts
create mode 100644 sdk/reservations/arm-reservations/samples/v7/typescript/src/quotaRequestStatus.ts
create mode 100644 sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasListUsagesForCompute.ts
create mode 100644 sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasListUsagesMachineLearningServices.ts
create mode 100644 sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasRequestForCompute.ts
create mode 100644 sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasRequestPatchForCompute.ts
create mode 100644 sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasRequestPutForCompute.ts
create mode 100644 sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasRequestPutForMachineLearningServicesDedicatedResource.ts
create mode 100644 sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasRequestPutForMachineLearningServicesLowPriorityResource.ts
create mode 100644 sdk/reservations/arm-reservations/samples/v7/typescript/src/reservationList.ts
create mode 100644 sdk/reservations/arm-reservations/samples/v7/typescript/src/reservationOrderList.ts
create mode 100644 sdk/reservations/arm-reservations/samples/v7/typescript/src/reservationRevisions.ts
create mode 100644 sdk/reservations/arm-reservations/samples/v7/typescript/src/split.ts
create mode 100644 sdk/reservations/arm-reservations/samples/v7/typescript/tsconfig.json
delete mode 100644 sdk/reservations/arm-reservations/src/azureReservationAPIContext.ts
rename sdk/{resourcemover/arm-resourcemover/src/models/unresolvedDependenciesMappers.ts => reservations/arm-reservations/src/index.ts} (57%)
create mode 100644 sdk/reservations/arm-reservations/src/lroImpl.ts
delete mode 100644 sdk/reservations/arm-reservations/src/models/calculateExchangeMappers.ts
delete mode 100644 sdk/reservations/arm-reservations/src/models/exchangeMappers.ts
delete mode 100644 sdk/reservations/arm-reservations/src/models/quotaMappers.ts
delete mode 100644 sdk/reservations/arm-reservations/src/models/quotaRequestStatusMappers.ts
delete mode 100644 sdk/reservations/arm-reservations/src/models/reservationMappers.ts
delete mode 100644 sdk/reservations/arm-reservations/src/models/reservationOrderMappers.ts
create mode 100644 sdk/reservations/arm-reservations/src/operationsInterfaces/calculateExchange.ts
create mode 100644 sdk/reservations/arm-reservations/src/operationsInterfaces/exchange.ts
create mode 100644 sdk/reservations/arm-reservations/src/operationsInterfaces/index.ts
create mode 100644 sdk/reservations/arm-reservations/src/operationsInterfaces/operation.ts
create mode 100644 sdk/reservations/arm-reservations/src/operationsInterfaces/quota.ts
create mode 100644 sdk/reservations/arm-reservations/src/operationsInterfaces/quotaRequestStatus.ts
create mode 100644 sdk/reservations/arm-reservations/src/operationsInterfaces/reservation.ts
create mode 100644 sdk/reservations/arm-reservations/src/operationsInterfaces/reservationOrder.ts
create mode 100644 sdk/reservations/arm-reservations/test/sampleTest.ts
create mode 100644 sdk/reservations/ci.yml
create mode 100644 sdk/resourcegraph/arm-resourcegraph/CHANGELOG.md
create mode 100644 sdk/resourcegraph/arm-resourcegraph/LICENSE
create mode 100644 sdk/resourcegraph/arm-resourcegraph/_meta.json
create mode 100644 sdk/resourcegraph/arm-resourcegraph/api-extractor.json
create mode 100644 sdk/resourcegraph/arm-resourcegraph/recordings/node/my_test/recording_sample_test.js
create mode 100644 sdk/resourcegraph/arm-resourcegraph/review/arm-resourcegraph.api.md
create mode 100644 sdk/resourcegraph/arm-resourcegraph/sample.env
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples-dev/accessAPropertiesField.ts
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples-dev/basicManagementGroupQuery.ts
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples-dev/basicQuery.ts
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples-dev/basicTenantQuery.ts
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples-dev/complexQuery.ts
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples-dev/filterResources.ts
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples-dev/firstPageQuery.ts
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples-dev/nextPageQuery.ts
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples-dev/operationsList.ts
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples-dev/queryWithAFacetRequest.ts
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples-dev/randomPageQuery.ts
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples-dev/resourceHistoryManagementGroupScopeQuery.ts
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples-dev/resourceHistoryQuery.ts
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples-dev/summarizeResourcesByLocation.ts
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/javascript/README.md
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/javascript/accessAPropertiesField.js
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/javascript/basicManagementGroupQuery.js
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/javascript/basicQuery.js
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/javascript/basicTenantQuery.js
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/javascript/complexQuery.js
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/javascript/filterResources.js
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/javascript/firstPageQuery.js
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/javascript/nextPageQuery.js
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/javascript/operationsList.js
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/javascript/package.json
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/javascript/queryWithAFacetRequest.js
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/javascript/randomPageQuery.js
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/javascript/resourceHistoryManagementGroupScopeQuery.js
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/javascript/resourceHistoryQuery.js
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/javascript/sample.env
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/javascript/summarizeResourcesByLocation.js
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/typescript/README.md
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/typescript/package.json
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/typescript/sample.env
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/typescript/src/accessAPropertiesField.ts
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/typescript/src/basicManagementGroupQuery.ts
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/typescript/src/basicQuery.ts
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/typescript/src/basicTenantQuery.ts
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/typescript/src/complexQuery.ts
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/typescript/src/filterResources.ts
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/typescript/src/firstPageQuery.ts
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/typescript/src/nextPageQuery.ts
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/typescript/src/operationsList.ts
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/typescript/src/queryWithAFacetRequest.ts
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/typescript/src/randomPageQuery.ts
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/typescript/src/resourceHistoryManagementGroupScopeQuery.ts
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/typescript/src/resourceHistoryQuery.ts
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/typescript/src/summarizeResourcesByLocation.ts
create mode 100644 sdk/resourcegraph/arm-resourcegraph/samples/v5-beta/typescript/tsconfig.json
rename sdk/{reservations/arm-reservations/src/models/operationMappers.ts => resourcegraph/arm-resourcegraph/src/index.ts} (57%)
rename sdk/{storagecache/arm-storagecache/src/models/ascOperationsMappers.ts => resourcegraph/arm-resourcegraph/src/operationsInterfaces/index.ts} (73%)
create mode 100644 sdk/resourcegraph/arm-resourcegraph/src/operationsInterfaces/operations.ts
delete mode 100644 sdk/resourcegraph/arm-resourcegraph/src/resourceGraphClientContext.ts
create mode 100644 sdk/resourcegraph/arm-resourcegraph/test/sampleTest.ts
create mode 100644 sdk/resourcegraph/ci.yml
create mode 100644 sdk/resourcemover/arm-resourcemover/CHANGELOG.md
create mode 100644 sdk/resourcemover/arm-resourcemover/LICENSE
create mode 100644 sdk/resourcemover/arm-resourcemover/_meta.json
create mode 100644 sdk/resourcemover/arm-resourcemover/api-extractor.json
create mode 100644 sdk/resourcemover/arm-resourcemover/recordings/node/my_test/recording_sample_test.js
create mode 100644 sdk/resourcemover/arm-resourcemover/review/arm-resourcemover.api.md
create mode 100644 sdk/resourcemover/arm-resourcemover/sample.env
create mode 100644 sdk/resourcemover/arm-resourcemover/samples-dev/moveCollectionsBulkRemove.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples-dev/moveCollectionsCommit.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples-dev/moveCollectionsCreate.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples-dev/moveCollectionsDelete.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples-dev/moveCollectionsDiscard.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples-dev/moveCollectionsGet.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples-dev/moveCollectionsInitiateMove.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples-dev/moveCollectionsListMoveCollectionsByResourceGroup.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples-dev/moveCollectionsListMoveCollectionsBySubscription.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples-dev/moveCollectionsPrepare.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples-dev/moveCollectionsResolveDependencies.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples-dev/moveCollectionsUpdate.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples-dev/moveResourcesCreate.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples-dev/moveResourcesDelete.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples-dev/moveResourcesGet.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples-dev/moveResourcesList.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples-dev/operationsDiscoveryGet.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples-dev/requiredForGet.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples-dev/unresolvedDependenciesGet.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/javascript/README.md
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/javascript/moveCollectionsBulkRemove.js
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/javascript/moveCollectionsCommit.js
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/javascript/moveCollectionsCreate.js
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/javascript/moveCollectionsDelete.js
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/javascript/moveCollectionsDiscard.js
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/javascript/moveCollectionsGet.js
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/javascript/moveCollectionsInitiateMove.js
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/javascript/moveCollectionsListMoveCollectionsByResourceGroup.js
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/javascript/moveCollectionsListMoveCollectionsBySubscription.js
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/javascript/moveCollectionsPrepare.js
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/javascript/moveCollectionsResolveDependencies.js
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/javascript/moveCollectionsUpdate.js
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/javascript/moveResourcesCreate.js
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/javascript/moveResourcesDelete.js
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/javascript/moveResourcesGet.js
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/javascript/moveResourcesList.js
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/javascript/operationsDiscoveryGet.js
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/javascript/package.json
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/javascript/requiredForGet.js
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/javascript/sample.env
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/javascript/unresolvedDependenciesGet.js
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/typescript/README.md
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/typescript/package.json
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/typescript/sample.env
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/typescript/src/moveCollectionsBulkRemove.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/typescript/src/moveCollectionsCommit.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/typescript/src/moveCollectionsCreate.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/typescript/src/moveCollectionsDelete.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/typescript/src/moveCollectionsDiscard.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/typescript/src/moveCollectionsGet.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/typescript/src/moveCollectionsInitiateMove.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/typescript/src/moveCollectionsListMoveCollectionsByResourceGroup.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/typescript/src/moveCollectionsListMoveCollectionsBySubscription.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/typescript/src/moveCollectionsPrepare.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/typescript/src/moveCollectionsResolveDependencies.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/typescript/src/moveCollectionsUpdate.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/typescript/src/moveResourcesCreate.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/typescript/src/moveResourcesDelete.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/typescript/src/moveResourcesGet.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/typescript/src/moveResourcesList.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/typescript/src/operationsDiscoveryGet.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/typescript/src/requiredForGet.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/typescript/src/unresolvedDependenciesGet.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/samples/v2/typescript/tsconfig.json
create mode 100644 sdk/resourcemover/arm-resourcemover/src/index.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/src/lroImpl.ts
delete mode 100644 sdk/resourcemover/arm-resourcemover/src/models/moveCollectionsMappers.ts
delete mode 100644 sdk/resourcemover/arm-resourcemover/src/models/moveResourcesMappers.ts
rename sdk/{resourcegraph/arm-resourcegraph/src/models/operationsMappers.ts => resourcemover/arm-resourcemover/src/operationsInterfaces/index.ts} (59%)
create mode 100644 sdk/resourcemover/arm-resourcemover/src/operationsInterfaces/moveCollections.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/src/operationsInterfaces/moveResources.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/src/operationsInterfaces/operationsDiscoveryOperations.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/src/operationsInterfaces/unresolvedDependencies.ts
delete mode 100644 sdk/resourcemover/arm-resourcemover/src/resourceMoverServiceAPIContext.ts
create mode 100644 sdk/resourcemover/arm-resourcemover/test/sampleTest.ts
create mode 100644 sdk/resourcemover/ci.yml
create mode 100644 sdk/serialconsole/arm-serialconsole/CHANGELOG.md
create mode 100644 sdk/serialconsole/arm-serialconsole/LICENSE
create mode 100644 sdk/serialconsole/arm-serialconsole/_meta.json
create mode 100644 sdk/serialconsole/arm-serialconsole/api-extractor.json
create mode 100644 sdk/serialconsole/arm-serialconsole/recordings/node/my_test/recording_sample_test.js
create mode 100644 sdk/serialconsole/arm-serialconsole/review/arm-serialconsole.api.md
rename sdk/{resourcemover/arm-resourcemover/src/models/operationsDiscoveryOperationsMappers.ts => serialconsole/arm-serialconsole/src/index.ts} (61%)
delete mode 100644 sdk/serialconsole/arm-serialconsole/src/microsoftSerialConsoleClientContext.ts
delete mode 100644 sdk/serialconsole/arm-serialconsole/src/models/consoleMappers.ts
delete mode 100644 sdk/serialconsole/arm-serialconsole/src/models/listConsoleMappers.ts
delete mode 100644 sdk/serialconsole/arm-serialconsole/src/models/listMappers.ts
delete mode 100644 sdk/serialconsole/arm-serialconsole/src/operations/console.ts
delete mode 100644 sdk/serialconsole/arm-serialconsole/src/operations/list.ts
delete mode 100644 sdk/serialconsole/arm-serialconsole/src/operations/listConsole.ts
create mode 100644 sdk/serialconsole/arm-serialconsole/src/operations/serialPorts.ts
rename sdk/{storagecache/arm-storagecache/src/models/usageModelsMappers.ts => serialconsole/arm-serialconsole/src/operationsInterfaces/index.ts} (68%)
create mode 100644 sdk/serialconsole/arm-serialconsole/src/operationsInterfaces/serialPorts.ts
create mode 100644 sdk/serialconsole/arm-serialconsole/test/sampleTest.ts
create mode 100644 sdk/serialconsole/ci.yml
create mode 100644 sdk/service-map/arm-servicemap/CHANGELOG.md
create mode 100644 sdk/service-map/arm-servicemap/LICENSE
create mode 100644 sdk/service-map/arm-servicemap/_meta.json
create mode 100644 sdk/service-map/arm-servicemap/api-extractor.json
create mode 100644 sdk/service-map/arm-servicemap/recordings/node/my_test/recording_sample_test.js
create mode 100644 sdk/service-map/arm-servicemap/review/arm-servicemap.api.md
create mode 100644 sdk/service-map/arm-servicemap/sample.env
create mode 100644 sdk/service-map/arm-servicemap/samples-dev/smClientGroupsGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples-dev/smClientGroupsGetMembersCountGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples-dev/smClientGroupsListMembersGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples-dev/smMachineGroupsCreatePost.ts
create mode 100644 sdk/service-map/arm-servicemap/samples-dev/smMachineGroupsDelete.ts
create mode 100644 sdk/service-map/arm-servicemap/samples-dev/smMachineGroupsGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples-dev/smMachineGroupsListByWorkspaceGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples-dev/smMachineGroupsUpdatePut.ts
create mode 100644 sdk/service-map/arm-servicemap/samples-dev/smMachinesGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples-dev/smMachinesGetLivenessGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples-dev/smMachinesListByWorkspaceGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples-dev/smMachinesListConnectionsGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples-dev/smMachinesListMachineGroupMembershipGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples-dev/smMachinesListPortsGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples-dev/smMachinesListProcessesGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples-dev/smMachinesPortsGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples-dev/smMachinesPortsGetLivenessGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples-dev/smMachinesPortsListAcceptingProcessesGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples-dev/smMachinesPortsListConnectionsGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples-dev/smMachinesProcessesGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples-dev/smMachinesProcessesGetLivenessGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples-dev/smMachinesProcessesListAcceptingPortsGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples-dev/smMachinesProcessesListConnectionsGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples-dev/smMapsGenerateMachineGroupDependencyPost.ts
create mode 100644 sdk/service-map/arm-servicemap/samples-dev/smMapsGenerateMachineListDependencyPost.ts
create mode 100644 sdk/service-map/arm-servicemap/samples-dev/smMapsGenerateSingleMachineDependencyPost.ts
create mode 100644 sdk/service-map/arm-servicemap/samples-dev/smSummariesGetMachinesGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/javascript/README.md
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/javascript/package.json
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/javascript/sample.env
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/javascript/smClientGroupsGet.js
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/javascript/smClientGroupsGetMembersCountGet.js
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/javascript/smClientGroupsListMembersGet.js
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/javascript/smMachineGroupsCreatePost.js
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/javascript/smMachineGroupsDelete.js
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/javascript/smMachineGroupsGet.js
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/javascript/smMachineGroupsListByWorkspaceGet.js
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/javascript/smMachineGroupsUpdatePut.js
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/javascript/smMachinesGet.js
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/javascript/smMachinesGetLivenessGet.js
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/javascript/smMachinesListByWorkspaceGet.js
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/javascript/smMachinesListConnectionsGet.js
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/javascript/smMachinesListMachineGroupMembershipGet.js
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/javascript/smMachinesListPortsGet.js
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/javascript/smMachinesListProcessesGet.js
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/javascript/smMachinesPortsGet.js
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/javascript/smMachinesPortsGetLivenessGet.js
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/javascript/smMachinesPortsListAcceptingProcessesGet.js
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/javascript/smMachinesPortsListConnectionsGet.js
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/javascript/smMachinesProcessesGet.js
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/javascript/smMachinesProcessesGetLivenessGet.js
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/javascript/smMachinesProcessesListAcceptingPortsGet.js
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/javascript/smMachinesProcessesListConnectionsGet.js
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/javascript/smMapsGenerateMachineGroupDependencyPost.js
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/javascript/smMapsGenerateMachineListDependencyPost.js
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/javascript/smMapsGenerateSingleMachineDependencyPost.js
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/javascript/smSummariesGetMachinesGet.js
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/typescript/README.md
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/typescript/package.json
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/typescript/sample.env
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/typescript/src/smClientGroupsGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/typescript/src/smClientGroupsGetMembersCountGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/typescript/src/smClientGroupsListMembersGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/typescript/src/smMachineGroupsCreatePost.ts
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/typescript/src/smMachineGroupsDelete.ts
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/typescript/src/smMachineGroupsGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/typescript/src/smMachineGroupsListByWorkspaceGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/typescript/src/smMachineGroupsUpdatePut.ts
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/typescript/src/smMachinesGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/typescript/src/smMachinesGetLivenessGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/typescript/src/smMachinesListByWorkspaceGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/typescript/src/smMachinesListConnectionsGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/typescript/src/smMachinesListMachineGroupMembershipGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/typescript/src/smMachinesListPortsGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/typescript/src/smMachinesListProcessesGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/typescript/src/smMachinesPortsGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/typescript/src/smMachinesPortsGetLivenessGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/typescript/src/smMachinesPortsListAcceptingProcessesGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/typescript/src/smMachinesPortsListConnectionsGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/typescript/src/smMachinesProcessesGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/typescript/src/smMachinesProcessesGetLivenessGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/typescript/src/smMachinesProcessesListAcceptingPortsGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/typescript/src/smMachinesProcessesListConnectionsGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/typescript/src/smMapsGenerateMachineGroupDependencyPost.ts
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/typescript/src/smMapsGenerateMachineListDependencyPost.ts
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/typescript/src/smMapsGenerateSingleMachineDependencyPost.ts
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/typescript/src/smSummariesGetMachinesGet.ts
create mode 100644 sdk/service-map/arm-servicemap/samples/v3-beta/typescript/tsconfig.json
rename sdk/{signalr/arm-signalr/src/models/usagesMappers.ts => service-map/arm-servicemap/src/index.ts} (60%)
delete mode 100644 sdk/service-map/arm-servicemap/src/models/clientGroupsMappers.ts
delete mode 100644 sdk/service-map/arm-servicemap/src/models/machineGroupsMappers.ts
delete mode 100644 sdk/service-map/arm-servicemap/src/models/machinesMappers.ts
delete mode 100644 sdk/service-map/arm-servicemap/src/models/mapsMappers.ts
delete mode 100644 sdk/service-map/arm-servicemap/src/models/portsMappers.ts
delete mode 100644 sdk/service-map/arm-servicemap/src/models/processesMappers.ts
delete mode 100644 sdk/service-map/arm-servicemap/src/models/summariesMappers.ts
create mode 100644 sdk/service-map/arm-servicemap/src/operationsInterfaces/clientGroups.ts
create mode 100644 sdk/service-map/arm-servicemap/src/operationsInterfaces/index.ts
create mode 100644 sdk/service-map/arm-servicemap/src/operationsInterfaces/machineGroups.ts
create mode 100644 sdk/service-map/arm-servicemap/src/operationsInterfaces/machines.ts
create mode 100644 sdk/service-map/arm-servicemap/src/operationsInterfaces/maps.ts
create mode 100644 sdk/service-map/arm-servicemap/src/operationsInterfaces/ports.ts
create mode 100644 sdk/service-map/arm-servicemap/src/operationsInterfaces/processes.ts
create mode 100644 sdk/service-map/arm-servicemap/src/operationsInterfaces/summaries.ts
create mode 100644 sdk/service-map/arm-servicemap/src/serviceMap.ts
delete mode 100644 sdk/service-map/arm-servicemap/src/servicemapManagementClient.ts
delete mode 100644 sdk/service-map/arm-servicemap/src/servicemapManagementClientContext.ts
create mode 100644 sdk/service-map/arm-servicemap/test/sampleTest.ts
create mode 100644 sdk/service-map/ci.yml
create mode 100644 sdk/signalr/arm-signalr/CHANGELOG.md
create mode 100644 sdk/signalr/arm-signalr/LICENSE
create mode 100644 sdk/signalr/arm-signalr/_meta.json
create mode 100644 sdk/signalr/arm-signalr/api-extractor.json
create mode 100644 sdk/signalr/arm-signalr/recordings/node/my_test/recording_sample_test.js
create mode 100644 sdk/signalr/arm-signalr/review/arm-signalr.api.md
create mode 100644 sdk/signalr/arm-signalr/sample.env
create mode 100644 sdk/signalr/arm-signalr/samples-dev/operationsList.ts
create mode 100644 sdk/signalr/arm-signalr/samples-dev/signalRCheckNameAvailability.ts
create mode 100644 sdk/signalr/arm-signalr/samples-dev/signalRCreateOrUpdate.ts
create mode 100644 sdk/signalr/arm-signalr/samples-dev/signalRDelete.ts
create mode 100644 sdk/signalr/arm-signalr/samples-dev/signalRGet.ts
create mode 100644 sdk/signalr/arm-signalr/samples-dev/signalRListByResourceGroup.ts
create mode 100644 sdk/signalr/arm-signalr/samples-dev/signalRListBySubscription.ts
create mode 100644 sdk/signalr/arm-signalr/samples-dev/signalRListKeys.ts
create mode 100644 sdk/signalr/arm-signalr/samples-dev/signalRListSkus.ts
create mode 100644 sdk/signalr/arm-signalr/samples-dev/signalRPrivateEndpointConnectionsDelete.ts
create mode 100644 sdk/signalr/arm-signalr/samples-dev/signalRPrivateEndpointConnectionsGet.ts
create mode 100644 sdk/signalr/arm-signalr/samples-dev/signalRPrivateEndpointConnectionsList.ts
create mode 100644 sdk/signalr/arm-signalr/samples-dev/signalRPrivateEndpointConnectionsUpdate.ts
create mode 100644 sdk/signalr/arm-signalr/samples-dev/signalRPrivateLinkResourcesList.ts
create mode 100644 sdk/signalr/arm-signalr/samples-dev/signalRRegenerateKey.ts
create mode 100644 sdk/signalr/arm-signalr/samples-dev/signalRRestart.ts
create mode 100644 sdk/signalr/arm-signalr/samples-dev/signalRSharedPrivateLinkResourcesCreateOrUpdate.ts
create mode 100644 sdk/signalr/arm-signalr/samples-dev/signalRSharedPrivateLinkResourcesDelete.ts
create mode 100644 sdk/signalr/arm-signalr/samples-dev/signalRSharedPrivateLinkResourcesGet.ts
create mode 100644 sdk/signalr/arm-signalr/samples-dev/signalRSharedPrivateLinkResourcesList.ts
create mode 100644 sdk/signalr/arm-signalr/samples-dev/signalRUpdate.ts
create mode 100644 sdk/signalr/arm-signalr/samples-dev/usagesList.ts
create mode 100644 sdk/signalr/arm-signalr/samples/v5/javascript/README.md
create mode 100644 sdk/signalr/arm-signalr/samples/v5/javascript/operationsList.js
create mode 100644 sdk/signalr/arm-signalr/samples/v5/javascript/package.json
create mode 100644 sdk/signalr/arm-signalr/samples/v5/javascript/sample.env
create mode 100644 sdk/signalr/arm-signalr/samples/v5/javascript/signalRCheckNameAvailability.js
create mode 100644 sdk/signalr/arm-signalr/samples/v5/javascript/signalRCreateOrUpdate.js
create mode 100644 sdk/signalr/arm-signalr/samples/v5/javascript/signalRDelete.js
create mode 100644 sdk/signalr/arm-signalr/samples/v5/javascript/signalRGet.js
create mode 100644 sdk/signalr/arm-signalr/samples/v5/javascript/signalRListByResourceGroup.js
create mode 100644 sdk/signalr/arm-signalr/samples/v5/javascript/signalRListBySubscription.js
create mode 100644 sdk/signalr/arm-signalr/samples/v5/javascript/signalRListKeys.js
create mode 100644 sdk/signalr/arm-signalr/samples/v5/javascript/signalRListSkus.js
create mode 100644 sdk/signalr/arm-signalr/samples/v5/javascript/signalRPrivateEndpointConnectionsDelete.js
create mode 100644 sdk/signalr/arm-signalr/samples/v5/javascript/signalRPrivateEndpointConnectionsGet.js
create mode 100644 sdk/signalr/arm-signalr/samples/v5/javascript/signalRPrivateEndpointConnectionsList.js
create mode 100644 sdk/signalr/arm-signalr/samples/v5/javascript/signalRPrivateEndpointConnectionsUpdate.js
create mode 100644 sdk/signalr/arm-signalr/samples/v5/javascript/signalRPrivateLinkResourcesList.js
create mode 100644 sdk/signalr/arm-signalr/samples/v5/javascript/signalRRegenerateKey.js
create mode 100644 sdk/signalr/arm-signalr/samples/v5/javascript/signalRRestart.js
create mode 100644 sdk/signalr/arm-signalr/samples/v5/javascript/signalRSharedPrivateLinkResourcesCreateOrUpdate.js
create mode 100644 sdk/signalr/arm-signalr/samples/v5/javascript/signalRSharedPrivateLinkResourcesDelete.js
create mode 100644 sdk/signalr/arm-signalr/samples/v5/javascript/signalRSharedPrivateLinkResourcesGet.js
create mode 100644 sdk/signalr/arm-signalr/samples/v5/javascript/signalRSharedPrivateLinkResourcesList.js
create mode 100644 sdk/signalr/arm-signalr/samples/v5/javascript/signalRUpdate.js
create mode 100644 sdk/signalr/arm-signalr/samples/v5/javascript/usagesList.js
create mode 100644 sdk/signalr/arm-signalr/samples/v5/typescript/README.md
create mode 100644 sdk/signalr/arm-signalr/samples/v5/typescript/package.json
create mode 100644 sdk/signalr/arm-signalr/samples/v5/typescript/sample.env
create mode 100644 sdk/signalr/arm-signalr/samples/v5/typescript/src/operationsList.ts
create mode 100644 sdk/signalr/arm-signalr/samples/v5/typescript/src/signalRCheckNameAvailability.ts
create mode 100644 sdk/signalr/arm-signalr/samples/v5/typescript/src/signalRCreateOrUpdate.ts
create mode 100644 sdk/signalr/arm-signalr/samples/v5/typescript/src/signalRDelete.ts
create mode 100644 sdk/signalr/arm-signalr/samples/v5/typescript/src/signalRGet.ts
create mode 100644 sdk/signalr/arm-signalr/samples/v5/typescript/src/signalRListByResourceGroup.ts
create mode 100644 sdk/signalr/arm-signalr/samples/v5/typescript/src/signalRListBySubscription.ts
create mode 100644 sdk/signalr/arm-signalr/samples/v5/typescript/src/signalRListKeys.ts
create mode 100644 sdk/signalr/arm-signalr/samples/v5/typescript/src/signalRListSkus.ts
create mode 100644 sdk/signalr/arm-signalr/samples/v5/typescript/src/signalRPrivateEndpointConnectionsDelete.ts
create mode 100644 sdk/signalr/arm-signalr/samples/v5/typescript/src/signalRPrivateEndpointConnectionsGet.ts
create mode 100644 sdk/signalr/arm-signalr/samples/v5/typescript/src/signalRPrivateEndpointConnectionsList.ts
create mode 100644 sdk/signalr/arm-signalr/samples/v5/typescript/src/signalRPrivateEndpointConnectionsUpdate.ts
create mode 100644 sdk/signalr/arm-signalr/samples/v5/typescript/src/signalRPrivateLinkResourcesList.ts
create mode 100644 sdk/signalr/arm-signalr/samples/v5/typescript/src/signalRRegenerateKey.ts
create mode 100644 sdk/signalr/arm-signalr/samples/v5/typescript/src/signalRRestart.ts
create mode 100644 sdk/signalr/arm-signalr/samples/v5/typescript/src/signalRSharedPrivateLinkResourcesCreateOrUpdate.ts
create mode 100644 sdk/signalr/arm-signalr/samples/v5/typescript/src/signalRSharedPrivateLinkResourcesDelete.ts
create mode 100644 sdk/signalr/arm-signalr/samples/v5/typescript/src/signalRSharedPrivateLinkResourcesGet.ts
create mode 100644 sdk/signalr/arm-signalr/samples/v5/typescript/src/signalRSharedPrivateLinkResourcesList.ts
create mode 100644 sdk/signalr/arm-signalr/samples/v5/typescript/src/signalRUpdate.ts
create mode 100644 sdk/signalr/arm-signalr/samples/v5/typescript/src/usagesList.ts
create mode 100644 sdk/signalr/arm-signalr/samples/v5/typescript/tsconfig.json
create mode 100644 sdk/signalr/arm-signalr/src/index.ts
create mode 100644 sdk/signalr/arm-signalr/src/lroImpl.ts
delete mode 100644 sdk/signalr/arm-signalr/src/models/operationsMappers.ts
delete mode 100644 sdk/signalr/arm-signalr/src/models/signalRMappers.ts
delete mode 100644 sdk/signalr/arm-signalr/src/models/signalRPrivateEndpointConnectionsMappers.ts
delete mode 100644 sdk/signalr/arm-signalr/src/models/signalRPrivateLinkResourcesMappers.ts
delete mode 100644 sdk/signalr/arm-signalr/src/models/signalRSharedPrivateLinkResourcesMappers.ts
create mode 100644 sdk/signalr/arm-signalr/src/operationsInterfaces/index.ts
create mode 100644 sdk/signalr/arm-signalr/src/operationsInterfaces/operations.ts
create mode 100644 sdk/signalr/arm-signalr/src/operationsInterfaces/signalR.ts
create mode 100644 sdk/signalr/arm-signalr/src/operationsInterfaces/signalRPrivateEndpointConnections.ts
create mode 100644 sdk/signalr/arm-signalr/src/operationsInterfaces/signalRPrivateLinkResources.ts
create mode 100644 sdk/signalr/arm-signalr/src/operationsInterfaces/signalRSharedPrivateLinkResources.ts
create mode 100644 sdk/signalr/arm-signalr/src/operationsInterfaces/usages.ts
delete mode 100644 sdk/signalr/arm-signalr/src/signalRManagementClientContext.ts
create mode 100644 sdk/signalr/arm-signalr/test/sampleTest.ts
create mode 100644 sdk/signalr/ci.yml
create mode 100644 sdk/storagecache/arm-storagecache/CHANGELOG.md
create mode 100644 sdk/storagecache/arm-storagecache/LICENSE
create mode 100644 sdk/storagecache/arm-storagecache/_meta.json
create mode 100644 sdk/storagecache/arm-storagecache/api-extractor.json
create mode 100644 sdk/storagecache/arm-storagecache/recordings/node/my_test/recording_sample_test.js
create mode 100644 sdk/storagecache/arm-storagecache/review/arm-storagecache.api.md
create mode 100644 sdk/storagecache/arm-storagecache/sample.env
create mode 100644 sdk/storagecache/arm-storagecache/samples-dev/ascOperationsGet.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples-dev/cachesCreateOrUpdate.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples-dev/cachesCreateOrUpdateLdapOnly.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples-dev/cachesDebugInfo.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples-dev/cachesDelete.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples-dev/cachesDnsRefresh.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples-dev/cachesFlush.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples-dev/cachesGet.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples-dev/cachesList.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples-dev/cachesListByResourceGroup.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples-dev/cachesStart.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples-dev/cachesStop.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples-dev/cachesUpdate.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples-dev/cachesUpdateLdapOnly.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples-dev/cachesUpgradeFirmware.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples-dev/skusList.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples-dev/storageTargetsCreateOrUpdate.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples-dev/storageTargetsCreateOrUpdateBlobNfs.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples-dev/storageTargetsCreateOrUpdateNoJunctions.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples-dev/storageTargetsDelete.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples-dev/storageTargetsFlush.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples-dev/storageTargetsGet.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples-dev/storageTargetsList.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples-dev/storageTargetsResume.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples-dev/storageTargetsSuspend.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples-dev/usageModelsList.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/javascript/README.md
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/javascript/ascOperationsGet.js
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/javascript/cachesCreateOrUpdate.js
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/javascript/cachesCreateOrUpdateLdapOnly.js
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/javascript/cachesDebugInfo.js
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/javascript/cachesDelete.js
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/javascript/cachesDnsRefresh.js
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/javascript/cachesFlush.js
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/javascript/cachesGet.js
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/javascript/cachesList.js
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/javascript/cachesListByResourceGroup.js
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/javascript/cachesStart.js
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/javascript/cachesStop.js
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/javascript/cachesUpdate.js
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/javascript/cachesUpdateLdapOnly.js
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/javascript/cachesUpgradeFirmware.js
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/javascript/package.json
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/javascript/sample.env
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/javascript/skusList.js
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/javascript/storageTargetsCreateOrUpdate.js
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/javascript/storageTargetsCreateOrUpdateBlobNfs.js
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/javascript/storageTargetsCreateOrUpdateNoJunctions.js
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/javascript/storageTargetsDelete.js
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/javascript/storageTargetsFlush.js
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/javascript/storageTargetsGet.js
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/javascript/storageTargetsList.js
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/javascript/storageTargetsResume.js
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/javascript/storageTargetsSuspend.js
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/javascript/usageModelsList.js
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/typescript/README.md
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/typescript/package.json
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/typescript/sample.env
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/typescript/src/ascOperationsGet.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/typescript/src/cachesCreateOrUpdate.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/typescript/src/cachesCreateOrUpdateLdapOnly.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/typescript/src/cachesDebugInfo.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/typescript/src/cachesDelete.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/typescript/src/cachesDnsRefresh.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/typescript/src/cachesFlush.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/typescript/src/cachesGet.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/typescript/src/cachesList.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/typescript/src/cachesListByResourceGroup.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/typescript/src/cachesStart.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/typescript/src/cachesStop.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/typescript/src/cachesUpdate.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/typescript/src/cachesUpdateLdapOnly.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/typescript/src/cachesUpgradeFirmware.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/typescript/src/skusList.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/typescript/src/storageTargetsCreateOrUpdate.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/typescript/src/storageTargetsCreateOrUpdateBlobNfs.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/typescript/src/storageTargetsCreateOrUpdateNoJunctions.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/typescript/src/storageTargetsDelete.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/typescript/src/storageTargetsFlush.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/typescript/src/storageTargetsGet.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/typescript/src/storageTargetsList.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/typescript/src/storageTargetsResume.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/typescript/src/storageTargetsSuspend.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/typescript/src/usageModelsList.ts
create mode 100644 sdk/storagecache/arm-storagecache/samples/v5/typescript/tsconfig.json
create mode 100644 sdk/storagecache/arm-storagecache/src/index.ts
create mode 100644 sdk/storagecache/arm-storagecache/src/lroImpl.ts
delete mode 100644 sdk/storagecache/arm-storagecache/src/models/cachesMappers.ts
delete mode 100644 sdk/storagecache/arm-storagecache/src/models/operationsMappers.ts
delete mode 100644 sdk/storagecache/arm-storagecache/src/models/skusMappers.ts
delete mode 100644 sdk/storagecache/arm-storagecache/src/models/storageTargetsMappers.ts
create mode 100644 sdk/storagecache/arm-storagecache/src/operations/storageTargetOperations.ts
create mode 100644 sdk/storagecache/arm-storagecache/src/operationsInterfaces/ascOperations.ts
create mode 100644 sdk/storagecache/arm-storagecache/src/operationsInterfaces/caches.ts
create mode 100644 sdk/storagecache/arm-storagecache/src/operationsInterfaces/index.ts
create mode 100644 sdk/storagecache/arm-storagecache/src/operationsInterfaces/operations.ts
create mode 100644 sdk/storagecache/arm-storagecache/src/operationsInterfaces/skus.ts
create mode 100644 sdk/storagecache/arm-storagecache/src/operationsInterfaces/storageTargetOperations.ts
create mode 100644 sdk/storagecache/arm-storagecache/src/operationsInterfaces/storageTargets.ts
create mode 100644 sdk/storagecache/arm-storagecache/src/operationsInterfaces/usageModels.ts
delete mode 100644 sdk/storagecache/arm-storagecache/src/storageCacheManagementClientContext.ts
create mode 100644 sdk/storagecache/arm-storagecache/test/sampleTest.ts
create mode 100644 sdk/storagecache/ci.yml
create mode 100644 sdk/storagesync/arm-storagesync/CHANGELOG.md
create mode 100644 sdk/storagesync/arm-storagesync/LICENSE
create mode 100644 sdk/storagesync/arm-storagesync/_meta.json
create mode 100644 sdk/storagesync/arm-storagesync/api-extractor.json
create mode 100644 sdk/storagesync/arm-storagesync/recordings/node/my_test/recording_sample_test.js
create mode 100644 sdk/storagesync/arm-storagesync/review/arm-storagesync.api.md
create mode 100644 sdk/storagesync/arm-storagesync/sample.env
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/cloudEndpointsCreate.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/cloudEndpointsDelete.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/cloudEndpointsGet.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/cloudEndpointsListBySyncGroup.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/cloudEndpointsPostBackup.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/cloudEndpointsPostRestore.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/cloudEndpointsPreBackup.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/cloudEndpointsPreRestore.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/cloudEndpointsRestoreheartbeat.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/cloudEndpointsTriggerChangeDetection.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/operationsList.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/privateEndpointConnectionsCreate.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/privateEndpointConnectionsDelete.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/privateEndpointConnectionsGet.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/privateEndpointConnectionsListByStorageSyncService.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/privateLinkResourcesList.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/registeredServersCreate.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/registeredServersDelete.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/registeredServersGet.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/registeredServersListByStorageSyncService.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/registeredServersTriggerRollover.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/serverEndpointsCreate.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/serverEndpointsDelete.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/serverEndpointsGet.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/serverEndpointsListBySyncGroup.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/serverEndpointsRecallAction.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/serverEndpointsUpdate.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/storageSyncServiceCheckNameAvailabilityAlreadyExists.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/storageSyncServiceCheckNameAvailabilityAvailable.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/storageSyncServicesCreate.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/storageSyncServicesDelete.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/storageSyncServicesGet.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/storageSyncServicesListByResourceGroup.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/storageSyncServicesListBySubscription.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/storageSyncServicesUpdate.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/syncGroupsCreate.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/syncGroupsDelete.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/syncGroupsGet.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/syncGroupsListByStorageSyncService.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/workflowsAbort.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/workflowsGet.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples-dev/workflowsListByStorageSyncService.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/README.md
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/cloudEndpointsCreate.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/cloudEndpointsDelete.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/cloudEndpointsGet.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/cloudEndpointsListBySyncGroup.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/cloudEndpointsPostBackup.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/cloudEndpointsPostRestore.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/cloudEndpointsPreBackup.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/cloudEndpointsPreRestore.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/cloudEndpointsRestoreheartbeat.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/cloudEndpointsTriggerChangeDetection.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/operationsList.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/package.json
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/privateEndpointConnectionsCreate.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/privateEndpointConnectionsDelete.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/privateEndpointConnectionsGet.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/privateEndpointConnectionsListByStorageSyncService.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/privateLinkResourcesList.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/registeredServersCreate.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/registeredServersDelete.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/registeredServersGet.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/registeredServersListByStorageSyncService.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/registeredServersTriggerRollover.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/sample.env
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/serverEndpointsCreate.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/serverEndpointsDelete.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/serverEndpointsGet.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/serverEndpointsListBySyncGroup.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/serverEndpointsRecallAction.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/serverEndpointsUpdate.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/storageSyncServiceCheckNameAvailabilityAlreadyExists.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/storageSyncServiceCheckNameAvailabilityAvailable.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/storageSyncServicesCreate.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/storageSyncServicesDelete.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/storageSyncServicesGet.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/storageSyncServicesListByResourceGroup.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/storageSyncServicesListBySubscription.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/storageSyncServicesUpdate.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/syncGroupsCreate.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/syncGroupsDelete.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/syncGroupsGet.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/syncGroupsListByStorageSyncService.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/workflowsAbort.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/workflowsGet.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/javascript/workflowsListByStorageSyncService.js
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/README.md
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/package.json
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/sample.env
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/cloudEndpointsCreate.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/cloudEndpointsDelete.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/cloudEndpointsGet.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/cloudEndpointsListBySyncGroup.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/cloudEndpointsPostBackup.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/cloudEndpointsPostRestore.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/cloudEndpointsPreBackup.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/cloudEndpointsPreRestore.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/cloudEndpointsRestoreheartbeat.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/cloudEndpointsTriggerChangeDetection.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/operationsList.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/privateEndpointConnectionsCreate.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/privateEndpointConnectionsDelete.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/privateEndpointConnectionsGet.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/privateEndpointConnectionsListByStorageSyncService.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/privateLinkResourcesList.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/registeredServersCreate.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/registeredServersDelete.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/registeredServersGet.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/registeredServersListByStorageSyncService.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/registeredServersTriggerRollover.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/serverEndpointsCreate.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/serverEndpointsDelete.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/serverEndpointsGet.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/serverEndpointsListBySyncGroup.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/serverEndpointsRecallAction.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/serverEndpointsUpdate.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/storageSyncServiceCheckNameAvailabilityAlreadyExists.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/storageSyncServiceCheckNameAvailabilityAvailable.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/storageSyncServicesCreate.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/storageSyncServicesDelete.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/storageSyncServicesGet.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/storageSyncServicesListByResourceGroup.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/storageSyncServicesListBySubscription.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/storageSyncServicesUpdate.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/syncGroupsCreate.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/syncGroupsDelete.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/syncGroupsGet.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/syncGroupsListByStorageSyncService.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/workflowsAbort.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/workflowsGet.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/src/workflowsListByStorageSyncService.ts
create mode 100644 sdk/storagesync/arm-storagesync/samples/v9/typescript/tsconfig.json
create mode 100644 sdk/storagesync/arm-storagesync/src/index.ts
create mode 100644 sdk/storagesync/arm-storagesync/src/lroImpl.ts
create mode 100644 sdk/storagesync/arm-storagesync/src/microsoftStorageSync.ts
delete mode 100644 sdk/storagesync/arm-storagesync/src/models/cloudEndpointsMappers.ts
delete mode 100644 sdk/storagesync/arm-storagesync/src/models/operationStatusOperationsMappers.ts
delete mode 100644 sdk/storagesync/arm-storagesync/src/models/operationsMappers.ts
delete mode 100644 sdk/storagesync/arm-storagesync/src/models/registeredServersMappers.ts
delete mode 100644 sdk/storagesync/arm-storagesync/src/models/serverEndpointsMappers.ts
delete mode 100644 sdk/storagesync/arm-storagesync/src/models/storageSyncServicesMappers.ts
delete mode 100644 sdk/storagesync/arm-storagesync/src/models/syncGroupsMappers.ts
delete mode 100644 sdk/storagesync/arm-storagesync/src/models/workflowsMappers.ts
create mode 100644 sdk/storagesync/arm-storagesync/src/operations/privateEndpointConnections.ts
create mode 100644 sdk/storagesync/arm-storagesync/src/operations/privateLinkResources.ts
create mode 100644 sdk/storagesync/arm-storagesync/src/operationsInterfaces/cloudEndpoints.ts
create mode 100644 sdk/storagesync/arm-storagesync/src/operationsInterfaces/index.ts
create mode 100644 sdk/storagesync/arm-storagesync/src/operationsInterfaces/operationStatusOperations.ts
create mode 100644 sdk/storagesync/arm-storagesync/src/operationsInterfaces/operations.ts
create mode 100644 sdk/storagesync/arm-storagesync/src/operationsInterfaces/privateEndpointConnections.ts
create mode 100644 sdk/storagesync/arm-storagesync/src/operationsInterfaces/privateLinkResources.ts
create mode 100644 sdk/storagesync/arm-storagesync/src/operationsInterfaces/registeredServers.ts
create mode 100644 sdk/storagesync/arm-storagesync/src/operationsInterfaces/serverEndpoints.ts
create mode 100644 sdk/storagesync/arm-storagesync/src/operationsInterfaces/storageSyncServices.ts
create mode 100644 sdk/storagesync/arm-storagesync/src/operationsInterfaces/syncGroups.ts
create mode 100644 sdk/storagesync/arm-storagesync/src/operationsInterfaces/workflows.ts
delete mode 100644 sdk/storagesync/arm-storagesync/src/storageSyncManagementClient.ts
delete mode 100644 sdk/storagesync/arm-storagesync/src/storageSyncManagementClientContext.ts
create mode 100644 sdk/storagesync/arm-storagesync/test/sampleTest.ts
create mode 100644 sdk/storagesync/ci.yml
diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml
index f553739b974..0fd36f8f2f1 100644
--- a/common/config/rush/pnpm-lock.yaml
+++ b/common/config/rush/pnpm-lock.yaml
@@ -110,17 +110,25 @@ specifiers:
'@rush-temp/arm-rediscache': file:./projects/arm-rediscache.tgz
'@rush-temp/arm-redisenterprisecache': file:./projects/arm-redisenterprisecache.tgz
'@rush-temp/arm-relay': file:./projects/arm-relay.tgz
+ '@rush-temp/arm-reservations': file:./projects/arm-reservations.tgz
+ '@rush-temp/arm-resourcegraph': file:./projects/arm-resourcegraph.tgz
'@rush-temp/arm-resourcehealth': file:./projects/arm-resourcehealth.tgz
+ '@rush-temp/arm-resourcemover': file:./projects/arm-resourcemover.tgz
'@rush-temp/arm-resources': file:./projects/arm-resources.tgz
'@rush-temp/arm-resources-subscriptions': file:./projects/arm-resources-subscriptions.tgz
'@rush-temp/arm-search': file:./projects/arm-search.tgz
'@rush-temp/arm-security': file:./projects/arm-security.tgz
'@rush-temp/arm-securityinsight': file:./projects/arm-securityinsight.tgz
+ '@rush-temp/arm-serialconsole': file:./projects/arm-serialconsole.tgz
'@rush-temp/arm-servicebus': file:./projects/arm-servicebus.tgz
'@rush-temp/arm-servicefabric': file:./projects/arm-servicefabric.tgz
+ '@rush-temp/arm-servicemap': file:./projects/arm-servicemap.tgz
+ '@rush-temp/arm-signalr': file:./projects/arm-signalr.tgz
'@rush-temp/arm-sql': file:./projects/arm-sql.tgz
'@rush-temp/arm-sqlvirtualmachine': file:./projects/arm-sqlvirtualmachine.tgz
'@rush-temp/arm-storage': file:./projects/arm-storage.tgz
+ '@rush-temp/arm-storagecache': file:./projects/arm-storagecache.tgz
+ '@rush-temp/arm-storagesync': file:./projects/arm-storagesync.tgz
'@rush-temp/arm-streamanalytics': file:./projects/arm-streamanalytics.tgz
'@rush-temp/arm-subscriptions': file:./projects/arm-subscriptions.tgz
'@rush-temp/arm-synapse': file:./projects/arm-synapse.tgz
@@ -342,17 +350,25 @@ dependencies:
'@rush-temp/arm-rediscache': file:projects/arm-rediscache.tgz
'@rush-temp/arm-redisenterprisecache': file:projects/arm-redisenterprisecache.tgz
'@rush-temp/arm-relay': file:projects/arm-relay.tgz
+ '@rush-temp/arm-reservations': file:projects/arm-reservations.tgz
+ '@rush-temp/arm-resourcegraph': file:projects/arm-resourcegraph.tgz
'@rush-temp/arm-resourcehealth': file:projects/arm-resourcehealth.tgz
+ '@rush-temp/arm-resourcemover': file:projects/arm-resourcemover.tgz
'@rush-temp/arm-resources': file:projects/arm-resources.tgz
'@rush-temp/arm-resources-subscriptions': file:projects/arm-resources-subscriptions.tgz
'@rush-temp/arm-search': file:projects/arm-search.tgz
'@rush-temp/arm-security': file:projects/arm-security.tgz
'@rush-temp/arm-securityinsight': file:projects/arm-securityinsight.tgz
+ '@rush-temp/arm-serialconsole': file:projects/arm-serialconsole.tgz
'@rush-temp/arm-servicebus': file:projects/arm-servicebus.tgz
'@rush-temp/arm-servicefabric': file:projects/arm-servicefabric.tgz
+ '@rush-temp/arm-servicemap': file:projects/arm-servicemap.tgz
+ '@rush-temp/arm-signalr': file:projects/arm-signalr.tgz
'@rush-temp/arm-sql': file:projects/arm-sql.tgz
'@rush-temp/arm-sqlvirtualmachine': file:projects/arm-sqlvirtualmachine.tgz
'@rush-temp/arm-storage': file:projects/arm-storage.tgz
+ '@rush-temp/arm-storagecache': file:projects/arm-storagecache.tgz
+ '@rush-temp/arm-storagesync': file:projects/arm-storagesync.tgz
'@rush-temp/arm-streamanalytics': file:projects/arm-streamanalytics.tgz
'@rush-temp/arm-subscriptions': file:projects/arm-subscriptions.tgz
'@rush-temp/arm-synapse': file:projects/arm-synapse.tgz
@@ -11190,6 +11206,56 @@ packages:
- supports-color
dev: false
+ file:projects/arm-reservations.tgz:
+ resolution: {integrity: sha512-3W8+jfJsjrwXC+hllrUv2+vWu1ePqVcZyaVwUck8IQjlQ48QRBrbg8DQRlYUWxEV3jQevqv+qyVnGCkFzza86Q==, tarball: file:projects/arm-reservations.tgz}
+ name: '@rush-temp/arm-reservations'
+ version: 0.0.0
+ dependencies:
+ '@azure-tools/test-recorder': 1.0.2
+ '@microsoft/api-extractor': 7.19.4
+ '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1
+ '@rollup/plugin-json': 4.1.0_rollup@1.32.1
+ '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1
+ '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1
+ cross-env: 7.0.3
+ mkdirp: 1.0.4
+ mocha: 7.2.0
+ rimraf: 3.0.2
+ rollup: 1.32.1
+ rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1
+ tslib: 2.3.1
+ typescript: 4.2.4
+ uglify-js: 3.14.5
+ transitivePeerDependencies:
+ - encoding
+ - supports-color
+ dev: false
+
+ file:projects/arm-resourcegraph.tgz:
+ resolution: {integrity: sha512-76aD1wFiDz2tO2T/G0Mhx95UvRGRI0pOYLQvo7PmCCOhU4LBxF2qG6Q+PsIfxbzbOmufYsMCn8t4TeH0ok/mkA==, tarball: file:projects/arm-resourcegraph.tgz}
+ name: '@rush-temp/arm-resourcegraph'
+ version: 0.0.0
+ dependencies:
+ '@azure-tools/test-recorder': 1.0.2
+ '@microsoft/api-extractor': 7.19.4
+ '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1
+ '@rollup/plugin-json': 4.1.0_rollup@1.32.1
+ '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1
+ '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1
+ cross-env: 7.0.3
+ mkdirp: 1.0.4
+ mocha: 7.2.0
+ rimraf: 3.0.2
+ rollup: 1.32.1
+ rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1
+ tslib: 2.3.1
+ typescript: 4.2.4
+ uglify-js: 3.14.5
+ transitivePeerDependencies:
+ - encoding
+ - supports-color
+ dev: false
+
file:projects/arm-resourcehealth.tgz:
resolution: {integrity: sha512-ssLCh8GgbsVtwLFyE5qlPtC6OjpWdCtYeIbKxvNKerfJOMH/Vb15Osy2TMpWEvUmLPSSeyiRXz5ZBMYg+AKK5g==, tarball: file:projects/arm-resourcehealth.tgz}
name: '@rush-temp/arm-resourcehealth'
@@ -11215,6 +11281,31 @@ packages:
- supports-color
dev: false
+ file:projects/arm-resourcemover.tgz:
+ resolution: {integrity: sha512-ZIqOtcTkGKQrl2gsE7UibEgBu3B8cRnDRXZrlZu2m5HRd03ULoMPKGDhWeoCot0CZq7rTin3jZ/JM9ueg2DLmQ==, tarball: file:projects/arm-resourcemover.tgz}
+ name: '@rush-temp/arm-resourcemover'
+ version: 0.0.0
+ dependencies:
+ '@azure-tools/test-recorder': 1.0.2
+ '@microsoft/api-extractor': 7.19.4
+ '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1
+ '@rollup/plugin-json': 4.1.0_rollup@1.32.1
+ '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1
+ '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1
+ cross-env: 7.0.3
+ mkdirp: 1.0.4
+ mocha: 7.2.0
+ rimraf: 3.0.2
+ rollup: 1.32.1
+ rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1
+ tslib: 2.3.1
+ typescript: 4.2.4
+ uglify-js: 3.14.5
+ transitivePeerDependencies:
+ - encoding
+ - supports-color
+ dev: false
+
file:projects/arm-resources-subscriptions.tgz:
resolution: {integrity: sha512-Y8XL95tGixEM0br4pDJgRVqqa4CZWJRbu1SGkBtHZNKbpJ1aU3OXeei1dk84bEtu+FvjDh3j2QOFKKhnMoSFgA==, tarball: file:projects/arm-resources-subscriptions.tgz}
name: '@rush-temp/arm-resources-subscriptions'
@@ -11340,6 +11431,31 @@ packages:
- supports-color
dev: false
+ file:projects/arm-serialconsole.tgz:
+ resolution: {integrity: sha512-sDmYrBhQPPUMsQmmkYwAk3uimeBXnxkpCYrNjU1AWuIBMlkEkpLdVoR2t6B/0At7TqvxVJuFRlWjZabYsMKX4g==, tarball: file:projects/arm-serialconsole.tgz}
+ name: '@rush-temp/arm-serialconsole'
+ version: 0.0.0
+ dependencies:
+ '@azure-tools/test-recorder': 1.0.2
+ '@microsoft/api-extractor': 7.19.4
+ '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1
+ '@rollup/plugin-json': 4.1.0_rollup@1.32.1
+ '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1
+ '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1
+ cross-env: 7.0.3
+ mkdirp: 1.0.4
+ mocha: 7.2.0
+ rimraf: 3.0.2
+ rollup: 1.32.1
+ rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1
+ tslib: 2.3.1
+ typescript: 4.2.4
+ uglify-js: 3.14.5
+ transitivePeerDependencies:
+ - encoding
+ - supports-color
+ dev: false
+
file:projects/arm-servicebus.tgz:
resolution: {integrity: sha512-xUyJSlaPZccUpQ99rOf2TIUziaa7K1Ch4vcz0Jp+Dj/eam95rdQFtidaAoubJTI+Wcom0OsKDHWVqLbUyS8GpA==, tarball: file:projects/arm-servicebus.tgz}
name: '@rush-temp/arm-servicebus'
@@ -11390,6 +11506,56 @@ packages:
- supports-color
dev: false
+ file:projects/arm-servicemap.tgz:
+ resolution: {integrity: sha512-Y8Q9PXQu+1Piyy9trUSdIgpFJWoPNbyg4HI2WT5Y0Dy2bOIMOGu78n1hSGenwXtBJ4KqX5U6fkZkR0k/X8mZoA==, tarball: file:projects/arm-servicemap.tgz}
+ name: '@rush-temp/arm-servicemap'
+ version: 0.0.0
+ dependencies:
+ '@azure-tools/test-recorder': 1.0.2
+ '@microsoft/api-extractor': 7.19.4
+ '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1
+ '@rollup/plugin-json': 4.1.0_rollup@1.32.1
+ '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1
+ '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1
+ cross-env: 7.0.3
+ mkdirp: 1.0.4
+ mocha: 7.2.0
+ rimraf: 3.0.2
+ rollup: 1.32.1
+ rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1
+ tslib: 2.3.1
+ typescript: 4.2.4
+ uglify-js: 3.14.5
+ transitivePeerDependencies:
+ - encoding
+ - supports-color
+ dev: false
+
+ file:projects/arm-signalr.tgz:
+ resolution: {integrity: sha512-MQjQG3zQ9rZktJJr2gdGGF8EMaQGgAntAXTqcwzaQAVbi3J4jDo2DDfvxo5MWP5Ptv2cZlL9TbrReu0GKmMgRg==, tarball: file:projects/arm-signalr.tgz}
+ name: '@rush-temp/arm-signalr'
+ version: 0.0.0
+ dependencies:
+ '@azure-tools/test-recorder': 1.0.2
+ '@microsoft/api-extractor': 7.19.4
+ '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1
+ '@rollup/plugin-json': 4.1.0_rollup@1.32.1
+ '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1
+ '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1
+ cross-env: 7.0.3
+ mkdirp: 1.0.4
+ mocha: 7.2.0
+ rimraf: 3.0.2
+ rollup: 1.32.1
+ rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1
+ tslib: 2.3.1
+ typescript: 4.2.4
+ uglify-js: 3.14.5
+ transitivePeerDependencies:
+ - encoding
+ - supports-color
+ dev: false
+
file:projects/arm-sql.tgz:
resolution: {integrity: sha512-CEtDIxHX9rKD5MgweS7t+aOwxGDS8ozHLc5Ur5POzatrFrpSFF37FeM7rT80sdAuG/YVfRVq0VCQZ5OXr18GLw==, tarball: file:projects/arm-sql.tgz}
name: '@rush-temp/arm-sql'
@@ -11467,6 +11633,56 @@ packages:
- supports-color
dev: false
+ file:projects/arm-storagecache.tgz:
+ resolution: {integrity: sha512-59403AImIIuWQutODkwlYLprQ9XdenZ0r8LGxR+WQUE+41BVpdNp6yYdUh0aX6A9aS7y9aP4b4xYpp/miQprbw==, tarball: file:projects/arm-storagecache.tgz}
+ name: '@rush-temp/arm-storagecache'
+ version: 0.0.0
+ dependencies:
+ '@azure-tools/test-recorder': 1.0.2
+ '@microsoft/api-extractor': 7.19.4
+ '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1
+ '@rollup/plugin-json': 4.1.0_rollup@1.32.1
+ '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1
+ '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1
+ cross-env: 7.0.3
+ mkdirp: 1.0.4
+ mocha: 7.2.0
+ rimraf: 3.0.2
+ rollup: 1.32.1
+ rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1
+ tslib: 2.3.1
+ typescript: 4.2.4
+ uglify-js: 3.14.5
+ transitivePeerDependencies:
+ - encoding
+ - supports-color
+ dev: false
+
+ file:projects/arm-storagesync.tgz:
+ resolution: {integrity: sha512-P6CH4ZGJgS6t6K9jdc72GjLv3HFXrUIYyoax20RTHxe7MMLep6ChwehcKF8RpYH4BUEJTHiMEVRGI0Lt6DP6Gw==, tarball: file:projects/arm-storagesync.tgz}
+ name: '@rush-temp/arm-storagesync'
+ version: 0.0.0
+ dependencies:
+ '@azure-tools/test-recorder': 1.0.2
+ '@microsoft/api-extractor': 7.19.4
+ '@rollup/plugin-commonjs': 11.0.2_rollup@1.32.1
+ '@rollup/plugin-json': 4.1.0_rollup@1.32.1
+ '@rollup/plugin-multi-entry': 3.0.1_rollup@1.32.1
+ '@rollup/plugin-node-resolve': 8.4.0_rollup@1.32.1
+ cross-env: 7.0.3
+ mkdirp: 1.0.4
+ mocha: 7.2.0
+ rimraf: 3.0.2
+ rollup: 1.32.1
+ rollup-plugin-sourcemaps: 0.4.2_rollup@1.32.1
+ tslib: 2.3.1
+ typescript: 4.2.4
+ uglify-js: 3.14.5
+ transitivePeerDependencies:
+ - encoding
+ - supports-color
+ dev: false
+
file:projects/arm-streamanalytics.tgz:
resolution: {integrity: sha512-anS7TXMqYdobBqt4VnMVXs6geNykd9Wod2fgz7EEfpPT4lMmA2I9MSeBA+zAZp5JvmuiWS+2SRFhjmfwWRFIzA==, tarball: file:projects/arm-streamanalytics.tgz}
name: '@rush-temp/arm-streamanalytics'
diff --git a/eng/ignore-links.txt b/eng/ignore-links.txt
index 41aa4edde7a..ae4210adc9f 100644
--- a/eng/ignore-links.txt
+++ b/eng/ignore-links.txt
@@ -28,3 +28,4 @@ https://docs.microsoft.com/javascript/api/@azure/arm-peering
https://docs.microsoft.com/javascript/api/@azure/arm-peering?view=azure-node-preview
https://docs.microsoft.com/javascript/api/@azure/arm-postgresql-flexible
https://docs.microsoft.com/javascript/api/@azure/arm-postgresql-flexible?view=azure-node-preview
+https://docs.microsoft.com/javascript/api/@azure/arm-serialconsole
diff --git a/rush.json b/rush.json
index 050bb77bfe2..80c79857e4f 100644
--- a/rush.json
+++ b/rush.json
@@ -1468,7 +1468,47 @@
},
{
"packageName": "@azure/arm-redisenterprisecache",
- "projectFolder": "sdk/redisenterprise/arm-redisenterprisecache",
+ "projectFolder": "sdk/redisenterprise/arm-redisenterprisecache"
+ },
+ {
+ "packageName": "@azure/arm-reservations",
+ "projectFolder": "sdk/reservations/arm-reservations",
+ "versionPolicyName": "management"
+ },
+ {
+ "packageName": "@azure/arm-resourcemover",
+ "projectFolder": "sdk/resourcemover/arm-resourcemover",
+ "versionPolicyName": "management"
+ },
+ {
+ "packageName": "@azure/arm-serialconsole",
+ "projectFolder": "sdk/serialconsole/arm-serialconsole",
+ "versionPolicyName": "management"
+ },
+ {
+ "packageName": "@azure/arm-servicemap",
+ "projectFolder": "sdk/service-map/arm-servicemap",
+ "versionPolicyName": "management"
+ },
+ {
+ "packageName": "@azure/arm-signalr",
+ "projectFolder": "sdk/signalr/arm-signalr",
+ "versionPolicyName": "management"
+ },
+ {
+ "packageName": "@azure/arm-storagecache",
+ "projectFolder": "sdk/storagecache/arm-storagecache",
+ "versionPolicyName": "management"
+ },
+ {
+ "packageName": "@azure/arm-storagesync",
+ "projectFolder": "sdk/storagesync/arm-storagesync",
+ "versionPolicyName": "management"
+ },
+ {
+ "packageName": "@azure/arm-resourcegraph",
+ "projectFolder": "sdk/resourcegraph/arm-resourcegraph",
+ "versionPolicyName": "management"
}
]
-}
+}
\ No newline at end of file
diff --git a/sdk/reservations/arm-reservations/CHANGELOG.md b/sdk/reservations/arm-reservations/CHANGELOG.md
new file mode 100644
index 00000000000..c2b1b167d39
--- /dev/null
+++ b/sdk/reservations/arm-reservations/CHANGELOG.md
@@ -0,0 +1,11 @@
+# Release History
+
+## 7.0.0 (2022-01-21)
+
+The package of @azure/arm-reservations is using our next generation design principles since version 7.0.0, which contains breaking changes.
+
+To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
+
+To migrate the existing applications to the latest version, please refer to [Migration Guide](https://aka.ms/js-track2-migration-guide).
+
+To learn more, please refer to our documentation [Quick Start](https://aka.ms/js-track2-quickstart).
diff --git a/sdk/reservations/arm-reservations/LICENSE b/sdk/reservations/arm-reservations/LICENSE
new file mode 100644
index 00000000000..5d1d36e0af8
--- /dev/null
+++ b/sdk/reservations/arm-reservations/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2022 Microsoft
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
\ No newline at end of file
diff --git a/sdk/reservations/arm-reservations/README.md b/sdk/reservations/arm-reservations/README.md
index 16ddbfe2b48..d93dec6fc89 100644
--- a/sdk/reservations/arm-reservations/README.md
+++ b/sdk/reservations/arm-reservations/README.md
@@ -1,103 +1,98 @@
-## Azure AzureReservationAPI SDK for JavaScript
+# Azure Service client library for JavaScript
-This package contains an isomorphic SDK for AzureReservationAPI.
+This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure Service client.
+
+This API describe Azure Reservation
+
+[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/reservations/arm-reservations) |
+[Package (NPM)](https://www.npmjs.com/package/@azure/arm-reservations) |
+[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-reservations) |
+[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
+
+## Getting started
### Currently supported environments
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
-- Latest versions of Safari, Chrome, Edge, and Firefox.
+- Latest versions of Safari, Chrome, Edge and Firefox.
-### How to Install
+### Prerequisites
+
+- An [Azure subscription][azure_sub].
+
+### Install the `@azure/arm-reservations` package
+
+Install the Azure Service client library for JavaScript with `npm`:
```bash
npm install @azure/arm-reservations
```
-### How to use
+### Create and authenticate a `AzureReservationAPI`
-#### nodejs - Authentication, client creation and get quota as an example written in TypeScript.
+To create a client object to access the Azure Service API, you will need the `endpoint` of your Azure Service resource and a `credential`. The Azure Service client can use Azure Active Directory credentials to authenticate.
+You can find the endpoint for your Azure Service resource in the [Azure Portal][azure_portal].
-##### Install @azure/ms-rest-nodeauth
+You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
+
+To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
-- Please install minimum version of `"@azure/ms-rest-nodeauth": "^3.0.0"`.
```bash
-npm install @azure/ms-rest-nodeauth@"^3.0.0"
+npm install @azure/identity
```
-##### Sample code
+You will also need to **register a new AAD application and grant access to Azure Service** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
+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`.
+
+For more information about how to create an Azure AD Application check out [this guide](https://docs.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
```javascript
const { AzureReservationAPI } = require("@azure/arm-reservations");
-const { interactiveLogin } = require("@azure/ms-rest-nodeauth");
-
-interactiveLogin().then((creds) => {
- const client = new AzureReservationAPI(creds);
- const subscriptionId = "testsubscriptionId";
- const providerId = "testproviderId";
- const location = "westus";
- const resourceName = "testresourceName";
- client.quota.get(subscriptionId, providerId, location, resourceName).then((result) => {
- console.log("The result is:");
- console.log(result);
- });
-}).catch((err) => {
- console.error(err);
-});
+const { DefaultAzureCredential } = require("@azure/identity");
+const subscriptionId = "00000000-0000-0000-0000-000000000000";
+const client = new AzureReservationAPI(new DefaultAzureCredential(), subscriptionId);
```
-#### browser - Authentication, client creation and get quota as an example written in JavaScript.
-##### Install @azure/ms-rest-browserauth
+### JavaScript Bundle
+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).
-```bash
-npm install @azure/ms-rest-browserauth
+## Key concepts
+
+### AzureReservationAPI
+
+`AzureReservationAPI` is the primary interface for developers using the Azure Service client library. Explore the methods on this client object to understand the different features of the Azure Service service that you can access.
+
+## Troubleshooting
+
+### Logging
+
+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`:
+
+```javascript
+const { setLogLevel } = require("@azure/logger");
+setLogLevel("info");
```
-##### Sample code
+For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).
-See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to Azure in the browser.
+## Next steps
-- index.html
-```html
-
-
-
- @azure/arm-reservations sample
-
-
-
-
-
-
-
-
-```
+Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library.
+
+## Contributing
+
+If you'd like to contribute to this library, please read the [contributing guide](https://github.com/Azure/azure-sdk-for-js/blob/main/CONTRIBUTING.md) to learn more about how to build and test the code.
## Related projects
-- [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js)
+- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)
-![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js/sdk/reservations/arm-reservations/README.png)
+![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Freservations%2Farm-reservations%2FREADME.png)
+
+[azure_cli]: https://docs.microsoft.com/cli/azure
+[azure_sub]: https://azure.microsoft.com/free/
+[azure_sub]: https://azure.microsoft.com/free/
+[azure_portal]: https://portal.azure.com
+[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
+[defaultazurecredential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential
diff --git a/sdk/reservations/arm-reservations/_meta.json b/sdk/reservations/arm-reservations/_meta.json
new file mode 100644
index 00000000000..d5a3fef2402
--- /dev/null
+++ b/sdk/reservations/arm-reservations/_meta.json
@@ -0,0 +1,7 @@
+{
+ "commit": "f9a6cb686bcc0f1b23761db19f2491c5c4df95cb",
+ "readme": "specification/reservations/resource-manager/readme.md",
+ "autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/reservations/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220114.1 --generate-sample=true",
+ "repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
+ "use": "@autorest/typescript@6.0.0-alpha.16.20220114.1"
+}
\ No newline at end of file
diff --git a/sdk/reservations/arm-reservations/api-extractor.json b/sdk/reservations/arm-reservations/api-extractor.json
new file mode 100644
index 00000000000..4e853dfd7c0
--- /dev/null
+++ b/sdk/reservations/arm-reservations/api-extractor.json
@@ -0,0 +1,18 @@
+{
+ "$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
+ "mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
+ "docModel": { "enabled": true },
+ "apiReport": { "enabled": true, "reportFolder": "./review" },
+ "dtsRollup": {
+ "enabled": true,
+ "untrimmedFilePath": "",
+ "publicTrimmedFilePath": "./types/arm-reservations.d.ts"
+ },
+ "messages": {
+ "tsdocMessageReporting": { "default": { "logLevel": "none" } },
+ "extractorMessageReporting": {
+ "ae-missing-release-tag": { "logLevel": "none" },
+ "ae-unresolved-link": { "logLevel": "none" }
+ }
+ }
+}
diff --git a/sdk/reservations/arm-reservations/package.json b/sdk/reservations/arm-reservations/package.json
index 3ed3ffb6d44..b33764a7a20 100644
--- a/sdk/reservations/arm-reservations/package.json
+++ b/sdk/reservations/arm-reservations/package.json
@@ -1,58 +1,103 @@
{
"name": "@azure/arm-reservations",
+ "sdk-type": "mgmt",
"author": "Microsoft Corporation",
- "description": "AzureReservationAPI Library with typescript type definitions for node.js and browser.",
- "version": "6.0.0",
+ "description": "A generated SDK for AzureReservationAPI.",
+ "version": "7.0.0",
+ "engines": { "node": ">=12.0.0" },
"dependencies": {
- "@azure/ms-rest-azure-js": "^2.0.1",
- "@azure/ms-rest-js": "^2.0.4",
- "tslib": "^1.10.0"
+ "@azure/core-lro": "^2.2.0",
+ "@azure/abort-controller": "^1.0.0",
+ "@azure/core-paging": "^1.2.0",
+ "@azure/core-client": "^1.0.0",
+ "@azure/core-auth": "^1.3.0",
+ "@azure/core-rest-pipeline": "^1.1.0",
+ "tslib": "^2.2.0"
},
- "keywords": [
- "node",
- "azure",
- "typescript",
- "browser",
- "isomorphic"
- ],
+ "keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
"license": "MIT",
- "main": "./dist/arm-reservations.js",
- "module": "./esm/azureReservationAPI.js",
- "types": "./esm/azureReservationAPI.d.ts",
+ "main": "./dist/index.js",
+ "module": "./dist-esm/src/index.js",
+ "types": "./types/arm-reservations.d.ts",
"devDependencies": {
- "typescript": "^3.5.3",
- "rollup": "^1.18.0",
- "rollup-plugin-node-resolve": "^5.2.0",
+ "@microsoft/api-extractor": "^7.18.11",
+ "@rollup/plugin-commonjs": "11.0.2",
+ "@rollup/plugin-json": "^4.0.0",
+ "@rollup/plugin-multi-entry": "^3.0.0",
+ "@rollup/plugin-node-resolve": "^8.0.0",
+ "mkdirp": "^1.0.4",
+ "rollup": "^1.16.3",
"rollup-plugin-sourcemaps": "^0.4.2",
- "uglify-js": "^3.6.0"
+ "typescript": "~4.2.0",
+ "uglify-js": "^3.4.9",
+ "rimraf": "^3.0.0",
+ "@azure/identity": "^2.0.1",
+ "@azure-tools/test-recorder": "^1.0.0",
+ "mocha": "^7.1.1",
+ "cross-env": "^7.0.2"
},
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/reservations/arm-reservations",
"repository": {
"type": "git",
"url": "https://github.com/Azure/azure-sdk-for-js.git"
},
- "bugs": {
- "url": "https://github.com/Azure/azure-sdk-for-js/issues"
- },
+ "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
"files": [
"dist/**/*.js",
"dist/**/*.js.map",
"dist/**/*.d.ts",
"dist/**/*.d.ts.map",
- "esm/**/*.js",
- "esm/**/*.js.map",
- "esm/**/*.d.ts",
- "esm/**/*.d.ts.map",
+ "dist-esm/**/*.js",
+ "dist-esm/**/*.js.map",
+ "dist-esm/**/*.d.ts",
+ "dist-esm/**/*.d.ts.map",
"src/**/*.ts",
"README.md",
+ "LICENSE",
"rollup.config.js",
- "tsconfig.json"
+ "tsconfig.json",
+ "review/*",
+ "CHANGELOG.md",
+ "types/*"
],
"scripts": {
- "build": "tsc && rollup -c rollup.config.js && npm run minify",
- "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-reservations.js.map'\" -o ./dist/arm-reservations.min.js ./dist/arm-reservations.js",
- "prepack": "npm install && npm run build"
+ "build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
+ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
+ "prepack": "npm run build",
+ "pack": "npm pack 2>&1",
+ "extract-api": "api-extractor run --local",
+ "lint": "echo skipped",
+ "audit": "echo skipped",
+ "clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
+ "build:node": "echo skipped",
+ "build:browser": "echo skipped",
+ "build:test": "echo skipped",
+ "build:samples": "echo skipped.",
+ "check-format": "echo skipped",
+ "execute:samples": "echo skipped",
+ "format": "echo skipped",
+ "test": "npm run integration-test",
+ "test:node": "echo skipped",
+ "test:browser": "echo skipped",
+ "unit-test": "npm run unit-test:node && npm run unit-test:browser",
+ "unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
+ "unit-test:browser": "echo skipped",
+ "integration-test": "npm run integration-test:node && npm run integration-test:browser",
+ "integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
+ "integration-test:browser": "echo skipped",
+ "docs": "echo skipped"
},
"sideEffects": false,
- "autoPublish": true
+ "//metadata": {
+ "constantPaths": [
+ { "path": "src/AzureReservationAPI.ts", "prefix": "packageDetails" }
+ ]
+ },
+ "autoPublish": true,
+ "//sampleConfiguration": {
+ "productName": "",
+ "productSlugs": ["azure"],
+ "disableDocsMs": true,
+ "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-reservations?view=azure-node-preview"
+ }
}
diff --git a/sdk/reservations/arm-reservations/recordings/node/my_test/recording_sample_test.js b/sdk/reservations/arm-reservations/recordings/node/my_test/recording_sample_test.js
new file mode 100644
index 00000000000..0f6ecb857ac
--- /dev/null
+++ b/sdk/reservations/arm-reservations/recordings/node/my_test/recording_sample_test.js
@@ -0,0 +1,5 @@
+let nock = require('nock');
+
+module.exports.hash = "7a6be38bb8cb644d64b4094802301751";
+
+module.exports.testInfo = {"uniqueName":{},"newDate":{}}
diff --git a/sdk/reservations/arm-reservations/review/arm-reservations.api.md b/sdk/reservations/arm-reservations/review/arm-reservations.api.md
new file mode 100644
index 00000000000..4e74f67b6a0
--- /dev/null
+++ b/sdk/reservations/arm-reservations/review/arm-reservations.api.md
@@ -0,0 +1,1605 @@
+## API Report File for "@azure/arm-reservations"
+
+> Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
+
+```ts
+
+import * as coreAuth from '@azure/core-auth';
+import * as coreClient from '@azure/core-client';
+import { PagedAsyncIterableIterator } from '@azure/core-paging';
+import { PollerLike } from '@azure/core-lro';
+import { PollOperationState } from '@azure/core-lro';
+
+// @public (undocumented)
+export interface AppliedReservationList {
+ nextLink?: string;
+ // (undocumented)
+ value?: string[];
+}
+
+// @public (undocumented)
+export interface AppliedReservations {
+ readonly id?: string;
+ readonly name?: string;
+ // (undocumented)
+ reservationOrderIds?: AppliedReservationList;
+ readonly type?: string;
+}
+
+// @public
+export type AppliedScopeType = string;
+
+// @public (undocumented)
+export interface AvailableScopeProperties {
+ // (undocumented)
+ properties?: SubscriptionScopeProperties;
+}
+
+// @public
+export interface AvailableScopeRequest {
+ properties?: AvailableScopeRequestProperties;
+}
+
+// @public
+export interface AvailableScopeRequestProperties {
+ // (undocumented)
+ scopes?: string[];
+}
+
+// @public (undocumented)
+export class AzureReservationAPI extends coreClient.ServiceClient {
+ // (undocumented)
+ $host: string;
+ constructor(credentials: coreAuth.TokenCredential, options?: AzureReservationAPIOptionalParams);
+ // (undocumented)
+ calculateExchange: CalculateExchange;
+ // (undocumented)
+ exchange: Exchange;
+ getAppliedReservationList(subscriptionId: string, options?: GetAppliedReservationListOptionalParams): Promise;
+ getCatalog(subscriptionId: string, options?: GetCatalogOptionalParams): Promise;
+ // (undocumented)
+ operation: Operation;
+ // (undocumented)
+ quota: Quota;
+ // (undocumented)
+ quotaRequestStatus: QuotaRequestStatus;
+ // (undocumented)
+ reservation: Reservation;
+ // (undocumented)
+ reservationOrder: ReservationOrder;
+}
+
+// @public
+export interface AzureReservationAPIOptionalParams extends coreClient.ServiceClientOptions {
+ $host?: string;
+ endpoint?: string;
+}
+
+// @public
+export interface BillingInformation {
+ // (undocumented)
+ billingCurrencyProratedAmount?: Price;
+ // (undocumented)
+ billingCurrencyRemainingCommitmentAmount?: Price;
+ // (undocumented)
+ billingCurrencyTotalPaidAmount?: Price;
+}
+
+// @public
+export interface CalculateExchange {
+ beginPost(body: CalculateExchangeRequest, options?: CalculateExchangePostOptionalParams): Promise, CalculateExchangePostResponse>>;
+ beginPostAndWait(body: CalculateExchangeRequest, options?: CalculateExchangePostOptionalParams): Promise;
+}
+
+// @public
+export interface CalculateExchangeOperationResultResponse {
+ error?: OperationResultError;
+ id?: string;
+ name?: string;
+ properties?: CalculateExchangeResponseProperties;
+ status?: CalculateExchangeOperationResultStatus;
+}
+
+// @public
+export type CalculateExchangeOperationResultStatus = string;
+
+// @public
+export interface CalculateExchangePostHeaders {
+ azureAsyncOperation?: string;
+ location?: string;
+ retryAfter?: number;
+}
+
+// @public
+export interface CalculateExchangePostOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export type CalculateExchangePostResponse = CalculateExchangeOperationResultResponse;
+
+// @public
+export interface CalculateExchangeRequest {
+ properties?: CalculateExchangeRequestProperties;
+}
+
+// @public
+export interface CalculateExchangeRequestProperties {
+ reservationsToExchange?: ReservationToReturn[];
+ reservationsToPurchase?: PurchaseRequest[];
+}
+
+// @public
+export interface CalculateExchangeResponseProperties {
+ // (undocumented)
+ netPayable?: Price;
+ policyResult?: ExchangePolicyErrors;
+ // (undocumented)
+ purchasesTotal?: Price;
+ // (undocumented)
+ refundsTotal?: Price;
+ reservationsToExchange?: ReservationToExchange[];
+ reservationsToPurchase?: ReservationToPurchaseCalculateExchange[];
+ sessionId?: string;
+}
+
+// @public (undocumented)
+export interface CalculatePriceResponse {
+ // (undocumented)
+ properties?: CalculatePriceResponseProperties;
+}
+
+// @public (undocumented)
+export interface CalculatePriceResponseProperties {
+ billingCurrencyTotal?: CalculatePriceResponsePropertiesBillingCurrencyTotal;
+ grandTotal?: number;
+ isBillingPartnerManaged?: boolean;
+ isTaxIncluded?: boolean;
+ netTotal?: number;
+ // (undocumented)
+ paymentSchedule?: PaymentDetail[];
+ pricingCurrencyTotal?: CalculatePriceResponsePropertiesPricingCurrencyTotal;
+ reservationOrderId?: string;
+ skuDescription?: string;
+ skuTitle?: string;
+ taxTotal?: number;
+}
+
+// @public
+export interface CalculatePriceResponsePropertiesBillingCurrencyTotal {
+ amount?: number;
+ currencyCode?: string;
+}
+
+// @public
+export interface CalculatePriceResponsePropertiesPricingCurrencyTotal {
+ // (undocumented)
+ amount?: number;
+ currencyCode?: string;
+}
+
+// @public (undocumented)
+export interface Catalog {
+ billingPlans?: {
+ [propertyName: string]: ReservationBillingPlan[];
+ };
+ readonly capabilities?: SkuCapability[];
+ readonly locations?: string[];
+ readonly msrp?: CatalogMsrp;
+ readonly name?: string;
+ readonly resourceType?: string;
+ readonly restrictions?: SkuRestriction[];
+ readonly size?: string;
+ readonly skuProperties?: SkuProperty[];
+ readonly terms?: ReservationTerm[];
+ readonly tier?: string;
+}
+
+// @public
+export interface CatalogMsrp {
+ p1Y?: Price;
+}
+
+// @public (undocumented)
+export interface ChangeDirectoryRequest {
+ destinationTenantId?: string;
+}
+
+// @public
+export interface ChangeDirectoryResponse {
+ reservationOrder?: ChangeDirectoryResult;
+ // (undocumented)
+ reservations?: ChangeDirectoryResult[];
+}
+
+// @public
+export interface ChangeDirectoryResult {
+ error?: string;
+ id?: string;
+ isSucceeded?: boolean;
+ name?: string;
+}
+
+// @public
+export type CreatedByType = string;
+
+// @public
+export interface CreateGenericQuotaRequestParameters {
+ value?: CurrentQuotaLimitBase[];
+}
+
+// @public
+export interface CurrentQuotaLimit {
+ readonly message?: string;
+ properties?: QuotaProperties;
+ readonly provisioningState?: QuotaRequestState;
+}
+
+// @public
+export interface CurrentQuotaLimitBase {
+ properties?: QuotaProperties;
+}
+
+// @public
+export type DisplayProvisioningState = string;
+
+// @public
+export interface ErrorDetails {
+ readonly code?: string;
+ readonly message?: string;
+ readonly target?: string;
+}
+
+// @public (undocumented)
+export interface ErrorModel {
+ // (undocumented)
+ error?: ExtendedErrorInfo;
+}
+
+// @public
+export interface ErrorResponse {
+ error?: ErrorDetails;
+}
+
+// @public
+export type ErrorResponseCode = string;
+
+// @public
+export interface ExceptionResponse {
+ error?: ServiceError;
+}
+
+// @public
+export interface Exchange {
+ beginPost(body: ExchangeRequest, options?: ExchangePostOptionalParams): Promise, ExchangePostResponse>>;
+ beginPostAndWait(body: ExchangeRequest, options?: ExchangePostOptionalParams): Promise;
+}
+
+// @public
+export interface ExchangeOperationResultResponse {
+ error?: OperationResultError;
+ id?: string;
+ name?: string;
+ properties?: ExchangeResponseProperties;
+ status?: ExchangeOperationResultStatus;
+}
+
+// @public
+export type ExchangeOperationResultStatus = string;
+
+// @public
+export interface ExchangePolicyError {
+ // (undocumented)
+ code?: string;
+ // (undocumented)
+ message?: string;
+}
+
+// @public
+export interface ExchangePolicyErrors {
+ policyErrors?: ExchangePolicyError[];
+}
+
+// @public
+export interface ExchangePostHeaders {
+ azureAsyncOperation?: string;
+ location?: string;
+ retryAfter?: number;
+}
+
+// @public
+export interface ExchangePostOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export type ExchangePostResponse = ExchangeOperationResultResponse;
+
+// @public
+export interface ExchangeRequest {
+ properties?: ExchangeRequestProperties;
+}
+
+// @public
+export interface ExchangeRequestProperties {
+ sessionId?: string;
+}
+
+// @public
+export interface ExchangeResponseProperties {
+ // (undocumented)
+ netPayable?: Price;
+ policyResult?: ExchangePolicyErrors;
+ // (undocumented)
+ purchasesTotal?: Price;
+ // (undocumented)
+ refundsTotal?: Price;
+ reservationsToExchange?: ReservationToReturnForExchange[];
+ reservationsToPurchase?: ReservationToPurchaseExchange[];
+ sessionId?: string;
+}
+
+// @public (undocumented)
+export interface ExtendedErrorInfo {
+ // (undocumented)
+ code?: ErrorResponseCode;
+ // (undocumented)
+ message?: string;
+}
+
+// @public (undocumented)
+export interface ExtendedStatusInfo {
+ message?: string;
+ // (undocumented)
+ statusCode?: ReservationStatusCode;
+}
+
+// @public
+export interface GetAppliedReservationListOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type GetAppliedReservationListResponse = AppliedReservations;
+
+// @public
+export interface GetCatalogOptionalParams extends coreClient.OperationOptions {
+ location?: string;
+ reservedResourceType?: string;
+}
+
+// @public
+export type GetCatalogResponse = Catalog[];
+
+// @public
+export type InstanceFlexibility = string;
+
+// @public
+export enum KnownAppliedScopeType {
+ // (undocumented)
+ Shared = "Shared",
+ // (undocumented)
+ Single = "Single"
+}
+
+// @public
+export enum KnownCalculateExchangeOperationResultStatus {
+ // (undocumented)
+ Cancelled = "Cancelled",
+ // (undocumented)
+ Failed = "Failed",
+ // (undocumented)
+ Pending = "Pending",
+ // (undocumented)
+ Succeeded = "Succeeded"
+}
+
+// @public
+export enum KnownCreatedByType {
+ // (undocumented)
+ Application = "Application",
+ // (undocumented)
+ Key = "Key",
+ // (undocumented)
+ ManagedIdentity = "ManagedIdentity",
+ // (undocumented)
+ User = "User"
+}
+
+// @public
+export enum KnownDisplayProvisioningState {
+ // (undocumented)
+ Cancelled = "Cancelled",
+ // (undocumented)
+ Expired = "Expired",
+ // (undocumented)
+ Expiring = "Expiring",
+ // (undocumented)
+ Failed = "Failed",
+ // (undocumented)
+ Pending = "Pending",
+ // (undocumented)
+ Succeeded = "Succeeded"
+}
+
+// @public
+export enum KnownErrorResponseCode {
+ // (undocumented)
+ ActivateQuoteFailed = "ActivateQuoteFailed",
+ // (undocumented)
+ AppliedScopesNotAssociatedWithCommerceAccount = "AppliedScopesNotAssociatedWithCommerceAccount",
+ // (undocumented)
+ AppliedScopesSameAsExisting = "AppliedScopesSameAsExisting",
+ // (undocumented)
+ AuthorizationFailed = "AuthorizationFailed",
+ // (undocumented)
+ BadRequest = "BadRequest",
+ // (undocumented)
+ BillingCustomerInputError = "BillingCustomerInputError",
+ // (undocumented)
+ BillingError = "BillingError",
+ // (undocumented)
+ BillingPaymentInstrumentHardError = "BillingPaymentInstrumentHardError",
+ // (undocumented)
+ BillingPaymentInstrumentSoftError = "BillingPaymentInstrumentSoftError",
+ // (undocumented)
+ BillingScopeIdCannotBeChanged = "BillingScopeIdCannotBeChanged",
+ // (undocumented)
+ BillingTransientError = "BillingTransientError",
+ // (undocumented)
+ CalculatePriceFailed = "CalculatePriceFailed",
+ // (undocumented)
+ CapacityUpdateScopesFailed = "CapacityUpdateScopesFailed",
+ // (undocumented)
+ ClientCertificateThumbprintNotSet = "ClientCertificateThumbprintNotSet",
+ // (undocumented)
+ CreateQuoteFailed = "CreateQuoteFailed",
+ // (undocumented)
+ Forbidden = "Forbidden",
+ // (undocumented)
+ FulfillmentConfigurationError = "FulfillmentConfigurationError",
+ // (undocumented)
+ FulfillmentError = "FulfillmentError",
+ // (undocumented)
+ FulfillmentOutOfStockError = "FulfillmentOutOfStockError",
+ // (undocumented)
+ FulfillmentTransientError = "FulfillmentTransientError",
+ // (undocumented)
+ HttpMethodNotSupported = "HttpMethodNotSupported",
+ // (undocumented)
+ InternalServerError = "InternalServerError",
+ // (undocumented)
+ InvalidAccessToken = "InvalidAccessToken",
+ // (undocumented)
+ InvalidFulfillmentRequestParameters = "InvalidFulfillmentRequestParameters",
+ // (undocumented)
+ InvalidHealthCheckType = "InvalidHealthCheckType",
+ // (undocumented)
+ InvalidLocationId = "InvalidLocationId",
+ // (undocumented)
+ InvalidRefundQuantity = "InvalidRefundQuantity",
+ // (undocumented)
+ InvalidRequestContent = "InvalidRequestContent",
+ // (undocumented)
+ InvalidRequestUri = "InvalidRequestUri",
+ // (undocumented)
+ InvalidReservationId = "InvalidReservationId",
+ // (undocumented)
+ InvalidReservationOrderId = "InvalidReservationOrderId",
+ // (undocumented)
+ InvalidSingleAppliedScopesCount = "InvalidSingleAppliedScopesCount",
+ // (undocumented)
+ InvalidSubscriptionId = "InvalidSubscriptionId",
+ // (undocumented)
+ InvalidTenantId = "InvalidTenantId",
+ // (undocumented)
+ MissingAppliedScopesForSingle = "MissingAppliedScopesForSingle",
+ // (undocumented)
+ MissingTenantId = "MissingTenantId",
+ // (undocumented)
+ NonsupportedAccountId = "NonsupportedAccountId",
+ // (undocumented)
+ NotSpecified = "NotSpecified",
+ // (undocumented)
+ NotSupportedCountry = "NotSupportedCountry",
+ // (undocumented)
+ NoValidReservationsToReRate = "NoValidReservationsToReRate",
+ // (undocumented)
+ OperationCannotBePerformedInCurrentState = "OperationCannotBePerformedInCurrentState",
+ // (undocumented)
+ OperationFailed = "OperationFailed",
+ // (undocumented)
+ PatchValuesSameAsExisting = "PatchValuesSameAsExisting",
+ // (undocumented)
+ PaymentInstrumentNotFound = "PaymentInstrumentNotFound",
+ // (undocumented)
+ PurchaseError = "PurchaseError",
+ // (undocumented)
+ ReRateOnlyAllowedForEA = "ReRateOnlyAllowedForEA",
+ // (undocumented)
+ ReservationIdNotInReservationOrder = "ReservationIdNotInReservationOrder",
+ // (undocumented)
+ ReservationOrderCreationFailed = "ReservationOrderCreationFailed",
+ // (undocumented)
+ ReservationOrderIdAlreadyExists = "ReservationOrderIdAlreadyExists",
+ // (undocumented)
+ ReservationOrderNotEnabled = "ReservationOrderNotEnabled",
+ // (undocumented)
+ ReservationOrderNotFound = "ReservationOrderNotFound",
+ // (undocumented)
+ RiskCheckFailed = "RiskCheckFailed",
+ // (undocumented)
+ RoleAssignmentCreationFailed = "RoleAssignmentCreationFailed",
+ // (undocumented)
+ ServerTimeout = "ServerTimeout",
+ // (undocumented)
+ UnauthenticatedRequestsThrottled = "UnauthenticatedRequestsThrottled",
+ // (undocumented)
+ UnsupportedReservationTerm = "UnsupportedReservationTerm"
+}
+
+// @public
+export enum KnownExchangeOperationResultStatus {
+ // (undocumented)
+ Cancelled = "Cancelled",
+ // (undocumented)
+ Failed = "Failed",
+ // (undocumented)
+ PendingPurchases = "PendingPurchases",
+ // (undocumented)
+ PendingRefunds = "PendingRefunds",
+ // (undocumented)
+ Succeeded = "Succeeded"
+}
+
+// @public
+export enum KnownInstanceFlexibility {
+ // (undocumented)
+ Off = "Off",
+ // (undocumented)
+ On = "On"
+}
+
+// @public
+export enum KnownLocation {
+ // (undocumented)
+ Australiaeast = "australiaeast",
+ // (undocumented)
+ Australiasoutheast = "australiasoutheast",
+ // (undocumented)
+ Brazilsouth = "brazilsouth",
+ // (undocumented)
+ Canadacentral = "canadacentral",
+ // (undocumented)
+ Canadaeast = "canadaeast",
+ // (undocumented)
+ Centralindia = "centralindia",
+ // (undocumented)
+ Centralus = "centralus",
+ // (undocumented)
+ Eastasia = "eastasia",
+ // (undocumented)
+ Eastus = "eastus",
+ // (undocumented)
+ Eastus2 = "eastus2",
+ // (undocumented)
+ Japaneast = "japaneast",
+ // (undocumented)
+ Japanwest = "japanwest",
+ // (undocumented)
+ Northcentralus = "northcentralus",
+ // (undocumented)
+ Northeurope = "northeurope",
+ // (undocumented)
+ Southcentralus = "southcentralus",
+ // (undocumented)
+ Southeastasia = "southeastasia",
+ // (undocumented)
+ Southindia = "southindia",
+ // (undocumented)
+ Uksouth = "uksouth",
+ // (undocumented)
+ Ukwest = "ukwest",
+ // (undocumented)
+ Westcentralus = "westcentralus",
+ // (undocumented)
+ Westeurope = "westeurope",
+ // (undocumented)
+ Westindia = "westindia",
+ // (undocumented)
+ Westus = "westus",
+ // (undocumented)
+ Westus2 = "westus2"
+}
+
+// @public
+export enum KnownOperationStatus {
+ // (undocumented)
+ Cancelled = "Cancelled",
+ // (undocumented)
+ Failed = "Failed",
+ // (undocumented)
+ Pending = "Pending",
+ // (undocumented)
+ Succeeded = "Succeeded"
+}
+
+// @public
+export enum KnownPaymentStatus {
+ // (undocumented)
+ Cancelled = "Cancelled",
+ // (undocumented)
+ Failed = "Failed",
+ // (undocumented)
+ Scheduled = "Scheduled",
+ // (undocumented)
+ Succeeded = "Succeeded"
+}
+
+// @public
+export enum KnownProvisioningState {
+ // (undocumented)
+ BillingFailed = "BillingFailed",
+ // (undocumented)
+ Cancelled = "Cancelled",
+ // (undocumented)
+ ConfirmedBilling = "ConfirmedBilling",
+ // (undocumented)
+ ConfirmedResourceHold = "ConfirmedResourceHold",
+ // (undocumented)
+ Created = "Created",
+ // (undocumented)
+ Creating = "Creating",
+ // (undocumented)
+ Expired = "Expired",
+ // (undocumented)
+ Failed = "Failed",
+ // (undocumented)
+ Merged = "Merged",
+ // (undocumented)
+ PendingBilling = "PendingBilling",
+ // (undocumented)
+ PendingResourceHold = "PendingResourceHold",
+ // (undocumented)
+ Split = "Split",
+ // (undocumented)
+ Succeeded = "Succeeded"
+}
+
+// @public
+export enum KnownQuotaRequestState {
+ // (undocumented)
+ Accepted = "Accepted",
+ // (undocumented)
+ Failed = "Failed",
+ // (undocumented)
+ InProgress = "InProgress",
+ // (undocumented)
+ Invalid = "Invalid",
+ // (undocumented)
+ Succeeded = "Succeeded"
+}
+
+// @public
+export enum KnownReservationBillingPlan {
+ // (undocumented)
+ Monthly = "Monthly",
+ // (undocumented)
+ Upfront = "Upfront"
+}
+
+// @public
+export enum KnownReservationStatusCode {
+ // (undocumented)
+ Active = "Active",
+ // (undocumented)
+ Expired = "Expired",
+ // (undocumented)
+ Merged = "Merged",
+ // (undocumented)
+ None = "None",
+ // (undocumented)
+ PaymentInstrumentError = "PaymentInstrumentError",
+ // (undocumented)
+ Pending = "Pending",
+ // (undocumented)
+ PurchaseError = "PurchaseError",
+ // (undocumented)
+ Split = "Split",
+ // (undocumented)
+ Succeeded = "Succeeded"
+}
+
+// @public
+export enum KnownReservationTerm {
+ // (undocumented)
+ P1Y = "P1Y",
+ // (undocumented)
+ P3Y = "P3Y",
+ // (undocumented)
+ P5Y = "P5Y"
+}
+
+// @public
+export enum KnownReservedResourceType {
+ // (undocumented)
+ AppService = "AppService",
+ // (undocumented)
+ AVS = "AVS",
+ // (undocumented)
+ AzureDataExplorer = "AzureDataExplorer",
+ // (undocumented)
+ AzureFiles = "AzureFiles",
+ // (undocumented)
+ BlockBlob = "BlockBlob",
+ // (undocumented)
+ CosmosDb = "CosmosDb",
+ // (undocumented)
+ Databricks = "Databricks",
+ // (undocumented)
+ DataFactory = "DataFactory",
+ // (undocumented)
+ DedicatedHost = "DedicatedHost",
+ // (undocumented)
+ ManagedDisk = "ManagedDisk",
+ // (undocumented)
+ MariaDb = "MariaDb",
+ // (undocumented)
+ MySql = "MySql",
+ // (undocumented)
+ NetAppStorage = "NetAppStorage",
+ // (undocumented)
+ PostgreSql = "PostgreSql",
+ // (undocumented)
+ RedHat = "RedHat",
+ // (undocumented)
+ RedHatOsa = "RedHatOsa",
+ // (undocumented)
+ RedisCache = "RedisCache",
+ // (undocumented)
+ SapHana = "SapHana",
+ // (undocumented)
+ SqlAzureHybridBenefit = "SqlAzureHybridBenefit",
+ // (undocumented)
+ SqlDatabases = "SqlDatabases",
+ // (undocumented)
+ SqlDataWarehouse = "SqlDataWarehouse",
+ // (undocumented)
+ SqlEdge = "SqlEdge",
+ // (undocumented)
+ SuseLinux = "SuseLinux",
+ // (undocumented)
+ VirtualMachines = "VirtualMachines",
+ // (undocumented)
+ VMwareCloudSimple = "VMwareCloudSimple"
+}
+
+// @public
+export enum KnownResourceType {
+ // (undocumented)
+ Dedicated = "dedicated",
+ // (undocumented)
+ LowPriority = "lowPriority",
+ // (undocumented)
+ ServiceSpecific = "serviceSpecific",
+ // (undocumented)
+ Shared = "shared",
+ // (undocumented)
+ Standard = "standard"
+}
+
+// @public
+export enum KnownUserFriendlyAppliedScopeType {
+ // (undocumented)
+ ManagementGroup = "ManagementGroup",
+ // (undocumented)
+ None = "None",
+ // (undocumented)
+ ResourceGroup = "ResourceGroup",
+ // (undocumented)
+ Shared = "Shared",
+ // (undocumented)
+ Single = "Single"
+}
+
+// @public
+export enum KnownUserFriendlyRenewState {
+ // (undocumented)
+ NotApplicable = "NotApplicable",
+ // (undocumented)
+ NotRenewed = "NotRenewed",
+ // (undocumented)
+ Off = "Off",
+ // (undocumented)
+ On = "On",
+ // (undocumented)
+ Renewed = "Renewed"
+}
+
+// @public
+type Location_2 = string;
+export { Location_2 as Location }
+
+// @public (undocumented)
+export interface MergeRequest {
+ sources?: string[];
+}
+
+// @public
+export interface Operation {
+ list(options?: OperationListOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public (undocumented)
+export interface OperationDisplay {
+ // (undocumented)
+ description?: string;
+ // (undocumented)
+ operation?: string;
+ // (undocumented)
+ provider?: string;
+ // (undocumented)
+ resource?: string;
+}
+
+// @public (undocumented)
+export interface OperationList {
+ nextLink?: string;
+ // (undocumented)
+ value?: OperationResponse[];
+}
+
+// @public
+export interface OperationListNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type OperationListNextResponse = OperationList;
+
+// @public
+export interface OperationListOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type OperationListResponse = OperationList;
+
+// @public (undocumented)
+export interface OperationResponse {
+ display?: OperationDisplay;
+ isDataAction?: boolean;
+ name?: string;
+ origin?: string;
+ properties?: Record;
+}
+
+// @public
+export interface OperationResultError {
+ code?: string;
+ message?: string;
+}
+
+// @public
+export type OperationStatus = string;
+
+// @public (undocumented)
+export interface Patch {
+ appliedScopes?: string[];
+ appliedScopeType?: AppliedScopeType;
+ instanceFlexibility?: InstanceFlexibility;
+ name?: string;
+ renew?: boolean;
+ // (undocumented)
+ renewProperties?: PatchPropertiesRenewProperties;
+}
+
+// @public (undocumented)
+export interface PatchPropertiesRenewProperties {
+ // (undocumented)
+ purchaseProperties?: PurchaseRequest;
+}
+
+// @public
+export interface PaymentDetail {
+ billingAccount?: string;
+ billingCurrencyTotal?: Price;
+ dueDate?: Date;
+ // (undocumented)
+ extendedStatusInfo?: ExtendedStatusInfo;
+ paymentDate?: Date;
+ pricingCurrencyTotal?: Price;
+ status?: PaymentStatus;
+}
+
+// @public
+export type PaymentStatus = string;
+
+// @public (undocumented)
+export interface Price {
+ // (undocumented)
+ amount?: number;
+ currencyCode?: string;
+}
+
+// @public
+export type ProvisioningState = string;
+
+// @public (undocumented)
+export interface PurchaseRequest {
+ appliedScopes?: string[];
+ appliedScopeType?: AppliedScopeType;
+ billingPlan?: ReservationBillingPlan;
+ billingScopeId?: string;
+ displayName?: string;
+ location?: string;
+ quantity?: number;
+ renew?: boolean;
+ reservedResourceProperties?: PurchaseRequestPropertiesReservedResourceProperties;
+ reservedResourceType?: ReservedResourceType;
+ // (undocumented)
+ sku?: SkuName;
+ term?: ReservationTerm;
+}
+
+// @public
+export interface PurchaseRequestPropertiesReservedResourceProperties {
+ instanceFlexibility?: InstanceFlexibility;
+}
+
+// @public
+export interface Quota {
+ beginCreateOrUpdate(subscriptionId: string, providerId: string, location: string, resourceName: string, createQuotaRequest: CurrentQuotaLimitBase, options?: QuotaCreateOrUpdateOptionalParams): Promise, QuotaCreateOrUpdateResponse>>;
+ beginCreateOrUpdateAndWait(subscriptionId: string, providerId: string, location: string, resourceName: string, createQuotaRequest: CurrentQuotaLimitBase, options?: QuotaCreateOrUpdateOptionalParams): Promise;
+ beginUpdate(subscriptionId: string, providerId: string, location: string, resourceName: string, createQuotaRequest: CurrentQuotaLimitBase, options?: QuotaUpdateOptionalParams): Promise, QuotaUpdateResponse>>;
+ beginUpdateAndWait(subscriptionId: string, providerId: string, location: string, resourceName: string, createQuotaRequest: CurrentQuotaLimitBase, options?: QuotaUpdateOptionalParams): Promise;
+ get(subscriptionId: string, providerId: string, location: string, resourceName: string, options?: QuotaGetOptionalParams): Promise;
+ list(subscriptionId: string, providerId: string, location: string, options?: QuotaListOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public
+export interface QuotaCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export type QuotaCreateOrUpdateResponse = QuotaRequestOneResourceSubmitResponse;
+
+// @public
+export interface QuotaGetHeaders {
+ eTag?: string;
+}
+
+// @public
+export interface QuotaGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type QuotaGetResponse = QuotaGetHeaders & CurrentQuotaLimitBase;
+
+// @public
+export interface QuotaLimits {
+ nextLink?: string;
+ value?: CurrentQuotaLimitBase[];
+}
+
+// @public
+export interface QuotaLimitsResponse {
+ nextLink?: string;
+ value?: CurrentQuotaLimit[];
+}
+
+// @public
+export interface QuotaListHeaders {
+ eTag?: string;
+}
+
+// @public
+export interface QuotaListNextHeaders {
+ eTag?: string;
+}
+
+// @public
+export interface QuotaListNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type QuotaListNextResponse = QuotaListNextHeaders & QuotaLimits;
+
+// @public
+export interface QuotaListOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type QuotaListResponse = QuotaListHeaders & QuotaLimits;
+
+// @public
+export interface QuotaProperties {
+ readonly currentValue?: number;
+ limit?: number;
+ name?: ResourceName;
+ properties?: Record;
+ readonly quotaPeriod?: string;
+ resourceType?: ResourceType;
+ unit?: string;
+}
+
+// @public
+export interface QuotaRequestDetails {
+ readonly id?: string;
+ readonly message?: string;
+ readonly name?: string;
+ provisioningState?: QuotaRequestState;
+ readonly requestSubmitTime?: Date;
+ readonly type?: string;
+ value?: SubRequest[];
+}
+
+// @public
+export interface QuotaRequestDetailsList {
+ nextLink?: string;
+ value?: QuotaRequestDetails[];
+}
+
+// @public
+export interface QuotaRequestOneResourceSubmitResponse {
+ readonly id?: string;
+ readonly message?: string;
+ readonly name?: string;
+ properties?: QuotaProperties;
+ readonly provisioningState?: QuotaRequestState;
+ readonly requestSubmitTime?: Date;
+ readonly type?: string;
+}
+
+// @public
+export interface QuotaRequestProperties {
+ readonly message?: string;
+ provisioningState?: QuotaRequestState;
+ readonly requestSubmitTime?: Date;
+ value?: SubRequest[];
+}
+
+// @public
+export type QuotaRequestState = string;
+
+// @public
+export interface QuotaRequestStatus {
+ get(subscriptionId: string, providerId: string, location: string, id: string, options?: QuotaRequestStatusGetOptionalParams): Promise;
+ list(subscriptionId: string, providerId: string, location: string, options?: QuotaRequestStatusListOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public
+export interface QuotaRequestStatusGetOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type QuotaRequestStatusGetResponse = QuotaRequestDetails;
+
+// @public
+export interface QuotaRequestStatusListNextOptionalParams extends coreClient.OperationOptions {
+ filter?: string;
+ skiptoken?: string;
+ top?: number;
+}
+
+// @public
+export type QuotaRequestStatusListNextResponse = QuotaRequestDetailsList;
+
+// @public
+export interface QuotaRequestStatusListOptionalParams extends coreClient.OperationOptions {
+ filter?: string;
+ skiptoken?: string;
+ top?: number;
+}
+
+// @public
+export type QuotaRequestStatusListResponse = QuotaRequestDetailsList;
+
+// @public
+export interface QuotaRequestSubmitResponse {
+ readonly id?: string;
+ readonly name?: string;
+ properties?: QuotaRequestProperties;
+ readonly type?: string;
+}
+
+// @public
+export interface QuotaRequestSubmitResponse201 {
+ readonly id?: string;
+ readonly message?: string;
+ readonly name?: string;
+ readonly provisioningState?: QuotaRequestState;
+ readonly type?: string;
+}
+
+// @public
+export interface QuotaUpdateOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export type QuotaUpdateResponse = QuotaRequestOneResourceSubmitResponse;
+
+// @public (undocumented)
+export interface RenewPropertiesResponse {
+ billingCurrencyTotal?: RenewPropertiesResponseBillingCurrencyTotal;
+ pricingCurrencyTotal?: RenewPropertiesResponsePricingCurrencyTotal;
+ // (undocumented)
+ purchaseProperties?: PurchaseRequest;
+}
+
+// @public
+export interface RenewPropertiesResponseBillingCurrencyTotal {
+ // (undocumented)
+ amount?: number;
+ currencyCode?: string;
+}
+
+// @public
+export interface RenewPropertiesResponsePricingCurrencyTotal {
+ // (undocumented)
+ amount?: number;
+ currencyCode?: string;
+}
+
+// @public
+export interface Reservation {
+ beginAvailableScopes(reservationOrderId: string, reservationId: string, body: AvailableScopeRequest, options?: ReservationAvailableScopesOptionalParams): Promise, ReservationAvailableScopesResponse>>;
+ beginAvailableScopesAndWait(reservationOrderId: string, reservationId: string, body: AvailableScopeRequest, options?: ReservationAvailableScopesOptionalParams): Promise;
+ beginMerge(reservationOrderId: string, body: MergeRequest, options?: ReservationMergeOptionalParams): Promise, ReservationMergeResponse>>;
+ beginMergeAndWait(reservationOrderId: string, body: MergeRequest, options?: ReservationMergeOptionalParams): Promise;
+ beginSplit(reservationOrderId: string, body: SplitRequest, options?: ReservationSplitOptionalParams): Promise, ReservationSplitResponse>>;
+ beginSplitAndWait(reservationOrderId: string, body: SplitRequest, options?: ReservationSplitOptionalParams): Promise;
+ beginUpdate(reservationOrderId: string, reservationId: string, parameters: Patch, options?: ReservationUpdateOptionalParams): Promise, ReservationUpdateResponse>>;
+ beginUpdateAndWait(reservationOrderId: string, reservationId: string, parameters: Patch, options?: ReservationUpdateOptionalParams): Promise;
+ get(reservationId: string, reservationOrderId: string, options?: ReservationGetOptionalParams): Promise;
+ list(reservationOrderId: string, options?: ReservationListOptionalParams): PagedAsyncIterableIterator;
+ listAll(options?: ReservationListAllOptionalParams): PagedAsyncIterableIterator;
+ listRevisions(reservationId: string, reservationOrderId: string, options?: ReservationListRevisionsOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public
+export interface ReservationAvailableScopesOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export type ReservationAvailableScopesResponse = AvailableScopeProperties;
+
+// @public
+export type ReservationBillingPlan = string;
+
+// @public
+export interface ReservationGetOptionalParams extends coreClient.OperationOptions {
+ expand?: string;
+}
+
+// @public
+export type ReservationGetResponse = ReservationResponse;
+
+// @public (undocumented)
+export interface ReservationList {
+ nextLink?: string;
+ // (undocumented)
+ value?: ReservationResponse[];
+}
+
+// @public
+export interface ReservationListAllNextOptionalParams extends coreClient.OperationOptions {
+ filter?: string;
+ orderby?: string;
+ refreshSummary?: string;
+ selectedState?: string;
+ skiptoken?: number;
+ take?: number;
+}
+
+// @public
+export type ReservationListAllNextResponse = ReservationsListResult;
+
+// @public
+export interface ReservationListAllOptionalParams extends coreClient.OperationOptions {
+ filter?: string;
+ orderby?: string;
+ refreshSummary?: string;
+ selectedState?: string;
+ skiptoken?: number;
+ take?: number;
+}
+
+// @public
+export type ReservationListAllResponse = ReservationsListResult;
+
+// @public
+export interface ReservationListNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ReservationListNextResponse = ReservationList;
+
+// @public
+export interface ReservationListOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ReservationListResponse = ReservationList;
+
+// @public
+export interface ReservationListRevisionsNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ReservationListRevisionsNextResponse = ReservationList;
+
+// @public
+export interface ReservationListRevisionsOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ReservationListRevisionsResponse = ReservationList;
+
+// @public
+export interface ReservationMergeOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public (undocumented)
+export interface ReservationMergeProperties {
+ mergeDestination?: string;
+ mergeSources?: string[];
+}
+
+// @public
+export type ReservationMergeResponse = ReservationResponse[];
+
+// @public
+export interface ReservationOrder {
+ beginPurchase(reservationOrderId: string, body: PurchaseRequest, options?: ReservationOrderPurchaseOptionalParams): Promise, ReservationOrderPurchaseResponse>>;
+ beginPurchaseAndWait(reservationOrderId: string, body: PurchaseRequest, options?: ReservationOrderPurchaseOptionalParams): Promise;
+ calculate(body: PurchaseRequest, options?: ReservationOrderCalculateOptionalParams): Promise;
+ changeDirectory(reservationOrderId: string, body: ChangeDirectoryRequest, options?: ReservationOrderChangeDirectoryOptionalParams): Promise;
+ get(reservationOrderId: string, options?: ReservationOrderGetOptionalParams): Promise;
+ list(options?: ReservationOrderListOptionalParams): PagedAsyncIterableIterator;
+}
+
+// @public
+export interface ReservationOrderBillingPlanInformation {
+ nextPaymentDueDate?: Date;
+ pricingCurrencyTotal?: Price;
+ startDate?: Date;
+ // (undocumented)
+ transactions?: PaymentDetail[];
+}
+
+// @public
+export interface ReservationOrderCalculateOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ReservationOrderCalculateResponse = CalculatePriceResponse;
+
+// @public
+export interface ReservationOrderChangeDirectoryOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ReservationOrderChangeDirectoryResponse = ChangeDirectoryResponse;
+
+// @public
+export interface ReservationOrderGetOptionalParams extends coreClient.OperationOptions {
+ expand?: string;
+}
+
+// @public
+export type ReservationOrderGetResponse = ReservationOrderResponse;
+
+// @public (undocumented)
+export interface ReservationOrderList {
+ nextLink?: string;
+ // (undocumented)
+ value?: ReservationOrderResponse[];
+}
+
+// @public
+export interface ReservationOrderListNextOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ReservationOrderListNextResponse = ReservationOrderList;
+
+// @public
+export interface ReservationOrderListOptionalParams extends coreClient.OperationOptions {
+}
+
+// @public
+export type ReservationOrderListResponse = ReservationOrderList;
+
+// @public
+export interface ReservationOrderPurchaseOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export type ReservationOrderPurchaseResponse = ReservationOrderResponse;
+
+// @public (undocumented)
+export interface ReservationOrderResponse {
+ billingPlan?: ReservationBillingPlan;
+ createdDateTime?: Date;
+ displayName?: string;
+ // (undocumented)
+ etag?: number;
+ expiryDate?: Date;
+ readonly id?: string;
+ readonly name?: string;
+ originalQuantity?: number;
+ planInformation?: ReservationOrderBillingPlanInformation;
+ provisioningState?: ProvisioningState;
+ requestDateTime?: Date;
+ // (undocumented)
+ reservations?: ReservationResponse[];
+ readonly systemData?: SystemData;
+ term?: ReservationTerm;
+ readonly type?: string;
+}
+
+// @public
+export interface ReservationResponse {
+ // (undocumented)
+ etag?: number;
+ readonly id?: string;
+ kind?: "Microsoft.Compute";
+ location?: string;
+ readonly name?: string;
+ properties?: ReservationsProperties;
+ sku?: SkuName;
+ readonly systemData?: SystemData;
+ readonly type?: string;
+}
+
+// @public
+export interface ReservationsListResult {
+ readonly nextLink?: string;
+ summary?: ReservationSummary;
+ readonly value?: ReservationResponse[];
+}
+
+// @public
+export interface ReservationSplitOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public (undocumented)
+export interface ReservationSplitProperties {
+ splitDestinations?: string[];
+ splitSource?: string;
+}
+
+// @public
+export type ReservationSplitResponse = ReservationResponse[];
+
+// @public
+export interface ReservationsProperties {
+ appliedScopes?: string[];
+ appliedScopeType?: AppliedScopeType;
+ archived?: boolean;
+ billingPlan?: ReservationBillingPlan;
+ billingScopeId?: string;
+ capabilities?: string;
+ displayName?: string;
+ readonly displayProvisioningState?: string;
+ effectiveDateTime?: Date;
+ expiryDate?: Date;
+ extendedStatusInfo?: ExtendedStatusInfo;
+ instanceFlexibility?: InstanceFlexibility;
+ readonly lastUpdatedDateTime?: Date;
+ // (undocumented)
+ mergeProperties?: ReservationMergeProperties;
+ provisioningState?: ProvisioningState;
+ readonly provisioningSubState?: string;
+ purchaseDate?: Date;
+ quantity?: number;
+ renew?: boolean;
+ renewDestination?: string;
+ // (undocumented)
+ renewProperties?: RenewPropertiesResponse;
+ renewSource?: string;
+ reservedResourceType?: ReservedResourceType;
+ skuDescription?: string;
+ // (undocumented)
+ splitProperties?: ReservationSplitProperties;
+ term?: ReservationTerm;
+ readonly userFriendlyAppliedScopeType?: string;
+ readonly userFriendlyRenewState?: string;
+ readonly utilization?: ReservationsPropertiesUtilization;
+}
+
+// @public
+export interface ReservationsPropertiesUtilization {
+ aggregates?: ReservationUtilizationAggregates[];
+ readonly trend?: string;
+}
+
+// @public
+export type ReservationStatusCode = string;
+
+// @public
+export interface ReservationSummary {
+ readonly cancelledCount?: number;
+ readonly expiredCount?: number;
+ readonly expiringCount?: number;
+ readonly failedCount?: number;
+ readonly pendingCount?: number;
+ readonly succeededCount?: number;
+}
+
+// @public
+export type ReservationTerm = string;
+
+// @public
+export interface ReservationToExchange {
+ billingInformation?: BillingInformation;
+ // (undocumented)
+ billingRefundAmount?: Price;
+ quantity?: number;
+ reservationId?: string;
+}
+
+// @public
+export interface ReservationToPurchaseCalculateExchange {
+ // (undocumented)
+ billingCurrencyTotal?: Price;
+ // (undocumented)
+ properties?: PurchaseRequest;
+}
+
+// @public
+export interface ReservationToPurchaseExchange {
+ // (undocumented)
+ billingCurrencyTotal?: Price;
+ // (undocumented)
+ properties?: PurchaseRequest;
+ reservationId?: string;
+ reservationOrderId?: string;
+ status?: OperationStatus;
+}
+
+// @public
+export interface ReservationToReturn {
+ quantity?: number;
+ reservationId?: string;
+}
+
+// @public
+export interface ReservationToReturnForExchange {
+ billingInformation?: BillingInformation;
+ // (undocumented)
+ billingRefundAmount?: Price;
+ quantity?: number;
+ reservationId?: string;
+ status?: OperationStatus;
+}
+
+// @public
+export interface ReservationUpdateOptionalParams extends coreClient.OperationOptions {
+ resumeFrom?: string;
+ updateIntervalInMs?: number;
+}
+
+// @public
+export type ReservationUpdateResponse = ReservationResponse;
+
+// @public
+export interface ReservationUtilizationAggregates {
+ readonly grain?: number;
+ readonly grainUnit?: string;
+ readonly value?: number;
+ readonly valueUnit?: string;
+}
+
+// @public
+export type ReservedResourceType = string;
+
+// @public
+export interface ResourceName {
+ readonly localizedValue?: string;
+ value?: string;
+}
+
+// @public
+export type ResourceType = string;
+
+// @public (undocumented)
+export interface ScopeProperties {
+ // (undocumented)
+ scope?: string;
+ // (undocumented)
+ valid?: boolean;
+}
+
+// @public
+export interface ServiceError {
+ code?: string;
+ readonly details?: ServiceErrorDetail[];
+ message?: string;
+}
+
+// @public
+export interface ServiceErrorDetail {
+ readonly code?: string;
+ readonly message?: string;
+}
+
+// @public (undocumented)
+export interface SkuCapability {
+ name?: string;
+ value?: string;
+}
+
+// @public (undocumented)
+export interface SkuName {
+ // (undocumented)
+ name?: string;
+}
+
+// @public (undocumented)
+export interface SkuProperty {
+ name?: string;
+ value?: string;
+}
+
+// @public (undocumented)
+export interface SkuRestriction {
+ reasonCode?: string;
+ type?: string;
+ values?: string[];
+}
+
+// @public (undocumented)
+export interface SplitRequest {
+ quantities?: number[];
+ reservationId?: string;
+}
+
+// @public
+export interface SubRequest {
+ readonly limit?: number;
+ readonly message?: string;
+ name?: ResourceName;
+ provisioningState?: QuotaRequestState;
+ readonly resourceType?: string;
+ readonly subRequestId?: string;
+ unit?: string;
+}
+
+// @public (undocumented)
+export interface SubscriptionScopeProperties {
+ // (undocumented)
+ scopes?: ScopeProperties[];
+}
+
+// @public
+export interface SystemData {
+ createdAt?: Date;
+ createdBy?: string;
+ createdByType?: CreatedByType;
+ lastModifiedAt?: Date;
+ lastModifiedBy?: string;
+ lastModifiedByType?: CreatedByType;
+}
+
+// @public
+export type UserFriendlyAppliedScopeType = string;
+
+// @public
+export type UserFriendlyRenewState = string;
+
+// (No @packageDocumentation comment for this package)
+
+```
diff --git a/sdk/reservations/arm-reservations/rollup.config.js b/sdk/reservations/arm-reservations/rollup.config.js
index 254b7e0e555..9be1955eb7f 100644
--- a/sdk/reservations/arm-reservations/rollup.config.js
+++ b/sdk/reservations/arm-reservations/rollup.config.js
@@ -1,37 +1,188 @@
-import rollup from "rollup";
-import nodeResolve from "rollup-plugin-node-resolve";
-import sourcemaps from "rollup-plugin-sourcemaps";
-
-/**
- * @type {rollup.RollupFileOptions}
- */
-const config = {
- input: "./esm/azureReservationAPI.js",
- external: [
- "@azure/ms-rest-js",
- "@azure/ms-rest-azure-js"
- ],
- output: {
- file: "./dist/arm-reservations.js",
- format: "umd",
- name: "Azure.ArmReservations",
- sourcemap: true,
- globals: {
- "@azure/ms-rest-js": "msRest",
- "@azure/ms-rest-azure-js": "msRestAzure"
- },
- banner: `/*
+/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */`
- },
- plugins: [
- nodeResolve({ mainFields: ['module', 'main'] }),
- sourcemaps()
- ]
+ */
+
+import nodeResolve from "@rollup/plugin-node-resolve";
+import cjs from "@rollup/plugin-commonjs";
+import sourcemaps from "rollup-plugin-sourcemaps";
+import multiEntry from "@rollup/plugin-multi-entry";
+import json from "@rollup/plugin-json";
+
+import nodeBuiltins from "builtin-modules";
+
+/**
+ * Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
+ *
+ * NOTE: this manual configuration is only needed because OpenTelemetry uses an
+ * __exportStar downleveled helper function to declare its exports which confuses
+ * rollup's automatic discovery mechanism.
+ *
+ * @returns an object reference that can be `...`'d into your cjs() configuration.
+ */
+export function openTelemetryCommonJs() {
+ const namedExports = {};
+
+ for (const key of [
+ "@opentelemetry/api",
+ "@azure/core-tracing/node_modules/@opentelemetry/api"
+ ]) {
+ namedExports[key] = [
+ "SpanKind",
+ "TraceFlags",
+ "getSpan",
+ "setSpan",
+ "SpanStatusCode",
+ "getSpanContext",
+ "setSpanContext"
+ ];
+ }
+
+ const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
+
+ for (const version of releasedOpenTelemetryVersions) {
+ namedExports[
+ // working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
+ `../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
+ ] = [
+ "SpanKind",
+ "TraceFlags",
+ "getSpan",
+ "setSpan",
+ "StatusCode",
+ "CanonicalCode",
+ "getSpanContext",
+ "setSpanContext"
+ ];
+ }
+
+ return namedExports;
+}
+
+// #region Warning Handler
+
+/**
+ * A function that can determine whether a rollupwarning should be ignored. If
+ * the function returns `true`, then the warning will not be displayed.
+ */
+
+function ignoreNiseSinonEvalWarnings(warning) {
+ return (
+ warning.code === "EVAL" &&
+ warning.id &&
+ (warning.id.includes("node_modules/nise") ||
+ warning.id.includes("node_modules/sinon")) === true
+ );
+}
+
+function ignoreChaiCircularDependencyWarnings(warning) {
+ return (
+ warning.code === "CIRCULAR_DEPENDENCY" &&
+ warning.importer && warning.importer.includes("node_modules/chai") === true
+ );
+}
+
+const warningInhibitors = [
+ ignoreChaiCircularDependencyWarnings,
+ ignoreNiseSinonEvalWarnings
+];
+
+/**
+ * Construct a warning handler for the shared rollup configuration
+ * that ignores certain warnings that are not relevant to testing.
+ */
+function makeOnWarnForTesting() {
+ return (warning, warn) => {
+ // If every inhibitor returns false (i.e. no inhibitors), then show the warning
+ if (warningInhibitors.every((inhib) => !inhib(warning))) {
+ warn(warning);
+ }
+ };
+}
+
+// #endregion
+
+function makeBrowserTestConfig() {
+ const config = {
+ input: {
+ include: ["dist-esm/test/**/*.spec.js"],
+ exclude: ["dist-esm/test/**/node/**"]
+ },
+ output: {
+ file: `dist-test/index.browser.js`,
+ format: "umd",
+ sourcemap: true
+ },
+ preserveSymlinks: false,
+ plugins: [
+ multiEntry({ exports: false }),
+ nodeResolve({
+ mainFields: ["module", "browser"]
+ }),
+ cjs({
+ namedExports: {
+ // Chai's strange internal architecture makes it impossible to statically
+ // analyze its exports.
+ chai: [
+ "version",
+ "use",
+ "util",
+ "config",
+ "expect",
+ "should",
+ "assert"
+ ],
+ ...openTelemetryCommonJs()
+ }
+ }),
+ json(),
+ sourcemaps()
+ //viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
+ ],
+ onwarn: makeOnWarnForTesting(),
+ // Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
+ // rollup started respecting the "sideEffects" field in package.json. Since
+ // our package.json sets "sideEffects=false", this also applies to test
+ // code, which causes all tests to be removed by tree-shaking.
+ treeshake: false
+ };
+
+ return config;
+}
+
+const defaultConfigurationOptions = {
+ disableBrowserBundle: false
};
-export default config;
+export function makeConfig(pkg, options) {
+ options = {
+ ...defaultConfigurationOptions,
+ ...(options || {})
+ };
+
+ const baseConfig = {
+ // Use the package's module field if it has one
+ input: pkg["module"] || "dist-esm/src/index.js",
+ external: [
+ ...nodeBuiltins,
+ ...Object.keys(pkg.dependencies),
+ ...Object.keys(pkg.devDependencies)
+ ],
+ output: { file: "dist/index.js", format: "cjs", sourcemap: true },
+ preserveSymlinks: false,
+ plugins: [sourcemaps(), nodeResolve(), cjs()]
+ };
+
+ const config = [baseConfig];
+
+ if (!options.disableBrowserBundle) {
+ config.push(makeBrowserTestConfig());
+ }
+
+ return config;
+}
+
+export default makeConfig(require("./package.json"));
diff --git a/sdk/reservations/arm-reservations/sample.env b/sdk/reservations/arm-reservations/sample.env
new file mode 100644
index 00000000000..672847a3fea
--- /dev/null
+++ b/sdk/reservations/arm-reservations/sample.env
@@ -0,0 +1,4 @@
+# App registration secret for AAD authentication
+AZURE_CLIENT_SECRET=
+AZURE_CLIENT_ID=
+AZURE_TENANT_ID=
\ No newline at end of file
diff --git a/sdk/reservations/arm-reservations/samples-dev/appliedReservationList.ts b/sdk/reservations/arm-reservations/samples-dev/appliedReservationList.ts
new file mode 100644
index 00000000000..bdfa150f90f
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples-dev/appliedReservationList.ts
@@ -0,0 +1,28 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Get applicable `Reservation`s that are applied to this subscription or a resource group under this subscription.
+ *
+ * @summary Get applicable `Reservation`s that are applied to this subscription or a resource group under this subscription.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetAppliedReservations.json
+ */
+import { AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function appliedReservationList() {
+ const subscriptionId = "23bc208b-083f-4901-ae85-4f98c0c3b4b6";
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.getAppliedReservationList(subscriptionId);
+ console.log(result);
+}
+
+appliedReservationList().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples-dev/availableScopes.ts b/sdk/reservations/arm-reservations/samples-dev/availableScopes.ts
new file mode 100644
index 00000000000..efe120d2727
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples-dev/availableScopes.ts
@@ -0,0 +1,43 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Get Available Scopes for `Reservation`.
+
+ *
+ * @summary Get Available Scopes for `Reservation`.
+
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetAvailableScope.json
+ */
+import {
+ AvailableScopeRequest,
+ AzureReservationAPI
+} from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function availableScopes() {
+ const reservationOrderId = "276e7ae4-84d0-4da6-ab4b-d6b94f3557da";
+ const reservationId = "356e7ae4-84d0-4da6-ab4b-d6b94f3557da";
+ const body: AvailableScopeRequest = {
+ properties: {
+ scopes: ["/subscriptions/efc7c997-7700-4a74-b731-55aec16c15e9"]
+ }
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.reservation.beginAvailableScopesAndWait(
+ reservationOrderId,
+ reservationId,
+ body
+ );
+ console.log(result);
+}
+
+availableScopes().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples-dev/calculateExchange.ts b/sdk/reservations/arm-reservations/samples-dev/calculateExchange.ts
new file mode 100644
index 00000000000..1520b2ec073
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples-dev/calculateExchange.ts
@@ -0,0 +1,59 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Calculates price for exchanging `Reservations` if there are no policy errors.
+
+ *
+ * @summary Calculates price for exchanging `Reservations` if there are no policy errors.
+
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/CalculateExchange.json
+ */
+import {
+ CalculateExchangeRequest,
+ AzureReservationAPI
+} from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function calculateExchange() {
+ const body: CalculateExchangeRequest = {
+ properties: {
+ reservationsToExchange: [
+ {
+ quantity: 1,
+ reservationId:
+ "/providers/microsoft.capacity/reservationOrders/1f14354c-dc12-4c8d-8090-6f295a3a34aa/reservations/c8c926bd-fc5d-4e29-9d43-b68340ac23a6"
+ }
+ ],
+ reservationsToPurchase: [
+ {
+ appliedScopeType: "Shared",
+ appliedScopes: [],
+ billingPlan: "Upfront",
+ billingScopeId: "/subscriptions/ed3a1871-612d-abcd-a849-c2542a68be83",
+ displayName: "testDisplayName",
+ location: "westus",
+ quantity: 1,
+ renew: false,
+ reservedResourceProperties: { instanceFlexibility: "On" },
+ reservedResourceType: "VirtualMachines",
+ sku: { name: "Standard_B1ls" },
+ term: "P1Y"
+ }
+ ]
+ }
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.calculateExchange.beginPostAndWait(body);
+ console.log(result);
+}
+
+calculateExchange().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples-dev/catalog.ts b/sdk/reservations/arm-reservations/samples-dev/catalog.ts
new file mode 100644
index 00000000000..c1f824cfd18
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples-dev/catalog.ts
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Get the regions and skus that are available for RI purchase for the specified Azure subscription.
+ *
+ * @summary Get the regions and skus that are available for RI purchase for the specified Azure subscription.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetCatalog.json
+ */
+import { AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function catalog() {
+ const subscriptionId = "23bc208b-083f-4901-ae85-4f98c0c3b4b6";
+ const reservedResourceType = "VirtualMachines";
+ const location = "eastus";
+ const options = {
+ reservedResourceType: reservedResourceType,
+ location: location
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.getCatalog(subscriptionId, options);
+ console.log(result);
+}
+
+catalog().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples-dev/changeDirectory.ts b/sdk/reservations/arm-reservations/samples-dev/changeDirectory.ts
new file mode 100644
index 00000000000..8220f499c52
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples-dev/changeDirectory.ts
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Change directory (tenant) of `ReservationOrder` and all `Reservation` under it to specified tenant id
+ *
+ * @summary Change directory (tenant) of `ReservationOrder` and all `Reservation` under it to specified tenant id
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/ChangeDirectoryReservationOrder.json
+ */
+import {
+ ChangeDirectoryRequest,
+ AzureReservationAPI
+} from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function changeDirectory() {
+ const reservationOrderId = "a075419f-44cc-497f-b68a-14ee811d48b9";
+ const body: ChangeDirectoryRequest = {
+ destinationTenantId: "906655ea-30be-4587-9d12-b50e077b0f32"
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.reservationOrder.changeDirectory(
+ reservationOrderId,
+ body
+ );
+ console.log(result);
+}
+
+changeDirectory().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples-dev/exchange.ts b/sdk/reservations/arm-reservations/samples-dev/exchange.ts
new file mode 100644
index 00000000000..9e27efeee4d
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples-dev/exchange.ts
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.
+
+ *
+ * @summary Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.
+
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/Exchange.json
+ */
+import { ExchangeRequest, AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function exchange() {
+ const body: ExchangeRequest = {
+ properties: { sessionId: "66e2ac8f-439e-4345-8235-6fef07608081" }
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.exchange.beginPostAndWait(body);
+ console.log(result);
+}
+
+exchange().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples-dev/getOperations.ts b/sdk/reservations/arm-reservations/samples-dev/getOperations.ts
new file mode 100644
index 00000000000..50802236b3c
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples-dev/getOperations.ts
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to List all the operations.
+ *
+ * @summary List all the operations.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetOperations.json
+ */
+import { AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function getOperations() {
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const resArray = new Array();
+ for await (let item of client.operation.list()) {
+ resArray.push(item);
+ }
+ console.log(resArray);
+}
+
+getOperations().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples-dev/getReservation.ts b/sdk/reservations/arm-reservations/samples-dev/getReservation.ts
new file mode 100644
index 00000000000..a2ed05c49a0
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples-dev/getReservation.ts
@@ -0,0 +1,28 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Get the details of the `ReservationOrder`.
+ *
+ * @summary Get the details of the `ReservationOrder`.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetReservationOrderDetails.json
+ */
+import { AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function getReservation() {
+ const reservationOrderId = "a075419f-44cc-497f-b68a-14ee811d48b9";
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.reservationOrder.get(reservationOrderId);
+ console.log(result);
+}
+
+getReservation().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples-dev/getReservationWithExpandPayments.ts b/sdk/reservations/arm-reservations/samples-dev/getReservationWithExpandPayments.ts
new file mode 100644
index 00000000000..0bdd987bcd7
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples-dev/getReservationWithExpandPayments.ts
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Get the details of the `ReservationOrder`.
+ *
+ * @summary Get the details of the `ReservationOrder`.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetReservationOrderDetailsWithExpandPlanInformation.json
+ */
+import { AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function getReservationWithExpandPayments() {
+ const reservationOrderId = "a075419f-44cc-497f-b68a-14ee811d48b9";
+ const expand = "schedule";
+ const options = { expand: expand };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.reservationOrder.get(reservationOrderId, options);
+ console.log(result);
+}
+
+getReservationWithExpandPayments().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples-dev/merge.ts b/sdk/reservations/arm-reservations/samples-dev/merge.ts
new file mode 100644
index 00000000000..45fef291f84
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples-dev/merge.ts
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Merge the specified `Reservation`s into a new `Reservation`. The two `Reservation`s being merged must have same properties.
+ *
+ * @summary Merge the specified `Reservation`s into a new `Reservation`. The two `Reservation`s being merged must have same properties.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/MergeReservations.json
+ */
+import { MergeRequest, AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function merge() {
+ const reservationOrderId = "276e7ae4-84d0-4da6-ab4b-d6b94f3557da";
+ const body: MergeRequest = {
+ sources: [
+ "/providers/Microsoft.Capacity/reservationOrders/c0565a8a-4491-4e77-b07b-5e6d66718e1c/reservations/cea04232-932e-47db-acb5-e29a945ecc73",
+ "/providers/Microsoft.Capacity/reservationOrders/c0565a8a-4491-4e77-b07b-5e6d66718e1c/reservations/5bf54dc7-dacd-4f46-a16b-7b78f4a59799"
+ ]
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.reservation.beginMergeAndWait(
+ reservationOrderId,
+ body
+ );
+ console.log(result);
+}
+
+merge().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples-dev/patchReservation.ts b/sdk/reservations/arm-reservations/samples-dev/patchReservation.ts
new file mode 100644
index 00000000000..3d1d5e645c4
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples-dev/patchReservation.ts
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Updates the applied scopes of the `Reservation`.
+ *
+ * @summary Updates the applied scopes of the `Reservation`.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/UpdateReservation.json
+ */
+import { Patch, AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function patchReservation() {
+ const reservationOrderId = "276e7ae4-84d0-4da6-ab4b-d6b94f3557da";
+ const reservationId = "6ef59113-3482-40da-8d79-787f823e34bc";
+ const parameters: Patch = {
+ appliedScopeType: "Shared",
+ instanceFlexibility: "Off"
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.reservation.beginUpdateAndWait(
+ reservationOrderId,
+ reservationId,
+ parameters
+ );
+ console.log(result);
+}
+
+patchReservation().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples-dev/purchase.ts b/sdk/reservations/arm-reservations/samples-dev/purchase.ts
new file mode 100644
index 00000000000..8c6780772a0
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples-dev/purchase.ts
@@ -0,0 +1,45 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Purchase `ReservationOrder` and create resource under the specified URI.
+ *
+ * @summary Purchase `ReservationOrder` and create resource under the specified URI.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/PurchaseReservationOrder.json
+ */
+import { PurchaseRequest, AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function purchase() {
+ const reservationOrderId = "a075419f-44cc-497f-b68a-14ee811d48b9";
+ const body: PurchaseRequest = {
+ appliedScopeType: "Shared",
+ appliedScopes: [],
+ billingPlan: "Monthly",
+ billingScopeId: "/subscriptions/ed3a1871-612d-abcd-a849-c2542a68be83",
+ displayName: "TestReservationOrder",
+ location: "westus",
+ quantity: 1,
+ renew: false,
+ reservedResourceProperties: { instanceFlexibility: "On" },
+ reservedResourceType: "VirtualMachines",
+ sku: { name: "standard_D1" },
+ term: "P1Y"
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.reservationOrder.beginPurchaseAndWait(
+ reservationOrderId,
+ body
+ );
+ console.log(result);
+}
+
+purchase().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples-dev/quotaRequestFailed.ts b/sdk/reservations/arm-reservations/samples-dev/quotaRequestFailed.ts
new file mode 100644
index 00000000000..494ded8854c
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples-dev/quotaRequestFailed.ts
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter.
+ *
+ * @summary For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusFailed.json
+ */
+import { AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function quotaRequestFailed() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const providerId = "Microsoft.Compute";
+ const location = "eastus";
+ const id = "2B5C8515-37D8-4B6A-879B-CD641A2CF605";
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.quotaRequestStatus.get(
+ subscriptionId,
+ providerId,
+ location,
+ id
+ );
+ console.log(result);
+}
+
+quotaRequestFailed().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples-dev/quotaRequestHistory.ts b/sdk/reservations/arm-reservations/samples-dev/quotaRequestHistory.ts
new file mode 100644
index 00000000000..d80db8a7dae
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples-dev/quotaRequestHistory.ts
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to For the specified Azure region (location), subscription, and resource provider, get the history of the quota requests for the past year. To select specific quota requests, use the oData filter.
+ *
+ * @summary For the specified Azure region (location), subscription, and resource provider, get the history of the quota requests for the past year. To select specific quota requests, use the oData filter.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestsHistory.json
+ */
+import { AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function quotaRequestHistory() {
+ const subscriptionId = "3f75fdf7-977e-44ad-990d-99f14f0f299f";
+ const providerId = "Microsoft.Compute";
+ const location = "eastus";
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const resArray = new Array();
+ for await (let item of client.quotaRequestStatus.list(
+ subscriptionId,
+ providerId,
+ location
+ )) {
+ resArray.push(item);
+ }
+ console.log(resArray);
+}
+
+quotaRequestHistory().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples-dev/quotaRequestInProgress.ts b/sdk/reservations/arm-reservations/samples-dev/quotaRequestInProgress.ts
new file mode 100644
index 00000000000..922eb4e18ac
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples-dev/quotaRequestInProgress.ts
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter.
+ *
+ * @summary For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusInProgress.json
+ */
+import { AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function quotaRequestInProgress() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const providerId = "Microsoft.Compute";
+ const location = "eastus";
+ const id = "2B5C8515-37D8-4B6A-879B-CD641A2CF605";
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.quotaRequestStatus.get(
+ subscriptionId,
+ providerId,
+ location,
+ id
+ );
+ console.log(result);
+}
+
+quotaRequestInProgress().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples-dev/quotaRequestStatus.ts b/sdk/reservations/arm-reservations/samples-dev/quotaRequestStatus.ts
new file mode 100644
index 00000000000..36d99733050
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples-dev/quotaRequestStatus.ts
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter.
+ *
+ * @summary For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusById.json
+ */
+import { AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function quotaRequestStatus() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const providerId = "Microsoft.Compute";
+ const location = "eastus";
+ const id = "2B5C8515-37D8-4B6A-879B-CD641A2CF605";
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.quotaRequestStatus.get(
+ subscriptionId,
+ providerId,
+ location,
+ id
+ );
+ console.log(result);
+}
+
+quotaRequestStatus().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples-dev/quotasListUsagesForCompute.ts b/sdk/reservations/arm-reservations/samples-dev/quotasListUsagesForCompute.ts
new file mode 100644
index 00000000000..d9785128cda
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples-dev/quotasListUsagesForCompute.ts
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Gets a list of current quotas (service limits) and usage for all resources. The response from the list quota operation can be leveraged to request quota updates.
+ *
+ * @summary Gets a list of current quotas (service limits) and usage for all resources. The response from the list quota operation can be leveraged to request quota updates.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeUsages.json
+ */
+import { AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function quotasListUsagesForCompute() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const providerId = "Microsoft.Compute";
+ const location = "eastus";
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const resArray = new Array();
+ for await (let item of client.quota.list(
+ subscriptionId,
+ providerId,
+ location
+ )) {
+ resArray.push(item);
+ }
+ console.log(resArray);
+}
+
+quotasListUsagesForCompute().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples-dev/quotasListUsagesMachineLearningServices.ts b/sdk/reservations/arm-reservations/samples-dev/quotasListUsagesMachineLearningServices.ts
new file mode 100644
index 00000000000..3d7a76aaefe
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples-dev/quotasListUsagesMachineLearningServices.ts
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Gets a list of current quotas (service limits) and usage for all resources. The response from the list quota operation can be leveraged to request quota updates.
+ *
+ * @summary Gets a list of current quotas (service limits) and usage for all resources. The response from the list quota operation can be leveraged to request quota updates.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getMachineLearningServicesUsages.json
+ */
+import { AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function quotasListUsagesMachineLearningServices() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const providerId = "Microsoft.MachineLearningServices";
+ const location = "eastus";
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const resArray = new Array();
+ for await (let item of client.quota.list(
+ subscriptionId,
+ providerId,
+ location
+ )) {
+ resArray.push(item);
+ }
+ console.log(resArray);
+}
+
+quotasListUsagesMachineLearningServices().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples-dev/quotasRequestForCompute.ts b/sdk/reservations/arm-reservations/samples-dev/quotasRequestForCompute.ts
new file mode 100644
index 00000000000..50288d66ae7
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples-dev/quotasRequestForCompute.ts
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Get the current quota (service limit) and usage of a resource. You can use the response from the GET operation to submit quota update request.
+ *
+ * @summary Get the current quota (service limit) and usage of a resource. You can use the response from the GET operation to submit quota update request.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeOneSkuUsages.json
+ */
+import { AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function quotasRequestForCompute() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const providerId = "Microsoft.Compute";
+ const location = "eastus";
+ const resourceName = "standardNDSFamily";
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.quota.get(
+ subscriptionId,
+ providerId,
+ location,
+ resourceName
+ );
+ console.log(result);
+}
+
+quotasRequestForCompute().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples-dev/quotasRequestPatchForCompute.ts b/sdk/reservations/arm-reservations/samples-dev/quotasRequestPatchForCompute.ts
new file mode 100644
index 00000000000..4104b59b3f5
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples-dev/quotasRequestPatchForCompute.ts
@@ -0,0 +1,61 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Update the quota (service limits) of this resource to the requested value.
+
+ • To get the quota information for specific resource, send a GET request.
+
+ • To increase the quota, update the limit field from the GET response to a new value.
+
+ • To update the quota value, submit the JSON response to the quota request API to update the quota.
+ • To update the quota. use the PATCH operation.
+ *
+ * @summary Update the quota (service limits) of this resource to the requested value.
+
+ • To get the quota information for specific resource, send a GET request.
+
+ • To increase the quota, update the limit field from the GET response to a new value.
+
+ • To update the quota value, submit the JSON response to the quota request API to update the quota.
+ • To update the quota. use the PATCH operation.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/patchComputeQuotaRequest.json
+ */
+import {
+ CurrentQuotaLimitBase,
+ AzureReservationAPI
+} from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function quotasRequestPatchForCompute() {
+ const subscriptionId = "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3";
+ const providerId = "Microsoft.Compute";
+ const location = "eastus";
+ const resourceName = "standardFSv2Family";
+ const createQuotaRequest: CurrentQuotaLimitBase = {
+ properties: {
+ name: { value: "standardFSv2Family" },
+ limit: 200,
+ unit: "Count"
+ }
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.quota.beginUpdateAndWait(
+ subscriptionId,
+ providerId,
+ location,
+ resourceName,
+ createQuotaRequest
+ );
+ console.log(result);
+}
+
+quotasRequestPatchForCompute().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples-dev/quotasRequestPutForCompute.ts b/sdk/reservations/arm-reservations/samples-dev/quotasRequestPutForCompute.ts
new file mode 100644
index 00000000000..cfcae142b4d
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples-dev/quotasRequestPutForCompute.ts
@@ -0,0 +1,63 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Create or update the quota (service limits) of a resource to the requested value.
+ Steps:
+
+ 1. Make the Get request to get the quota information for specific resource.
+
+ 2. To increase the quota, update the limit field in the response from Get request to new value.
+
+ 3. Submit the JSON to the quota request API to update the quota.
+ The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.
+ *
+ * @summary Create or update the quota (service limits) of a resource to the requested value.
+ Steps:
+
+ 1. Make the Get request to get the quota information for specific resource.
+
+ 2. To increase the quota, update the limit field in the response from Get request to new value.
+
+ 3. Submit the JSON to the quota request API to update the quota.
+ The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putComputeOneSkuQuotaRequest.json
+ */
+import {
+ CurrentQuotaLimitBase,
+ AzureReservationAPI
+} from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function quotasRequestPutForCompute() {
+ const subscriptionId = "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3";
+ const providerId = "Microsoft.Compute";
+ const location = "eastus";
+ const resourceName = "standardFSv2Family";
+ const createQuotaRequest: CurrentQuotaLimitBase = {
+ properties: {
+ name: { value: "standardFSv2Family" },
+ limit: 200,
+ unit: "Count"
+ }
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.quota.beginCreateOrUpdateAndWait(
+ subscriptionId,
+ providerId,
+ location,
+ resourceName,
+ createQuotaRequest
+ );
+ console.log(result);
+}
+
+quotasRequestPutForCompute().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples-dev/quotasRequestPutForMachineLearningServicesDedicatedResource.ts b/sdk/reservations/arm-reservations/samples-dev/quotasRequestPutForMachineLearningServicesDedicatedResource.ts
new file mode 100644
index 00000000000..9345e85631e
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples-dev/quotasRequestPutForMachineLearningServicesDedicatedResource.ts
@@ -0,0 +1,66 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Create or update the quota (service limits) of a resource to the requested value.
+ Steps:
+
+ 1. Make the Get request to get the quota information for specific resource.
+
+ 2. To increase the quota, update the limit field in the response from Get request to new value.
+
+ 3. Submit the JSON to the quota request API to update the quota.
+ The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.
+ *
+ * @summary Create or update the quota (service limits) of a resource to the requested value.
+ Steps:
+
+ 1. Make the Get request to get the quota information for specific resource.
+
+ 2. To increase the quota, update the limit field in the response from Get request to new value.
+
+ 3. Submit the JSON to the quota request API to update the quota.
+ The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestDedicated.json
+ */
+import {
+ CurrentQuotaLimitBase,
+ AzureReservationAPI
+} from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function quotasRequestPutForMachineLearningServicesDedicatedResource() {
+ const subscriptionId = "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3";
+ const providerId = "Microsoft.MachineLearningServices";
+ const location = "eastus";
+ const resourceName = "StandardDv2Family";
+ const createQuotaRequest: CurrentQuotaLimitBase = {
+ properties: {
+ name: { value: "StandardDv2Family" },
+ limit: 200,
+ resourceType: "dedicated",
+ unit: "Count"
+ }
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.quota.beginCreateOrUpdateAndWait(
+ subscriptionId,
+ providerId,
+ location,
+ resourceName,
+ createQuotaRequest
+ );
+ console.log(result);
+}
+
+quotasRequestPutForMachineLearningServicesDedicatedResource().catch(
+ console.error
+);
diff --git a/sdk/reservations/arm-reservations/samples-dev/quotasRequestPutForMachineLearningServicesLowPriorityResource.ts b/sdk/reservations/arm-reservations/samples-dev/quotasRequestPutForMachineLearningServicesLowPriorityResource.ts
new file mode 100644
index 00000000000..8d21249dfbb
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples-dev/quotasRequestPutForMachineLearningServicesLowPriorityResource.ts
@@ -0,0 +1,66 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Create or update the quota (service limits) of a resource to the requested value.
+ Steps:
+
+ 1. Make the Get request to get the quota information for specific resource.
+
+ 2. To increase the quota, update the limit field in the response from Get request to new value.
+
+ 3. Submit the JSON to the quota request API to update the quota.
+ The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.
+ *
+ * @summary Create or update the quota (service limits) of a resource to the requested value.
+ Steps:
+
+ 1. Make the Get request to get the quota information for specific resource.
+
+ 2. To increase the quota, update the limit field in the response from Get request to new value.
+
+ 3. Submit the JSON to the quota request API to update the quota.
+ The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestLowPriority.json
+ */
+import {
+ CurrentQuotaLimitBase,
+ AzureReservationAPI
+} from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function quotasRequestPutForMachineLearningServicesLowPriorityResource() {
+ const subscriptionId = "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3";
+ const providerId = "Microsoft.MachineLearningServices";
+ const location = "eastus";
+ const resourceName = "TotalLowPriorityCores";
+ const createQuotaRequest: CurrentQuotaLimitBase = {
+ properties: {
+ name: { value: "TotalLowPriorityCores" },
+ limit: 200,
+ resourceType: "lowPriority",
+ unit: "Count"
+ }
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.quota.beginCreateOrUpdateAndWait(
+ subscriptionId,
+ providerId,
+ location,
+ resourceName,
+ createQuotaRequest
+ );
+ console.log(result);
+}
+
+quotasRequestPutForMachineLearningServicesLowPriorityResource().catch(
+ console.error
+);
diff --git a/sdk/reservations/arm-reservations/samples-dev/reservationList.ts b/sdk/reservations/arm-reservations/samples-dev/reservationList.ts
new file mode 100644
index 00000000000..3947d3c2e14
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples-dev/reservationList.ts
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to List `Reservation`s within a single `ReservationOrder`.
+ *
+ * @summary List `Reservation`s within a single `ReservationOrder`.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetReservationsFromOrder.json
+ */
+import { AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function reservationList() {
+ const reservationOrderId = "276e7ae4-84d0-4da6-ab4b-d6b94f3557da";
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const resArray = new Array();
+ for await (let item of client.reservation.list(reservationOrderId)) {
+ resArray.push(item);
+ }
+ console.log(resArray);
+}
+
+reservationList().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples-dev/reservationOrderList.ts b/sdk/reservations/arm-reservations/samples-dev/reservationOrderList.ts
new file mode 100644
index 00000000000..e41e72b25bf
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples-dev/reservationOrderList.ts
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to List of all the `ReservationOrder`s that the user has access to in the current tenant.
+ *
+ * @summary List of all the `ReservationOrder`s that the user has access to in the current tenant.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetReservationOrders.json
+ */
+import { AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function reservationOrderList() {
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const resArray = new Array();
+ for await (let item of client.reservationOrder.list()) {
+ resArray.push(item);
+ }
+ console.log(resArray);
+}
+
+reservationOrderList().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples-dev/reservationRevisions.ts b/sdk/reservations/arm-reservations/samples-dev/reservationRevisions.ts
new file mode 100644
index 00000000000..51f5383c949
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples-dev/reservationRevisions.ts
@@ -0,0 +1,35 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to List of all the revisions for the `Reservation`.
+ *
+ * @summary List of all the revisions for the `Reservation`.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetReservationRevisions.json
+ */
+import { AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function reservationRevisions() {
+ const reservationId = "6ef59113-3482-40da-8d79-787f823e34bc";
+ const reservationOrderId = "276e7ae4-84d0-4da6-ab4b-d6b94f3557da";
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const resArray = new Array();
+ for await (let item of client.reservation.listRevisions(
+ reservationId,
+ reservationOrderId
+ )) {
+ resArray.push(item);
+ }
+ console.log(resArray);
+}
+
+reservationRevisions().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples-dev/split.ts b/sdk/reservations/arm-reservations/samples-dev/split.ts
new file mode 100644
index 00000000000..d070a1c45d7
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples-dev/split.ts
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Split a `Reservation` into two `Reservation`s with specified quantity distribution.
+ *
+ * @summary Split a `Reservation` into two `Reservation`s with specified quantity distribution.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/SplitReservation.json
+ */
+import { SplitRequest, AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function split() {
+ const reservationOrderId = "276e7ae4-84d0-4da6-ab4b-d6b94f3557da";
+ const body: SplitRequest = {
+ quantities: [1, 2],
+ reservationId:
+ "/providers/Microsoft.Capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/bcae77cd-3119-4766-919f-b50d36c75c7a"
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.reservation.beginSplitAndWait(
+ reservationOrderId,
+ body
+ );
+ console.log(result);
+}
+
+split().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/javascript/README.md b/sdk/reservations/arm-reservations/samples/v7/javascript/README.md
new file mode 100644
index 00000000000..0422910a9a5
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/javascript/README.md
@@ -0,0 +1,102 @@
+# client library samples for JavaScript
+
+These sample programs show how to use the JavaScript client libraries for in some common scenarios.
+
+| **File Name** | **Description** |
+| --------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
+| [appliedReservationList.js][appliedreservationlist] | Get applicable `Reservation`s that are applied to this subscription or a resource group under this subscription. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetAppliedReservations.json |
+| [availableScopes.js][availablescopes] | Get Available Scopes for `Reservation`. //@@TS-MAGIC-NEWLINE@@ x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetAvailableScope.json |
+| [calculateExchange.js][calculateexchange] | Calculates price for exchanging `Reservations` if there are no policy errors. //@@TS-MAGIC-NEWLINE@@ x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/CalculateExchange.json |
+| [catalog.js][catalog] | Get the regions and skus that are available for RI purchase for the specified Azure subscription. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetCatalog.json |
+| [changeDirectory.js][changedirectory] | Change directory (tenant) of `ReservationOrder` and all `Reservation` under it to specified tenant id x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/ChangeDirectoryReservationOrder.json |
+| [exchange.js][exchange] | Returns one or more `Reservations` in exchange for one or more `Reservation` purchases. //@@TS-MAGIC-NEWLINE@@ x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/Exchange.json |
+| [getOperations.js][getoperations] | List all the operations. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetOperations.json |
+| [getReservation.js][getreservation] | Get the details of the `ReservationOrder`. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetReservationOrderDetails.json |
+| [getReservationWithExpandPayments.js][getreservationwithexpandpayments] | Get the details of the `ReservationOrder`. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetReservationOrderDetailsWithExpandPlanInformation.json |
+| [merge.js][merge] | Merge the specified `Reservation`s into a new `Reservation`. The two `Reservation`s being merged must have same properties. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/MergeReservations.json |
+| [patchReservation.js][patchreservation] | Updates the applied scopes of the `Reservation`. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/UpdateReservation.json |
+| [purchase.js][purchase] | Purchase `ReservationOrder` and create resource under the specified URI. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/PurchaseReservationOrder.json |
+| [quotaRequestFailed.js][quotarequestfailed] | For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusFailed.json |
+| [quotaRequestHistory.js][quotarequesthistory] | For the specified Azure region (location), subscription, and resource provider, get the history of the quota requests for the past year. To select specific quota requests, use the oData filter. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestsHistory.json |
+| [quotaRequestInProgress.js][quotarequestinprogress] | For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusInProgress.json |
+| [quotaRequestStatus.js][quotarequeststatus] | For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusById.json |
+| [quotasListUsagesForCompute.js][quotaslistusagesforcompute] | Gets a list of current quotas (service limits) and usage for all resources. The response from the list quota operation can be leveraged to request quota updates. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeUsages.json |
+| [quotasListUsagesMachineLearningServices.js][quotaslistusagesmachinelearningservices] | Gets a list of current quotas (service limits) and usage for all resources. The response from the list quota operation can be leveraged to request quota updates. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getMachineLearningServicesUsages.json |
+| [quotasRequestForCompute.js][quotasrequestforcompute] | Get the current quota (service limit) and usage of a resource. You can use the response from the GET operation to submit quota update request. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeOneSkuUsages.json |
+| [quotasRequestPatchForCompute.js][quotasrequestpatchforcompute] | Update the quota (service limits) of this resource to the requested value. //@@TS-MAGIC-NEWLINE@@ • To get the quota information for specific resource, send a GET request. //@@TS-MAGIC-NEWLINE@@ • To increase the quota, update the limit field from the GET response to a new value. //@@TS-MAGIC-NEWLINE@@ • To update the quota value, submit the JSON response to the quota request API to update the quota. • To update the quota. use the PATCH operation. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/patchComputeQuotaRequest.json |
+| [quotasRequestPutForCompute.js][quotasrequestputforcompute] | Create or update the quota (service limits) of a resource to the requested value. Steps: //@@TS-MAGIC-NEWLINE@@ 1. Make the Get request to get the quota information for specific resource. //@@TS-MAGIC-NEWLINE@@ 2. To increase the quota, update the limit field in the response from Get request to new value. //@@TS-MAGIC-NEWLINE@@ 3. Submit the JSON to the quota request API to update the quota. The Create quota request may be constructed as follows. The PUT operation can be used to update the quota. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putComputeOneSkuQuotaRequest.json |
+| [quotasRequestPutForMachineLearningServicesDedicatedResource.js][quotasrequestputformachinelearningservicesdedicatedresource] | Create or update the quota (service limits) of a resource to the requested value. Steps: //@@TS-MAGIC-NEWLINE@@ 1. Make the Get request to get the quota information for specific resource. //@@TS-MAGIC-NEWLINE@@ 2. To increase the quota, update the limit field in the response from Get request to new value. //@@TS-MAGIC-NEWLINE@@ 3. Submit the JSON to the quota request API to update the quota. The Create quota request may be constructed as follows. The PUT operation can be used to update the quota. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestDedicated.json |
+| [quotasRequestPutForMachineLearningServicesLowPriorityResource.js][quotasrequestputformachinelearningserviceslowpriorityresource] | Create or update the quota (service limits) of a resource to the requested value. Steps: //@@TS-MAGIC-NEWLINE@@ 1. Make the Get request to get the quota information for specific resource. //@@TS-MAGIC-NEWLINE@@ 2. To increase the quota, update the limit field in the response from Get request to new value. //@@TS-MAGIC-NEWLINE@@ 3. Submit the JSON to the quota request API to update the quota. The Create quota request may be constructed as follows. The PUT operation can be used to update the quota. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestLowPriority.json |
+| [reservationList.js][reservationlist] | List `Reservation`s within a single `ReservationOrder`. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetReservationsFromOrder.json |
+| [reservationOrderList.js][reservationorderlist] | List of all the `ReservationOrder`s that the user has access to in the current tenant. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetReservationOrders.json |
+| [reservationRevisions.js][reservationrevisions] | List of all the revisions for the `Reservation`. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetReservationRevisions.json |
+| [split.js][split] | Split a `Reservation` into two `Reservation`s with specified quantity distribution. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/SplitReservation.json |
+
+## Prerequisites
+
+The sample programs are compatible with [LTS versions of Node.js](https://nodejs.org/about/releases/).
+
+You need [an Azure subscription][freesub] to run these sample programs.
+
+Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function.
+
+Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package].
+
+## Setup
+
+To run the samples using the published version of the package:
+
+1. Install the dependencies using `npm`:
+
+```bash
+npm install
+```
+
+2. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically.
+
+3. Run whichever samples you like (note that some samples may require additional setup, see the table above):
+
+```bash
+node appliedReservationList.js
+```
+
+Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform):
+
+```bash
+npx cross-env node appliedReservationList.js
+```
+
+## Next Steps
+
+Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients.
+
+[appliedreservationlist]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/javascript/appliedReservationList.js
+[availablescopes]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/javascript/availableScopes.js
+[calculateexchange]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/javascript/calculateExchange.js
+[catalog]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/javascript/catalog.js
+[changedirectory]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/javascript/changeDirectory.js
+[exchange]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/javascript/exchange.js
+[getoperations]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/javascript/getOperations.js
+[getreservation]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/javascript/getReservation.js
+[getreservationwithexpandpayments]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/javascript/getReservationWithExpandPayments.js
+[merge]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/javascript/merge.js
+[patchreservation]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/javascript/patchReservation.js
+[purchase]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/javascript/purchase.js
+[quotarequestfailed]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/javascript/quotaRequestFailed.js
+[quotarequesthistory]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/javascript/quotaRequestHistory.js
+[quotarequestinprogress]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/javascript/quotaRequestInProgress.js
+[quotarequeststatus]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/javascript/quotaRequestStatus.js
+[quotaslistusagesforcompute]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/javascript/quotasListUsagesForCompute.js
+[quotaslistusagesmachinelearningservices]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/javascript/quotasListUsagesMachineLearningServices.js
+[quotasrequestforcompute]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/javascript/quotasRequestForCompute.js
+[quotasrequestpatchforcompute]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/javascript/quotasRequestPatchForCompute.js
+[quotasrequestputforcompute]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/javascript/quotasRequestPutForCompute.js
+[quotasrequestputformachinelearningservicesdedicatedresource]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/javascript/quotasRequestPutForMachineLearningServicesDedicatedResource.js
+[quotasrequestputformachinelearningserviceslowpriorityresource]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/javascript/quotasRequestPutForMachineLearningServicesLowPriorityResource.js
+[reservationlist]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/javascript/reservationList.js
+[reservationorderlist]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/javascript/reservationOrderList.js
+[reservationrevisions]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/javascript/reservationRevisions.js
+[split]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/javascript/split.js
+[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-reservations?view=azure-node-preview
+[freesub]: https://azure.microsoft.com/free/
+[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/reservations/arm-reservations/README.md
diff --git a/sdk/reservations/arm-reservations/samples/v7/javascript/appliedReservationList.js b/sdk/reservations/arm-reservations/samples/v7/javascript/appliedReservationList.js
new file mode 100644
index 00000000000..44c3e16cdbe
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/javascript/appliedReservationList.js
@@ -0,0 +1,28 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Get applicable `Reservation`s that are applied to this subscription or a resource group under this subscription.
+ *
+ * @summary Get applicable `Reservation`s that are applied to this subscription or a resource group under this subscription.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetAppliedReservations.json
+ */
+const { AzureReservationAPI } = require("@azure/arm-reservations");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function appliedReservationList() {
+ const subscriptionId = "23bc208b-083f-4901-ae85-4f98c0c3b4b6";
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.getAppliedReservationList(subscriptionId);
+ console.log(result);
+}
+
+appliedReservationList().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/javascript/availableScopes.js b/sdk/reservations/arm-reservations/samples/v7/javascript/availableScopes.js
new file mode 100644
index 00000000000..b07e992939b
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/javascript/availableScopes.js
@@ -0,0 +1,40 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Get Available Scopes for `Reservation`.
+
+ *
+ * @summary Get Available Scopes for `Reservation`.
+
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetAvailableScope.json
+ */
+const { AzureReservationAPI } = require("@azure/arm-reservations");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function availableScopes() {
+ const reservationOrderId = "276e7ae4-84d0-4da6-ab4b-d6b94f3557da";
+ const reservationId = "356e7ae4-84d0-4da6-ab4b-d6b94f3557da";
+ const body = {
+ properties: {
+ scopes: ["/subscriptions/efc7c997-7700-4a74-b731-55aec16c15e9"],
+ },
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.reservation.beginAvailableScopesAndWait(
+ reservationOrderId,
+ reservationId,
+ body
+ );
+ console.log(result);
+}
+
+availableScopes().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/javascript/calculateExchange.js b/sdk/reservations/arm-reservations/samples/v7/javascript/calculateExchange.js
new file mode 100644
index 00000000000..c24f79b5344
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/javascript/calculateExchange.js
@@ -0,0 +1,56 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Calculates price for exchanging `Reservations` if there are no policy errors.
+
+ *
+ * @summary Calculates price for exchanging `Reservations` if there are no policy errors.
+
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/CalculateExchange.json
+ */
+const { AzureReservationAPI } = require("@azure/arm-reservations");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function calculateExchange() {
+ const body = {
+ properties: {
+ reservationsToExchange: [
+ {
+ quantity: 1,
+ reservationId:
+ "/providers/microsoft.capacity/reservationOrders/1f14354c-dc12-4c8d-8090-6f295a3a34aa/reservations/c8c926bd-fc5d-4e29-9d43-b68340ac23a6",
+ },
+ ],
+ reservationsToPurchase: [
+ {
+ appliedScopeType: "Shared",
+ appliedScopes: [],
+ billingPlan: "Upfront",
+ billingScopeId: "/subscriptions/ed3a1871-612d-abcd-a849-c2542a68be83",
+ displayName: "testDisplayName",
+ location: "westus",
+ quantity: 1,
+ renew: false,
+ reservedResourceProperties: { instanceFlexibility: "On" },
+ reservedResourceType: "VirtualMachines",
+ sku: { name: "Standard_B1ls" },
+ term: "P1Y",
+ },
+ ],
+ },
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.calculateExchange.beginPostAndWait(body);
+ console.log(result);
+}
+
+calculateExchange().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/javascript/catalog.js b/sdk/reservations/arm-reservations/samples/v7/javascript/catalog.js
new file mode 100644
index 00000000000..63512231cea
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/javascript/catalog.js
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Get the regions and skus that are available for RI purchase for the specified Azure subscription.
+ *
+ * @summary Get the regions and skus that are available for RI purchase for the specified Azure subscription.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetCatalog.json
+ */
+const { AzureReservationAPI } = require("@azure/arm-reservations");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function catalog() {
+ const subscriptionId = "23bc208b-083f-4901-ae85-4f98c0c3b4b6";
+ const reservedResourceType = "VirtualMachines";
+ const location = "eastus";
+ const options = {
+ reservedResourceType: reservedResourceType,
+ location: location,
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.getCatalog(subscriptionId, options);
+ console.log(result);
+}
+
+catalog().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/javascript/changeDirectory.js b/sdk/reservations/arm-reservations/samples/v7/javascript/changeDirectory.js
new file mode 100644
index 00000000000..fec4c0a154d
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/javascript/changeDirectory.js
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Change directory (tenant) of `ReservationOrder` and all `Reservation` under it to specified tenant id
+ *
+ * @summary Change directory (tenant) of `ReservationOrder` and all `Reservation` under it to specified tenant id
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/ChangeDirectoryReservationOrder.json
+ */
+const { AzureReservationAPI } = require("@azure/arm-reservations");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function changeDirectory() {
+ const reservationOrderId = "a075419f-44cc-497f-b68a-14ee811d48b9";
+ const body = {
+ destinationTenantId: "906655ea-30be-4587-9d12-b50e077b0f32",
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.reservationOrder.changeDirectory(reservationOrderId, body);
+ console.log(result);
+}
+
+changeDirectory().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/javascript/exchange.js b/sdk/reservations/arm-reservations/samples/v7/javascript/exchange.js
new file mode 100644
index 00000000000..0bfdc00e006
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/javascript/exchange.js
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.
+
+ *
+ * @summary Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.
+
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/Exchange.json
+ */
+const { AzureReservationAPI } = require("@azure/arm-reservations");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function exchange() {
+ const body = {
+ properties: { sessionId: "66e2ac8f-439e-4345-8235-6fef07608081" },
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.exchange.beginPostAndWait(body);
+ console.log(result);
+}
+
+exchange().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/javascript/getOperations.js b/sdk/reservations/arm-reservations/samples/v7/javascript/getOperations.js
new file mode 100644
index 00000000000..0e92d5905b7
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/javascript/getOperations.js
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to List all the operations.
+ *
+ * @summary List all the operations.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetOperations.json
+ */
+const { AzureReservationAPI } = require("@azure/arm-reservations");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function getOperations() {
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const resArray = new Array();
+ for await (let item of client.operation.list()) {
+ resArray.push(item);
+ }
+ console.log(resArray);
+}
+
+getOperations().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/javascript/getReservation.js b/sdk/reservations/arm-reservations/samples/v7/javascript/getReservation.js
new file mode 100644
index 00000000000..c9395acd7ec
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/javascript/getReservation.js
@@ -0,0 +1,28 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Get the details of the `ReservationOrder`.
+ *
+ * @summary Get the details of the `ReservationOrder`.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetReservationOrderDetails.json
+ */
+const { AzureReservationAPI } = require("@azure/arm-reservations");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function getReservation() {
+ const reservationOrderId = "a075419f-44cc-497f-b68a-14ee811d48b9";
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.reservationOrder.get(reservationOrderId);
+ console.log(result);
+}
+
+getReservation().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/javascript/getReservationWithExpandPayments.js b/sdk/reservations/arm-reservations/samples/v7/javascript/getReservationWithExpandPayments.js
new file mode 100644
index 00000000000..1690ca85fa9
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/javascript/getReservationWithExpandPayments.js
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Get the details of the `ReservationOrder`.
+ *
+ * @summary Get the details of the `ReservationOrder`.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetReservationOrderDetailsWithExpandPlanInformation.json
+ */
+const { AzureReservationAPI } = require("@azure/arm-reservations");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function getReservationWithExpandPayments() {
+ const reservationOrderId = "a075419f-44cc-497f-b68a-14ee811d48b9";
+ const expand = "schedule";
+ const options = { expand: expand };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.reservationOrder.get(reservationOrderId, options);
+ console.log(result);
+}
+
+getReservationWithExpandPayments().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/javascript/merge.js b/sdk/reservations/arm-reservations/samples/v7/javascript/merge.js
new file mode 100644
index 00000000000..7ec364f0b0e
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/javascript/merge.js
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Merge the specified `Reservation`s into a new `Reservation`. The two `Reservation`s being merged must have same properties.
+ *
+ * @summary Merge the specified `Reservation`s into a new `Reservation`. The two `Reservation`s being merged must have same properties.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/MergeReservations.json
+ */
+const { AzureReservationAPI } = require("@azure/arm-reservations");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function merge() {
+ const reservationOrderId = "276e7ae4-84d0-4da6-ab4b-d6b94f3557da";
+ const body = {
+ sources: [
+ "/providers/Microsoft.Capacity/reservationOrders/c0565a8a-4491-4e77-b07b-5e6d66718e1c/reservations/cea04232-932e-47db-acb5-e29a945ecc73",
+ "/providers/Microsoft.Capacity/reservationOrders/c0565a8a-4491-4e77-b07b-5e6d66718e1c/reservations/5bf54dc7-dacd-4f46-a16b-7b78f4a59799",
+ ],
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.reservation.beginMergeAndWait(reservationOrderId, body);
+ console.log(result);
+}
+
+merge().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/javascript/package.json b/sdk/reservations/arm-reservations/samples/v7/javascript/package.json
new file mode 100644
index 00000000000..bce41bcb808
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/javascript/package.json
@@ -0,0 +1,32 @@
+{
+ "name": "azure-arm-reservations-samples-js",
+ "private": true,
+ "version": "1.0.0",
+ "description": " client library samples for JavaScript",
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/Azure/azure-sdk-for-js.git",
+ "directory": "sdk/reservations/arm-reservations"
+ },
+ "keywords": [
+ "node",
+ "azure",
+ "typescript",
+ "browser",
+ "isomorphic"
+ ],
+ "author": "Microsoft Corporation",
+ "license": "MIT",
+ "bugs": {
+ "url": "https://github.com/Azure/azure-sdk-for-js/issues"
+ },
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/reservations/arm-reservations",
+ "dependencies": {
+ "@azure/arm-reservations": "latest",
+ "dotenv": "latest",
+ "@azure/identity": "^2.0.1"
+ }
+}
diff --git a/sdk/reservations/arm-reservations/samples/v7/javascript/patchReservation.js b/sdk/reservations/arm-reservations/samples/v7/javascript/patchReservation.js
new file mode 100644
index 00000000000..4e63f2d9cb8
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/javascript/patchReservation.js
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Updates the applied scopes of the `Reservation`.
+ *
+ * @summary Updates the applied scopes of the `Reservation`.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/UpdateReservation.json
+ */
+const { AzureReservationAPI } = require("@azure/arm-reservations");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function patchReservation() {
+ const reservationOrderId = "276e7ae4-84d0-4da6-ab4b-d6b94f3557da";
+ const reservationId = "6ef59113-3482-40da-8d79-787f823e34bc";
+ const parameters = {
+ appliedScopeType: "Shared",
+ instanceFlexibility: "Off",
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.reservation.beginUpdateAndWait(
+ reservationOrderId,
+ reservationId,
+ parameters
+ );
+ console.log(result);
+}
+
+patchReservation().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/javascript/purchase.js b/sdk/reservations/arm-reservations/samples/v7/javascript/purchase.js
new file mode 100644
index 00000000000..9ffe470eff7
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/javascript/purchase.js
@@ -0,0 +1,42 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Purchase `ReservationOrder` and create resource under the specified URI.
+ *
+ * @summary Purchase `ReservationOrder` and create resource under the specified URI.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/PurchaseReservationOrder.json
+ */
+const { AzureReservationAPI } = require("@azure/arm-reservations");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function purchase() {
+ const reservationOrderId = "a075419f-44cc-497f-b68a-14ee811d48b9";
+ const body = {
+ appliedScopeType: "Shared",
+ appliedScopes: [],
+ billingPlan: "Monthly",
+ billingScopeId: "/subscriptions/ed3a1871-612d-abcd-a849-c2542a68be83",
+ displayName: "TestReservationOrder",
+ location: "westus",
+ quantity: 1,
+ renew: false,
+ reservedResourceProperties: { instanceFlexibility: "On" },
+ reservedResourceType: "VirtualMachines",
+ sku: { name: "standard_D1" },
+ term: "P1Y",
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.reservationOrder.beginPurchaseAndWait(reservationOrderId, body);
+ console.log(result);
+}
+
+purchase().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/javascript/quotaRequestFailed.js b/sdk/reservations/arm-reservations/samples/v7/javascript/quotaRequestFailed.js
new file mode 100644
index 00000000000..3f1910d3b73
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/javascript/quotaRequestFailed.js
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter.
+ *
+ * @summary For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusFailed.json
+ */
+const { AzureReservationAPI } = require("@azure/arm-reservations");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function quotaRequestFailed() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const providerId = "Microsoft.Compute";
+ const location = "eastus";
+ const id = "2B5C8515-37D8-4B6A-879B-CD641A2CF605";
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.quotaRequestStatus.get(subscriptionId, providerId, location, id);
+ console.log(result);
+}
+
+quotaRequestFailed().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/javascript/quotaRequestHistory.js b/sdk/reservations/arm-reservations/samples/v7/javascript/quotaRequestHistory.js
new file mode 100644
index 00000000000..8dd93fd16d1
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/javascript/quotaRequestHistory.js
@@ -0,0 +1,33 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to For the specified Azure region (location), subscription, and resource provider, get the history of the quota requests for the past year. To select specific quota requests, use the oData filter.
+ *
+ * @summary For the specified Azure region (location), subscription, and resource provider, get the history of the quota requests for the past year. To select specific quota requests, use the oData filter.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestsHistory.json
+ */
+const { AzureReservationAPI } = require("@azure/arm-reservations");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function quotaRequestHistory() {
+ const subscriptionId = "3f75fdf7-977e-44ad-990d-99f14f0f299f";
+ const providerId = "Microsoft.Compute";
+ const location = "eastus";
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const resArray = new Array();
+ for await (let item of client.quotaRequestStatus.list(subscriptionId, providerId, location)) {
+ resArray.push(item);
+ }
+ console.log(resArray);
+}
+
+quotaRequestHistory().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/javascript/quotaRequestInProgress.js b/sdk/reservations/arm-reservations/samples/v7/javascript/quotaRequestInProgress.js
new file mode 100644
index 00000000000..a22ca0ad5f4
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/javascript/quotaRequestInProgress.js
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter.
+ *
+ * @summary For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusInProgress.json
+ */
+const { AzureReservationAPI } = require("@azure/arm-reservations");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function quotaRequestInProgress() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const providerId = "Microsoft.Compute";
+ const location = "eastus";
+ const id = "2B5C8515-37D8-4B6A-879B-CD641A2CF605";
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.quotaRequestStatus.get(subscriptionId, providerId, location, id);
+ console.log(result);
+}
+
+quotaRequestInProgress().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/javascript/quotaRequestStatus.js b/sdk/reservations/arm-reservations/samples/v7/javascript/quotaRequestStatus.js
new file mode 100644
index 00000000000..41a2157cb55
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/javascript/quotaRequestStatus.js
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter.
+ *
+ * @summary For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusById.json
+ */
+const { AzureReservationAPI } = require("@azure/arm-reservations");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function quotaRequestStatus() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const providerId = "Microsoft.Compute";
+ const location = "eastus";
+ const id = "2B5C8515-37D8-4B6A-879B-CD641A2CF605";
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.quotaRequestStatus.get(subscriptionId, providerId, location, id);
+ console.log(result);
+}
+
+quotaRequestStatus().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/javascript/quotasListUsagesForCompute.js b/sdk/reservations/arm-reservations/samples/v7/javascript/quotasListUsagesForCompute.js
new file mode 100644
index 00000000000..ff9536b8187
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/javascript/quotasListUsagesForCompute.js
@@ -0,0 +1,33 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Gets a list of current quotas (service limits) and usage for all resources. The response from the list quota operation can be leveraged to request quota updates.
+ *
+ * @summary Gets a list of current quotas (service limits) and usage for all resources. The response from the list quota operation can be leveraged to request quota updates.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeUsages.json
+ */
+const { AzureReservationAPI } = require("@azure/arm-reservations");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function quotasListUsagesForCompute() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const providerId = "Microsoft.Compute";
+ const location = "eastus";
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const resArray = new Array();
+ for await (let item of client.quota.list(subscriptionId, providerId, location)) {
+ resArray.push(item);
+ }
+ console.log(resArray);
+}
+
+quotasListUsagesForCompute().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/javascript/quotasListUsagesMachineLearningServices.js b/sdk/reservations/arm-reservations/samples/v7/javascript/quotasListUsagesMachineLearningServices.js
new file mode 100644
index 00000000000..efc5b31c6f3
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/javascript/quotasListUsagesMachineLearningServices.js
@@ -0,0 +1,33 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Gets a list of current quotas (service limits) and usage for all resources. The response from the list quota operation can be leveraged to request quota updates.
+ *
+ * @summary Gets a list of current quotas (service limits) and usage for all resources. The response from the list quota operation can be leveraged to request quota updates.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getMachineLearningServicesUsages.json
+ */
+const { AzureReservationAPI } = require("@azure/arm-reservations");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function quotasListUsagesMachineLearningServices() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const providerId = "Microsoft.MachineLearningServices";
+ const location = "eastus";
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const resArray = new Array();
+ for await (let item of client.quota.list(subscriptionId, providerId, location)) {
+ resArray.push(item);
+ }
+ console.log(resArray);
+}
+
+quotasListUsagesMachineLearningServices().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/javascript/quotasRequestForCompute.js b/sdk/reservations/arm-reservations/samples/v7/javascript/quotasRequestForCompute.js
new file mode 100644
index 00000000000..8f24c1e62e9
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/javascript/quotasRequestForCompute.js
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Get the current quota (service limit) and usage of a resource. You can use the response from the GET operation to submit quota update request.
+ *
+ * @summary Get the current quota (service limit) and usage of a resource. You can use the response from the GET operation to submit quota update request.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeOneSkuUsages.json
+ */
+const { AzureReservationAPI } = require("@azure/arm-reservations");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function quotasRequestForCompute() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const providerId = "Microsoft.Compute";
+ const location = "eastus";
+ const resourceName = "standardNDSFamily";
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.quota.get(subscriptionId, providerId, location, resourceName);
+ console.log(result);
+}
+
+quotasRequestForCompute().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/javascript/quotasRequestPatchForCompute.js b/sdk/reservations/arm-reservations/samples/v7/javascript/quotasRequestPatchForCompute.js
new file mode 100644
index 00000000000..b9f1db32105
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/javascript/quotasRequestPatchForCompute.js
@@ -0,0 +1,58 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Update the quota (service limits) of this resource to the requested value.
+
+ • To get the quota information for specific resource, send a GET request.
+
+ • To increase the quota, update the limit field from the GET response to a new value.
+
+ • To update the quota value, submit the JSON response to the quota request API to update the quota.
+ • To update the quota. use the PATCH operation.
+ *
+ * @summary Update the quota (service limits) of this resource to the requested value.
+
+ • To get the quota information for specific resource, send a GET request.
+
+ • To increase the quota, update the limit field from the GET response to a new value.
+
+ • To update the quota value, submit the JSON response to the quota request API to update the quota.
+ • To update the quota. use the PATCH operation.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/patchComputeQuotaRequest.json
+ */
+const { AzureReservationAPI } = require("@azure/arm-reservations");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function quotasRequestPatchForCompute() {
+ const subscriptionId = "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3";
+ const providerId = "Microsoft.Compute";
+ const location = "eastus";
+ const resourceName = "standardFSv2Family";
+ const createQuotaRequest = {
+ properties: {
+ name: { value: "standardFSv2Family" },
+ limit: 200,
+ unit: "Count",
+ },
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.quota.beginUpdateAndWait(
+ subscriptionId,
+ providerId,
+ location,
+ resourceName,
+ createQuotaRequest
+ );
+ console.log(result);
+}
+
+quotasRequestPatchForCompute().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/javascript/quotasRequestPutForCompute.js b/sdk/reservations/arm-reservations/samples/v7/javascript/quotasRequestPutForCompute.js
new file mode 100644
index 00000000000..c28705b2396
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/javascript/quotasRequestPutForCompute.js
@@ -0,0 +1,60 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Create or update the quota (service limits) of a resource to the requested value.
+ Steps:
+
+ 1. Make the Get request to get the quota information for specific resource.
+
+ 2. To increase the quota, update the limit field in the response from Get request to new value.
+
+ 3. Submit the JSON to the quota request API to update the quota.
+ The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.
+ *
+ * @summary Create or update the quota (service limits) of a resource to the requested value.
+ Steps:
+
+ 1. Make the Get request to get the quota information for specific resource.
+
+ 2. To increase the quota, update the limit field in the response from Get request to new value.
+
+ 3. Submit the JSON to the quota request API to update the quota.
+ The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putComputeOneSkuQuotaRequest.json
+ */
+const { AzureReservationAPI } = require("@azure/arm-reservations");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function quotasRequestPutForCompute() {
+ const subscriptionId = "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3";
+ const providerId = "Microsoft.Compute";
+ const location = "eastus";
+ const resourceName = "standardFSv2Family";
+ const createQuotaRequest = {
+ properties: {
+ name: { value: "standardFSv2Family" },
+ limit: 200,
+ unit: "Count",
+ },
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.quota.beginCreateOrUpdateAndWait(
+ subscriptionId,
+ providerId,
+ location,
+ resourceName,
+ createQuotaRequest
+ );
+ console.log(result);
+}
+
+quotasRequestPutForCompute().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/javascript/quotasRequestPutForMachineLearningServicesDedicatedResource.js b/sdk/reservations/arm-reservations/samples/v7/javascript/quotasRequestPutForMachineLearningServicesDedicatedResource.js
new file mode 100644
index 00000000000..c5432f285be
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/javascript/quotasRequestPutForMachineLearningServicesDedicatedResource.js
@@ -0,0 +1,61 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Create or update the quota (service limits) of a resource to the requested value.
+ Steps:
+
+ 1. Make the Get request to get the quota information for specific resource.
+
+ 2. To increase the quota, update the limit field in the response from Get request to new value.
+
+ 3. Submit the JSON to the quota request API to update the quota.
+ The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.
+ *
+ * @summary Create or update the quota (service limits) of a resource to the requested value.
+ Steps:
+
+ 1. Make the Get request to get the quota information for specific resource.
+
+ 2. To increase the quota, update the limit field in the response from Get request to new value.
+
+ 3. Submit the JSON to the quota request API to update the quota.
+ The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestDedicated.json
+ */
+const { AzureReservationAPI } = require("@azure/arm-reservations");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function quotasRequestPutForMachineLearningServicesDedicatedResource() {
+ const subscriptionId = "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3";
+ const providerId = "Microsoft.MachineLearningServices";
+ const location = "eastus";
+ const resourceName = "StandardDv2Family";
+ const createQuotaRequest = {
+ properties: {
+ name: { value: "StandardDv2Family" },
+ limit: 200,
+ resourceType: "dedicated",
+ unit: "Count",
+ },
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.quota.beginCreateOrUpdateAndWait(
+ subscriptionId,
+ providerId,
+ location,
+ resourceName,
+ createQuotaRequest
+ );
+ console.log(result);
+}
+
+quotasRequestPutForMachineLearningServicesDedicatedResource().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/javascript/quotasRequestPutForMachineLearningServicesLowPriorityResource.js b/sdk/reservations/arm-reservations/samples/v7/javascript/quotasRequestPutForMachineLearningServicesLowPriorityResource.js
new file mode 100644
index 00000000000..afd4c712eb1
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/javascript/quotasRequestPutForMachineLearningServicesLowPriorityResource.js
@@ -0,0 +1,61 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Create or update the quota (service limits) of a resource to the requested value.
+ Steps:
+
+ 1. Make the Get request to get the quota information for specific resource.
+
+ 2. To increase the quota, update the limit field in the response from Get request to new value.
+
+ 3. Submit the JSON to the quota request API to update the quota.
+ The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.
+ *
+ * @summary Create or update the quota (service limits) of a resource to the requested value.
+ Steps:
+
+ 1. Make the Get request to get the quota information for specific resource.
+
+ 2. To increase the quota, update the limit field in the response from Get request to new value.
+
+ 3. Submit the JSON to the quota request API to update the quota.
+ The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestLowPriority.json
+ */
+const { AzureReservationAPI } = require("@azure/arm-reservations");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function quotasRequestPutForMachineLearningServicesLowPriorityResource() {
+ const subscriptionId = "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3";
+ const providerId = "Microsoft.MachineLearningServices";
+ const location = "eastus";
+ const resourceName = "TotalLowPriorityCores";
+ const createQuotaRequest = {
+ properties: {
+ name: { value: "TotalLowPriorityCores" },
+ limit: 200,
+ resourceType: "lowPriority",
+ unit: "Count",
+ },
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.quota.beginCreateOrUpdateAndWait(
+ subscriptionId,
+ providerId,
+ location,
+ resourceName,
+ createQuotaRequest
+ );
+ console.log(result);
+}
+
+quotasRequestPutForMachineLearningServicesLowPriorityResource().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/javascript/reservationList.js b/sdk/reservations/arm-reservations/samples/v7/javascript/reservationList.js
new file mode 100644
index 00000000000..5c7c1aceea2
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/javascript/reservationList.js
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to List `Reservation`s within a single `ReservationOrder`.
+ *
+ * @summary List `Reservation`s within a single `ReservationOrder`.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetReservationsFromOrder.json
+ */
+const { AzureReservationAPI } = require("@azure/arm-reservations");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function reservationList() {
+ const reservationOrderId = "276e7ae4-84d0-4da6-ab4b-d6b94f3557da";
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const resArray = new Array();
+ for await (let item of client.reservation.list(reservationOrderId)) {
+ resArray.push(item);
+ }
+ console.log(resArray);
+}
+
+reservationList().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/javascript/reservationOrderList.js b/sdk/reservations/arm-reservations/samples/v7/javascript/reservationOrderList.js
new file mode 100644
index 00000000000..90793e51ef3
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/javascript/reservationOrderList.js
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to List of all the `ReservationOrder`s that the user has access to in the current tenant.
+ *
+ * @summary List of all the `ReservationOrder`s that the user has access to in the current tenant.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetReservationOrders.json
+ */
+const { AzureReservationAPI } = require("@azure/arm-reservations");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function reservationOrderList() {
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const resArray = new Array();
+ for await (let item of client.reservationOrder.list()) {
+ resArray.push(item);
+ }
+ console.log(resArray);
+}
+
+reservationOrderList().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/javascript/reservationRevisions.js b/sdk/reservations/arm-reservations/samples/v7/javascript/reservationRevisions.js
new file mode 100644
index 00000000000..373b76c13d8
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/javascript/reservationRevisions.js
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to List of all the revisions for the `Reservation`.
+ *
+ * @summary List of all the revisions for the `Reservation`.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetReservationRevisions.json
+ */
+const { AzureReservationAPI } = require("@azure/arm-reservations");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function reservationRevisions() {
+ const reservationId = "6ef59113-3482-40da-8d79-787f823e34bc";
+ const reservationOrderId = "276e7ae4-84d0-4da6-ab4b-d6b94f3557da";
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const resArray = new Array();
+ for await (let item of client.reservation.listRevisions(reservationId, reservationOrderId)) {
+ resArray.push(item);
+ }
+ console.log(resArray);
+}
+
+reservationRevisions().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/javascript/sample.env b/sdk/reservations/arm-reservations/samples/v7/javascript/sample.env
new file mode 100644
index 00000000000..672847a3fea
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/javascript/sample.env
@@ -0,0 +1,4 @@
+# App registration secret for AAD authentication
+AZURE_CLIENT_SECRET=
+AZURE_CLIENT_ID=
+AZURE_TENANT_ID=
\ No newline at end of file
diff --git a/sdk/reservations/arm-reservations/samples/v7/javascript/split.js b/sdk/reservations/arm-reservations/samples/v7/javascript/split.js
new file mode 100644
index 00000000000..e0d0c55ae60
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/javascript/split.js
@@ -0,0 +1,33 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Split a `Reservation` into two `Reservation`s with specified quantity distribution.
+ *
+ * @summary Split a `Reservation` into two `Reservation`s with specified quantity distribution.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/SplitReservation.json
+ */
+const { AzureReservationAPI } = require("@azure/arm-reservations");
+const { DefaultAzureCredential } = require("@azure/identity");
+
+async function split() {
+ const reservationOrderId = "276e7ae4-84d0-4da6-ab4b-d6b94f3557da";
+ const body = {
+ quantities: [1, 2],
+ reservationId:
+ "/providers/Microsoft.Capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/bcae77cd-3119-4766-919f-b50d36c75c7a",
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.reservation.beginSplitAndWait(reservationOrderId, body);
+ console.log(result);
+}
+
+split().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/typescript/README.md b/sdk/reservations/arm-reservations/samples/v7/typescript/README.md
new file mode 100644
index 00000000000..bfb002dcbc1
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/typescript/README.md
@@ -0,0 +1,115 @@
+# client library samples for TypeScript
+
+These sample programs show how to use the TypeScript client libraries for in some common scenarios.
+
+| **File Name** | **Description** |
+| --------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
+| [appliedReservationList.ts][appliedreservationlist] | Get applicable `Reservation`s that are applied to this subscription or a resource group under this subscription. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetAppliedReservations.json |
+| [availableScopes.ts][availablescopes] | Get Available Scopes for `Reservation`. //@@TS-MAGIC-NEWLINE@@ x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetAvailableScope.json |
+| [calculateExchange.ts][calculateexchange] | Calculates price for exchanging `Reservations` if there are no policy errors. //@@TS-MAGIC-NEWLINE@@ x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/CalculateExchange.json |
+| [catalog.ts][catalog] | Get the regions and skus that are available for RI purchase for the specified Azure subscription. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetCatalog.json |
+| [changeDirectory.ts][changedirectory] | Change directory (tenant) of `ReservationOrder` and all `Reservation` under it to specified tenant id x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/ChangeDirectoryReservationOrder.json |
+| [exchange.ts][exchange] | Returns one or more `Reservations` in exchange for one or more `Reservation` purchases. //@@TS-MAGIC-NEWLINE@@ x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/Exchange.json |
+| [getOperations.ts][getoperations] | List all the operations. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetOperations.json |
+| [getReservation.ts][getreservation] | Get the details of the `ReservationOrder`. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetReservationOrderDetails.json |
+| [getReservationWithExpandPayments.ts][getreservationwithexpandpayments] | Get the details of the `ReservationOrder`. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetReservationOrderDetailsWithExpandPlanInformation.json |
+| [merge.ts][merge] | Merge the specified `Reservation`s into a new `Reservation`. The two `Reservation`s being merged must have same properties. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/MergeReservations.json |
+| [patchReservation.ts][patchreservation] | Updates the applied scopes of the `Reservation`. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/UpdateReservation.json |
+| [purchase.ts][purchase] | Purchase `ReservationOrder` and create resource under the specified URI. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/PurchaseReservationOrder.json |
+| [quotaRequestFailed.ts][quotarequestfailed] | For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusFailed.json |
+| [quotaRequestHistory.ts][quotarequesthistory] | For the specified Azure region (location), subscription, and resource provider, get the history of the quota requests for the past year. To select specific quota requests, use the oData filter. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestsHistory.json |
+| [quotaRequestInProgress.ts][quotarequestinprogress] | For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusInProgress.json |
+| [quotaRequestStatus.ts][quotarequeststatus] | For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusById.json |
+| [quotasListUsagesForCompute.ts][quotaslistusagesforcompute] | Gets a list of current quotas (service limits) and usage for all resources. The response from the list quota operation can be leveraged to request quota updates. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeUsages.json |
+| [quotasListUsagesMachineLearningServices.ts][quotaslistusagesmachinelearningservices] | Gets a list of current quotas (service limits) and usage for all resources. The response from the list quota operation can be leveraged to request quota updates. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getMachineLearningServicesUsages.json |
+| [quotasRequestForCompute.ts][quotasrequestforcompute] | Get the current quota (service limit) and usage of a resource. You can use the response from the GET operation to submit quota update request. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeOneSkuUsages.json |
+| [quotasRequestPatchForCompute.ts][quotasrequestpatchforcompute] | Update the quota (service limits) of this resource to the requested value. //@@TS-MAGIC-NEWLINE@@ • To get the quota information for specific resource, send a GET request. //@@TS-MAGIC-NEWLINE@@ • To increase the quota, update the limit field from the GET response to a new value. //@@TS-MAGIC-NEWLINE@@ • To update the quota value, submit the JSON response to the quota request API to update the quota. • To update the quota. use the PATCH operation. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/patchComputeQuotaRequest.json |
+| [quotasRequestPutForCompute.ts][quotasrequestputforcompute] | Create or update the quota (service limits) of a resource to the requested value. Steps: //@@TS-MAGIC-NEWLINE@@ 1. Make the Get request to get the quota information for specific resource. //@@TS-MAGIC-NEWLINE@@ 2. To increase the quota, update the limit field in the response from Get request to new value. //@@TS-MAGIC-NEWLINE@@ 3. Submit the JSON to the quota request API to update the quota. The Create quota request may be constructed as follows. The PUT operation can be used to update the quota. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putComputeOneSkuQuotaRequest.json |
+| [quotasRequestPutForMachineLearningServicesDedicatedResource.ts][quotasrequestputformachinelearningservicesdedicatedresource] | Create or update the quota (service limits) of a resource to the requested value. Steps: //@@TS-MAGIC-NEWLINE@@ 1. Make the Get request to get the quota information for specific resource. //@@TS-MAGIC-NEWLINE@@ 2. To increase the quota, update the limit field in the response from Get request to new value. //@@TS-MAGIC-NEWLINE@@ 3. Submit the JSON to the quota request API to update the quota. The Create quota request may be constructed as follows. The PUT operation can be used to update the quota. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestDedicated.json |
+| [quotasRequestPutForMachineLearningServicesLowPriorityResource.ts][quotasrequestputformachinelearningserviceslowpriorityresource] | Create or update the quota (service limits) of a resource to the requested value. Steps: //@@TS-MAGIC-NEWLINE@@ 1. Make the Get request to get the quota information for specific resource. //@@TS-MAGIC-NEWLINE@@ 2. To increase the quota, update the limit field in the response from Get request to new value. //@@TS-MAGIC-NEWLINE@@ 3. Submit the JSON to the quota request API to update the quota. The Create quota request may be constructed as follows. The PUT operation can be used to update the quota. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestLowPriority.json |
+| [reservationList.ts][reservationlist] | List `Reservation`s within a single `ReservationOrder`. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetReservationsFromOrder.json |
+| [reservationOrderList.ts][reservationorderlist] | List of all the `ReservationOrder`s that the user has access to in the current tenant. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetReservationOrders.json |
+| [reservationRevisions.ts][reservationrevisions] | List of all the revisions for the `Reservation`. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetReservationRevisions.json |
+| [split.ts][split] | Split a `Reservation` into two `Reservation`s with specified quantity distribution. x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/SplitReservation.json |
+
+## Prerequisites
+
+The sample programs are compatible with [LTS versions of Node.js](https://nodejs.org/about/releases/).
+
+Before running the samples in Node, they must be compiled to JavaScript using the TypeScript compiler. For more information on TypeScript, see the [TypeScript documentation][typescript]. Install the TypeScript compiler using:
+
+```bash
+npm install -g typescript
+```
+
+You need [an Azure subscription][freesub] to run these sample programs.
+
+Samples retrieve credentials to access the service endpoint from environment variables. Alternatively, edit the source code to include the appropriate credentials. See each individual sample for details on which environment variables/credentials it requires to function.
+
+Adapting the samples to run in the browser may require some additional consideration. For details, please see the [package README][package].
+
+## Setup
+
+To run the samples using the published version of the package:
+
+1. Install the dependencies using `npm`:
+
+```bash
+npm install
+```
+
+2. Compile the samples:
+
+```bash
+npm run build
+```
+
+3. Edit the file `sample.env`, adding the correct credentials to access the Azure service and run the samples. Then rename the file from `sample.env` to just `.env`. The sample programs will read this file automatically.
+
+4. Run whichever samples you like (note that some samples may require additional setup, see the table above):
+
+```bash
+node dist/appliedReservationList.js
+```
+
+Alternatively, run a single sample with the correct environment variables set (setting up the `.env` file is not required if you do this), for example (cross-platform):
+
+```bash
+npx cross-env node dist/appliedReservationList.js
+```
+
+## Next Steps
+
+Take a look at our [API Documentation][apiref] for more information about the APIs that are available in the clients.
+
+[appliedreservationlist]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/typescript/src/appliedReservationList.ts
+[availablescopes]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/typescript/src/availableScopes.ts
+[calculateexchange]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/typescript/src/calculateExchange.ts
+[catalog]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/typescript/src/catalog.ts
+[changedirectory]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/typescript/src/changeDirectory.ts
+[exchange]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/typescript/src/exchange.ts
+[getoperations]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/typescript/src/getOperations.ts
+[getreservation]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/typescript/src/getReservation.ts
+[getreservationwithexpandpayments]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/typescript/src/getReservationWithExpandPayments.ts
+[merge]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/typescript/src/merge.ts
+[patchreservation]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/typescript/src/patchReservation.ts
+[purchase]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/typescript/src/purchase.ts
+[quotarequestfailed]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotaRequestFailed.ts
+[quotarequesthistory]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotaRequestHistory.ts
+[quotarequestinprogress]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotaRequestInProgress.ts
+[quotarequeststatus]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotaRequestStatus.ts
+[quotaslistusagesforcompute]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasListUsagesForCompute.ts
+[quotaslistusagesmachinelearningservices]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasListUsagesMachineLearningServices.ts
+[quotasrequestforcompute]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasRequestForCompute.ts
+[quotasrequestpatchforcompute]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasRequestPatchForCompute.ts
+[quotasrequestputforcompute]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasRequestPutForCompute.ts
+[quotasrequestputformachinelearningservicesdedicatedresource]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasRequestPutForMachineLearningServicesDedicatedResource.ts
+[quotasrequestputformachinelearningserviceslowpriorityresource]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasRequestPutForMachineLearningServicesLowPriorityResource.ts
+[reservationlist]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/typescript/src/reservationList.ts
+[reservationorderlist]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/typescript/src/reservationOrderList.ts
+[reservationrevisions]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/typescript/src/reservationRevisions.ts
+[split]: https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/reservations/arm-reservations/samples/v7/typescript/src/split.ts
+[apiref]: https://docs.microsoft.com/javascript/api/@azure/arm-reservations?view=azure-node-preview
+[freesub]: https://azure.microsoft.com/free/
+[package]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/reservations/arm-reservations/README.md
+[typescript]: https://www.typescriptlang.org/docs/home.html
diff --git a/sdk/reservations/arm-reservations/samples/v7/typescript/package.json b/sdk/reservations/arm-reservations/samples/v7/typescript/package.json
new file mode 100644
index 00000000000..4ca8d3e1b55
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/typescript/package.json
@@ -0,0 +1,41 @@
+{
+ "name": "azure-arm-reservations-samples-ts",
+ "private": true,
+ "version": "1.0.0",
+ "description": " client library samples for TypeScript",
+ "engines": {
+ "node": ">=12.0.0"
+ },
+ "scripts": {
+ "build": "tsc",
+ "prebuild": "rimraf dist/"
+ },
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/Azure/azure-sdk-for-js.git",
+ "directory": "sdk/reservations/arm-reservations"
+ },
+ "keywords": [
+ "node",
+ "azure",
+ "typescript",
+ "browser",
+ "isomorphic"
+ ],
+ "author": "Microsoft Corporation",
+ "license": "MIT",
+ "bugs": {
+ "url": "https://github.com/Azure/azure-sdk-for-js/issues"
+ },
+ "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/reservations/arm-reservations",
+ "dependencies": {
+ "@azure/arm-reservations": "latest",
+ "dotenv": "latest",
+ "@azure/identity": "^2.0.1"
+ },
+ "devDependencies": {
+ "@types/node": "^12.0.0",
+ "typescript": "~4.4.0",
+ "rimraf": "latest"
+ }
+}
diff --git a/sdk/reservations/arm-reservations/samples/v7/typescript/sample.env b/sdk/reservations/arm-reservations/samples/v7/typescript/sample.env
new file mode 100644
index 00000000000..672847a3fea
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/typescript/sample.env
@@ -0,0 +1,4 @@
+# App registration secret for AAD authentication
+AZURE_CLIENT_SECRET=
+AZURE_CLIENT_ID=
+AZURE_TENANT_ID=
\ No newline at end of file
diff --git a/sdk/reservations/arm-reservations/samples/v7/typescript/src/appliedReservationList.ts b/sdk/reservations/arm-reservations/samples/v7/typescript/src/appliedReservationList.ts
new file mode 100644
index 00000000000..bdfa150f90f
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/typescript/src/appliedReservationList.ts
@@ -0,0 +1,28 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Get applicable `Reservation`s that are applied to this subscription or a resource group under this subscription.
+ *
+ * @summary Get applicable `Reservation`s that are applied to this subscription or a resource group under this subscription.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetAppliedReservations.json
+ */
+import { AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function appliedReservationList() {
+ const subscriptionId = "23bc208b-083f-4901-ae85-4f98c0c3b4b6";
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.getAppliedReservationList(subscriptionId);
+ console.log(result);
+}
+
+appliedReservationList().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/typescript/src/availableScopes.ts b/sdk/reservations/arm-reservations/samples/v7/typescript/src/availableScopes.ts
new file mode 100644
index 00000000000..efe120d2727
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/typescript/src/availableScopes.ts
@@ -0,0 +1,43 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Get Available Scopes for `Reservation`.
+
+ *
+ * @summary Get Available Scopes for `Reservation`.
+
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetAvailableScope.json
+ */
+import {
+ AvailableScopeRequest,
+ AzureReservationAPI
+} from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function availableScopes() {
+ const reservationOrderId = "276e7ae4-84d0-4da6-ab4b-d6b94f3557da";
+ const reservationId = "356e7ae4-84d0-4da6-ab4b-d6b94f3557da";
+ const body: AvailableScopeRequest = {
+ properties: {
+ scopes: ["/subscriptions/efc7c997-7700-4a74-b731-55aec16c15e9"]
+ }
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.reservation.beginAvailableScopesAndWait(
+ reservationOrderId,
+ reservationId,
+ body
+ );
+ console.log(result);
+}
+
+availableScopes().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/typescript/src/calculateExchange.ts b/sdk/reservations/arm-reservations/samples/v7/typescript/src/calculateExchange.ts
new file mode 100644
index 00000000000..1520b2ec073
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/typescript/src/calculateExchange.ts
@@ -0,0 +1,59 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Calculates price for exchanging `Reservations` if there are no policy errors.
+
+ *
+ * @summary Calculates price for exchanging `Reservations` if there are no policy errors.
+
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/CalculateExchange.json
+ */
+import {
+ CalculateExchangeRequest,
+ AzureReservationAPI
+} from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function calculateExchange() {
+ const body: CalculateExchangeRequest = {
+ properties: {
+ reservationsToExchange: [
+ {
+ quantity: 1,
+ reservationId:
+ "/providers/microsoft.capacity/reservationOrders/1f14354c-dc12-4c8d-8090-6f295a3a34aa/reservations/c8c926bd-fc5d-4e29-9d43-b68340ac23a6"
+ }
+ ],
+ reservationsToPurchase: [
+ {
+ appliedScopeType: "Shared",
+ appliedScopes: [],
+ billingPlan: "Upfront",
+ billingScopeId: "/subscriptions/ed3a1871-612d-abcd-a849-c2542a68be83",
+ displayName: "testDisplayName",
+ location: "westus",
+ quantity: 1,
+ renew: false,
+ reservedResourceProperties: { instanceFlexibility: "On" },
+ reservedResourceType: "VirtualMachines",
+ sku: { name: "Standard_B1ls" },
+ term: "P1Y"
+ }
+ ]
+ }
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.calculateExchange.beginPostAndWait(body);
+ console.log(result);
+}
+
+calculateExchange().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/typescript/src/catalog.ts b/sdk/reservations/arm-reservations/samples/v7/typescript/src/catalog.ts
new file mode 100644
index 00000000000..c1f824cfd18
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/typescript/src/catalog.ts
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Get the regions and skus that are available for RI purchase for the specified Azure subscription.
+ *
+ * @summary Get the regions and skus that are available for RI purchase for the specified Azure subscription.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetCatalog.json
+ */
+import { AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function catalog() {
+ const subscriptionId = "23bc208b-083f-4901-ae85-4f98c0c3b4b6";
+ const reservedResourceType = "VirtualMachines";
+ const location = "eastus";
+ const options = {
+ reservedResourceType: reservedResourceType,
+ location: location
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.getCatalog(subscriptionId, options);
+ console.log(result);
+}
+
+catalog().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/typescript/src/changeDirectory.ts b/sdk/reservations/arm-reservations/samples/v7/typescript/src/changeDirectory.ts
new file mode 100644
index 00000000000..8220f499c52
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/typescript/src/changeDirectory.ts
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Change directory (tenant) of `ReservationOrder` and all `Reservation` under it to specified tenant id
+ *
+ * @summary Change directory (tenant) of `ReservationOrder` and all `Reservation` under it to specified tenant id
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/ChangeDirectoryReservationOrder.json
+ */
+import {
+ ChangeDirectoryRequest,
+ AzureReservationAPI
+} from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function changeDirectory() {
+ const reservationOrderId = "a075419f-44cc-497f-b68a-14ee811d48b9";
+ const body: ChangeDirectoryRequest = {
+ destinationTenantId: "906655ea-30be-4587-9d12-b50e077b0f32"
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.reservationOrder.changeDirectory(
+ reservationOrderId,
+ body
+ );
+ console.log(result);
+}
+
+changeDirectory().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/typescript/src/exchange.ts b/sdk/reservations/arm-reservations/samples/v7/typescript/src/exchange.ts
new file mode 100644
index 00000000000..9e27efeee4d
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/typescript/src/exchange.ts
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.
+
+ *
+ * @summary Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.
+
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/Exchange.json
+ */
+import { ExchangeRequest, AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function exchange() {
+ const body: ExchangeRequest = {
+ properties: { sessionId: "66e2ac8f-439e-4345-8235-6fef07608081" }
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.exchange.beginPostAndWait(body);
+ console.log(result);
+}
+
+exchange().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/typescript/src/getOperations.ts b/sdk/reservations/arm-reservations/samples/v7/typescript/src/getOperations.ts
new file mode 100644
index 00000000000..50802236b3c
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/typescript/src/getOperations.ts
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to List all the operations.
+ *
+ * @summary List all the operations.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetOperations.json
+ */
+import { AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function getOperations() {
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const resArray = new Array();
+ for await (let item of client.operation.list()) {
+ resArray.push(item);
+ }
+ console.log(resArray);
+}
+
+getOperations().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/typescript/src/getReservation.ts b/sdk/reservations/arm-reservations/samples/v7/typescript/src/getReservation.ts
new file mode 100644
index 00000000000..a2ed05c49a0
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/typescript/src/getReservation.ts
@@ -0,0 +1,28 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Get the details of the `ReservationOrder`.
+ *
+ * @summary Get the details of the `ReservationOrder`.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetReservationOrderDetails.json
+ */
+import { AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function getReservation() {
+ const reservationOrderId = "a075419f-44cc-497f-b68a-14ee811d48b9";
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.reservationOrder.get(reservationOrderId);
+ console.log(result);
+}
+
+getReservation().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/typescript/src/getReservationWithExpandPayments.ts b/sdk/reservations/arm-reservations/samples/v7/typescript/src/getReservationWithExpandPayments.ts
new file mode 100644
index 00000000000..0bdd987bcd7
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/typescript/src/getReservationWithExpandPayments.ts
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Get the details of the `ReservationOrder`.
+ *
+ * @summary Get the details of the `ReservationOrder`.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetReservationOrderDetailsWithExpandPlanInformation.json
+ */
+import { AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function getReservationWithExpandPayments() {
+ const reservationOrderId = "a075419f-44cc-497f-b68a-14ee811d48b9";
+ const expand = "schedule";
+ const options = { expand: expand };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.reservationOrder.get(reservationOrderId, options);
+ console.log(result);
+}
+
+getReservationWithExpandPayments().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/typescript/src/merge.ts b/sdk/reservations/arm-reservations/samples/v7/typescript/src/merge.ts
new file mode 100644
index 00000000000..45fef291f84
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/typescript/src/merge.ts
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Merge the specified `Reservation`s into a new `Reservation`. The two `Reservation`s being merged must have same properties.
+ *
+ * @summary Merge the specified `Reservation`s into a new `Reservation`. The two `Reservation`s being merged must have same properties.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/MergeReservations.json
+ */
+import { MergeRequest, AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function merge() {
+ const reservationOrderId = "276e7ae4-84d0-4da6-ab4b-d6b94f3557da";
+ const body: MergeRequest = {
+ sources: [
+ "/providers/Microsoft.Capacity/reservationOrders/c0565a8a-4491-4e77-b07b-5e6d66718e1c/reservations/cea04232-932e-47db-acb5-e29a945ecc73",
+ "/providers/Microsoft.Capacity/reservationOrders/c0565a8a-4491-4e77-b07b-5e6d66718e1c/reservations/5bf54dc7-dacd-4f46-a16b-7b78f4a59799"
+ ]
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.reservation.beginMergeAndWait(
+ reservationOrderId,
+ body
+ );
+ console.log(result);
+}
+
+merge().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/typescript/src/patchReservation.ts b/sdk/reservations/arm-reservations/samples/v7/typescript/src/patchReservation.ts
new file mode 100644
index 00000000000..3d1d5e645c4
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/typescript/src/patchReservation.ts
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Updates the applied scopes of the `Reservation`.
+ *
+ * @summary Updates the applied scopes of the `Reservation`.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/UpdateReservation.json
+ */
+import { Patch, AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function patchReservation() {
+ const reservationOrderId = "276e7ae4-84d0-4da6-ab4b-d6b94f3557da";
+ const reservationId = "6ef59113-3482-40da-8d79-787f823e34bc";
+ const parameters: Patch = {
+ appliedScopeType: "Shared",
+ instanceFlexibility: "Off"
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.reservation.beginUpdateAndWait(
+ reservationOrderId,
+ reservationId,
+ parameters
+ );
+ console.log(result);
+}
+
+patchReservation().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/typescript/src/purchase.ts b/sdk/reservations/arm-reservations/samples/v7/typescript/src/purchase.ts
new file mode 100644
index 00000000000..8c6780772a0
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/typescript/src/purchase.ts
@@ -0,0 +1,45 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Purchase `ReservationOrder` and create resource under the specified URI.
+ *
+ * @summary Purchase `ReservationOrder` and create resource under the specified URI.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/PurchaseReservationOrder.json
+ */
+import { PurchaseRequest, AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function purchase() {
+ const reservationOrderId = "a075419f-44cc-497f-b68a-14ee811d48b9";
+ const body: PurchaseRequest = {
+ appliedScopeType: "Shared",
+ appliedScopes: [],
+ billingPlan: "Monthly",
+ billingScopeId: "/subscriptions/ed3a1871-612d-abcd-a849-c2542a68be83",
+ displayName: "TestReservationOrder",
+ location: "westus",
+ quantity: 1,
+ renew: false,
+ reservedResourceProperties: { instanceFlexibility: "On" },
+ reservedResourceType: "VirtualMachines",
+ sku: { name: "standard_D1" },
+ term: "P1Y"
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.reservationOrder.beginPurchaseAndWait(
+ reservationOrderId,
+ body
+ );
+ console.log(result);
+}
+
+purchase().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotaRequestFailed.ts b/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotaRequestFailed.ts
new file mode 100644
index 00000000000..494ded8854c
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotaRequestFailed.ts
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter.
+ *
+ * @summary For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusFailed.json
+ */
+import { AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function quotaRequestFailed() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const providerId = "Microsoft.Compute";
+ const location = "eastus";
+ const id = "2B5C8515-37D8-4B6A-879B-CD641A2CF605";
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.quotaRequestStatus.get(
+ subscriptionId,
+ providerId,
+ location,
+ id
+ );
+ console.log(result);
+}
+
+quotaRequestFailed().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotaRequestHistory.ts b/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotaRequestHistory.ts
new file mode 100644
index 00000000000..d80db8a7dae
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotaRequestHistory.ts
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to For the specified Azure region (location), subscription, and resource provider, get the history of the quota requests for the past year. To select specific quota requests, use the oData filter.
+ *
+ * @summary For the specified Azure region (location), subscription, and resource provider, get the history of the quota requests for the past year. To select specific quota requests, use the oData filter.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestsHistory.json
+ */
+import { AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function quotaRequestHistory() {
+ const subscriptionId = "3f75fdf7-977e-44ad-990d-99f14f0f299f";
+ const providerId = "Microsoft.Compute";
+ const location = "eastus";
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const resArray = new Array();
+ for await (let item of client.quotaRequestStatus.list(
+ subscriptionId,
+ providerId,
+ location
+ )) {
+ resArray.push(item);
+ }
+ console.log(resArray);
+}
+
+quotaRequestHistory().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotaRequestInProgress.ts b/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotaRequestInProgress.ts
new file mode 100644
index 00000000000..922eb4e18ac
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotaRequestInProgress.ts
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter.
+ *
+ * @summary For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusInProgress.json
+ */
+import { AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function quotaRequestInProgress() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const providerId = "Microsoft.Compute";
+ const location = "eastus";
+ const id = "2B5C8515-37D8-4B6A-879B-CD641A2CF605";
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.quotaRequestStatus.get(
+ subscriptionId,
+ providerId,
+ location,
+ id
+ );
+ console.log(result);
+}
+
+quotaRequestInProgress().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotaRequestStatus.ts b/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotaRequestStatus.ts
new file mode 100644
index 00000000000..36d99733050
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotaRequestStatus.ts
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter.
+ *
+ * @summary For the specified Azure region (location), get the details and status of the quota request by the quota request ID for the resources of the resource provider. The PUT request for the quota (service limit) returns a response with the requestId parameter.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getQuotaRequestStatusById.json
+ */
+import { AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function quotaRequestStatus() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const providerId = "Microsoft.Compute";
+ const location = "eastus";
+ const id = "2B5C8515-37D8-4B6A-879B-CD641A2CF605";
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.quotaRequestStatus.get(
+ subscriptionId,
+ providerId,
+ location,
+ id
+ );
+ console.log(result);
+}
+
+quotaRequestStatus().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasListUsagesForCompute.ts b/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasListUsagesForCompute.ts
new file mode 100644
index 00000000000..d9785128cda
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasListUsagesForCompute.ts
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Gets a list of current quotas (service limits) and usage for all resources. The response from the list quota operation can be leveraged to request quota updates.
+ *
+ * @summary Gets a list of current quotas (service limits) and usage for all resources. The response from the list quota operation can be leveraged to request quota updates.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeUsages.json
+ */
+import { AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function quotasListUsagesForCompute() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const providerId = "Microsoft.Compute";
+ const location = "eastus";
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const resArray = new Array();
+ for await (let item of client.quota.list(
+ subscriptionId,
+ providerId,
+ location
+ )) {
+ resArray.push(item);
+ }
+ console.log(resArray);
+}
+
+quotasListUsagesForCompute().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasListUsagesMachineLearningServices.ts b/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasListUsagesMachineLearningServices.ts
new file mode 100644
index 00000000000..3d7a76aaefe
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasListUsagesMachineLearningServices.ts
@@ -0,0 +1,37 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Gets a list of current quotas (service limits) and usage for all resources. The response from the list quota operation can be leveraged to request quota updates.
+ *
+ * @summary Gets a list of current quotas (service limits) and usage for all resources. The response from the list quota operation can be leveraged to request quota updates.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getMachineLearningServicesUsages.json
+ */
+import { AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function quotasListUsagesMachineLearningServices() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const providerId = "Microsoft.MachineLearningServices";
+ const location = "eastus";
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const resArray = new Array();
+ for await (let item of client.quota.list(
+ subscriptionId,
+ providerId,
+ location
+ )) {
+ resArray.push(item);
+ }
+ console.log(resArray);
+}
+
+quotasListUsagesMachineLearningServices().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasRequestForCompute.ts b/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasRequestForCompute.ts
new file mode 100644
index 00000000000..50288d66ae7
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasRequestForCompute.ts
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Get the current quota (service limit) and usage of a resource. You can use the response from the GET operation to submit quota update request.
+ *
+ * @summary Get the current quota (service limit) and usage of a resource. You can use the response from the GET operation to submit quota update request.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/getComputeOneSkuUsages.json
+ */
+import { AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function quotasRequestForCompute() {
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
+ const providerId = "Microsoft.Compute";
+ const location = "eastus";
+ const resourceName = "standardNDSFamily";
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.quota.get(
+ subscriptionId,
+ providerId,
+ location,
+ resourceName
+ );
+ console.log(result);
+}
+
+quotasRequestForCompute().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasRequestPatchForCompute.ts b/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasRequestPatchForCompute.ts
new file mode 100644
index 00000000000..4104b59b3f5
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasRequestPatchForCompute.ts
@@ -0,0 +1,61 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Update the quota (service limits) of this resource to the requested value.
+
+ • To get the quota information for specific resource, send a GET request.
+
+ • To increase the quota, update the limit field from the GET response to a new value.
+
+ • To update the quota value, submit the JSON response to the quota request API to update the quota.
+ • To update the quota. use the PATCH operation.
+ *
+ * @summary Update the quota (service limits) of this resource to the requested value.
+
+ • To get the quota information for specific resource, send a GET request.
+
+ • To increase the quota, update the limit field from the GET response to a new value.
+
+ • To update the quota value, submit the JSON response to the quota request API to update the quota.
+ • To update the quota. use the PATCH operation.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/patchComputeQuotaRequest.json
+ */
+import {
+ CurrentQuotaLimitBase,
+ AzureReservationAPI
+} from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function quotasRequestPatchForCompute() {
+ const subscriptionId = "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3";
+ const providerId = "Microsoft.Compute";
+ const location = "eastus";
+ const resourceName = "standardFSv2Family";
+ const createQuotaRequest: CurrentQuotaLimitBase = {
+ properties: {
+ name: { value: "standardFSv2Family" },
+ limit: 200,
+ unit: "Count"
+ }
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.quota.beginUpdateAndWait(
+ subscriptionId,
+ providerId,
+ location,
+ resourceName,
+ createQuotaRequest
+ );
+ console.log(result);
+}
+
+quotasRequestPatchForCompute().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasRequestPutForCompute.ts b/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasRequestPutForCompute.ts
new file mode 100644
index 00000000000..cfcae142b4d
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasRequestPutForCompute.ts
@@ -0,0 +1,63 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Create or update the quota (service limits) of a resource to the requested value.
+ Steps:
+
+ 1. Make the Get request to get the quota information for specific resource.
+
+ 2. To increase the quota, update the limit field in the response from Get request to new value.
+
+ 3. Submit the JSON to the quota request API to update the quota.
+ The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.
+ *
+ * @summary Create or update the quota (service limits) of a resource to the requested value.
+ Steps:
+
+ 1. Make the Get request to get the quota information for specific resource.
+
+ 2. To increase the quota, update the limit field in the response from Get request to new value.
+
+ 3. Submit the JSON to the quota request API to update the quota.
+ The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putComputeOneSkuQuotaRequest.json
+ */
+import {
+ CurrentQuotaLimitBase,
+ AzureReservationAPI
+} from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function quotasRequestPutForCompute() {
+ const subscriptionId = "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3";
+ const providerId = "Microsoft.Compute";
+ const location = "eastus";
+ const resourceName = "standardFSv2Family";
+ const createQuotaRequest: CurrentQuotaLimitBase = {
+ properties: {
+ name: { value: "standardFSv2Family" },
+ limit: 200,
+ unit: "Count"
+ }
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.quota.beginCreateOrUpdateAndWait(
+ subscriptionId,
+ providerId,
+ location,
+ resourceName,
+ createQuotaRequest
+ );
+ console.log(result);
+}
+
+quotasRequestPutForCompute().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasRequestPutForMachineLearningServicesDedicatedResource.ts b/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasRequestPutForMachineLearningServicesDedicatedResource.ts
new file mode 100644
index 00000000000..9345e85631e
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasRequestPutForMachineLearningServicesDedicatedResource.ts
@@ -0,0 +1,66 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Create or update the quota (service limits) of a resource to the requested value.
+ Steps:
+
+ 1. Make the Get request to get the quota information for specific resource.
+
+ 2. To increase the quota, update the limit field in the response from Get request to new value.
+
+ 3. Submit the JSON to the quota request API to update the quota.
+ The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.
+ *
+ * @summary Create or update the quota (service limits) of a resource to the requested value.
+ Steps:
+
+ 1. Make the Get request to get the quota information for specific resource.
+
+ 2. To increase the quota, update the limit field in the response from Get request to new value.
+
+ 3. Submit the JSON to the quota request API to update the quota.
+ The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestDedicated.json
+ */
+import {
+ CurrentQuotaLimitBase,
+ AzureReservationAPI
+} from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function quotasRequestPutForMachineLearningServicesDedicatedResource() {
+ const subscriptionId = "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3";
+ const providerId = "Microsoft.MachineLearningServices";
+ const location = "eastus";
+ const resourceName = "StandardDv2Family";
+ const createQuotaRequest: CurrentQuotaLimitBase = {
+ properties: {
+ name: { value: "StandardDv2Family" },
+ limit: 200,
+ resourceType: "dedicated",
+ unit: "Count"
+ }
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.quota.beginCreateOrUpdateAndWait(
+ subscriptionId,
+ providerId,
+ location,
+ resourceName,
+ createQuotaRequest
+ );
+ console.log(result);
+}
+
+quotasRequestPutForMachineLearningServicesDedicatedResource().catch(
+ console.error
+);
diff --git a/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasRequestPutForMachineLearningServicesLowPriorityResource.ts b/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasRequestPutForMachineLearningServicesLowPriorityResource.ts
new file mode 100644
index 00000000000..8d21249dfbb
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/typescript/src/quotasRequestPutForMachineLearningServicesLowPriorityResource.ts
@@ -0,0 +1,66 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Create or update the quota (service limits) of a resource to the requested value.
+ Steps:
+
+ 1. Make the Get request to get the quota information for specific resource.
+
+ 2. To increase the quota, update the limit field in the response from Get request to new value.
+
+ 3. Submit the JSON to the quota request API to update the quota.
+ The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.
+ *
+ * @summary Create or update the quota (service limits) of a resource to the requested value.
+ Steps:
+
+ 1. Make the Get request to get the quota information for specific resource.
+
+ 2. To increase the quota, update the limit field in the response from Get request to new value.
+
+ 3. Submit the JSON to the quota request API to update the quota.
+ The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2020-10-25/examples/putMachineLearningServicesQuotaRequestLowPriority.json
+ */
+import {
+ CurrentQuotaLimitBase,
+ AzureReservationAPI
+} from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function quotasRequestPutForMachineLearningServicesLowPriorityResource() {
+ const subscriptionId = "D7EC67B3-7657-4966-BFFC-41EFD36BAAB3";
+ const providerId = "Microsoft.MachineLearningServices";
+ const location = "eastus";
+ const resourceName = "TotalLowPriorityCores";
+ const createQuotaRequest: CurrentQuotaLimitBase = {
+ properties: {
+ name: { value: "TotalLowPriorityCores" },
+ limit: 200,
+ resourceType: "lowPriority",
+ unit: "Count"
+ }
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.quota.beginCreateOrUpdateAndWait(
+ subscriptionId,
+ providerId,
+ location,
+ resourceName,
+ createQuotaRequest
+ );
+ console.log(result);
+}
+
+quotasRequestPutForMachineLearningServicesLowPriorityResource().catch(
+ console.error
+);
diff --git a/sdk/reservations/arm-reservations/samples/v7/typescript/src/reservationList.ts b/sdk/reservations/arm-reservations/samples/v7/typescript/src/reservationList.ts
new file mode 100644
index 00000000000..3947d3c2e14
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/typescript/src/reservationList.ts
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to List `Reservation`s within a single `ReservationOrder`.
+ *
+ * @summary List `Reservation`s within a single `ReservationOrder`.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetReservationsFromOrder.json
+ */
+import { AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function reservationList() {
+ const reservationOrderId = "276e7ae4-84d0-4da6-ab4b-d6b94f3557da";
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const resArray = new Array();
+ for await (let item of client.reservation.list(reservationOrderId)) {
+ resArray.push(item);
+ }
+ console.log(resArray);
+}
+
+reservationList().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/typescript/src/reservationOrderList.ts b/sdk/reservations/arm-reservations/samples/v7/typescript/src/reservationOrderList.ts
new file mode 100644
index 00000000000..e41e72b25bf
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/typescript/src/reservationOrderList.ts
@@ -0,0 +1,30 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to List of all the `ReservationOrder`s that the user has access to in the current tenant.
+ *
+ * @summary List of all the `ReservationOrder`s that the user has access to in the current tenant.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetReservationOrders.json
+ */
+import { AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function reservationOrderList() {
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const resArray = new Array();
+ for await (let item of client.reservationOrder.list()) {
+ resArray.push(item);
+ }
+ console.log(resArray);
+}
+
+reservationOrderList().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/typescript/src/reservationRevisions.ts b/sdk/reservations/arm-reservations/samples/v7/typescript/src/reservationRevisions.ts
new file mode 100644
index 00000000000..51f5383c949
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/typescript/src/reservationRevisions.ts
@@ -0,0 +1,35 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to List of all the revisions for the `Reservation`.
+ *
+ * @summary List of all the revisions for the `Reservation`.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/GetReservationRevisions.json
+ */
+import { AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function reservationRevisions() {
+ const reservationId = "6ef59113-3482-40da-8d79-787f823e34bc";
+ const reservationOrderId = "276e7ae4-84d0-4da6-ab4b-d6b94f3557da";
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const resArray = new Array();
+ for await (let item of client.reservation.listRevisions(
+ reservationId,
+ reservationOrderId
+ )) {
+ resArray.push(item);
+ }
+ console.log(resArray);
+}
+
+reservationRevisions().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/typescript/src/split.ts b/sdk/reservations/arm-reservations/samples/v7/typescript/src/split.ts
new file mode 100644
index 00000000000..d070a1c45d7
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/typescript/src/split.ts
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+// Copyright (c) Microsoft Corporation.
+// Licensed under the MIT License.
+/**
+ * This sample demonstrates how to Split a `Reservation` into two `Reservation`s with specified quantity distribution.
+ *
+ * @summary Split a `Reservation` into two `Reservation`s with specified quantity distribution.
+ * x-ms-original-file: specification/reservations/resource-manager/Microsoft.Capacity/stable/2021-07-01/examples/SplitReservation.json
+ */
+import { SplitRequest, AzureReservationAPI } from "@azure/arm-reservations";
+import { DefaultAzureCredential } from "@azure/identity";
+
+async function split() {
+ const reservationOrderId = "276e7ae4-84d0-4da6-ab4b-d6b94f3557da";
+ const body: SplitRequest = {
+ quantities: [1, 2],
+ reservationId:
+ "/providers/Microsoft.Capacity/reservationOrders/276e7ae4-84d0-4da6-ab4b-d6b94f3557da/reservations/bcae77cd-3119-4766-919f-b50d36c75c7a"
+ };
+ const credential = new DefaultAzureCredential();
+ const client = new AzureReservationAPI(credential);
+ const result = await client.reservation.beginSplitAndWait(
+ reservationOrderId,
+ body
+ );
+ console.log(result);
+}
+
+split().catch(console.error);
diff --git a/sdk/reservations/arm-reservations/samples/v7/typescript/tsconfig.json b/sdk/reservations/arm-reservations/samples/v7/typescript/tsconfig.json
new file mode 100644
index 00000000000..416c2dd82e0
--- /dev/null
+++ b/sdk/reservations/arm-reservations/samples/v7/typescript/tsconfig.json
@@ -0,0 +1,17 @@
+{
+ "compilerOptions": {
+ "target": "ES2018",
+ "module": "commonjs",
+ "moduleResolution": "node",
+ "resolveJsonModule": true,
+ "esModuleInterop": true,
+ "allowSyntheticDefaultImports": true,
+ "strict": true,
+ "alwaysStrict": true,
+ "outDir": "dist",
+ "rootDir": "src"
+ },
+ "include": [
+ "src/**.ts"
+ ]
+}
diff --git a/sdk/reservations/arm-reservations/src/azureReservationAPI.ts b/sdk/reservations/arm-reservations/src/azureReservationAPI.ts
index 6f761cb07da..37d3da80f33 100644
--- a/sdk/reservations/arm-reservations/src/azureReservationAPI.ts
+++ b/sdk/reservations/arm-reservations/src/azureReservationAPI.ts
@@ -3,136 +3,145 @@
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
-import * as Models from "./models";
-import * as Mappers from "./models/mappers";
+import * as coreClient from "@azure/core-client";
+import * as coreAuth from "@azure/core-auth";
+import {
+ ReservationImpl,
+ ReservationOrderImpl,
+ OperationImpl,
+ CalculateExchangeImpl,
+ ExchangeImpl,
+ QuotaImpl,
+ QuotaRequestStatusImpl
+} from "./operations";
+import {
+ Reservation,
+ ReservationOrder,
+ Operation,
+ CalculateExchange,
+ Exchange,
+ Quota,
+ QuotaRequestStatus
+} from "./operationsInterfaces";
import * as Parameters from "./models/parameters";
-import * as operations from "./operations";
-import { AzureReservationAPIContext } from "./azureReservationAPIContext";
+import * as Mappers from "./models/mappers";
+import {
+ AzureReservationAPIOptionalParams,
+ GetCatalogOptionalParams,
+ GetCatalogResponse,
+ GetAppliedReservationListOptionalParams,
+ GetAppliedReservationListResponse
+} from "./models";
-
-class AzureReservationAPI extends AzureReservationAPIContext {
- // Operation groups
- reservation: operations.Reservation;
- reservationOrder: operations.ReservationOrder;
- operation: operations.Operation;
- calculateExchange: operations.CalculateExchange;
- exchange: operations.Exchange;
- quota: operations.Quota;
- quotaRequestStatus: operations.QuotaRequestStatus;
+export class AzureReservationAPI extends coreClient.ServiceClient {
+ $host: string;
/**
* Initializes a new instance of the AzureReservationAPI class.
- * @param credentials Credentials needed for the client to connect to Azure.
- * @param [options] The parameter options
+ * @param credentials Subscription credentials which uniquely identify client subscription.
+ * @param options The parameter options
*/
- constructor(credentials: msRest.ServiceClientCredentials, options?: Models.AzureReservationAPIOptions) {
- super(credentials, options);
- this.reservation = new operations.Reservation(this);
- this.reservationOrder = new operations.ReservationOrder(this);
- this.operation = new operations.Operation(this);
- this.calculateExchange = new operations.CalculateExchange(this);
- this.exchange = new operations.Exchange(this);
- this.quota = new operations.Quota(this);
- this.quotaRequestStatus = new operations.QuotaRequestStatus(this);
+ constructor(
+ credentials: coreAuth.TokenCredential,
+ options?: AzureReservationAPIOptionalParams
+ ) {
+ if (credentials === undefined) {
+ throw new Error("'credentials' cannot be null");
+ }
+
+ // Initializing default values for options
+ if (!options) {
+ options = {};
+ }
+ const defaults: AzureReservationAPIOptionalParams = {
+ requestContentType: "application/json; charset=utf-8",
+ credential: credentials
+ };
+
+ const packageDetails = `azsdk-js-arm-reservations/7.0.0`;
+ const userAgentPrefix =
+ options.userAgentOptions && options.userAgentOptions.userAgentPrefix
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
+ : `${packageDetails}`;
+
+ if (!options.credentialScopes) {
+ options.credentialScopes = ["https://management.azure.com/.default"];
+ }
+ const optionsWithDefaults = {
+ ...defaults,
+ ...options,
+ userAgentOptions: {
+ userAgentPrefix
+ },
+ baseUri: options.endpoint || "https://management.azure.com"
+ };
+ super(optionsWithDefaults);
+
+ // Assigning values to Constant parameters
+ this.$host = options.$host || "https://management.azure.com";
+ this.reservation = new ReservationImpl(this);
+ this.reservationOrder = new ReservationOrderImpl(this);
+ this.operation = new OperationImpl(this);
+ this.calculateExchange = new CalculateExchangeImpl(this);
+ this.exchange = new ExchangeImpl(this);
+ this.quota = new QuotaImpl(this);
+ this.quotaRequestStatus = new QuotaRequestStatusImpl(this);
}
/**
- * @summary Get the regions and skus that are available for RI purchase for the specified Azure
+ * Get the regions and skus that are available for RI purchase for the specified Azure subscription.
+ * @param subscriptionId Id of the subscription
+ * @param options The options parameters.
+ */
+ getCatalog(
+ subscriptionId: string,
+ options?: GetCatalogOptionalParams
+ ): Promise {
+ return this.sendOperationRequest(
+ { subscriptionId, options },
+ getCatalogOperationSpec
+ );
+ }
+
+ /**
+ * Get applicable `Reservation`s that are applied to this subscription or a resource group under this
* subscription.
* @param subscriptionId Id of the subscription
- * @param reservedResourceType The type of the resource for which the skus should be provided.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- getCatalog(subscriptionId: string, reservedResourceType: string, options?: Models.AzureReservationAPIGetCatalogOptionalParams): Promise;
- /**
- * @param subscriptionId Id of the subscription
- * @param reservedResourceType The type of the resource for which the skus should be provided.
- * @param callback The callback
- */
- getCatalog(subscriptionId: string, reservedResourceType: string, callback: msRest.ServiceCallback): void;
- /**
- * @param subscriptionId Id of the subscription
- * @param reservedResourceType The type of the resource for which the skus should be provided.
- * @param options The optional parameters
- * @param callback The callback
- */
- getCatalog(subscriptionId: string, reservedResourceType: string, options: Models.AzureReservationAPIGetCatalogOptionalParams, callback: msRest.ServiceCallback): void;
- getCatalog(subscriptionId: string, reservedResourceType: string, options?: Models.AzureReservationAPIGetCatalogOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ getAppliedReservationList(
+ subscriptionId: string,
+ options?: GetAppliedReservationListOptionalParams
+ ): Promise {
return this.sendOperationRequest(
- {
- subscriptionId,
- reservedResourceType,
- options
- },
- getCatalogOperationSpec,
- callback) as Promise;
+ { subscriptionId, options },
+ getAppliedReservationListOperationSpec
+ );
}
- /**
- * Get applicable `Reservation`s that are applied to this subscription or a resource group under
- * this subscription.
- * @summary Get list of applicable `Reservation`s.
- * @param subscriptionId Id of the subscription
- * @param [options] The optional parameters
- * @returns Promise
- */
- getAppliedReservationList(subscriptionId: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param subscriptionId Id of the subscription
- * @param callback The callback
- */
- getAppliedReservationList(subscriptionId: string, callback: msRest.ServiceCallback): void;
- /**
- * @param subscriptionId Id of the subscription
- * @param options The optional parameters
- * @param callback The callback
- */
- getAppliedReservationList(subscriptionId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- getAppliedReservationList(subscriptionId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.sendOperationRequest(
- {
- subscriptionId,
- options
- },
- getAppliedReservationListOperationSpec,
- callback) as Promise;
- }
+ reservation: Reservation;
+ reservationOrder: ReservationOrder;
+ operation: Operation;
+ calculateExchange: CalculateExchange;
+ exchange: Exchange;
+ quota: Quota;
+ quotaRequestStatus: QuotaRequestStatus;
}
-
// Operation Specifications
-const serializer = new msRest.Serializer(Mappers);
-const getCatalogOperationSpec: msRest.OperationSpec = {
+const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
+
+const getCatalogOperationSpec: coreClient.OperationSpec = {
+ path: "/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/catalogs",
httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Capacity/catalogs",
- urlParameters: [
- Parameters.subscriptionId
- ],
- queryParameters: [
- Parameters.apiVersion0,
- Parameters.reservedResourceType,
- Parameters.location0
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
responses: {
200: {
bodyMapper: {
- serializedName: "parsedResponse",
type: {
name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "Catalog"
- }
- }
+ element: { type: { name: "Composite", className: "Catalog" } }
}
}
},
@@ -140,21 +149,19 @@ const getCatalogOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorModel
}
},
+ queryParameters: [
+ Parameters.apiVersion,
+ Parameters.reservedResourceType,
+ Parameters.location
+ ],
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
+ headerParameters: [Parameters.accept],
serializer
};
-
-const getAppliedReservationListOperationSpec: msRest.OperationSpec = {
+const getAppliedReservationListOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/appliedReservations",
httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Capacity/appliedReservations",
- urlParameters: [
- Parameters.subscriptionId
- ],
- queryParameters: [
- Parameters.apiVersion0
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
responses: {
200: {
bodyMapper: Mappers.AppliedReservations
@@ -163,13 +170,8 @@ const getAppliedReservationListOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorModel
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [Parameters.$host, Parameters.subscriptionId],
+ headerParameters: [Parameters.accept],
serializer
};
-
-export {
- AzureReservationAPI,
- AzureReservationAPIContext,
- Models as AzureReservationAPIModels,
- Mappers as AzureReservationAPIMappers
-};
-export * from "./operations";
diff --git a/sdk/reservations/arm-reservations/src/azureReservationAPIContext.ts b/sdk/reservations/arm-reservations/src/azureReservationAPIContext.ts
deleted file mode 100644
index 49da34adf76..00000000000
--- a/sdk/reservations/arm-reservations/src/azureReservationAPIContext.ts
+++ /dev/null
@@ -1,53 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
- */
-
-import * as Models from "./models";
-import * as msRest from "@azure/ms-rest-js";
-import * as msRestAzure from "@azure/ms-rest-azure-js";
-
-const packageName = "@azure/arm-reservations";
-const packageVersion = "6.0.0";
-
-export class AzureReservationAPIContext extends msRestAzure.AzureServiceClient {
- credentials: msRest.ServiceClientCredentials;
-
- /**
- * Initializes a new instance of the AzureReservationAPI class.
- * @param credentials Credentials needed for the client to connect to Azure.
- * @param [options] The parameter options
- */
- constructor(credentials: msRest.ServiceClientCredentials, options?: Models.AzureReservationAPIOptions) {
- if (credentials == undefined) {
- throw new Error('\'credentials\' cannot be null.');
- }
-
- if (!options) {
- options = {};
- }
- if (!options.userAgent) {
- const defaultUserAgent = msRestAzure.getDefaultUserAgentValue();
- options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
- }
-
- super(credentials, options);
-
- this.acceptLanguage = 'en-US';
- this.longRunningOperationRetryTimeout = 30;
- this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
- this.requestContentType = "application/json; charset=utf-8";
- this.credentials = credentials;
-
- if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
- this.acceptLanguage = options.acceptLanguage;
- }
- if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
- this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
- }
- }
-}
diff --git a/sdk/resourcemover/arm-resourcemover/src/models/unresolvedDependenciesMappers.ts b/sdk/reservations/arm-reservations/src/index.ts
similarity index 57%
rename from sdk/resourcemover/arm-resourcemover/src/models/unresolvedDependenciesMappers.ts
rename to sdk/reservations/arm-reservations/src/index.ts
index b97d918b026..17b76c65cbe 100644
--- a/sdk/resourcemover/arm-resourcemover/src/models/unresolvedDependenciesMappers.ts
+++ b/sdk/reservations/arm-reservations/src/index.ts
@@ -6,11 +6,7 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-export {
- discriminators,
- CloudError,
- Summary,
- SummaryCollection,
- UnresolvedDependency,
- UnresolvedDependencyCollection
-} from "../models/mappers";
+///
+export * from "./models";
+export { AzureReservationAPI } from "./azureReservationAPI";
+export * from "./operationsInterfaces";
diff --git a/sdk/reservations/arm-reservations/src/lroImpl.ts b/sdk/reservations/arm-reservations/src/lroImpl.ts
new file mode 100644
index 00000000000..518d5f053b4
--- /dev/null
+++ b/sdk/reservations/arm-reservations/src/lroImpl.ts
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) Microsoft Corporation.
+ * Licensed under the MIT License.
+ *
+ * Code generated by Microsoft (R) AutoRest Code Generator.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
+ */
+
+import { LongRunningOperation, LroResponse } from "@azure/core-lro";
+
+export class LroImpl implements LongRunningOperation {
+ constructor(
+ private sendOperationFn: (args: any, spec: any) => Promise>,
+ private args: Record,
+ private spec: {
+ readonly requestBody?: unknown;
+ readonly path?: string;
+ readonly httpMethod: string;
+ } & Record,
+ public requestPath: string = spec.path!,
+ public requestMethod: string = spec.httpMethod
+ ) {}
+ public async sendInitialRequest(): Promise> {
+ return this.sendOperationFn(this.args, this.spec);
+ }
+ public async sendPollRequest(path: string): Promise> {
+ const { requestBody, ...restSpec } = this.spec;
+ return this.sendOperationFn(this.args, {
+ ...restSpec,
+ path,
+ httpMethod: "GET"
+ });
+ }
+}
diff --git a/sdk/reservations/arm-reservations/src/models/calculateExchangeMappers.ts b/sdk/reservations/arm-reservations/src/models/calculateExchangeMappers.ts
deleted file mode 100644
index f7f3a0268aa..00000000000
--- a/sdk/reservations/arm-reservations/src/models/calculateExchangeMappers.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- BillingInformation,
- CalculateExchangeOperationResultResponse,
- CalculateExchangePostHeaders,
- CalculateExchangeRequest,
- CalculateExchangeRequestProperties,
- CalculateExchangeResponseProperties,
- ErrorModel,
- ExchangePolicyError,
- ExchangePolicyErrors,
- ExtendedErrorInfo,
- OperationResultError,
- Price,
- PurchaseRequest,
- PurchaseRequestPropertiesReservedResourceProperties,
- ReservationToExchange,
- ReservationToPurchaseCalculateExchange,
- ReservationToReturn,
- SkuName
-} from "../models/mappers";
diff --git a/sdk/reservations/arm-reservations/src/models/exchangeMappers.ts b/sdk/reservations/arm-reservations/src/models/exchangeMappers.ts
deleted file mode 100644
index d948db0c59e..00000000000
--- a/sdk/reservations/arm-reservations/src/models/exchangeMappers.ts
+++ /dev/null
@@ -1,27 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- BillingInformation,
- ErrorModel,
- ExchangeOperationResultResponse,
- ExchangePolicyError,
- ExchangePolicyErrors,
- ExchangePostHeaders,
- ExchangeRequest,
- ExchangeRequestProperties,
- ExchangeResponseProperties,
- ExtendedErrorInfo,
- OperationResultError,
- Price,
- PurchaseRequest,
- PurchaseRequestPropertiesReservedResourceProperties,
- ReservationToPurchaseExchange,
- ReservationToReturnForExchange,
- SkuName
-} from "../models/mappers";
diff --git a/sdk/reservations/arm-reservations/src/models/index.ts b/sdk/reservations/arm-reservations/src/models/index.ts
index 6d94f9ae195..46cce6a15a2 100644
--- a/sdk/reservations/arm-reservations/src/models/index.ts
+++ b/sdk/reservations/arm-reservations/src/models/index.ts
@@ -6,887 +6,558 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
-import * as msRest from "@azure/ms-rest-js";
+import * as coreClient from "@azure/core-client";
-export { BaseResource, CloudError };
+/** Available scope */
+export interface AvailableScopeRequest {
+ /** Available scope request properties */
+ properties?: AvailableScopeRequestProperties;
+}
-/**
- * Available scope request properties
- */
+/** Available scope request properties */
export interface AvailableScopeRequestProperties {
scopes?: string[];
}
-/**
- * Available scope
- */
-export interface AvailableScopeRequest {
- properties?: AvailableScopeRequestProperties;
+export interface AvailableScopeProperties {
+ properties?: SubscriptionScopeProperties;
}
-/**
- * An interface representing SkuName.
- */
-export interface SkuName {
- name?: string;
+export interface SubscriptionScopeProperties {
+ scopes?: ScopeProperties[];
}
-/**
- * Properties specific to each reserved resource type. Not required if not applicable.
- */
-export interface PurchaseRequestPropertiesReservedResourceProperties {
- /**
- * Possible values include: 'On', 'Off'
- */
- instanceFlexibility?: InstanceFlexibility;
+export interface ScopeProperties {
+ scope?: string;
+ valid?: boolean;
}
-/**
- * An interface representing PurchaseRequest.
- */
-export interface PurchaseRequest {
- sku?: SkuName;
- /**
- * The Azure Region where the reserved resource lives.
- */
- location?: string;
- /**
- * Possible values include: 'VirtualMachines', 'SqlDatabases', 'SuseLinux', 'CosmosDb', 'RedHat',
- * 'SqlDataWarehouse', 'VMwareCloudSimple', 'RedHatOsa', 'Databricks', 'AppService',
- * 'ManagedDisk', 'BlockBlob', 'RedisCache', 'AzureDataExplorer', 'MySql', 'MariaDb',
- * 'PostgreSql', 'DedicatedHost', 'SapHana', 'SqlAzureHybridBenefit'
- */
- reservedResourceType?: ReservedResourceType;
- billingScopeId?: string;
- /**
- * Possible values include: 'P1Y', 'P3Y'
- */
- term?: ReservationTerm;
- /**
- * Possible values include: 'Upfront', 'Monthly'
- */
- billingPlan?: ReservationBillingPlan;
- quantity?: number;
- /**
- * Friendly name of the Reservation
- */
- displayName?: string;
- /**
- * Possible values include: 'Single', 'Shared'
- */
- appliedScopeType?: AppliedScopeType;
- appliedScopes?: string[];
- renew?: boolean;
- /**
- * Properties specific to each reserved resource type. Not required if not applicable.
- */
- reservedResourceProperties?: PurchaseRequestPropertiesReservedResourceProperties;
-}
-
-/**
- * Reservation to return
- */
-export interface ReservationToReturn {
- /**
- * Fully qualified identifier of the Reservation being returned
- */
- reservationId?: string;
- /**
- * Quantity to be returned. Must be greater than zero.
- */
- quantity?: number;
-}
-
-/**
- * Calculate exchange request properties
- */
-export interface CalculateExchangeRequestProperties {
- /**
- * List of reservations that are being purchased in this exchange.
- */
- reservationsToPurchase?: PurchaseRequest[];
- /**
- * List of reservations that are being returned in this exchange.
- */
- reservationsToExchange?: ReservationToReturn[];
-}
-
-/**
- * Calculate exchange request
- */
-export interface CalculateExchangeRequest {
- properties?: CalculateExchangeRequestProperties;
-}
-
-/**
- * Exchange request properties
- */
-export interface ExchangeRequestProperties {
- /**
- * SessionId that was returned by CalculateExchange API.
- */
- sessionId?: string;
-}
-
-/**
- * Exchange request
- */
-export interface ExchangeRequest {
- properties?: ExchangeRequestProperties;
-}
-
-/**
- * An interface representing Price.
- */
-export interface Price {
- /**
- * The ISO 4217 3-letter currency code for the currency used by this purchase record.
- */
- currencyCode?: string;
- amount?: number;
-}
-
-/**
- * Reservation purchase details
- */
-export interface ReservationToPurchaseCalculateExchange {
- properties?: PurchaseRequest;
- billingCurrencyTotal?: Price;
-}
-
-/**
- * billing information
- */
-export interface BillingInformation {
- billingCurrencyTotalPaidAmount?: Price;
- billingCurrencyProratedAmount?: Price;
- billingCurrencyRemainingCommitmentAmount?: Price;
-}
-
-/**
- * Reservation refund details
- */
-export interface ReservationToExchange {
- /**
- * Fully qualified id of the Reservation being returned.
- */
- reservationId?: string;
- /**
- * Quantity to be returned
- */
- quantity?: number;
- billingRefundAmount?: Price;
- billingInformation?: BillingInformation;
-}
-
-/**
- * error details
- */
-export interface ExchangePolicyError {
- code?: string;
- message?: string;
-}
-
-/**
- * Exchange policy errors
- */
-export interface ExchangePolicyErrors {
- /**
- * Exchange Policy errors
- */
- policyErrors?: ExchangePolicyError[];
-}
-
-/**
- * CalculateExchange response properties
- */
-export interface CalculateExchangeResponseProperties {
- /**
- * Exchange session identifier
- */
- sessionId?: string;
- netPayable?: Price;
- refundsTotal?: Price;
- purchasesTotal?: Price;
- /**
- * Details of the reservations being purchased
- */
- reservationsToPurchase?: ReservationToPurchaseCalculateExchange[];
- /**
- * Details of the reservations being returned
- */
- reservationsToExchange?: ReservationToExchange[];
- policyResult?: ExchangePolicyErrors;
-}
-
-/**
- * Required if status == failed or status == canceled.
- */
-export interface OperationResultError {
- /**
- * Required if status == failed or status == cancelled. If status == failed, provide an invariant
- * error code used for error troubleshooting, aggregation, and analysis.
- */
- code?: string;
- /**
- * Required if status == failed. Localized. If status == failed, provide an actionable error
- * message indicating what error occurred, and what the user can do to address the issue.
- */
- message?: string;
-}
-
-/**
- * CalculateExchange operation result
- */
-export interface CalculateExchangeOperationResultResponse {
- /**
- * It should match what is used to GET the operation result.
- */
- id?: string;
- /**
- * It must match the last segment of the id field, and will typically be a GUID / system
- * generated value.
- */
- name?: string;
- /**
- * Status of the operation. Possible values include: 'Succeeded', 'Failed', 'Cancelled',
- * 'Pending'
- */
- status?: CalculateExchangeOperationResultStatus;
- properties?: CalculateExchangeResponseProperties;
- error?: OperationResultError;
-}
-
-/**
- * Reservation purchase details
- */
-export interface ReservationToPurchaseExchange {
- /**
- * Fully qualified id of the ReservationOrder being purchased
- */
- reservationOrderId?: string;
- /**
- * Fully qualified id of the Reservation being purchased. This value is only guaranteed to be
- * non-null if the purchase is successful.
- */
- reservationId?: string;
- properties?: PurchaseRequest;
- billingCurrencyTotal?: Price;
- /**
- * Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Pending'
- */
- status?: OperationStatus;
-}
-
-/**
- * Reservation refund details
- */
-export interface ReservationToReturnForExchange {
- /**
- * Fully qualified id of the Reservation being returned.
- */
- reservationId?: string;
- /**
- * Quantity to be returned
- */
- quantity?: number;
- billingRefundAmount?: Price;
- billingInformation?: BillingInformation;
- /**
- * Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Pending'
- */
- status?: OperationStatus;
-}
-
-/**
- * Exchange response properties
- */
-export interface ExchangeResponseProperties {
- /**
- * Exchange session identifier
- */
- sessionId?: string;
- netPayable?: Price;
- refundsTotal?: Price;
- purchasesTotal?: Price;
- /**
- * Details of the reservations being purchased
- */
- reservationsToPurchase?: ReservationToPurchaseExchange[];
- /**
- * Details of the reservations being returned
- */
- reservationsToExchange?: ReservationToReturnForExchange[];
- policyResult?: ExchangePolicyErrors;
-}
-
-/**
- * Exchange operation result
- */
-export interface ExchangeOperationResultResponse {
- /**
- * It should match what is used to GET the operation result.
- */
- id?: string;
- /**
- * It must match the last segment of the id field, and will typically be a GUID / system
- * generated value.
- */
- name?: string;
- /**
- * Status of the operation. Possible values include: 'Succeeded', 'Failed', 'Cancelled',
- * 'PendingRefunds', 'PendingPurchases'
- */
- status?: ExchangeOperationResultStatus;
- properties?: ExchangeResponseProperties;
- error?: OperationResultError;
-}
-
-/**
- * An interface representing SkuProperty.
- */
-export interface SkuProperty {
- /**
- * An invariant to describe the feature.
- */
- name?: string;
- /**
- * An invariant if the feature is measured by quantity.
- */
- value?: string;
-}
-
-/**
- * An interface representing SkuRestriction.
- */
-export interface SkuRestriction {
- /**
- * The type of restrictions.
- */
- type?: string;
- /**
- * The value of restrictions. If the restriction type is set to location. This would be different
- * locations where the SKU is restricted.
- */
- values?: string[];
- /**
- * The reason for restriction.
- */
- reasonCode?: string;
-}
-
-/**
- * An interface representing Catalog.
- */
-export interface Catalog {
- /**
- * The type of resource the SKU applies to.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly resourceType?: string;
- /**
- * The name of SKU
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly name?: string;
- /**
- * The billing plan options available for this SKU.
- */
- billingPlans?: { [propertyName: string]: ReservationBillingPlan[] };
- /**
- * Available reservation terms for this resource
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly terms?: ReservationTerm[];
- /**
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly locations?: string[];
- /**
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly skuProperties?: SkuProperty[];
- /**
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly restrictions?: SkuRestriction[];
-}
-
-/**
- * An interface representing ExtendedStatusInfo.
- */
-export interface ExtendedStatusInfo {
- /**
- * Possible values include: 'None', 'Pending', 'Active', 'PurchaseError',
- * 'PaymentInstrumentError', 'Split', 'Merged', 'Expired', 'Succeeded'
- */
- statusCode?: ReservationStatusCode;
- /**
- * The message giving detailed information about the status code.
- */
- message?: string;
-}
-
-/**
- * Information about payment related to a reservation order.
- */
-export interface PaymentDetail {
- /**
- * Date when the payment needs to be done.
- */
- dueDate?: Date;
- /**
- * Date when the transaction is completed. Is null when it is scheduled.
- */
- paymentDate?: Date;
- /**
- * Amount in pricing currency. Tax not included.
- */
- pricingCurrencyTotal?: Price;
- /**
- * Amount charged in Billing currency. Tax not included. Is null for future payments
- */
- billingCurrencyTotal?: Price;
- /**
- * Shows the Account that is charged for this payment.
- */
- billingAccount?: string;
- /**
- * Possible values include: 'Succeeded', 'Failed', 'Scheduled', 'Cancelled'
- */
- status?: PaymentStatus;
- extendedStatusInfo?: ExtendedStatusInfo;
-}
-
-/**
- * Information describing the type of billing plan for this reservation.
- */
-export interface ReservationOrderBillingPlanInformation {
- /**
- * Amount of money to be paid for the Order. Tax is not included.
- */
- pricingCurrencyTotal?: Price;
- /**
- * Date when the billing plan has started.
- */
- startDate?: Date;
- /**
- * For recurring billing plans, indicates the date when next payment will be processed. Null when
- * total is paid off.
- */
- nextPaymentDueDate?: Date;
- transactions?: PaymentDetail[];
-}
-
-/**
- * An interface representing ReservationSplitProperties.
- */
-export interface ReservationSplitProperties {
- /**
- * List of destination Resource Id that are created due to split. Format of the resource Id is
- * /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}
- */
- splitDestinations?: string[];
- /**
- * Resource Id of the Reservation from which this is split. Format of the resource Id is
- * /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}
- */
- splitSource?: string;
-}
-
-/**
- * An interface representing ReservationMergeProperties.
- */
-export interface ReservationMergeProperties {
- /**
- * Reservation Resource Id Created due to the merge. Format of the resource Id is
- * /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}
- */
- mergeDestination?: string;
- /**
- * Resource Ids of the Source Reservation's merged to form this Reservation. Format of the
- * resource Id is
- * /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}
- */
- mergeSources?: string[];
-}
-
-/**
- * Amount that Microsoft uses for record. Used during refund for calculating refund limit. Tax is
- * not included. This is locked price 30 days before expiry.
- */
-export interface RenewPropertiesResponsePricingCurrencyTotal {
- currencyCode?: string;
- amount?: number;
-}
-
-/**
- * Currency and amount that customer will be charged in customer's local currency for renewal
- * purchase. Tax is not included.
- */
-export interface RenewPropertiesResponseBillingCurrencyTotal {
- currencyCode?: string;
- amount?: number;
-}
-
-/**
- * An interface representing RenewPropertiesResponse.
- */
-export interface RenewPropertiesResponse {
- purchaseProperties?: PurchaseRequest;
- /**
- * Amount that Microsoft uses for record. Used during refund for calculating refund limit. Tax is
- * not included. This is locked price 30 days before expiry.
- */
- pricingCurrencyTotal?: RenewPropertiesResponsePricingCurrencyTotal;
- /**
- * Currency and amount that customer will be charged in customer's local currency for renewal
- * purchase. Tax is not included.
- */
- billingCurrencyTotal?: RenewPropertiesResponseBillingCurrencyTotal;
-}
-
-/**
- * An interface representing ReservationProperties.
- */
-export interface ReservationProperties {
- /**
- * Possible values include: 'VirtualMachines', 'SqlDatabases', 'SuseLinux', 'CosmosDb', 'RedHat',
- * 'SqlDataWarehouse', 'VMwareCloudSimple', 'RedHatOsa', 'Databricks', 'AppService',
- * 'ManagedDisk', 'BlockBlob', 'RedisCache', 'AzureDataExplorer', 'MySql', 'MariaDb',
- * 'PostgreSql', 'DedicatedHost', 'SapHana', 'SqlAzureHybridBenefit'
- */
- reservedResourceType?: ReservedResourceType;
- /**
- * Possible values include: 'On', 'Off'
- */
- instanceFlexibility?: InstanceFlexibility;
- /**
- * Friendly name for user to easily identify the reservation
- */
- displayName?: string;
- appliedScopes?: string[];
- /**
- * Possible values include: 'Single', 'Shared'
- */
- appliedScopeType?: AppliedScopeType;
- quantity?: number;
- /**
- * Current state of the reservation.
- */
- provisioningState?: string;
- /**
- * DateTime of the Reservation starting when this version is effective from.
- */
- effectiveDateTime?: Date;
- /**
- * DateTime of the last time the Reservation was updated.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly lastUpdatedDateTime?: Date;
- /**
- * This is the date when the Reservation will expire.
- */
- expiryDate?: Date;
- /**
- * Description of the SKU in english.
- */
- skuDescription?: string;
- extendedStatusInfo?: ExtendedStatusInfo;
- /**
- * Possible values include: 'Upfront', 'Monthly'
- */
- billingPlan?: ReservationBillingPlan;
- splitProperties?: ReservationSplitProperties;
- mergeProperties?: ReservationMergeProperties;
- billingScopeId?: string;
- renew?: boolean;
- /**
- * Reservation Id of the reservation from which this reservation is renewed. Format of the
- * resource Id is
- * /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.
- */
- renewSource?: string;
- /**
- * Reservation Id of the reservation which is purchased because of renew. Format of the resource
- * Id is
- * /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}.
- */
- renewDestination?: string;
- renewProperties?: RenewPropertiesResponse;
- /**
- * Possible values include: 'P1Y', 'P3Y'
- */
- term?: ReservationTerm;
-}
-
-/**
- * An interface representing ReservationResponse.
- */
-export interface ReservationResponse extends BaseResource {
- /**
- * The Azure Region where the reserved resource lives.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly location?: string;
- etag?: number;
- /**
- * Identifier of the reservation
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly id?: string;
- /**
- * Name of the reservation
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly name?: string;
- sku?: SkuName;
- properties?: ReservationProperties;
- /**
- * Type of resource. "Microsoft.Capacity/reservationOrders/reservations"
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly type?: string;
-}
-
-/**
- * An interface representing ReservationOrderResponse.
- */
-export interface ReservationOrderResponse extends BaseResource {
- etag?: number;
- /**
- * Identifier of the reservation
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly id?: string;
- /**
- * Name of the reservation
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly name?: string;
- /**
- * Friendly name for user to easily identified the reservation.
- */
- displayName?: string;
- /**
- * This is the DateTime when the reservation was initially requested for purchase.
- */
- requestDateTime?: Date;
- /**
- * This is the DateTime when the reservation was created.
- */
- createdDateTime?: Date;
- /**
- * This is the date when the Reservation will expire.
- */
- expiryDate?: Date;
- originalQuantity?: number;
- /**
- * Possible values include: 'P1Y', 'P3Y'
- */
- term?: ReservationTerm;
- /**
- * Current state of the reservation.
- */
- provisioningState?: string;
- /**
- * Possible values include: 'Upfront', 'Monthly'
- */
- billingPlan?: ReservationBillingPlan;
- planInformation?: ReservationOrderBillingPlanInformation;
- reservations?: ReservationResponse[];
- /**
- * Type of resource. "Microsoft.Capacity/reservations"
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly type?: string;
-}
-
-/**
- * Currency and amount that customer will be charged in customer's local currency. Tax is not
- * included.
- */
-export interface CalculatePriceResponsePropertiesBillingCurrencyTotal {
- currencyCode?: string;
- amount?: number;
-}
-
-/**
- * Amount that Microsoft uses for record. Used during refund for calculating refund limit. Tax is
- * not included.
- */
-export interface CalculatePriceResponsePropertiesPricingCurrencyTotal {
- currencyCode?: string;
- amount?: number;
-}
-
-/**
- * An interface representing CalculatePriceResponseProperties.
- */
-export interface CalculatePriceResponseProperties {
- /**
- * Currency and amount that customer will be charged in customer's local currency. Tax is not
- * included.
- */
- billingCurrencyTotal?: CalculatePriceResponsePropertiesBillingCurrencyTotal;
- /**
- * True if billing is managed by Microsoft Partner. Used only for CSP accounts.
- */
- isBillingPartnerManaged?: boolean;
- /**
- * GUID that represents reservation order that can be placed after calculating price.
- */
- reservationOrderId?: string;
- /**
- * Title of SKU that is being purchased.
- */
- skuTitle?: string;
- /**
- * Description of SKU that is being purchased.
- */
- skuDescription?: string;
- /**
- * Amount that Microsoft uses for record. Used during refund for calculating refund limit. Tax is
- * not included.
- */
- pricingCurrencyTotal?: CalculatePriceResponsePropertiesPricingCurrencyTotal;
- paymentSchedule?: PaymentDetail[];
-}
-
-/**
- * An interface representing CalculatePriceResponse.
- */
-export interface CalculatePriceResponse {
- properties?: CalculatePriceResponseProperties;
-}
-
-/**
- * An interface representing PatchPropertiesRenewProperties.
- */
-export interface PatchPropertiesRenewProperties {
- purchaseProperties?: PurchaseRequest;
-}
-
-/**
- * An interface representing MergeRequest.
- */
-export interface MergeRequest {
- /**
- * Format of the resource id should be
- * /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}
- */
- sources?: string[];
-}
-
-/**
- * An interface representing Patch.
- */
-export interface Patch {
- /**
- * Possible values include: 'Single', 'Shared'
- */
- appliedScopeType?: AppliedScopeType;
- appliedScopes?: string[];
- /**
- * Possible values include: 'On', 'Off'
- */
- instanceFlexibility?: InstanceFlexibility;
- /**
- * Name of the Reservation
- */
- name?: string;
- renew?: boolean;
- renewProperties?: PatchPropertiesRenewProperties;
-}
-
-/**
- * An interface representing SplitRequest.
- */
-export interface SplitRequest {
- /**
- * List of the quantities in the new reservations to create.
- */
- quantities?: number[];
- /**
- * Resource id of the reservation to be split. Format of the resource id should be
- * /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}
- */
- reservationId?: string;
-}
-
-/**
- * An interface representing ExtendedErrorInfo.
- */
-export interface ExtendedErrorInfo {
- /**
- * Possible values include: 'NotSpecified', 'InternalServerError', 'ServerTimeout',
- * 'AuthorizationFailed', 'BadRequest', 'ClientCertificateThumbprintNotSet',
- * 'InvalidRequestContent', 'OperationFailed', 'HttpMethodNotSupported', 'InvalidRequestUri',
- * 'MissingTenantId', 'InvalidTenantId', 'InvalidReservationOrderId', 'InvalidReservationId',
- * 'ReservationIdNotInReservationOrder', 'ReservationOrderNotFound', 'InvalidSubscriptionId',
- * 'InvalidAccessToken', 'InvalidLocationId', 'UnauthenticatedRequestsThrottled',
- * 'InvalidHealthCheckType', 'Forbidden', 'BillingScopeIdCannotBeChanged',
- * 'AppliedScopesNotAssociatedWithCommerceAccount', 'PatchValuesSameAsExisting',
- * 'RoleAssignmentCreationFailed', 'ReservationOrderCreationFailed',
- * 'ReservationOrderNotEnabled', 'CapacityUpdateScopesFailed', 'UnsupportedReservationTerm',
- * 'ReservationOrderIdAlreadyExists', 'RiskCheckFailed', 'CreateQuoteFailed',
- * 'ActivateQuoteFailed', 'NonsupportedAccountId', 'PaymentInstrumentNotFound',
- * 'MissingAppliedScopesForSingle', 'NoValidReservationsToReRate', 'ReRateOnlyAllowedForEA',
- * 'OperationCannotBePerformedInCurrentState', 'InvalidSingleAppliedScopesCount',
- * 'InvalidFulfillmentRequestParameters', 'NotSupportedCountry', 'InvalidRefundQuantity',
- * 'PurchaseError', 'BillingCustomerInputError', 'BillingPaymentInstrumentSoftError',
- * 'BillingPaymentInstrumentHardError', 'BillingTransientError', 'BillingError',
- * 'FulfillmentConfigurationError', 'FulfillmentOutOfStockError', 'FulfillmentTransientError',
- * 'FulfillmentError', 'CalculatePriceFailed'
- */
- code?: ErrorResponseCode;
- message?: string;
-}
-
-/**
- * An interface representing ErrorModel.
- */
export interface ErrorModel {
error?: ExtendedErrorInfo;
}
-/**
- * An interface representing AppliedReservationList.
- */
-export interface AppliedReservationList {
- value?: string[];
- /**
- * Url to get the next page of reservations
- */
- nextLink?: string;
+export interface ExtendedErrorInfo {
+ code?: ErrorResponseCode;
+ message?: string;
+}
+
+export interface Catalog {
+ /**
+ * The type of resource the SKU applies to.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly resourceType?: string;
+ /**
+ * The name of SKU
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly name?: string;
+ /** The billing plan options available for this SKU. */
+ billingPlans?: { [propertyName: string]: ReservationBillingPlan[] };
+ /**
+ * Available reservation terms for this resource
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly terms?: ReservationTerm[];
+ /** NOTE: This property will not be serialized. It can only be populated by the server. */
+ readonly locations?: string[];
+ /** NOTE: This property will not be serialized. It can only be populated by the server. */
+ readonly skuProperties?: SkuProperty[];
+ /**
+ * Pricing information about the SKU
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly msrp?: CatalogMsrp;
+ /** NOTE: This property will not be serialized. It can only be populated by the server. */
+ readonly restrictions?: SkuRestriction[];
+ /**
+ * The tier of this SKU
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly tier?: string;
+ /**
+ * The size of this SKU
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly size?: string;
+ /** NOTE: This property will not be serialized. It can only be populated by the server. */
+ readonly capabilities?: SkuCapability[];
+}
+
+export interface SkuProperty {
+ /** An invariant to describe the feature. */
+ name?: string;
+ /** An invariant if the feature is measured by quantity. */
+ value?: string;
+}
+
+/** Pricing information about the SKU */
+export interface CatalogMsrp {
+ /** Amount in pricing currency. Tax not included. */
+ p1Y?: Price;
+}
+
+export interface Price {
+ /** The ISO 4217 3-letter currency code for the currency used by this purchase record. */
+ currencyCode?: string;
+ amount?: number;
+}
+
+export interface SkuRestriction {
+ /** The type of restrictions. */
+ type?: string;
+ /** The value of restrictions. If the restriction type is set to location. This would be different locations where the SKU is restricted. */
+ values?: string[];
+ /** The reason for restriction. */
+ reasonCode?: string;
+}
+
+export interface SkuCapability {
+ /** An invariant to describe the feature. */
+ name?: string;
+ /** An invariant if the feature is measured by quantity. */
+ value?: string;
}
-/**
- * An interface representing AppliedReservations.
- */
export interface AppliedReservations {
/**
* Identifier of the applied reservations
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly id?: string;
/**
* Name of resource
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly name?: string;
/**
* Type of resource. "Microsoft.Capacity/AppliedReservations"
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly type?: string;
reservationOrderIds?: AppliedReservationList;
}
-/**
- * An interface representing OperationDisplay.
- */
+export interface AppliedReservationList {
+ value?: string[];
+ /** Url to get the next page of reservations */
+ nextLink?: string;
+}
+
+export interface PurchaseRequest {
+ sku?: SkuName;
+ /** The Azure Region where the reserved resource lives. */
+ location?: string;
+ /** The type of the resource that is being reserved. */
+ reservedResourceType?: ReservedResourceType;
+ /** Subscription that will be charged for purchasing Reservation */
+ billingScopeId?: string;
+ /** Represent the term of Reservation. */
+ term?: ReservationTerm;
+ /** Represent the billing plans. */
+ billingPlan?: ReservationBillingPlan;
+ /** Quantity of the SKUs that are part of the Reservation. */
+ quantity?: number;
+ /** Friendly name of the Reservation */
+ displayName?: string;
+ /** Type of the Applied Scope. */
+ appliedScopeType?: AppliedScopeType;
+ /** List of the subscriptions that the benefit will be applied. Do not specify if AppliedScopeType is Shared. */
+ appliedScopes?: string[];
+ /** Setting this to true will automatically purchase a new reservation on the expiration date time. */
+ renew?: boolean;
+ /** Properties specific to each reserved resource type. Not required if not applicable. */
+ reservedResourceProperties?: PurchaseRequestPropertiesReservedResourceProperties;
+}
+
+export interface SkuName {
+ name?: string;
+}
+
+/** Properties specific to each reserved resource type. Not required if not applicable. */
+export interface PurchaseRequestPropertiesReservedResourceProperties {
+ /** Turning this on will apply the reservation discount to other VMs in the same VM size group. Only specify for VirtualMachines reserved resource type. */
+ instanceFlexibility?: InstanceFlexibility;
+}
+
+export interface CalculatePriceResponse {
+ properties?: CalculatePriceResponseProperties;
+}
+
+export interface CalculatePriceResponseProperties {
+ /** Currency and amount that customer will be charged in customer's local currency. Tax is not included. */
+ billingCurrencyTotal?: CalculatePriceResponsePropertiesBillingCurrencyTotal;
+ /** Net total amount in pricing currency. */
+ netTotal?: number;
+ /** Tax amount in pricing currency. */
+ taxTotal?: number;
+ /** Total amount in pricing currency. */
+ grandTotal?: number;
+ /** Whether or not tax is included in grand total */
+ isTaxIncluded?: boolean;
+ /** True if billing is managed by Microsoft Partner. Used only for CSP accounts. */
+ isBillingPartnerManaged?: boolean;
+ /** GUID that represents reservation order that can be placed after calculating price. */
+ reservationOrderId?: string;
+ /** Title of SKU that is being purchased. */
+ skuTitle?: string;
+ /** Description of SKU that is being purchased. */
+ skuDescription?: string;
+ /** Amount that Microsoft uses for record. Used during refund for calculating refund limit. Tax is not included. */
+ pricingCurrencyTotal?: CalculatePriceResponsePropertiesPricingCurrencyTotal;
+ paymentSchedule?: PaymentDetail[];
+}
+
+/** Currency and amount that customer will be charged in customer's local currency. Tax is not included. */
+export interface CalculatePriceResponsePropertiesBillingCurrencyTotal {
+ /** The ISO 4217 3-letter currency code for the currency used by this purchase record. */
+ currencyCode?: string;
+ /** Amount in pricing currency. Tax is not included. */
+ amount?: number;
+}
+
+/** Amount that Microsoft uses for record. Used during refund for calculating refund limit. Tax is not included. */
+export interface CalculatePriceResponsePropertiesPricingCurrencyTotal {
+ /** The ISO 4217 3-letter currency code for the currency used by this purchase record. */
+ currencyCode?: string;
+ amount?: number;
+}
+
+/** Information about payment related to a reservation order. */
+export interface PaymentDetail {
+ /** Date when the payment needs to be done. */
+ dueDate?: Date;
+ /** Date when the transaction is completed. Is null when it is scheduled. */
+ paymentDate?: Date;
+ /** Amount in pricing currency. Tax not included. */
+ pricingCurrencyTotal?: Price;
+ /** Amount charged in Billing currency. Tax not included. Is null for future payments */
+ billingCurrencyTotal?: Price;
+ /** Shows the Account that is charged for this payment. */
+ billingAccount?: string;
+ /** Describes whether the payment is completed, failed, cancelled or scheduled in the future. */
+ status?: PaymentStatus;
+ extendedStatusInfo?: ExtendedStatusInfo;
+}
+
+export interface ExtendedStatusInfo {
+ statusCode?: ReservationStatusCode;
+ /** The message giving detailed information about the status code. */
+ message?: string;
+}
+
+export interface ReservationOrderList {
+ value?: ReservationOrderResponse[];
+ /** Url to get the next page of reservationOrders. */
+ nextLink?: string;
+}
+
+export interface ReservationOrderResponse {
+ etag?: number;
+ /**
+ * Identifier of the reservation
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly id?: string;
+ /**
+ * Name of the reservation
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly name?: string;
+ /**
+ * Type of resource. "Microsoft.Capacity/reservations"
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly type?: string;
+ /**
+ * Metadata pertaining to creation and last modification of the resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly systemData?: SystemData;
+ /** Friendly name for user to easily identified the reservation. */
+ displayName?: string;
+ /** This is the DateTime when the reservation was initially requested for purchase. */
+ requestDateTime?: Date;
+ /** This is the DateTime when the reservation was created. */
+ createdDateTime?: Date;
+ /** This is the date when the Reservation will expire. */
+ expiryDate?: Date;
+ /** Total Quantity of the SKUs purchased in the Reservation. */
+ originalQuantity?: number;
+ /** Represent the term of Reservation. */
+ term?: ReservationTerm;
+ /** Current state of the reservation. */
+ provisioningState?: ProvisioningState;
+ /** Represent the billing plans. */
+ billingPlan?: ReservationBillingPlan;
+ /** Information describing the type of billing plan for this reservation. */
+ planInformation?: ReservationOrderBillingPlanInformation;
+ reservations?: ReservationResponse[];
+}
+
+/** Information describing the type of billing plan for this reservation. */
+export interface ReservationOrderBillingPlanInformation {
+ /** Amount of money to be paid for the Order. Tax is not included. */
+ pricingCurrencyTotal?: Price;
+ /** Date when the billing plan has started. */
+ startDate?: Date;
+ /** For recurring billing plans, indicates the date when next payment will be processed. Null when total is paid off. */
+ nextPaymentDueDate?: Date;
+ transactions?: PaymentDetail[];
+}
+
+/** The definition of the reservation. */
+export interface ReservationResponse {
+ /** The Azure Region where the reserved resource lives. */
+ location?: string;
+ etag?: number;
+ /**
+ * Identifier of the reservation
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly id?: string;
+ /**
+ * Name of the reservation
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly name?: string;
+ /** The sku information associated to this reservation */
+ sku?: SkuName;
+ /** The properties associated to this reservation */
+ properties?: ReservationsProperties;
+ /**
+ * Type of resource. "Microsoft.Capacity/reservationOrders/reservations"
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly type?: string;
+ /** Resource Provider type to be reserved. */
+ kind?: "Microsoft.Compute";
+ /**
+ * Metadata pertaining to creation and last modification of the resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly systemData?: SystemData;
+}
+
+/** The properties of the reservations */
+export interface ReservationsProperties {
+ /** The type of the resource that is being reserved. */
+ reservedResourceType?: ReservedResourceType;
+ /** Allows reservation discount to be applied across skus within the same Autofit group. Not all skus support instance size flexibility. */
+ instanceFlexibility?: InstanceFlexibility;
+ /** Friendly name for user to easily identify the reservation */
+ displayName?: string;
+ /** The list of applied scopes */
+ appliedScopes?: string[];
+ /** The applied scope type */
+ appliedScopeType?: AppliedScopeType;
+ /** Indicates if the reservation is archived */
+ archived?: boolean;
+ /** Capabilities of the reservation */
+ capabilities?: string;
+ /** Quantity of the SKUs that are part of the Reservation. */
+ quantity?: number;
+ /** Current state of the reservation. */
+ provisioningState?: ProvisioningState;
+ /** DateTime of the Reservation starting when this version is effective from. */
+ effectiveDateTime?: Date;
+ /**
+ * DateTime of the last time the Reservation was updated.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly lastUpdatedDateTime?: Date;
+ /** This is the date when the Reservation will expire. */
+ expiryDate?: Date;
+ /** Description of the SKU in english. */
+ skuDescription?: string;
+ /** The message giving detailed information about the status code. */
+ extendedStatusInfo?: ExtendedStatusInfo;
+ /** The billing plan options available for this SKU. */
+ billingPlan?: ReservationBillingPlan;
+ /**
+ * The provisioning state of the reservation for display, e.g. Succeeded
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly displayProvisioningState?: string;
+ /**
+ * The provisioning state of the reservation, e.g. Succeeded
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly provisioningSubState?: string;
+ /** This is the date when the Reservation was purchased. */
+ purchaseDate?: Date;
+ splitProperties?: ReservationSplitProperties;
+ mergeProperties?: ReservationMergeProperties;
+ /** Subscription that will be charged for purchasing Reservation */
+ billingScopeId?: string;
+ /** Setting this to true will automatically purchase a new reservation on the expiration date time. */
+ renew?: boolean;
+ /** Reservation Id of the reservation from which this reservation is renewed. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}. */
+ renewSource?: string;
+ /** Reservation Id of the reservation which is purchased because of renew. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}. */
+ renewDestination?: string;
+ renewProperties?: RenewPropertiesResponse;
+ /** Represent the term of Reservation. */
+ term?: ReservationTerm;
+ /**
+ * The applied scope type of the reservation for display, e.g. Shared
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly userFriendlyAppliedScopeType?: string;
+ /**
+ * The renew state of the reservation for display, e.g. On
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly userFriendlyRenewState?: string;
+ /**
+ * Reservation utilization
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly utilization?: ReservationsPropertiesUtilization;
+}
+
+export interface ReservationSplitProperties {
+ /** List of destination Resource Id that are created due to split. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} */
+ splitDestinations?: string[];
+ /** Resource Id of the Reservation from which this is split. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} */
+ splitSource?: string;
+}
+
+export interface ReservationMergeProperties {
+ /** Reservation Resource Id Created due to the merge. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} */
+ mergeDestination?: string;
+ /** Resource Ids of the Source Reservation's merged to form this Reservation. Format of the resource Id is /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} */
+ mergeSources?: string[];
+}
+
+export interface RenewPropertiesResponse {
+ purchaseProperties?: PurchaseRequest;
+ /** Amount that Microsoft uses for record. Used during refund for calculating refund limit. Tax is not included. This is locked price 30 days before expiry. */
+ pricingCurrencyTotal?: RenewPropertiesResponsePricingCurrencyTotal;
+ /** Currency and amount that customer will be charged in customer's local currency for renewal purchase. Tax is not included. */
+ billingCurrencyTotal?: RenewPropertiesResponseBillingCurrencyTotal;
+}
+
+/** Amount that Microsoft uses for record. Used during refund for calculating refund limit. Tax is not included. This is locked price 30 days before expiry. */
+export interface RenewPropertiesResponsePricingCurrencyTotal {
+ /** The ISO 4217 3-letter currency code for the currency used by this purchase record. */
+ currencyCode?: string;
+ amount?: number;
+}
+
+/** Currency and amount that customer will be charged in customer's local currency for renewal purchase. Tax is not included. */
+export interface RenewPropertiesResponseBillingCurrencyTotal {
+ /** The ISO 4217 3-letter currency code for the currency used by this purchase record. */
+ currencyCode?: string;
+ amount?: number;
+}
+
+/** Reservation utilization */
+export interface ReservationsPropertiesUtilization {
+ /**
+ * The number of days trend for a reservation
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly trend?: string;
+ /** The array of aggregates of a reservation's utilization */
+ aggregates?: ReservationUtilizationAggregates[];
+}
+
+/** The aggregate values of reservation utilization */
+export interface ReservationUtilizationAggregates {
+ /**
+ * The grain of the aggregate
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly grain?: number;
+ /**
+ * The grain unit of the aggregate
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly grainUnit?: string;
+ /**
+ * The aggregate value
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly value?: number;
+ /**
+ * The aggregate value unit
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly valueUnit?: string;
+}
+
+/** Metadata pertaining to creation and last modification of the resource. */
+export interface SystemData {
+ /** The identity that created the resource. */
+ createdBy?: string;
+ /** The type of identity that created the resource. */
+ createdByType?: CreatedByType;
+ /** The timestamp of resource creation (UTC). */
+ createdAt?: Date;
+ /** The identity that last modified the resource. */
+ lastModifiedBy?: string;
+ /** The type of identity that last modified the resource. */
+ lastModifiedByType?: CreatedByType;
+ /** The timestamp of resource last modification (UTC) */
+ lastModifiedAt?: Date;
+}
+
+export interface SplitRequest {
+ /** List of the quantities in the new reservations to create. */
+ quantities?: number[];
+ /** Resource id of the reservation to be split. Format of the resource id should be /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} */
+ reservationId?: string;
+}
+
+export interface MergeRequest {
+ /** Format of the resource id should be /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId} */
+ sources?: string[];
+}
+
+export interface ReservationList {
+ value?: ReservationResponse[];
+ /** Url to get the next page of reservations. */
+ nextLink?: string;
+}
+
+export interface Patch {
+ /** Type of the Applied Scope. */
+ appliedScopeType?: AppliedScopeType;
+ /** List of the subscriptions that the benefit will be applied. Do not specify if AppliedScopeType is Shared. */
+ appliedScopes?: string[];
+ /** Turning this on will apply the reservation discount to other VMs in the same VM size group. Only specify for VirtualMachines reserved resource type. */
+ instanceFlexibility?: InstanceFlexibility;
+ /** Name of the Reservation */
+ name?: string;
+ /** Setting this to true will automatically purchase a new reservation on the expiration date time. */
+ renew?: boolean;
+ renewProperties?: PatchPropertiesRenewProperties;
+}
+
+export interface PatchPropertiesRenewProperties {
+ purchaseProperties?: PurchaseRequest;
+}
+
+export interface OperationList {
+ value?: OperationResponse[];
+ /** Url to get the next page of items. */
+ nextLink?: string;
+}
+
+export interface OperationResponse {
+ /** Name of the operation */
+ name?: string;
+ /** Indicates whether the operation is a data action */
+ isDataAction?: boolean;
+ /** Display of the operation */
+ display?: OperationDisplay;
+ /** Origin of the operation */
+ origin?: string;
+ /** Properties of the operation */
+ properties?: Record;
+}
+
export interface OperationDisplay {
provider?: string;
resource?: string;
@@ -894,1425 +565,1511 @@ export interface OperationDisplay {
description?: string;
}
-/**
- * An interface representing OperationResponse.
- */
-export interface OperationResponse {
+/** Calculate exchange request */
+export interface CalculateExchangeRequest {
+ /** Calculate exchange request properties */
+ properties?: CalculateExchangeRequestProperties;
+}
+
+/** Calculate exchange request properties */
+export interface CalculateExchangeRequestProperties {
+ /** List of reservations that are being purchased in this exchange. */
+ reservationsToPurchase?: PurchaseRequest[];
+ /** List of reservations that are being returned in this exchange. */
+ reservationsToExchange?: ReservationToReturn[];
+}
+
+/** Reservation to return */
+export interface ReservationToReturn {
+ /** Fully qualified identifier of the Reservation being returned */
+ reservationId?: string;
+ /** Quantity to be returned. Must be greater than zero. */
+ quantity?: number;
+}
+
+/** CalculateExchange operation result */
+export interface CalculateExchangeOperationResultResponse {
+ /** It should match what is used to GET the operation result. */
+ id?: string;
+ /** It must match the last segment of the id field, and will typically be a GUID / system generated value. */
name?: string;
- display?: OperationDisplay;
- origin?: string;
+ /** Status of the operation. */
+ status?: CalculateExchangeOperationResultStatus;
+ /** CalculateExchange response properties */
+ properties?: CalculateExchangeResponseProperties;
+ /** Required if status == failed or status == canceled. */
+ error?: OperationResultError;
}
-/**
- * An interface representing ScopeProperties.
- */
-export interface ScopeProperties {
- scope?: string;
- valid?: boolean;
+/** CalculateExchange response properties */
+export interface CalculateExchangeResponseProperties {
+ /** Exchange session identifier */
+ sessionId?: string;
+ netPayable?: Price;
+ refundsTotal?: Price;
+ purchasesTotal?: Price;
+ /** Details of the reservations being purchased */
+ reservationsToPurchase?: ReservationToPurchaseCalculateExchange[];
+ /** Details of the reservations being returned */
+ reservationsToExchange?: ReservationToExchange[];
+ /** Exchange policy errors */
+ policyResult?: ExchangePolicyErrors;
}
-/**
- * An interface representing SubscriptionScopeProperties.
- */
-export interface SubscriptionScopeProperties {
- scopes?: ScopeProperties[];
+/** Reservation purchase details */
+export interface ReservationToPurchaseCalculateExchange {
+ properties?: PurchaseRequest;
+ billingCurrencyTotal?: Price;
}
-/**
- * An interface representing AvailableScopeProperties.
- */
-export interface AvailableScopeProperties {
- properties?: SubscriptionScopeProperties;
+/** Reservation refund details */
+export interface ReservationToExchange {
+ /** Fully qualified id of the Reservation being returned. */
+ reservationId?: string;
+ /** Quantity to be returned */
+ quantity?: number;
+ billingRefundAmount?: Price;
+ /** billing information */
+ billingInformation?: BillingInformation;
}
-/**
- * Resource name provided by the resource provider. Use this property for quotaRequest parameter.
- */
-export interface ResourceName {
+/** billing information */
+export interface BillingInformation {
+ billingCurrencyTotalPaidAmount?: Price;
+ billingCurrencyProratedAmount?: Price;
+ billingCurrencyRemainingCommitmentAmount?: Price;
+}
+
+/** Exchange policy errors */
+export interface ExchangePolicyErrors {
+ /** Exchange Policy errors */
+ policyErrors?: ExchangePolicyError[];
+}
+
+/** error details */
+export interface ExchangePolicyError {
+ code?: string;
+ message?: string;
+}
+
+/** Required if status == failed or status == canceled. */
+export interface OperationResultError {
+ /** Required if status == failed or status == cancelled. If status == failed, provide an invariant error code used for error troubleshooting, aggregation, and analysis. */
+ code?: string;
+ /** Required if status == failed. Localized. If status == failed, provide an actionable error message indicating what error occurred, and what the user can do to address the issue. */
+ message?: string;
+}
+
+/** Exchange request */
+export interface ExchangeRequest {
+ /** Exchange request properties */
+ properties?: ExchangeRequestProperties;
+}
+
+/** Exchange request properties */
+export interface ExchangeRequestProperties {
+ /** SessionId that was returned by CalculateExchange API. */
+ sessionId?: string;
+}
+
+/** Exchange operation result */
+export interface ExchangeOperationResultResponse {
+ /** It should match what is used to GET the operation result. */
+ id?: string;
+ /** It must match the last segment of the id field, and will typically be a GUID / system generated value. */
+ name?: string;
+ /** Status of the operation. */
+ status?: ExchangeOperationResultStatus;
+ /** Exchange response properties */
+ properties?: ExchangeResponseProperties;
+ /** Required if status == failed or status == canceled. */
+ error?: OperationResultError;
+}
+
+/** Exchange response properties */
+export interface ExchangeResponseProperties {
+ /** Exchange session identifier */
+ sessionId?: string;
+ netPayable?: Price;
+ refundsTotal?: Price;
+ purchasesTotal?: Price;
+ /** Details of the reservations being purchased */
+ reservationsToPurchase?: ReservationToPurchaseExchange[];
+ /** Details of the reservations being returned */
+ reservationsToExchange?: ReservationToReturnForExchange[];
+ /** Exchange policy errors */
+ policyResult?: ExchangePolicyErrors;
+}
+
+/** Reservation purchase details */
+export interface ReservationToPurchaseExchange {
+ /** Fully qualified id of the ReservationOrder being purchased */
+ reservationOrderId?: string;
+ /** Fully qualified id of the Reservation being purchased. This value is only guaranteed to be non-null if the purchase is successful. */
+ reservationId?: string;
+ properties?: PurchaseRequest;
+ billingCurrencyTotal?: Price;
+ /** Status of the individual operation. */
+ status?: OperationStatus;
+}
+
+/** Reservation refund details */
+export interface ReservationToReturnForExchange {
+ /** Fully qualified id of the Reservation being returned. */
+ reservationId?: string;
+ /** Quantity to be returned */
+ quantity?: number;
+ billingRefundAmount?: Price;
+ /** billing information */
+ billingInformation?: BillingInformation;
+ /** Status of the individual operation. */
+ status?: OperationStatus;
+}
+
+/** The list of reservations and summary of roll out count of reservations in each state. */
+export interface ReservationsListResult {
/**
- * Resource name.
+ * The list of reservations.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
+ readonly value?: ReservationResponse[];
+ /**
+ * The link (url) to the next page of results.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly nextLink?: string;
+ /** The roll out count summary of the reservations */
+ summary?: ReservationSummary;
+}
+
+/** The roll up count summary of reservations in each state */
+export interface ReservationSummary {
+ /**
+ * The number of reservation in Succeeded state
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly succeededCount?: number;
+ /**
+ * The number of reservation in Failed state
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly failedCount?: number;
+ /**
+ * The number of reservation in Expiring state
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly expiringCount?: number;
+ /**
+ * The number of reservation in Expired state
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly expiredCount?: number;
+ /**
+ * The number of reservation in Pending state
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly pendingCount?: number;
+ /**
+ * The number of reservation in Cancelled state
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly cancelledCount?: number;
+}
+
+/** Error response indicates that the service is not able to process the incoming request. The reason is provided in the error message. */
+export interface ErrorResponse {
+ /** The details of the error. */
+ error?: ErrorDetails;
+}
+
+/** The details of the error. */
+export interface ErrorDetails {
+ /**
+ * Error code.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly code?: string;
+ /**
+ * Error message indicating why the operation failed.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly message?: string;
+ /**
+ * The target of the particular error.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly target?: string;
+}
+
+export interface ChangeDirectoryRequest {
+ /** Tenant id GUID that reservation order is to be transferred to */
+ destinationTenantId?: string;
+}
+
+/** Change directory response */
+export interface ChangeDirectoryResponse {
+ /** Change directory result for reservation order or reservation */
+ reservationOrder?: ChangeDirectoryResult;
+ reservations?: ChangeDirectoryResult[];
+}
+
+/** Change directory result for reservation order or reservation */
+export interface ChangeDirectoryResult {
+ /** Identifier of the reservation order or reservation */
+ id?: string;
+ /** Name of the reservation order or reservation */
+ name?: string;
+ /** True if change directory operation succeeded on this reservation order or reservation */
+ isSucceeded?: boolean;
+ /** Error reason if operation failed. Null otherwise */
+ error?: string;
+}
+
+/** Quota properties. */
+export interface CurrentQuotaLimitBase {
+ /** Quota properties for the resource. */
+ properties?: QuotaProperties;
+}
+
+/** Quota properties for the resource. */
+export interface QuotaProperties {
+ /** Quota properties. */
+ limit?: number;
+ /**
+ * Current usage value for the resource.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly currentValue?: number;
+ /** The limit units, such as **count** and **bytes**. Use the unit field provided in the response of the GET quota operation. */
+ unit?: string;
+ /** Name of the resource provide by the resource provider. Use this property for quotaRequests resource operations. */
+ name?: ResourceName;
+ /** The name of the resource type. */
+ resourceType?: ResourceType;
+ /**
+ * The time period over which the quota usage values are summarized. For example, P1D (per one day), PT1M (per one minute), and PT1S (per one second). This parameter is optional because, for some resources such as compute, the time period is irrelevant.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly quotaPeriod?: string;
+ /** Additional properties for the specified resource provider. */
+ properties?: Record;
+}
+
+/** Resource name provided by the resource provider. Use this property for quotaRequest parameter. */
+export interface ResourceName {
+ /** Resource name. */
value?: string;
/**
* Resource display localized name.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly localizedValue?: string;
}
-/**
- * Quota properties for the resource.
- */
-export interface QuotaProperties {
- /**
- * Quota properties.
- */
- limit?: number;
- /**
- * Current usage value for the resource.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly currentValue?: number;
- /**
- * The limit units, such as **count** and **bytes**. Use the unit field provided in the response
- * of the GET quota operation.
- */
- unit?: string;
- /**
- * Name of the resource provide by the resource provider. Use this property for quotaRequests
- * resource operations.
- */
- name?: ResourceName;
- /**
- * The name of the resource type.
- */
- resourceType?: any;
- /**
- * The time period over which the quota usage values are summarized. For example, P1D (per one
- * day), PT1M (per one minute), and PT1S (per one second). This parameter is optional because,
- * for some resources such as compute, the time period is irrelevant.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly quotaPeriod?: string;
- /**
- * Additional properties for the specified resource provider.
- */
- properties?: any;
+/** The API error. */
+export interface ExceptionResponse {
+ /** The API error details. */
+ error?: ServiceError;
}
-/**
- * Quota properties.
- */
-export interface CurrentQuotaLimitBase extends BaseResource {
- /**
- * Quota properties for the resource.
- */
- properties?: QuotaProperties;
-}
-
-/**
- * Current quota limits.
- */
-export interface CurrentQuotaLimit extends BaseResource {
- /**
- * Quota properties for the resource.
- */
- properties?: QuotaProperties;
- /**
- * The details of the quota request status.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly provisioningState?: any;
- /**
- * A user friendly message.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly message?: string;
-}
-
-/**
- * Quotas (service limits) in the request response.
- */
-export interface QuotaLimitsResponse {
- /**
- * List of quotas with the quota request status.
- */
- value?: CurrentQuotaLimit[];
- /**
- * The URI for fetching the next page of quota limits. When no more pages exist, the value is
- * null.
- */
- nextLink?: string;
-}
-
-/**
- * Quota change requests information.
- */
-export interface CreateGenericQuotaRequestParameters {
- /**
- * Quota change requests.
- */
- value?: CurrentQuotaLimitBase[];
-}
-
-/**
- * The sub-request submitted with the quota request.
- */
-export interface SubRequest {
- /**
- * Quota (resource limit).
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly limit?: number;
- /**
- * The resource name.
- */
- name?: ResourceName;
- /**
- * Resource type for which the quota check was made.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly resourceType?: string;
- /**
- * The limit units, such as **count** and **bytes**. Use the unit field provided in the response
- * of the GET quota operation.
- */
- unit?: string;
- /**
- * The quota request status.
- */
- provisioningState?: any;
- /**
- * User-friendly status message.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly message?: string;
- /**
- * Sub request ID for individual request.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly subRequestId?: string;
-}
-
-/**
- * Response for the quota submission request.
- */
-export interface QuotaRequestOneResourceSubmitResponse extends BaseResource {
- /**
- * The quota request ID.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly id?: string;
- /**
- * The name of the quota request.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly name?: string;
- /**
- * Type of resource. "Microsoft.Capacity/ServiceLimits"
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly type?: string;
- /**
- * The quota request status.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly provisioningState?: any;
- /**
- * User friendly status message.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly message?: string;
- /**
- * The time when the quota request was submitted using format: yyyy-MM-ddTHH:mm:ssZ as specified
- * by the ISO 8601 standard.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly requestSubmitTime?: Date;
- /**
- * Quota properties for the resource.
- */
- properties?: QuotaProperties;
-}
-
-/**
- * The details of quota request.
- */
-export interface QuotaRequestProperties {
- /**
- * The quota request status.
- */
- provisioningState?: any;
- /**
- * User friendly status message.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly message?: string;
- /**
- * The time when the quota request was submitted using format: yyyy-MM-ddTHH:mm:ssZ as specified
- * by the ISO 8601 standard.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly requestSubmitTime?: Date;
- /**
- * The quotaRequests.
- */
- value?: SubRequest[];
-}
-
-/**
- * Response for the quota submission request.
- */
-export interface QuotaRequestSubmitResponse extends BaseResource {
- /**
- * The quota request ID.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly id?: string;
- /**
- * The name of the quota request.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly name?: string;
- /**
- * The quota request details.
- */
- properties?: QuotaRequestProperties;
- /**
- * Type of resource. "Microsoft.Capacity/serviceLimits"
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly type?: string;
-}
-
-/**
- * Response with request ID that the quota request was accepted.
- */
-export interface QuotaRequestSubmitResponse201 {
- /**
- * The quota request ID. Use the requestId parameter to check the request status.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly id?: string;
- /**
- * Operation ID
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly name?: string;
- /**
- * Resource type
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly type?: string;
- /**
- * The details of the quota request status.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly provisioningState?: any;
- /**
- * A user friendly message.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly message?: string;
-}
-
-/**
- * Quota request details.
- */
-export interface QuotaRequestDetails extends BaseResource {
- /**
- * Quota request ID.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly id?: string;
- /**
- * Quota request name.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly name?: string;
- /**
- * The quota request status.
- */
- provisioningState?: any;
- /**
- * User friendly status message.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly message?: string;
- /**
- * The time when the quota request was submitted using format: yyyy-MM-ddTHH:mm:ssZ as specified
- * by the ISO 8601 standard.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly requestSubmitTime?: Date;
- /**
- * The quotaRequests.
- */
- value?: SubRequest[];
- /**
- * Resource type
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly type?: string;
-}
-
-/**
- * The error details.
- */
-export interface ServiceErrorDetail {
- /**
- * The error code.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly code?: string;
- /**
- * The error message.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
- */
- readonly message?: string;
-}
-
-/**
- * The API error details.
- */
+/** The API error details. */
export interface ServiceError {
- /**
- * The error code.
- */
+ /** The error code. */
code?: string;
- /**
- * The error message text.
- */
+ /** The error message text. */
message?: string;
/**
* The list of error details.
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
readonly details?: ServiceErrorDetail[];
}
-/**
- * The API error.
- */
-export interface ExceptionResponse {
+/** The error details. */
+export interface ServiceErrorDetail {
/**
- * The API error details.
+ * The error code.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
*/
- error?: ServiceError;
+ readonly code?: string;
+ /**
+ * The error message.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly message?: string;
+}
+
+/** Response for the quota submission request. */
+export interface QuotaRequestOneResourceSubmitResponse {
+ /**
+ * The quota request ID.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly id?: string;
+ /**
+ * The name of the quota request.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly name?: string;
+ /**
+ * Type of resource. "Microsoft.Capacity/ServiceLimits"
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly type?: string;
+ /**
+ * The quota request status.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly provisioningState?: QuotaRequestState;
+ /**
+ * User friendly status message.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly message?: string;
+ /**
+ * The time when the quota request was submitted using format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly requestSubmitTime?: Date;
+ /** Quota properties for the resource. */
+ properties?: QuotaProperties;
+}
+
+/** Response with request ID that the quota request was accepted. */
+export interface QuotaRequestSubmitResponse201 {
+ /**
+ * The quota request ID. Use the requestId parameter to check the request status.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly id?: string;
+ /**
+ * Operation ID
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly name?: string;
+ /**
+ * Resource type
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly type?: string;
+ /**
+ * The details of the quota request status.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly provisioningState?: QuotaRequestState;
+ /**
+ * A user friendly message.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly message?: string;
+}
+
+/** Quota limits. */
+export interface QuotaLimits {
+ /** List of quotas (service limits). */
+ value?: CurrentQuotaLimitBase[];
+ /** The URI for fetching the next page of quotas (service limits). When no more pages exist, the value is null. */
+ nextLink?: string;
+}
+
+/** Quota request details. */
+export interface QuotaRequestDetails {
+ /**
+ * Quota request ID.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly id?: string;
+ /**
+ * Quota request name.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly name?: string;
+ /**
+ * Resource type
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly type?: string;
+ /** The quota request status. */
+ provisioningState?: QuotaRequestState;
+ /**
+ * User friendly status message.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly message?: string;
+ /**
+ * The time when the quota request was submitted using format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly requestSubmitTime?: Date;
+ /** The quotaRequests. */
+ value?: SubRequest[];
+}
+
+/** The details of quota request. */
+export interface QuotaRequestProperties {
+ /** The quota request status. */
+ provisioningState?: QuotaRequestState;
+ /**
+ * User friendly status message.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly message?: string;
+ /**
+ * The time when the quota request was submitted using format: yyyy-MM-ddTHH:mm:ssZ as specified by the ISO 8601 standard.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly requestSubmitTime?: Date;
+ /** The quotaRequests. */
+ value?: SubRequest[];
+}
+
+/** The sub-request submitted with the quota request. */
+export interface SubRequest {
+ /**
+ * Quota (resource limit).
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly limit?: number;
+ /** The resource name. */
+ name?: ResourceName;
+ /**
+ * Resource type for which the quota check was made.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly resourceType?: string;
+ /** The limit units, such as **count** and **bytes**. Use the unit field provided in the response of the GET quota operation. */
+ unit?: string;
+ /** The quota request status. */
+ provisioningState?: QuotaRequestState;
+ /**
+ * User-friendly status message.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly message?: string;
+ /**
+ * Sub request ID for individual request.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly subRequestId?: string;
+}
+
+/** Quota request details. */
+export interface QuotaRequestDetailsList {
+ /** The quota requests. */
+ value?: QuotaRequestDetails[];
+ /** The URI to fetch the next page of quota limits. When there are no more pages, this is null. */
+ nextLink?: string;
+}
+
+/** Current quota limits. */
+export interface CurrentQuotaLimit {
+ /**
+ * The details of the quota request status.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly provisioningState?: QuotaRequestState;
+ /**
+ * A user friendly message.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly message?: string;
+ /** Quota properties for the resource. */
+ properties?: QuotaProperties;
+}
+
+/** Quotas (service limits) in the request response. */
+export interface QuotaLimitsResponse {
+ /** List of quotas with the quota request status. */
+ value?: CurrentQuotaLimit[];
+ /** The URI for fetching the next page of quota limits. When no more pages exist, the value is null. */
+ nextLink?: string;
+}
+
+/** Quota change requests information. */
+export interface CreateGenericQuotaRequestParameters {
+ /** Quota change requests. */
+ value?: CurrentQuotaLimitBase[];
+}
+
+/** Response for the quota submission request. */
+export interface QuotaRequestSubmitResponse {
+ /**
+ * The quota request ID.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly id?: string;
+ /**
+ * The name of the quota request.
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly name?: string;
+ /** The quota request details. */
+ properties?: QuotaRequestProperties;
+ /**
+ * Type of resource. "Microsoft.Capacity/serviceLimits"
+ * NOTE: This property will not be serialized. It can only be populated by the server.
+ */
+ readonly type?: string;
+}
+
+/** Defines headers for CalculateExchange_post operation. */
+export interface CalculateExchangePostHeaders {
+ /** URL for checking the ongoing status of the operation. */
+ azureAsyncOperation?: string;
+ /** URL for determining when an operation has completed. Only use this value only when Azure-AsyncOperation isn't returned. */
+ location?: string;
+ /** Clients should wait for the Retry-After interval before polling again */
+ retryAfter?: number;
+}
+
+/** Defines headers for Exchange_post operation. */
+export interface ExchangePostHeaders {
+ /** URL for checking the ongoing status of the operation. */
+ azureAsyncOperation?: string;
+ /** URL for determining when an operation has completed. Only use this value only when Azure-AsyncOperation isn't returned. */
+ location?: string;
+ /** Clients should wait for the Retry-After interval before polling again */
+ retryAfter?: number;
+}
+
+/** Defines headers for Quota_get operation. */
+export interface QuotaGetHeaders {
+ /** Current entity state version. It should be treated as opaque and used to make conditional HTTP requests. */
+ eTag?: string;
+}
+
+/** Defines headers for Quota_list operation. */
+export interface QuotaListHeaders {
+ /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */
+ eTag?: string;
+}
+
+/** Defines headers for Quota_listNext operation. */
+export interface QuotaListNextHeaders {
+ /** Current entity state version. Should be treated as opaque and used to make conditional HTTP requests. */
+ eTag?: string;
+}
+
+/** Known values of {@link ErrorResponseCode} that the service accepts. */
+export enum KnownErrorResponseCode {
+ NotSpecified = "NotSpecified",
+ InternalServerError = "InternalServerError",
+ ServerTimeout = "ServerTimeout",
+ AuthorizationFailed = "AuthorizationFailed",
+ BadRequest = "BadRequest",
+ ClientCertificateThumbprintNotSet = "ClientCertificateThumbprintNotSet",
+ InvalidRequestContent = "InvalidRequestContent",
+ OperationFailed = "OperationFailed",
+ HttpMethodNotSupported = "HttpMethodNotSupported",
+ InvalidRequestUri = "InvalidRequestUri",
+ MissingTenantId = "MissingTenantId",
+ InvalidTenantId = "InvalidTenantId",
+ InvalidReservationOrderId = "InvalidReservationOrderId",
+ InvalidReservationId = "InvalidReservationId",
+ ReservationIdNotInReservationOrder = "ReservationIdNotInReservationOrder",
+ ReservationOrderNotFound = "ReservationOrderNotFound",
+ InvalidSubscriptionId = "InvalidSubscriptionId",
+ InvalidAccessToken = "InvalidAccessToken",
+ InvalidLocationId = "InvalidLocationId",
+ UnauthenticatedRequestsThrottled = "UnauthenticatedRequestsThrottled",
+ InvalidHealthCheckType = "InvalidHealthCheckType",
+ Forbidden = "Forbidden",
+ BillingScopeIdCannotBeChanged = "BillingScopeIdCannotBeChanged",
+ AppliedScopesNotAssociatedWithCommerceAccount = "AppliedScopesNotAssociatedWithCommerceAccount",
+ PatchValuesSameAsExisting = "PatchValuesSameAsExisting",
+ RoleAssignmentCreationFailed = "RoleAssignmentCreationFailed",
+ ReservationOrderCreationFailed = "ReservationOrderCreationFailed",
+ ReservationOrderNotEnabled = "ReservationOrderNotEnabled",
+ CapacityUpdateScopesFailed = "CapacityUpdateScopesFailed",
+ UnsupportedReservationTerm = "UnsupportedReservationTerm",
+ ReservationOrderIdAlreadyExists = "ReservationOrderIdAlreadyExists",
+ RiskCheckFailed = "RiskCheckFailed",
+ CreateQuoteFailed = "CreateQuoteFailed",
+ ActivateQuoteFailed = "ActivateQuoteFailed",
+ NonsupportedAccountId = "NonsupportedAccountId",
+ PaymentInstrumentNotFound = "PaymentInstrumentNotFound",
+ MissingAppliedScopesForSingle = "MissingAppliedScopesForSingle",
+ NoValidReservationsToReRate = "NoValidReservationsToReRate",
+ ReRateOnlyAllowedForEA = "ReRateOnlyAllowedForEA",
+ OperationCannotBePerformedInCurrentState = "OperationCannotBePerformedInCurrentState",
+ InvalidSingleAppliedScopesCount = "InvalidSingleAppliedScopesCount",
+ InvalidFulfillmentRequestParameters = "InvalidFulfillmentRequestParameters",
+ NotSupportedCountry = "NotSupportedCountry",
+ InvalidRefundQuantity = "InvalidRefundQuantity",
+ PurchaseError = "PurchaseError",
+ BillingCustomerInputError = "BillingCustomerInputError",
+ BillingPaymentInstrumentSoftError = "BillingPaymentInstrumentSoftError",
+ BillingPaymentInstrumentHardError = "BillingPaymentInstrumentHardError",
+ BillingTransientError = "BillingTransientError",
+ BillingError = "BillingError",
+ FulfillmentConfigurationError = "FulfillmentConfigurationError",
+ FulfillmentOutOfStockError = "FulfillmentOutOfStockError",
+ FulfillmentTransientError = "FulfillmentTransientError",
+ FulfillmentError = "FulfillmentError",
+ CalculatePriceFailed = "CalculatePriceFailed",
+ AppliedScopesSameAsExisting = "AppliedScopesSameAsExisting"
}
/**
- * Optional Parameters.
+ * Defines values for ErrorResponseCode. \
+ * {@link KnownErrorResponseCode} can be used interchangeably with ErrorResponseCode,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **NotSpecified** \
+ * **InternalServerError** \
+ * **ServerTimeout** \
+ * **AuthorizationFailed** \
+ * **BadRequest** \
+ * **ClientCertificateThumbprintNotSet** \
+ * **InvalidRequestContent** \
+ * **OperationFailed** \
+ * **HttpMethodNotSupported** \
+ * **InvalidRequestUri** \
+ * **MissingTenantId** \
+ * **InvalidTenantId** \
+ * **InvalidReservationOrderId** \
+ * **InvalidReservationId** \
+ * **ReservationIdNotInReservationOrder** \
+ * **ReservationOrderNotFound** \
+ * **InvalidSubscriptionId** \
+ * **InvalidAccessToken** \
+ * **InvalidLocationId** \
+ * **UnauthenticatedRequestsThrottled** \
+ * **InvalidHealthCheckType** \
+ * **Forbidden** \
+ * **BillingScopeIdCannotBeChanged** \
+ * **AppliedScopesNotAssociatedWithCommerceAccount** \
+ * **PatchValuesSameAsExisting** \
+ * **RoleAssignmentCreationFailed** \
+ * **ReservationOrderCreationFailed** \
+ * **ReservationOrderNotEnabled** \
+ * **CapacityUpdateScopesFailed** \
+ * **UnsupportedReservationTerm** \
+ * **ReservationOrderIdAlreadyExists** \
+ * **RiskCheckFailed** \
+ * **CreateQuoteFailed** \
+ * **ActivateQuoteFailed** \
+ * **NonsupportedAccountId** \
+ * **PaymentInstrumentNotFound** \
+ * **MissingAppliedScopesForSingle** \
+ * **NoValidReservationsToReRate** \
+ * **ReRateOnlyAllowedForEA** \
+ * **OperationCannotBePerformedInCurrentState** \
+ * **InvalidSingleAppliedScopesCount** \
+ * **InvalidFulfillmentRequestParameters** \
+ * **NotSupportedCountry** \
+ * **InvalidRefundQuantity** \
+ * **PurchaseError** \
+ * **BillingCustomerInputError** \
+ * **BillingPaymentInstrumentSoftError** \
+ * **BillingPaymentInstrumentHardError** \
+ * **BillingTransientError** \
+ * **BillingError** \
+ * **FulfillmentConfigurationError** \
+ * **FulfillmentOutOfStockError** \
+ * **FulfillmentTransientError** \
+ * **FulfillmentError** \
+ * **CalculatePriceFailed** \
+ * **AppliedScopesSameAsExisting**
*/
-export interface ReservationGetOptionalParams extends msRest.RequestOptionsBase {
- /**
- * Supported value of this query is renewProperties
- */
+export type ErrorResponseCode = string;
+
+/** Known values of {@link ReservationBillingPlan} that the service accepts. */
+export enum KnownReservationBillingPlan {
+ Upfront = "Upfront",
+ Monthly = "Monthly"
+}
+
+/**
+ * Defines values for ReservationBillingPlan. \
+ * {@link KnownReservationBillingPlan} can be used interchangeably with ReservationBillingPlan,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Upfront** \
+ * **Monthly**
+ */
+export type ReservationBillingPlan = string;
+
+/** Known values of {@link ReservationTerm} that the service accepts. */
+export enum KnownReservationTerm {
+ P1Y = "P1Y",
+ P3Y = "P3Y",
+ P5Y = "P5Y"
+}
+
+/**
+ * Defines values for ReservationTerm. \
+ * {@link KnownReservationTerm} can be used interchangeably with ReservationTerm,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **P1Y** \
+ * **P3Y** \
+ * **P5Y**
+ */
+export type ReservationTerm = string;
+
+/** Known values of {@link ReservedResourceType} that the service accepts. */
+export enum KnownReservedResourceType {
+ VirtualMachines = "VirtualMachines",
+ SqlDatabases = "SqlDatabases",
+ SuseLinux = "SuseLinux",
+ CosmosDb = "CosmosDb",
+ RedHat = "RedHat",
+ SqlDataWarehouse = "SqlDataWarehouse",
+ VMwareCloudSimple = "VMwareCloudSimple",
+ RedHatOsa = "RedHatOsa",
+ Databricks = "Databricks",
+ AppService = "AppService",
+ ManagedDisk = "ManagedDisk",
+ BlockBlob = "BlockBlob",
+ RedisCache = "RedisCache",
+ AzureDataExplorer = "AzureDataExplorer",
+ MySql = "MySql",
+ MariaDb = "MariaDb",
+ PostgreSql = "PostgreSql",
+ DedicatedHost = "DedicatedHost",
+ SapHana = "SapHana",
+ SqlAzureHybridBenefit = "SqlAzureHybridBenefit",
+ AVS = "AVS",
+ DataFactory = "DataFactory",
+ NetAppStorage = "NetAppStorage",
+ AzureFiles = "AzureFiles",
+ SqlEdge = "SqlEdge"
+}
+
+/**
+ * Defines values for ReservedResourceType. \
+ * {@link KnownReservedResourceType} can be used interchangeably with ReservedResourceType,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **VirtualMachines** \
+ * **SqlDatabases** \
+ * **SuseLinux** \
+ * **CosmosDb** \
+ * **RedHat** \
+ * **SqlDataWarehouse** \
+ * **VMwareCloudSimple** \
+ * **RedHatOsa** \
+ * **Databricks** \
+ * **AppService** \
+ * **ManagedDisk** \
+ * **BlockBlob** \
+ * **RedisCache** \
+ * **AzureDataExplorer** \
+ * **MySql** \
+ * **MariaDb** \
+ * **PostgreSql** \
+ * **DedicatedHost** \
+ * **SapHana** \
+ * **SqlAzureHybridBenefit** \
+ * **AVS** \
+ * **DataFactory** \
+ * **NetAppStorage** \
+ * **AzureFiles** \
+ * **SqlEdge**
+ */
+export type ReservedResourceType = string;
+
+/** Known values of {@link AppliedScopeType} that the service accepts. */
+export enum KnownAppliedScopeType {
+ Single = "Single",
+ Shared = "Shared"
+}
+
+/**
+ * Defines values for AppliedScopeType. \
+ * {@link KnownAppliedScopeType} can be used interchangeably with AppliedScopeType,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Single** \
+ * **Shared**
+ */
+export type AppliedScopeType = string;
+
+/** Known values of {@link InstanceFlexibility} that the service accepts. */
+export enum KnownInstanceFlexibility {
+ On = "On",
+ Off = "Off"
+}
+
+/**
+ * Defines values for InstanceFlexibility. \
+ * {@link KnownInstanceFlexibility} can be used interchangeably with InstanceFlexibility,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **On** \
+ * **Off**
+ */
+export type InstanceFlexibility = string;
+
+/** Known values of {@link PaymentStatus} that the service accepts. */
+export enum KnownPaymentStatus {
+ Succeeded = "Succeeded",
+ Failed = "Failed",
+ Scheduled = "Scheduled",
+ Cancelled = "Cancelled"
+}
+
+/**
+ * Defines values for PaymentStatus. \
+ * {@link KnownPaymentStatus} can be used interchangeably with PaymentStatus,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Succeeded** \
+ * **Failed** \
+ * **Scheduled** \
+ * **Cancelled**
+ */
+export type PaymentStatus = string;
+
+/** Known values of {@link ReservationStatusCode} that the service accepts. */
+export enum KnownReservationStatusCode {
+ None = "None",
+ Pending = "Pending",
+ Active = "Active",
+ PurchaseError = "PurchaseError",
+ PaymentInstrumentError = "PaymentInstrumentError",
+ Split = "Split",
+ Merged = "Merged",
+ Expired = "Expired",
+ Succeeded = "Succeeded"
+}
+
+/**
+ * Defines values for ReservationStatusCode. \
+ * {@link KnownReservationStatusCode} can be used interchangeably with ReservationStatusCode,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **None** \
+ * **Pending** \
+ * **Active** \
+ * **PurchaseError** \
+ * **PaymentInstrumentError** \
+ * **Split** \
+ * **Merged** \
+ * **Expired** \
+ * **Succeeded**
+ */
+export type ReservationStatusCode = string;
+
+/** Known values of {@link ProvisioningState} that the service accepts. */
+export enum KnownProvisioningState {
+ Creating = "Creating",
+ PendingResourceHold = "PendingResourceHold",
+ ConfirmedResourceHold = "ConfirmedResourceHold",
+ PendingBilling = "PendingBilling",
+ ConfirmedBilling = "ConfirmedBilling",
+ Created = "Created",
+ Succeeded = "Succeeded",
+ Cancelled = "Cancelled",
+ Expired = "Expired",
+ BillingFailed = "BillingFailed",
+ Failed = "Failed",
+ Split = "Split",
+ Merged = "Merged"
+}
+
+/**
+ * Defines values for ProvisioningState. \
+ * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Creating** \
+ * **PendingResourceHold** \
+ * **ConfirmedResourceHold** \
+ * **PendingBilling** \
+ * **ConfirmedBilling** \
+ * **Created** \
+ * **Succeeded** \
+ * **Cancelled** \
+ * **Expired** \
+ * **BillingFailed** \
+ * **Failed** \
+ * **Split** \
+ * **Merged**
+ */
+export type ProvisioningState = string;
+
+/** Known values of {@link CreatedByType} that the service accepts. */
+export enum KnownCreatedByType {
+ User = "User",
+ Application = "Application",
+ ManagedIdentity = "ManagedIdentity",
+ Key = "Key"
+}
+
+/**
+ * Defines values for CreatedByType. \
+ * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **User** \
+ * **Application** \
+ * **ManagedIdentity** \
+ * **Key**
+ */
+export type CreatedByType = string;
+
+/** Known values of {@link CalculateExchangeOperationResultStatus} that the service accepts. */
+export enum KnownCalculateExchangeOperationResultStatus {
+ Succeeded = "Succeeded",
+ Failed = "Failed",
+ Cancelled = "Cancelled",
+ Pending = "Pending"
+}
+
+/**
+ * Defines values for CalculateExchangeOperationResultStatus. \
+ * {@link KnownCalculateExchangeOperationResultStatus} can be used interchangeably with CalculateExchangeOperationResultStatus,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Succeeded** \
+ * **Failed** \
+ * **Cancelled** \
+ * **Pending**
+ */
+export type CalculateExchangeOperationResultStatus = string;
+
+/** Known values of {@link ExchangeOperationResultStatus} that the service accepts. */
+export enum KnownExchangeOperationResultStatus {
+ Succeeded = "Succeeded",
+ Failed = "Failed",
+ Cancelled = "Cancelled",
+ PendingRefunds = "PendingRefunds",
+ PendingPurchases = "PendingPurchases"
+}
+
+/**
+ * Defines values for ExchangeOperationResultStatus. \
+ * {@link KnownExchangeOperationResultStatus} can be used interchangeably with ExchangeOperationResultStatus,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Succeeded** \
+ * **Failed** \
+ * **Cancelled** \
+ * **PendingRefunds** \
+ * **PendingPurchases**
+ */
+export type ExchangeOperationResultStatus = string;
+
+/** Known values of {@link OperationStatus} that the service accepts. */
+export enum KnownOperationStatus {
+ Succeeded = "Succeeded",
+ Failed = "Failed",
+ Cancelled = "Cancelled",
+ Pending = "Pending"
+}
+
+/**
+ * Defines values for OperationStatus. \
+ * {@link KnownOperationStatus} can be used interchangeably with OperationStatus,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Succeeded** \
+ * **Failed** \
+ * **Cancelled** \
+ * **Pending**
+ */
+export type OperationStatus = string;
+
+/** Known values of {@link ResourceType} that the service accepts. */
+export enum KnownResourceType {
+ Standard = "standard",
+ Dedicated = "dedicated",
+ LowPriority = "lowPriority",
+ Shared = "shared",
+ ServiceSpecific = "serviceSpecific"
+}
+
+/**
+ * Defines values for ResourceType. \
+ * {@link KnownResourceType} can be used interchangeably with ResourceType,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **standard** \
+ * **dedicated** \
+ * **lowPriority** \
+ * **shared** \
+ * **serviceSpecific**
+ */
+export type ResourceType = string;
+
+/** Known values of {@link QuotaRequestState} that the service accepts. */
+export enum KnownQuotaRequestState {
+ Accepted = "Accepted",
+ Invalid = "Invalid",
+ Succeeded = "Succeeded",
+ Failed = "Failed",
+ InProgress = "InProgress"
+}
+
+/**
+ * Defines values for QuotaRequestState. \
+ * {@link KnownQuotaRequestState} can be used interchangeably with QuotaRequestState,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Accepted** \
+ * **Invalid** \
+ * **Succeeded** \
+ * **Failed** \
+ * **InProgress**
+ */
+export type QuotaRequestState = string;
+
+/** Known values of {@link Location} that the service accepts. */
+export enum KnownLocation {
+ Westus = "westus",
+ Eastus = "eastus",
+ Eastus2 = "eastus2",
+ Northcentralus = "northcentralus",
+ Westus2 = "westus2",
+ Southcentralus = "southcentralus",
+ Centralus = "centralus",
+ Westeurope = "westeurope",
+ Northeurope = "northeurope",
+ Eastasia = "eastasia",
+ Southeastasia = "southeastasia",
+ Japaneast = "japaneast",
+ Japanwest = "japanwest",
+ Brazilsouth = "brazilsouth",
+ Australiaeast = "australiaeast",
+ Australiasoutheast = "australiasoutheast",
+ Southindia = "southindia",
+ Westindia = "westindia",
+ Centralindia = "centralindia",
+ Canadacentral = "canadacentral",
+ Canadaeast = "canadaeast",
+ Uksouth = "uksouth",
+ Westcentralus = "westcentralus",
+ Ukwest = "ukwest"
+}
+
+/**
+ * Defines values for Location. \
+ * {@link KnownLocation} can be used interchangeably with Location,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **westus** \
+ * **eastus** \
+ * **eastus2** \
+ * **northcentralus** \
+ * **westus2** \
+ * **southcentralus** \
+ * **centralus** \
+ * **westeurope** \
+ * **northeurope** \
+ * **eastasia** \
+ * **southeastasia** \
+ * **japaneast** \
+ * **japanwest** \
+ * **brazilsouth** \
+ * **australiaeast** \
+ * **australiasoutheast** \
+ * **southindia** \
+ * **westindia** \
+ * **centralindia** \
+ * **canadacentral** \
+ * **canadaeast** \
+ * **uksouth** \
+ * **westcentralus** \
+ * **ukwest**
+ */
+export type Location = string;
+
+/** Known values of {@link DisplayProvisioningState} that the service accepts. */
+export enum KnownDisplayProvisioningState {
+ Succeeded = "Succeeded",
+ Expiring = "Expiring",
+ Expired = "Expired",
+ Pending = "Pending",
+ Cancelled = "Cancelled",
+ Failed = "Failed"
+}
+
+/**
+ * Defines values for DisplayProvisioningState. \
+ * {@link KnownDisplayProvisioningState} can be used interchangeably with DisplayProvisioningState,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **Succeeded** \
+ * **Expiring** \
+ * **Expired** \
+ * **Pending** \
+ * **Cancelled** \
+ * **Failed**
+ */
+export type DisplayProvisioningState = string;
+
+/** Known values of {@link UserFriendlyAppliedScopeType} that the service accepts. */
+export enum KnownUserFriendlyAppliedScopeType {
+ None = "None",
+ Shared = "Shared",
+ Single = "Single",
+ ResourceGroup = "ResourceGroup",
+ ManagementGroup = "ManagementGroup"
+}
+
+/**
+ * Defines values for UserFriendlyAppliedScopeType. \
+ * {@link KnownUserFriendlyAppliedScopeType} can be used interchangeably with UserFriendlyAppliedScopeType,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **None** \
+ * **Shared** \
+ * **Single** \
+ * **ResourceGroup** \
+ * **ManagementGroup**
+ */
+export type UserFriendlyAppliedScopeType = string;
+
+/** Known values of {@link UserFriendlyRenewState} that the service accepts. */
+export enum KnownUserFriendlyRenewState {
+ On = "On",
+ Off = "Off",
+ Renewed = "Renewed",
+ NotRenewed = "NotRenewed",
+ NotApplicable = "NotApplicable"
+}
+
+/**
+ * Defines values for UserFriendlyRenewState. \
+ * {@link KnownUserFriendlyRenewState} can be used interchangeably with UserFriendlyRenewState,
+ * this enum contains the known values that the service supports.
+ * ### Known values supported by the service
+ * **On** \
+ * **Off** \
+ * **Renewed** \
+ * **NotRenewed** \
+ * **NotApplicable**
+ */
+export type UserFriendlyRenewState = string;
+
+/** Optional parameters. */
+export interface ReservationAvailableScopesOptionalParams
+ extends coreClient.OperationOptions {
+ /** Delay to wait until next poll, in milliseconds. */
+ updateIntervalInMs?: number;
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
+ resumeFrom?: string;
+}
+
+/** Contains response data for the availableScopes operation. */
+export type ReservationAvailableScopesResponse = AvailableScopeProperties;
+
+/** Optional parameters. */
+export interface ReservationSplitOptionalParams
+ extends coreClient.OperationOptions {
+ /** Delay to wait until next poll, in milliseconds. */
+ updateIntervalInMs?: number;
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
+ resumeFrom?: string;
+}
+
+/** Contains response data for the split operation. */
+export type ReservationSplitResponse = ReservationResponse[];
+
+/** Optional parameters. */
+export interface ReservationMergeOptionalParams
+ extends coreClient.OperationOptions {
+ /** Delay to wait until next poll, in milliseconds. */
+ updateIntervalInMs?: number;
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
+ resumeFrom?: string;
+}
+
+/** Contains response data for the merge operation. */
+export type ReservationMergeResponse = ReservationResponse[];
+
+/** Optional parameters. */
+export interface ReservationListOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the list operation. */
+export type ReservationListResponse = ReservationList;
+
+/** Optional parameters. */
+export interface ReservationGetOptionalParams
+ extends coreClient.OperationOptions {
+ /** Supported value of this query is renewProperties */
expand?: string;
}
-/**
- * Optional Parameters.
- */
-export interface AzureReservationAPIGetCatalogOptionalParams extends msRest.RequestOptionsBase {
- /**
- * Filters the skus based on the location specified in this parameter. This can be an azure
- * region or global
- */
+/** Contains response data for the get operation. */
+export type ReservationGetResponse = ReservationResponse;
+
+/** Optional parameters. */
+export interface ReservationUpdateOptionalParams
+ extends coreClient.OperationOptions {
+ /** Delay to wait until next poll, in milliseconds. */
+ updateIntervalInMs?: number;
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
+ resumeFrom?: string;
+}
+
+/** Contains response data for the update operation. */
+export type ReservationUpdateResponse = ReservationResponse;
+
+/** Optional parameters. */
+export interface ReservationListRevisionsOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listRevisions operation. */
+export type ReservationListRevisionsResponse = ReservationList;
+
+/** Optional parameters. */
+export interface ReservationListAllOptionalParams
+ extends coreClient.OperationOptions {
+ /** May be used to filter by reservation properties. The filter supports 'eq', 'or', and 'and'. It does not currently support 'ne', 'gt', 'le', 'ge', or 'not'. Reservation properties include sku/name, properties/{appliedScopeType, archived, displayName, displayProvisioningState, effectiveDateTime, expiryDate, provisioningState, quantity, renew, reservedResourceType, term, userFriendlyAppliedScopeType, userFriendlyRenewState} */
+ filter?: string;
+ /** May be used to sort order by reservation properties. */
+ orderby?: string;
+ /** To indicate whether to refresh the roll up counts of the reservations group by provisioning states */
+ refreshSummary?: string;
+ /** The number of reservations to skip from the list before returning results */
+ skiptoken?: number;
+ /** The selected provisioning state */
+ selectedState?: string;
+ /** To number of reservations to return */
+ take?: number;
+}
+
+/** Contains response data for the listAll operation. */
+export type ReservationListAllResponse = ReservationsListResult;
+
+/** Optional parameters. */
+export interface ReservationListNextOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listNext operation. */
+export type ReservationListNextResponse = ReservationList;
+
+/** Optional parameters. */
+export interface ReservationListRevisionsNextOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listRevisionsNext operation. */
+export type ReservationListRevisionsNextResponse = ReservationList;
+
+/** Optional parameters. */
+export interface ReservationListAllNextOptionalParams
+ extends coreClient.OperationOptions {
+ /** May be used to filter by reservation properties. The filter supports 'eq', 'or', and 'and'. It does not currently support 'ne', 'gt', 'le', 'ge', or 'not'. Reservation properties include sku/name, properties/{appliedScopeType, archived, displayName, displayProvisioningState, effectiveDateTime, expiryDate, provisioningState, quantity, renew, reservedResourceType, term, userFriendlyAppliedScopeType, userFriendlyRenewState} */
+ filter?: string;
+ /** May be used to sort order by reservation properties. */
+ orderby?: string;
+ /** To indicate whether to refresh the roll up counts of the reservations group by provisioning states */
+ refreshSummary?: string;
+ /** The number of reservations to skip from the list before returning results */
+ skiptoken?: number;
+ /** The selected provisioning state */
+ selectedState?: string;
+ /** To number of reservations to return */
+ take?: number;
+}
+
+/** Contains response data for the listAllNext operation. */
+export type ReservationListAllNextResponse = ReservationsListResult;
+
+/** Optional parameters. */
+export interface GetCatalogOptionalParams extends coreClient.OperationOptions {
+ /** The type of the resource for which the skus should be provided. */
+ reservedResourceType?: string;
+ /** Filters the skus based on the location specified in this parameter. This can be an azure region or global */
location?: string;
}
-/**
- * Optional Parameters.
- */
-export interface ReservationOrderGetOptionalParams extends msRest.RequestOptionsBase {
- /**
- * May be used to expand the planInformation.
- */
+/** Contains response data for the getCatalog operation. */
+export type GetCatalogResponse = Catalog[];
+
+/** Optional parameters. */
+export interface GetAppliedReservationListOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the getAppliedReservationList operation. */
+export type GetAppliedReservationListResponse = AppliedReservations;
+
+/** Optional parameters. */
+export interface ReservationOrderCalculateOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the calculate operation. */
+export type ReservationOrderCalculateResponse = CalculatePriceResponse;
+
+/** Optional parameters. */
+export interface ReservationOrderListOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the list operation. */
+export type ReservationOrderListResponse = ReservationOrderList;
+
+/** Optional parameters. */
+export interface ReservationOrderPurchaseOptionalParams
+ extends coreClient.OperationOptions {
+ /** Delay to wait until next poll, in milliseconds. */
+ updateIntervalInMs?: number;
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
+ resumeFrom?: string;
+}
+
+/** Contains response data for the purchase operation. */
+export type ReservationOrderPurchaseResponse = ReservationOrderResponse;
+
+/** Optional parameters. */
+export interface ReservationOrderGetOptionalParams
+ extends coreClient.OperationOptions {
+ /** May be used to expand the planInformation. */
expand?: string;
}
-/**
- * Optional Parameters.
- */
-export interface QuotaRequestStatusListOptionalParams extends msRest.RequestOptionsBase {
+/** Contains response data for the get operation. */
+export type ReservationOrderGetResponse = ReservationOrderResponse;
+
+/** Optional parameters. */
+export interface ReservationOrderChangeDirectoryOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the changeDirectory operation. */
+export type ReservationOrderChangeDirectoryResponse = ChangeDirectoryResponse;
+
+/** Optional parameters. */
+export interface ReservationOrderListNextOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listNext operation. */
+export type ReservationOrderListNextResponse = ReservationOrderList;
+
+/** Optional parameters. */
+export interface OperationListOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the list operation. */
+export type OperationListResponse = OperationList;
+
+/** Optional parameters. */
+export interface OperationListNextOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listNext operation. */
+export type OperationListNextResponse = OperationList;
+
+/** Optional parameters. */
+export interface CalculateExchangePostOptionalParams
+ extends coreClient.OperationOptions {
+ /** Delay to wait until next poll, in milliseconds. */
+ updateIntervalInMs?: number;
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
+ resumeFrom?: string;
+}
+
+/** Contains response data for the post operation. */
+export type CalculateExchangePostResponse = CalculateExchangeOperationResultResponse;
+
+/** Optional parameters. */
+export interface ExchangePostOptionalParams
+ extends coreClient.OperationOptions {
+ /** Delay to wait until next poll, in milliseconds. */
+ updateIntervalInMs?: number;
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
+ resumeFrom?: string;
+}
+
+/** Contains response data for the post operation. */
+export type ExchangePostResponse = ExchangeOperationResultResponse;
+
+/** Optional parameters. */
+export interface QuotaGetOptionalParams extends coreClient.OperationOptions {}
+
+/** Contains response data for the get operation. */
+export type QuotaGetResponse = QuotaGetHeaders & CurrentQuotaLimitBase;
+
+/** Optional parameters. */
+export interface QuotaCreateOrUpdateOptionalParams
+ extends coreClient.OperationOptions {
+ /** Delay to wait until next poll, in milliseconds. */
+ updateIntervalInMs?: number;
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
+ resumeFrom?: string;
+}
+
+/** Contains response data for the createOrUpdate operation. */
+export type QuotaCreateOrUpdateResponse = QuotaRequestOneResourceSubmitResponse;
+
+/** Optional parameters. */
+export interface QuotaUpdateOptionalParams extends coreClient.OperationOptions {
+ /** Delay to wait until next poll, in milliseconds. */
+ updateIntervalInMs?: number;
+ /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */
+ resumeFrom?: string;
+}
+
+/** Contains response data for the update operation. */
+export type QuotaUpdateResponse = QuotaRequestOneResourceSubmitResponse;
+
+/** Optional parameters. */
+export interface QuotaListOptionalParams extends coreClient.OperationOptions {}
+
+/** Contains response data for the list operation. */
+export type QuotaListResponse = QuotaListHeaders & QuotaLimits;
+
+/** Optional parameters. */
+export interface QuotaListNextOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the listNext operation. */
+export type QuotaListNextResponse = QuotaListNextHeaders & QuotaLimits;
+
+/** Optional parameters. */
+export interface QuotaRequestStatusGetOptionalParams
+ extends coreClient.OperationOptions {}
+
+/** Contains response data for the get operation. */
+export type QuotaRequestStatusGetResponse = QuotaRequestDetails;
+
+/** Optional parameters. */
+export interface QuotaRequestStatusListOptionalParams
+ extends coreClient.OperationOptions {
/**
* | Field | Supported operators
* |---------------------|------------------------
*
* |requestSubmitTime | ge, le, eq, gt, lt
+ *
*/
filter?: string;
- /**
- * Number of records to return.
- */
+ /** Number of records to return. */
top?: number;
- /**
- * Skiptoken is only used if a previous operation returned a partial result. If a previous
- * response contains a nextLink element, the value of the nextLink element includes a skiptoken
- * parameter that specifies a starting point to use for subsequent calls.
- */
+ /** Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element includes a skiptoken parameter that specifies a starting point to use for subsequent calls. */
skiptoken?: string;
}
-/**
- * Optional Parameters.
- */
-export interface QuotaRequestStatusListNextOptionalParams extends msRest.RequestOptionsBase {
+/** Contains response data for the list operation. */
+export type QuotaRequestStatusListResponse = QuotaRequestDetailsList;
+
+/** Optional parameters. */
+export interface QuotaRequestStatusListNextOptionalParams
+ extends coreClient.OperationOptions {
/**
* | Field | Supported operators
* |---------------------|------------------------
*
* |requestSubmitTime | ge, le, eq, gt, lt
+ *
*/
filter?: string;
- /**
- * Number of records to return.
- */
+ /** Number of records to return. */
top?: number;
- /**
- * Skiptoken is only used if a previous operation returned a partial result. If a previous
- * response contains a nextLink element, the value of the nextLink element includes a skiptoken
- * parameter that specifies a starting point to use for subsequent calls.
- */
+ /** Skiptoken is only used if a previous operation returned a partial result. If a previous response contains a nextLink element, the value of the nextLink element includes a skiptoken parameter that specifies a starting point to use for subsequent calls. */
skiptoken?: string;
}
-/**
- * An interface representing AzureReservationAPIOptions.
- */
-export interface AzureReservationAPIOptions extends AzureServiceClientOptions {
- baseUri?: string;
+/** Contains response data for the listNext operation. */
+export type QuotaRequestStatusListNextResponse = QuotaRequestDetailsList;
+
+/** Optional parameters. */
+export interface AzureReservationAPIOptionalParams
+ extends coreClient.ServiceClientOptions {
+ /** server parameter */
+ $host?: string;
+ /** Overrides client endpoint. */
+ endpoint?: string;
}
-
-/**
- * Defines headers for Post operation.
- */
-export interface CalculateExchangePostHeaders {
- /**
- * URL for checking the ongoing status of the operation.
- */
- azureAsyncOperation: string;
- /**
- * URL for determining when an operation has completed. Only use this value only when
- * Azure-AsyncOperation isn't returned.
- */
- location: string;
- /**
- * Clients should wait for the Retry-After interval before polling again
- */
- retryAfter: number;
-}
-
-/**
- * Defines headers for Post operation.
- */
-export interface ExchangePostHeaders {
- /**
- * URL for checking the ongoing status of the operation.
- */
- azureAsyncOperation: string;
- /**
- * URL for determining when an operation has completed. Only use this value only when
- * Azure-AsyncOperation isn't returned.
- */
- location: string;
- /**
- * Clients should wait for the Retry-After interval before polling again
- */
- retryAfter: number;
-}
-
-/**
- * Defines headers for Get operation.
- */
-export interface QuotaGetHeaders {
- /**
- * Current entity state version. It should be treated as opaque and used to make conditional HTTP
- * requests.
- */
- eTag: string;
-}
-
-/**
- * Defines headers for List operation.
- */
-export interface QuotaListHeaders {
- /**
- * Current entity state version. Should be treated as opaque and used to make conditional HTTP
- * requests.
- */
- eTag: string;
-}
-
-/**
- * @interface
- * An interface representing the ReservationList.
- * @extends Array
- */
-export interface ReservationList extends Array {
- /**
- * Url to get the next page of reservations.
- */
- nextLink?: string;
-}
-
-/**
- * @interface
- * An interface representing the ReservationOrderList.
- * @extends Array
- */
-export interface ReservationOrderList extends Array {
- /**
- * Url to get the next page of reservationOrders.
- */
- nextLink?: string;
-}
-
-/**
- * @interface
- * An interface representing the OperationList.
- * @extends Array
- */
-export interface OperationList extends Array {
- /**
- * Url to get the next page of items.
- */
- nextLink?: string;
-}
-
-/**
- * @interface
- * Quota limits.
- * @extends Array
- */
-export interface QuotaLimits extends Array {
- /**
- * The URI for fetching the next page of quotas (service limits). When no more pages exist, the
- * value is null.
- */
- nextLink?: string;
-}
-
-/**
- * @interface
- * Quota request details.
- * @extends Array
- */
-export interface QuotaRequestDetailsList extends Array {
- /**
- * The URI to fetch the next page of quota limits. When there are no more pages, this is null.
- */
- nextLink?: string;
-}
-
-/**
- * Defines values for ReservedResourceType.
- * Possible values include: 'VirtualMachines', 'SqlDatabases', 'SuseLinux', 'CosmosDb', 'RedHat',
- * 'SqlDataWarehouse', 'VMwareCloudSimple', 'RedHatOsa', 'Databricks', 'AppService', 'ManagedDisk',
- * 'BlockBlob', 'RedisCache', 'AzureDataExplorer', 'MySql', 'MariaDb', 'PostgreSql',
- * 'DedicatedHost', 'SapHana', 'SqlAzureHybridBenefit'
- * @readonly
- * @enum {string}
- */
-export type ReservedResourceType = 'VirtualMachines' | 'SqlDatabases' | 'SuseLinux' | 'CosmosDb' | 'RedHat' | 'SqlDataWarehouse' | 'VMwareCloudSimple' | 'RedHatOsa' | 'Databricks' | 'AppService' | 'ManagedDisk' | 'BlockBlob' | 'RedisCache' | 'AzureDataExplorer' | 'MySql' | 'MariaDb' | 'PostgreSql' | 'DedicatedHost' | 'SapHana' | 'SqlAzureHybridBenefit';
-
-/**
- * Defines values for ReservationTerm.
- * Possible values include: 'P1Y', 'P3Y'
- * @readonly
- * @enum {string}
- */
-export type ReservationTerm = 'P1Y' | 'P3Y';
-
-/**
- * Defines values for ReservationBillingPlan.
- * Possible values include: 'Upfront', 'Monthly'
- * @readonly
- * @enum {string}
- */
-export type ReservationBillingPlan = 'Upfront' | 'Monthly';
-
-/**
- * Defines values for AppliedScopeType.
- * Possible values include: 'Single', 'Shared'
- * @readonly
- * @enum {string}
- */
-export type AppliedScopeType = 'Single' | 'Shared';
-
-/**
- * Defines values for InstanceFlexibility.
- * Possible values include: 'On', 'Off'
- * @readonly
- * @enum {string}
- */
-export type InstanceFlexibility = 'On' | 'Off';
-
-/**
- * Defines values for ReservationStatusCode.
- * Possible values include: 'None', 'Pending', 'Active', 'PurchaseError', 'PaymentInstrumentError',
- * 'Split', 'Merged', 'Expired', 'Succeeded'
- * @readonly
- * @enum {string}
- */
-export type ReservationStatusCode = 'None' | 'Pending' | 'Active' | 'PurchaseError' | 'PaymentInstrumentError' | 'Split' | 'Merged' | 'Expired' | 'Succeeded';
-
-/**
- * Defines values for ErrorResponseCode.
- * Possible values include: 'NotSpecified', 'InternalServerError', 'ServerTimeout',
- * 'AuthorizationFailed', 'BadRequest', 'ClientCertificateThumbprintNotSet',
- * 'InvalidRequestContent', 'OperationFailed', 'HttpMethodNotSupported', 'InvalidRequestUri',
- * 'MissingTenantId', 'InvalidTenantId', 'InvalidReservationOrderId', 'InvalidReservationId',
- * 'ReservationIdNotInReservationOrder', 'ReservationOrderNotFound', 'InvalidSubscriptionId',
- * 'InvalidAccessToken', 'InvalidLocationId', 'UnauthenticatedRequestsThrottled',
- * 'InvalidHealthCheckType', 'Forbidden', 'BillingScopeIdCannotBeChanged',
- * 'AppliedScopesNotAssociatedWithCommerceAccount', 'PatchValuesSameAsExisting',
- * 'RoleAssignmentCreationFailed', 'ReservationOrderCreationFailed', 'ReservationOrderNotEnabled',
- * 'CapacityUpdateScopesFailed', 'UnsupportedReservationTerm', 'ReservationOrderIdAlreadyExists',
- * 'RiskCheckFailed', 'CreateQuoteFailed', 'ActivateQuoteFailed', 'NonsupportedAccountId',
- * 'PaymentInstrumentNotFound', 'MissingAppliedScopesForSingle', 'NoValidReservationsToReRate',
- * 'ReRateOnlyAllowedForEA', 'OperationCannotBePerformedInCurrentState',
- * 'InvalidSingleAppliedScopesCount', 'InvalidFulfillmentRequestParameters', 'NotSupportedCountry',
- * 'InvalidRefundQuantity', 'PurchaseError', 'BillingCustomerInputError',
- * 'BillingPaymentInstrumentSoftError', 'BillingPaymentInstrumentHardError',
- * 'BillingTransientError', 'BillingError', 'FulfillmentConfigurationError',
- * 'FulfillmentOutOfStockError', 'FulfillmentTransientError', 'FulfillmentError',
- * 'CalculatePriceFailed'
- * @readonly
- * @enum {string}
- */
-export type ErrorResponseCode = 'NotSpecified' | 'InternalServerError' | 'ServerTimeout' | 'AuthorizationFailed' | 'BadRequest' | 'ClientCertificateThumbprintNotSet' | 'InvalidRequestContent' | 'OperationFailed' | 'HttpMethodNotSupported' | 'InvalidRequestUri' | 'MissingTenantId' | 'InvalidTenantId' | 'InvalidReservationOrderId' | 'InvalidReservationId' | 'ReservationIdNotInReservationOrder' | 'ReservationOrderNotFound' | 'InvalidSubscriptionId' | 'InvalidAccessToken' | 'InvalidLocationId' | 'UnauthenticatedRequestsThrottled' | 'InvalidHealthCheckType' | 'Forbidden' | 'BillingScopeIdCannotBeChanged' | 'AppliedScopesNotAssociatedWithCommerceAccount' | 'PatchValuesSameAsExisting' | 'RoleAssignmentCreationFailed' | 'ReservationOrderCreationFailed' | 'ReservationOrderNotEnabled' | 'CapacityUpdateScopesFailed' | 'UnsupportedReservationTerm' | 'ReservationOrderIdAlreadyExists' | 'RiskCheckFailed' | 'CreateQuoteFailed' | 'ActivateQuoteFailed' | 'NonsupportedAccountId' | 'PaymentInstrumentNotFound' | 'MissingAppliedScopesForSingle' | 'NoValidReservationsToReRate' | 'ReRateOnlyAllowedForEA' | 'OperationCannotBePerformedInCurrentState' | 'InvalidSingleAppliedScopesCount' | 'InvalidFulfillmentRequestParameters' | 'NotSupportedCountry' | 'InvalidRefundQuantity' | 'PurchaseError' | 'BillingCustomerInputError' | 'BillingPaymentInstrumentSoftError' | 'BillingPaymentInstrumentHardError' | 'BillingTransientError' | 'BillingError' | 'FulfillmentConfigurationError' | 'FulfillmentOutOfStockError' | 'FulfillmentTransientError' | 'FulfillmentError' | 'CalculatePriceFailed';
-
-/**
- * Defines values for CalculateExchangeOperationResultStatus.
- * Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Pending'
- * @readonly
- * @enum {string}
- */
-export type CalculateExchangeOperationResultStatus = 'Succeeded' | 'Failed' | 'Cancelled' | 'Pending';
-
-/**
- * Defines values for ExchangeOperationResultStatus.
- * Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'PendingRefunds',
- * 'PendingPurchases'
- * @readonly
- * @enum {string}
- */
-export type ExchangeOperationResultStatus = 'Succeeded' | 'Failed' | 'Cancelled' | 'PendingRefunds' | 'PendingPurchases';
-
-/**
- * Defines values for OperationStatus.
- * Possible values include: 'Succeeded', 'Failed', 'Cancelled', 'Pending'
- * @readonly
- * @enum {string}
- */
-export type OperationStatus = 'Succeeded' | 'Failed' | 'Cancelled' | 'Pending';
-
-/**
- * Defines values for PaymentStatus.
- * Possible values include: 'Succeeded', 'Failed', 'Scheduled', 'Cancelled'
- * @readonly
- * @enum {string}
- */
-export type PaymentStatus = 'Succeeded' | 'Failed' | 'Scheduled' | 'Cancelled';
-
-/**
- * Contains response data for the availableScopes operation.
- */
-export type ReservationAvailableScopesResponse = AvailableScopeProperties & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: AvailableScopeProperties;
- };
-};
-
-/**
- * Contains response data for the split operation.
- */
-export type ReservationSplitResponse = Array & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ReservationResponse[];
- };
-};
-
-/**
- * Contains response data for the merge operation.
- */
-export type ReservationMergeResponse = Array & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ReservationResponse[];
- };
-};
-
-/**
- * Contains response data for the list operation.
- */
-export type ReservationListResponse = ReservationList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ReservationList;
- };
-};
-
-/**
- * Contains response data for the get operation.
- */
-export type ReservationGetResponse = ReservationResponse & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ReservationResponse;
- };
-};
-
-/**
- * Contains response data for the update operation.
- */
-export type ReservationUpdateResponse = ReservationResponse & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ReservationResponse;
- };
-};
-
-/**
- * Contains response data for the listRevisions operation.
- */
-export type ReservationListRevisionsResponse = ReservationList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ReservationList;
- };
-};
-
-/**
- * Contains response data for the beginAvailableScopes operation.
- */
-export type ReservationBeginAvailableScopesResponse = AvailableScopeProperties & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: AvailableScopeProperties;
- };
-};
-
-/**
- * Contains response data for the beginSplit operation.
- */
-export type ReservationBeginSplitResponse = Array & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ReservationResponse[];
- };
-};
-
-/**
- * Contains response data for the beginMerge operation.
- */
-export type ReservationBeginMergeResponse = Array & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ReservationResponse[];
- };
-};
-
-/**
- * Contains response data for the beginUpdate operation.
- */
-export type ReservationBeginUpdateResponse = ReservationResponse & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ReservationResponse;
- };
-};
-
-/**
- * Contains response data for the listNext operation.
- */
-export type ReservationListNextResponse = ReservationList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ReservationList;
- };
-};
-
-/**
- * Contains response data for the listRevisionsNext operation.
- */
-export type ReservationListRevisionsNextResponse = ReservationList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ReservationList;
- };
-};
-
-/**
- * Contains response data for the getCatalog operation.
- */
-export type GetCatalogResponse = Array & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: Catalog[];
- };
-};
-
-/**
- * Contains response data for the getAppliedReservationList operation.
- */
-export type GetAppliedReservationListResponse = AppliedReservations & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: AppliedReservations;
- };
-};
-
-/**
- * Contains response data for the calculate operation.
- */
-export type ReservationOrderCalculateResponse = CalculatePriceResponse & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: CalculatePriceResponse;
- };
-};
-
-/**
- * Contains response data for the list operation.
- */
-export type ReservationOrderListResponse = ReservationOrderList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ReservationOrderList;
- };
-};
-
-/**
- * Contains response data for the purchase operation.
- */
-export type ReservationOrderPurchaseResponse = ReservationOrderResponse & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ReservationOrderResponse;
- };
-};
-
-/**
- * Contains response data for the get operation.
- */
-export type ReservationOrderGetResponse = ReservationOrderResponse & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ReservationOrderResponse;
- };
-};
-
-/**
- * Contains response data for the beginPurchase operation.
- */
-export type ReservationOrderBeginPurchaseResponse = ReservationOrderResponse & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ReservationOrderResponse;
- };
-};
-
-/**
- * Contains response data for the listNext operation.
- */
-export type ReservationOrderListNextResponse = ReservationOrderList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ReservationOrderList;
- };
-};
-
-/**
- * Contains response data for the list operation.
- */
-export type OperationListResponse = OperationList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationList;
- };
-};
-
-/**
- * Contains response data for the listNext operation.
- */
-export type OperationListNextResponse = OperationList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: OperationList;
- };
-};
-
-/**
- * Contains response data for the post operation.
- */
-export type CalculateExchangePostResponse = CalculateExchangeOperationResultResponse & CalculateExchangePostHeaders & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The parsed HTTP response headers.
- */
- parsedHeaders: CalculateExchangePostHeaders;
-
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: CalculateExchangeOperationResultResponse;
- };
-};
-
-/**
- * Contains response data for the post operation.
- */
-export type ExchangePostResponse = ExchangeOperationResultResponse & ExchangePostHeaders & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The parsed HTTP response headers.
- */
- parsedHeaders: ExchangePostHeaders;
-
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: ExchangeOperationResultResponse;
- };
-};
-
-/**
- * Contains response data for the get operation.
- */
-export type QuotaGetResponse = CurrentQuotaLimitBase & QuotaGetHeaders & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The parsed HTTP response headers.
- */
- parsedHeaders: QuotaGetHeaders;
-
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: CurrentQuotaLimitBase;
- };
-};
-
-/**
- * Contains response data for the createOrUpdate operation.
- */
-export type QuotaCreateOrUpdateResponse = {
- /**
- * The parsed response body.
- */
- body: any;
-
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: any;
- };
-};
-
-/**
- * Contains response data for the update operation.
- */
-export type QuotaUpdateResponse = {
- /**
- * The parsed response body.
- */
- body: any;
-
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: any;
- };
-};
-
-/**
- * Contains response data for the list operation.
- */
-export type QuotaListResponse = QuotaLimits & QuotaListHeaders & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The parsed HTTP response headers.
- */
- parsedHeaders: QuotaListHeaders;
-
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: QuotaLimits;
- };
-};
-
-/**
- * Contains response data for the beginCreateOrUpdate operation.
- */
-export type QuotaBeginCreateOrUpdateResponse = {
- /**
- * The parsed response body.
- */
- body: any;
-
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: any;
- };
-};
-
-/**
- * Contains response data for the beginUpdate operation.
- */
-export type QuotaBeginUpdateResponse = {
- /**
- * The parsed response body.
- */
- body: any;
-
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: any;
- };
-};
-
-/**
- * Contains response data for the get operation.
- */
-export type QuotaRequestStatusGetResponse = QuotaRequestDetails & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: QuotaRequestDetails;
- };
-};
-
-/**
- * Contains response data for the list operation.
- */
-export type QuotaRequestStatusListResponse = QuotaRequestDetailsList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: QuotaRequestDetailsList;
- };
-};
-
-/**
- * Contains response data for the listNext operation.
- */
-export type QuotaRequestStatusListNextResponse = QuotaRequestDetailsList & {
- /**
- * The underlying HTTP response.
- */
- _response: msRest.HttpResponse & {
- /**
- * The response body as text (string format)
- */
- bodyAsText: string;
-
- /**
- * The response body as parsed JSON or XML
- */
- parsedBody: QuotaRequestDetailsList;
- };
-};
diff --git a/sdk/reservations/arm-reservations/src/models/mappers.ts b/sdk/reservations/arm-reservations/src/models/mappers.ts
index 8101745ae01..81339b6fe63 100644
--- a/sdk/reservations/arm-reservations/src/models/mappers.ts
+++ b/sdk/reservations/arm-reservations/src/models/mappers.ts
@@ -6,14 +6,25 @@
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import { CloudErrorMapper, BaseResourceMapper } from "@azure/ms-rest-azure-js";
-import * as msRest from "@azure/ms-rest-js";
+import * as coreClient from "@azure/core-client";
-export const CloudError = CloudErrorMapper;
-export const BaseResource = BaseResourceMapper;
+export const AvailableScopeRequest: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "AvailableScopeRequest",
+ modelProperties: {
+ properties: {
+ serializedName: "properties",
+ type: {
+ name: "Composite",
+ className: "AvailableScopeRequestProperties"
+ }
+ }
+ }
+ }
+};
-export const AvailableScopeRequestProperties: msRest.CompositeMapper = {
- serializedName: "AvailableScopeRequestProperties",
+export const AvailableScopeRequestProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "AvailableScopeRequestProperties",
@@ -33,47 +44,230 @@ export const AvailableScopeRequestProperties: msRest.CompositeMapper = {
}
};
-export const AvailableScopeRequest: msRest.CompositeMapper = {
- serializedName: "AvailableScopeRequest",
+export const AvailableScopeProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "AvailableScopeRequest",
+ className: "AvailableScopeProperties",
modelProperties: {
properties: {
serializedName: "properties",
type: {
name: "Composite",
- className: "AvailableScopeRequestProperties"
+ className: "SubscriptionScopeProperties"
}
}
}
}
};
-export const SkuName: msRest.CompositeMapper = {
- serializedName: "SkuName",
+export const SubscriptionScopeProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "SkuName",
+ className: "SubscriptionScopeProperties",
+ modelProperties: {
+ scopes: {
+ serializedName: "scopes",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ScopeProperties"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const ScopeProperties: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ScopeProperties",
+ modelProperties: {
+ scope: {
+ serializedName: "scope",
+ type: {
+ name: "String"
+ }
+ },
+ valid: {
+ serializedName: "valid",
+ type: {
+ name: "Boolean"
+ }
+ }
+ }
+ }
+};
+
+export const ErrorModel: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ErrorModel",
+ modelProperties: {
+ error: {
+ serializedName: "error",
+ type: {
+ name: "Composite",
+ className: "ExtendedErrorInfo"
+ }
+ }
+ }
+ }
+};
+
+export const ExtendedErrorInfo: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ExtendedErrorInfo",
+ modelProperties: {
+ code: {
+ serializedName: "code",
+ type: {
+ name: "String"
+ }
+ },
+ message: {
+ serializedName: "message",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const Catalog: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "Catalog",
+ modelProperties: {
+ resourceType: {
+ serializedName: "resourceType",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ name: {
+ serializedName: "name",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ billingPlans: {
+ serializedName: "billingPlans",
+ type: {
+ name: "Dictionary",
+ value: {
+ type: { name: "Sequence", element: { type: { name: "String" } } }
+ }
+ }
+ },
+ terms: {
+ serializedName: "terms",
+ readOnly: true,
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ locations: {
+ serializedName: "locations",
+ readOnly: true,
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ skuProperties: {
+ serializedName: "skuProperties",
+ readOnly: true,
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "SkuProperty"
+ }
+ }
+ }
+ },
+ msrp: {
+ serializedName: "msrp",
+ type: {
+ name: "Composite",
+ className: "CatalogMsrp"
+ }
+ },
+ restrictions: {
+ serializedName: "restrictions",
+ readOnly: true,
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "SkuRestriction"
+ }
+ }
+ }
+ },
+ tier: {
+ serializedName: "tier",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ size: {
+ serializedName: "size",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ capabilities: {
+ serializedName: "capabilities",
+ readOnly: true,
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "SkuCapability"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const SkuProperty: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "SkuProperty",
modelProperties: {
name: {
serializedName: "name",
type: {
name: "String"
}
- }
- }
- }
-};
-
-export const PurchaseRequestPropertiesReservedResourceProperties: msRest.CompositeMapper = {
- serializedName: "PurchaseRequestProperties_reservedResourceProperties",
- type: {
- name: "Composite",
- className: "PurchaseRequestPropertiesReservedResourceProperties",
- modelProperties: {
- instanceFlexibility: {
- serializedName: "instanceFlexibility",
+ },
+ value: {
+ serializedName: "value",
type: {
name: "String"
}
@@ -82,8 +276,160 @@ export const PurchaseRequestPropertiesReservedResourceProperties: msRest.Composi
}
};
-export const PurchaseRequest: msRest.CompositeMapper = {
- serializedName: "PurchaseRequest",
+export const CatalogMsrp: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "CatalogMsrp",
+ modelProperties: {
+ p1Y: {
+ serializedName: "p1Y",
+ type: {
+ name: "Composite",
+ className: "Price"
+ }
+ }
+ }
+ }
+};
+
+export const Price: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "Price",
+ modelProperties: {
+ currencyCode: {
+ serializedName: "currencyCode",
+ type: {
+ name: "String"
+ }
+ },
+ amount: {
+ serializedName: "amount",
+ type: {
+ name: "Number"
+ }
+ }
+ }
+ }
+};
+
+export const SkuRestriction: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "SkuRestriction",
+ modelProperties: {
+ type: {
+ serializedName: "type",
+ type: {
+ name: "String"
+ }
+ },
+ values: {
+ serializedName: "values",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ reasonCode: {
+ serializedName: "reasonCode",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const SkuCapability: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "SkuCapability",
+ modelProperties: {
+ name: {
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ value: {
+ serializedName: "value",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const AppliedReservations: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "AppliedReservations",
+ modelProperties: {
+ id: {
+ serializedName: "id",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ name: {
+ serializedName: "name",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ type: {
+ serializedName: "type",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ reservationOrderIds: {
+ serializedName: "properties.reservationOrderIds",
+ type: {
+ name: "Composite",
+ className: "AppliedReservationList"
+ }
+ }
+ }
+ }
+};
+
+export const AppliedReservationList: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "AppliedReservationList",
+ modelProperties: {
+ value: {
+ serializedName: "value",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const PurchaseRequest: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "PurchaseRequest",
@@ -155,6 +501,7 @@ export const PurchaseRequest: msRest.CompositeMapper = {
}
},
renew: {
+ defaultValue: false,
serializedName: "properties.renew",
type: {
name: "Boolean"
@@ -171,117 +518,139 @@ export const PurchaseRequest: msRest.CompositeMapper = {
}
};
-export const ReservationToReturn: msRest.CompositeMapper = {
- serializedName: "ReservationToReturn",
+export const SkuName: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ReservationToReturn",
+ className: "SkuName",
modelProperties: {
- reservationId: {
- serializedName: "reservationId",
+ name: {
+ serializedName: "name",
type: {
name: "String"
}
+ }
+ }
+ }
+};
+
+export const PurchaseRequestPropertiesReservedResourceProperties: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "PurchaseRequestPropertiesReservedResourceProperties",
+ modelProperties: {
+ instanceFlexibility: {
+ serializedName: "instanceFlexibility",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const CalculatePriceResponse: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "CalculatePriceResponse",
+ modelProperties: {
+ properties: {
+ serializedName: "properties",
+ type: {
+ name: "Composite",
+ className: "CalculatePriceResponseProperties"
+ }
+ }
+ }
+ }
+};
+
+export const CalculatePriceResponseProperties: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "CalculatePriceResponseProperties",
+ modelProperties: {
+ billingCurrencyTotal: {
+ serializedName: "billingCurrencyTotal",
+ type: {
+ name: "Composite",
+ className: "CalculatePriceResponsePropertiesBillingCurrencyTotal"
+ }
},
- quantity: {
- serializedName: "quantity",
+ netTotal: {
+ serializedName: "netTotal",
type: {
name: "Number"
}
- }
- }
- }
-};
-
-export const CalculateExchangeRequestProperties: msRest.CompositeMapper = {
- serializedName: "CalculateExchangeRequestProperties",
- type: {
- name: "Composite",
- className: "CalculateExchangeRequestProperties",
- modelProperties: {
- reservationsToPurchase: {
- serializedName: "reservationsToPurchase",
+ },
+ taxTotal: {
+ serializedName: "taxTotal",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "PurchaseRequest"
- }
- }
+ name: "Number"
}
},
- reservationsToExchange: {
- serializedName: "reservationsToExchange",
+ grandTotal: {
+ serializedName: "grandTotal",
type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ReservationToReturn"
- }
- }
+ name: "Number"
}
- }
- }
- }
-};
-
-export const CalculateExchangeRequest: msRest.CompositeMapper = {
- serializedName: "CalculateExchangeRequest",
- type: {
- name: "Composite",
- className: "CalculateExchangeRequest",
- modelProperties: {
- properties: {
- serializedName: "properties",
+ },
+ isTaxIncluded: {
+ serializedName: "isTaxIncluded",
type: {
- name: "Composite",
- className: "CalculateExchangeRequestProperties"
+ name: "Boolean"
}
- }
- }
- }
-};
-
-export const ExchangeRequestProperties: msRest.CompositeMapper = {
- serializedName: "ExchangeRequestProperties",
- type: {
- name: "Composite",
- className: "ExchangeRequestProperties",
- modelProperties: {
- sessionId: {
- serializedName: "sessionId",
+ },
+ isBillingPartnerManaged: {
+ serializedName: "isBillingPartnerManaged",
+ type: {
+ name: "Boolean"
+ }
+ },
+ reservationOrderId: {
+ serializedName: "reservationOrderId",
type: {
name: "String"
}
- }
- }
- }
-};
-
-export const ExchangeRequest: msRest.CompositeMapper = {
- serializedName: "ExchangeRequest",
- type: {
- name: "Composite",
- className: "ExchangeRequest",
- modelProperties: {
- properties: {
- serializedName: "properties",
+ },
+ skuTitle: {
+ serializedName: "skuTitle",
+ type: {
+ name: "String"
+ }
+ },
+ skuDescription: {
+ serializedName: "skuDescription",
+ type: {
+ name: "String"
+ }
+ },
+ pricingCurrencyTotal: {
+ serializedName: "pricingCurrencyTotal",
type: {
name: "Composite",
- className: "ExchangeRequestProperties"
+ className: "CalculatePriceResponsePropertiesPricingCurrencyTotal"
+ }
+ },
+ paymentSchedule: {
+ serializedName: "paymentSchedule",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "PaymentDetail"
+ }
+ }
}
}
}
}
};
-export const Price: msRest.CompositeMapper = {
- serializedName: "Price",
+export const CalculatePriceResponsePropertiesBillingCurrencyTotal: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "Price",
+ className: "CalculatePriceResponsePropertiesBillingCurrencyTotal",
modelProperties: {
currencyCode: {
serializedName: "currencyCode",
@@ -299,636 +668,28 @@ export const Price: msRest.CompositeMapper = {
}
};
-export const ReservationToPurchaseCalculateExchange: msRest.CompositeMapper = {
- serializedName: "ReservationToPurchaseCalculateExchange",
+export const CalculatePriceResponsePropertiesPricingCurrencyTotal: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ReservationToPurchaseCalculateExchange",
+ className: "CalculatePriceResponsePropertiesPricingCurrencyTotal",
modelProperties: {
- properties: {
- serializedName: "properties",
- type: {
- name: "Composite",
- className: "PurchaseRequest"
- }
- },
- billingCurrencyTotal: {
- serializedName: "billingCurrencyTotal",
- type: {
- name: "Composite",
- className: "Price"
- }
- }
- }
- }
-};
-
-export const BillingInformation: msRest.CompositeMapper = {
- serializedName: "BillingInformation",
- type: {
- name: "Composite",
- className: "BillingInformation",
- modelProperties: {
- billingCurrencyTotalPaidAmount: {
- serializedName: "billingCurrencyTotalPaidAmount",
- type: {
- name: "Composite",
- className: "Price"
- }
- },
- billingCurrencyProratedAmount: {
- serializedName: "billingCurrencyProratedAmount",
- type: {
- name: "Composite",
- className: "Price"
- }
- },
- billingCurrencyRemainingCommitmentAmount: {
- serializedName: "billingCurrencyRemainingCommitmentAmount",
- type: {
- name: "Composite",
- className: "Price"
- }
- }
- }
- }
-};
-
-export const ReservationToExchange: msRest.CompositeMapper = {
- serializedName: "ReservationToExchange",
- type: {
- name: "Composite",
- className: "ReservationToExchange",
- modelProperties: {
- reservationId: {
- serializedName: "reservationId",
+ currencyCode: {
+ serializedName: "currencyCode",
type: {
name: "String"
}
},
- quantity: {
- serializedName: "quantity",
+ amount: {
+ serializedName: "amount",
type: {
name: "Number"
}
- },
- billingRefundAmount: {
- serializedName: "billingRefundAmount",
- type: {
- name: "Composite",
- className: "Price"
- }
- },
- billingInformation: {
- serializedName: "billingInformation",
- type: {
- name: "Composite",
- className: "BillingInformation"
- }
}
}
}
};
-export const ExchangePolicyError: msRest.CompositeMapper = {
- serializedName: "ExchangePolicyError",
- type: {
- name: "Composite",
- className: "ExchangePolicyError",
- modelProperties: {
- code: {
- serializedName: "code",
- type: {
- name: "String"
- }
- },
- message: {
- serializedName: "message",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const ExchangePolicyErrors: msRest.CompositeMapper = {
- serializedName: "ExchangePolicyErrors",
- type: {
- name: "Composite",
- className: "ExchangePolicyErrors",
- modelProperties: {
- policyErrors: {
- serializedName: "policyErrors",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ExchangePolicyError"
- }
- }
- }
- }
- }
- }
-};
-
-export const CalculateExchangeResponseProperties: msRest.CompositeMapper = {
- serializedName: "CalculateExchangeResponseProperties",
- type: {
- name: "Composite",
- className: "CalculateExchangeResponseProperties",
- modelProperties: {
- sessionId: {
- serializedName: "sessionId",
- type: {
- name: "String"
- }
- },
- netPayable: {
- serializedName: "netPayable",
- type: {
- name: "Composite",
- className: "Price"
- }
- },
- refundsTotal: {
- serializedName: "refundsTotal",
- type: {
- name: "Composite",
- className: "Price"
- }
- },
- purchasesTotal: {
- serializedName: "purchasesTotal",
- type: {
- name: "Composite",
- className: "Price"
- }
- },
- reservationsToPurchase: {
- serializedName: "reservationsToPurchase",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ReservationToPurchaseCalculateExchange"
- }
- }
- }
- },
- reservationsToExchange: {
- serializedName: "reservationsToExchange",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ReservationToExchange"
- }
- }
- }
- },
- policyResult: {
- serializedName: "policyResult",
- type: {
- name: "Composite",
- className: "ExchangePolicyErrors"
- }
- }
- }
- }
-};
-
-export const OperationResultError: msRest.CompositeMapper = {
- serializedName: "OperationResultError",
- type: {
- name: "Composite",
- className: "OperationResultError",
- modelProperties: {
- code: {
- serializedName: "code",
- type: {
- name: "String"
- }
- },
- message: {
- serializedName: "message",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const CalculateExchangeOperationResultResponse: msRest.CompositeMapper = {
- serializedName: "CalculateExchangeOperationResultResponse",
- type: {
- name: "Composite",
- className: "CalculateExchangeOperationResultResponse",
- modelProperties: {
- id: {
- serializedName: "id",
- type: {
- name: "String"
- }
- },
- name: {
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- status: {
- serializedName: "status",
- type: {
- name: "String"
- }
- },
- properties: {
- serializedName: "properties",
- type: {
- name: "Composite",
- className: "CalculateExchangeResponseProperties"
- }
- },
- error: {
- serializedName: "error",
- type: {
- name: "Composite",
- className: "OperationResultError"
- }
- }
- }
- }
-};
-
-export const ReservationToPurchaseExchange: msRest.CompositeMapper = {
- serializedName: "ReservationToPurchaseExchange",
- type: {
- name: "Composite",
- className: "ReservationToPurchaseExchange",
- modelProperties: {
- reservationOrderId: {
- serializedName: "reservationOrderId",
- type: {
- name: "String"
- }
- },
- reservationId: {
- serializedName: "reservationId",
- type: {
- name: "String"
- }
- },
- properties: {
- serializedName: "properties",
- type: {
- name: "Composite",
- className: "PurchaseRequest"
- }
- },
- billingCurrencyTotal: {
- serializedName: "billingCurrencyTotal",
- type: {
- name: "Composite",
- className: "Price"
- }
- },
- status: {
- serializedName: "status",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const ReservationToReturnForExchange: msRest.CompositeMapper = {
- serializedName: "ReservationToReturnForExchange",
- type: {
- name: "Composite",
- className: "ReservationToReturnForExchange",
- modelProperties: {
- reservationId: {
- serializedName: "reservationId",
- type: {
- name: "String"
- }
- },
- quantity: {
- serializedName: "quantity",
- type: {
- name: "Number"
- }
- },
- billingRefundAmount: {
- serializedName: "billingRefundAmount",
- type: {
- name: "Composite",
- className: "Price"
- }
- },
- billingInformation: {
- serializedName: "billingInformation",
- type: {
- name: "Composite",
- className: "BillingInformation"
- }
- },
- status: {
- serializedName: "status",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const ExchangeResponseProperties: msRest.CompositeMapper = {
- serializedName: "ExchangeResponseProperties",
- type: {
- name: "Composite",
- className: "ExchangeResponseProperties",
- modelProperties: {
- sessionId: {
- serializedName: "sessionId",
- type: {
- name: "String"
- }
- },
- netPayable: {
- serializedName: "netPayable",
- type: {
- name: "Composite",
- className: "Price"
- }
- },
- refundsTotal: {
- serializedName: "refundsTotal",
- type: {
- name: "Composite",
- className: "Price"
- }
- },
- purchasesTotal: {
- serializedName: "purchasesTotal",
- type: {
- name: "Composite",
- className: "Price"
- }
- },
- reservationsToPurchase: {
- serializedName: "reservationsToPurchase",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ReservationToPurchaseExchange"
- }
- }
- }
- },
- reservationsToExchange: {
- serializedName: "reservationsToExchange",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ReservationToReturnForExchange"
- }
- }
- }
- },
- policyResult: {
- serializedName: "policyResult",
- type: {
- name: "Composite",
- className: "ExchangePolicyErrors"
- }
- }
- }
- }
-};
-
-export const ExchangeOperationResultResponse: msRest.CompositeMapper = {
- serializedName: "ExchangeOperationResultResponse",
- type: {
- name: "Composite",
- className: "ExchangeOperationResultResponse",
- modelProperties: {
- id: {
- serializedName: "id",
- type: {
- name: "String"
- }
- },
- name: {
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- status: {
- serializedName: "status",
- type: {
- name: "String"
- }
- },
- properties: {
- serializedName: "properties",
- type: {
- name: "Composite",
- className: "ExchangeResponseProperties"
- }
- },
- error: {
- serializedName: "error",
- type: {
- name: "Composite",
- className: "OperationResultError"
- }
- }
- }
- }
-};
-
-export const SkuProperty: msRest.CompositeMapper = {
- serializedName: "SkuProperty",
- type: {
- name: "Composite",
- className: "SkuProperty",
- modelProperties: {
- name: {
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- value: {
- serializedName: "value",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const SkuRestriction: msRest.CompositeMapper = {
- serializedName: "SkuRestriction",
- type: {
- name: "Composite",
- className: "SkuRestriction",
- modelProperties: {
- type: {
- serializedName: "type",
- type: {
- name: "String"
- }
- },
- values: {
- serializedName: "values",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- },
- reasonCode: {
- serializedName: "reasonCode",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const Catalog: msRest.CompositeMapper = {
- serializedName: "Catalog",
- type: {
- name: "Composite",
- className: "Catalog",
- modelProperties: {
- resourceType: {
- readOnly: true,
- serializedName: "resourceType",
- type: {
- name: "String"
- }
- },
- name: {
- readOnly: true,
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- billingPlans: {
- serializedName: "billingPlans",
- type: {
- name: "Dictionary",
- value: {
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- }
- }
- },
- terms: {
- readOnly: true,
- serializedName: "terms",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- },
- locations: {
- readOnly: true,
- serializedName: "locations",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- },
- skuProperties: {
- readOnly: true,
- serializedName: "skuProperties",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "SkuProperty"
- }
- }
- }
- },
- restrictions: {
- readOnly: true,
- serializedName: "restrictions",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "SkuRestriction"
- }
- }
- }
- }
- }
- }
-};
-
-export const ExtendedStatusInfo: msRest.CompositeMapper = {
- serializedName: "ExtendedStatusInfo",
- type: {
- name: "Composite",
- className: "ExtendedStatusInfo",
- modelProperties: {
- statusCode: {
- serializedName: "statusCode",
- type: {
- name: "String"
- }
- },
- message: {
- serializedName: "message",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const PaymentDetail: msRest.CompositeMapper = {
- serializedName: "PaymentDetail",
+export const PaymentDetail: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "PaymentDetail",
@@ -982,66 +743,46 @@ export const PaymentDetail: msRest.CompositeMapper = {
}
};
-export const ReservationOrderBillingPlanInformation: msRest.CompositeMapper = {
- serializedName: "ReservationOrderBillingPlanInformation",
+export const ExtendedStatusInfo: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ReservationOrderBillingPlanInformation",
+ className: "ExtendedStatusInfo",
modelProperties: {
- pricingCurrencyTotal: {
- serializedName: "pricingCurrencyTotal",
+ statusCode: {
+ serializedName: "statusCode",
type: {
- name: "Composite",
- className: "Price"
+ name: "String"
}
},
- startDate: {
- serializedName: "startDate",
+ message: {
+ serializedName: "message",
type: {
- name: "Date"
+ name: "String"
}
- },
- nextPaymentDueDate: {
- serializedName: "nextPaymentDueDate",
- type: {
- name: "Date"
- }
- },
- transactions: {
- serializedName: "transactions",
+ }
+ }
+ }
+};
+
+export const ReservationOrderList: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ReservationOrderList",
+ modelProperties: {
+ value: {
+ serializedName: "value",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "PaymentDetail"
- }
- }
- }
- }
- }
- }
-};
-
-export const ReservationSplitProperties: msRest.CompositeMapper = {
- serializedName: "ReservationSplitProperties",
- type: {
- name: "Composite",
- className: "ReservationSplitProperties",
- modelProperties: {
- splitDestinations: {
- serializedName: "splitDestinations",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
+ className: "ReservationOrderResponse"
}
}
}
},
- splitSource: {
- serializedName: "splitSource",
+ nextLink: {
+ serializedName: "nextLink",
type: {
name: "String"
}
@@ -1050,314 +791,7 @@ export const ReservationSplitProperties: msRest.CompositeMapper = {
}
};
-export const ReservationMergeProperties: msRest.CompositeMapper = {
- serializedName: "ReservationMergeProperties",
- type: {
- name: "Composite",
- className: "ReservationMergeProperties",
- modelProperties: {
- mergeDestination: {
- serializedName: "mergeDestination",
- type: {
- name: "String"
- }
- },
- mergeSources: {
- serializedName: "mergeSources",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- }
- }
- }
-};
-
-export const RenewPropertiesResponsePricingCurrencyTotal: msRest.CompositeMapper = {
- serializedName: "RenewPropertiesResponse_pricingCurrencyTotal",
- type: {
- name: "Composite",
- className: "RenewPropertiesResponsePricingCurrencyTotal",
- modelProperties: {
- currencyCode: {
- serializedName: "currencyCode",
- type: {
- name: "String"
- }
- },
- amount: {
- serializedName: "amount",
- type: {
- name: "Number"
- }
- }
- }
- }
-};
-
-export const RenewPropertiesResponseBillingCurrencyTotal: msRest.CompositeMapper = {
- serializedName: "RenewPropertiesResponse_billingCurrencyTotal",
- type: {
- name: "Composite",
- className: "RenewPropertiesResponseBillingCurrencyTotal",
- modelProperties: {
- currencyCode: {
- serializedName: "currencyCode",
- type: {
- name: "String"
- }
- },
- amount: {
- serializedName: "amount",
- type: {
- name: "Number"
- }
- }
- }
- }
-};
-
-export const RenewPropertiesResponse: msRest.CompositeMapper = {
- serializedName: "RenewPropertiesResponse",
- type: {
- name: "Composite",
- className: "RenewPropertiesResponse",
- modelProperties: {
- purchaseProperties: {
- serializedName: "purchaseProperties",
- type: {
- name: "Composite",
- className: "PurchaseRequest"
- }
- },
- pricingCurrencyTotal: {
- serializedName: "pricingCurrencyTotal",
- type: {
- name: "Composite",
- className: "RenewPropertiesResponsePricingCurrencyTotal"
- }
- },
- billingCurrencyTotal: {
- serializedName: "billingCurrencyTotal",
- type: {
- name: "Composite",
- className: "RenewPropertiesResponseBillingCurrencyTotal"
- }
- }
- }
- }
-};
-
-export const ReservationProperties: msRest.CompositeMapper = {
- serializedName: "ReservationProperties",
- type: {
- name: "Composite",
- className: "ReservationProperties",
- modelProperties: {
- reservedResourceType: {
- serializedName: "reservedResourceType",
- type: {
- name: "String"
- }
- },
- instanceFlexibility: {
- serializedName: "instanceFlexibility",
- type: {
- name: "String"
- }
- },
- displayName: {
- serializedName: "displayName",
- type: {
- name: "String"
- }
- },
- appliedScopes: {
- serializedName: "appliedScopes",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "String"
- }
- }
- }
- },
- appliedScopeType: {
- serializedName: "appliedScopeType",
- type: {
- name: "String"
- }
- },
- quantity: {
- serializedName: "quantity",
- type: {
- name: "Number"
- }
- },
- provisioningState: {
- serializedName: "provisioningState",
- type: {
- name: "String"
- }
- },
- effectiveDateTime: {
- serializedName: "effectiveDateTime",
- type: {
- name: "DateTime"
- }
- },
- lastUpdatedDateTime: {
- readOnly: true,
- serializedName: "lastUpdatedDateTime",
- type: {
- name: "DateTime"
- }
- },
- expiryDate: {
- serializedName: "expiryDate",
- type: {
- name: "Date"
- }
- },
- skuDescription: {
- serializedName: "skuDescription",
- type: {
- name: "String"
- }
- },
- extendedStatusInfo: {
- serializedName: "extendedStatusInfo",
- type: {
- name: "Composite",
- className: "ExtendedStatusInfo"
- }
- },
- billingPlan: {
- serializedName: "billingPlan",
- type: {
- name: "String"
- }
- },
- splitProperties: {
- serializedName: "splitProperties",
- type: {
- name: "Composite",
- className: "ReservationSplitProperties"
- }
- },
- mergeProperties: {
- serializedName: "mergeProperties",
- type: {
- name: "Composite",
- className: "ReservationMergeProperties"
- }
- },
- billingScopeId: {
- serializedName: "billingScopeId",
- type: {
- name: "String"
- }
- },
- renew: {
- serializedName: "renew",
- type: {
- name: "Boolean"
- }
- },
- renewSource: {
- serializedName: "renewSource",
- type: {
- name: "String"
- }
- },
- renewDestination: {
- serializedName: "renewDestination",
- type: {
- name: "String"
- }
- },
- renewProperties: {
- serializedName: "renewProperties",
- type: {
- name: "Composite",
- className: "RenewPropertiesResponse"
- }
- },
- term: {
- serializedName: "term",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const ReservationResponse: msRest.CompositeMapper = {
- serializedName: "ReservationResponse",
- type: {
- name: "Composite",
- className: "ReservationResponse",
- modelProperties: {
- location: {
- readOnly: true,
- serializedName: "location",
- type: {
- name: "String"
- }
- },
- etag: {
- serializedName: "etag",
- type: {
- name: "Number"
- }
- },
- id: {
- readOnly: true,
- serializedName: "id",
- type: {
- name: "String"
- }
- },
- name: {
- readOnly: true,
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- sku: {
- serializedName: "sku",
- type: {
- name: "Composite",
- className: "SkuName"
- }
- },
- properties: {
- serializedName: "properties",
- type: {
- name: "Composite",
- className: "ReservationProperties"
- }
- },
- type: {
- readOnly: true,
- serializedName: "type",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const ReservationOrderResponse: msRest.CompositeMapper = {
- serializedName: "ReservationOrderResponse",
+export const ReservationOrderResponse: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ReservationOrderResponse",
@@ -1369,19 +803,33 @@ export const ReservationOrderResponse: msRest.CompositeMapper = {
}
},
id: {
- readOnly: true,
serializedName: "id",
+ readOnly: true,
type: {
name: "String"
}
},
name: {
- readOnly: true,
serializedName: "name",
+ readOnly: true,
type: {
name: "String"
}
},
+ type: {
+ serializedName: "type",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ systemData: {
+ serializedName: "systemData",
+ type: {
+ name: "Composite",
+ className: "SystemData"
+ }
+ },
displayName: {
serializedName: "properties.displayName",
type: {
@@ -1448,108 +896,37 @@ export const ReservationOrderResponse: msRest.CompositeMapper = {
}
}
}
- },
- type: {
- readOnly: true,
- serializedName: "type",
- type: {
- name: "String"
- }
}
}
}
};
-export const CalculatePriceResponsePropertiesBillingCurrencyTotal: msRest.CompositeMapper = {
- serializedName: "CalculatePriceResponseProperties_billingCurrencyTotal",
+export const ReservationOrderBillingPlanInformation: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "CalculatePriceResponsePropertiesBillingCurrencyTotal",
+ className: "ReservationOrderBillingPlanInformation",
modelProperties: {
- currencyCode: {
- serializedName: "currencyCode",
- type: {
- name: "String"
- }
- },
- amount: {
- serializedName: "amount",
- type: {
- name: "Number"
- }
- }
- }
- }
-};
-
-export const CalculatePriceResponsePropertiesPricingCurrencyTotal: msRest.CompositeMapper = {
- serializedName: "CalculatePriceResponseProperties_pricingCurrencyTotal",
- type: {
- name: "Composite",
- className: "CalculatePriceResponsePropertiesPricingCurrencyTotal",
- modelProperties: {
- currencyCode: {
- serializedName: "currencyCode",
- type: {
- name: "String"
- }
- },
- amount: {
- serializedName: "amount",
- type: {
- name: "Number"
- }
- }
- }
- }
-};
-
-export const CalculatePriceResponseProperties: msRest.CompositeMapper = {
- serializedName: "CalculatePriceResponseProperties",
- type: {
- name: "Composite",
- className: "CalculatePriceResponseProperties",
- modelProperties: {
- billingCurrencyTotal: {
- serializedName: "billingCurrencyTotal",
- type: {
- name: "Composite",
- className: "CalculatePriceResponsePropertiesBillingCurrencyTotal"
- }
- },
- isBillingPartnerManaged: {
- serializedName: "isBillingPartnerManaged",
- type: {
- name: "Boolean"
- }
- },
- reservationOrderId: {
- serializedName: "reservationOrderId",
- type: {
- name: "String"
- }
- },
- skuTitle: {
- serializedName: "skuTitle",
- type: {
- name: "String"
- }
- },
- skuDescription: {
- serializedName: "skuDescription",
- type: {
- name: "String"
- }
- },
pricingCurrencyTotal: {
serializedName: "pricingCurrencyTotal",
type: {
name: "Composite",
- className: "CalculatePriceResponsePropertiesPricingCurrencyTotal"
+ className: "Price"
}
},
- paymentSchedule: {
- serializedName: "paymentSchedule",
+ startDate: {
+ serializedName: "startDate",
+ type: {
+ name: "Date"
+ }
+ },
+ nextPaymentDueDate: {
+ serializedName: "nextPaymentDueDate",
+ type: {
+ name: "Date"
+ }
+ },
+ transactions: {
+ serializedName: "transactions",
type: {
name: "Sequence",
element: {
@@ -1564,28 +941,332 @@ export const CalculatePriceResponseProperties: msRest.CompositeMapper = {
}
};
-export const CalculatePriceResponse: msRest.CompositeMapper = {
- serializedName: "CalculatePriceResponse",
+export const ReservationResponse: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "CalculatePriceResponse",
+ className: "ReservationResponse",
modelProperties: {
+ location: {
+ serializedName: "location",
+ type: {
+ name: "String"
+ }
+ },
+ etag: {
+ serializedName: "etag",
+ type: {
+ name: "Number"
+ }
+ },
+ id: {
+ serializedName: "id",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ name: {
+ serializedName: "name",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ sku: {
+ serializedName: "sku",
+ type: {
+ name: "Composite",
+ className: "SkuName"
+ }
+ },
properties: {
serializedName: "properties",
type: {
name: "Composite",
- className: "CalculatePriceResponseProperties"
+ className: "ReservationsProperties"
+ }
+ },
+ type: {
+ serializedName: "type",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ kind: {
+ defaultValue: "Microsoft.Compute",
+ isConstant: true,
+ serializedName: "kind",
+ type: {
+ name: "String"
+ }
+ },
+ systemData: {
+ serializedName: "systemData",
+ type: {
+ name: "Composite",
+ className: "SystemData"
}
}
}
}
};
-export const PatchPropertiesRenewProperties: msRest.CompositeMapper = {
- serializedName: "PatchProperties_renewProperties",
+export const ReservationsProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "PatchPropertiesRenewProperties",
+ className: "ReservationsProperties",
+ modelProperties: {
+ reservedResourceType: {
+ serializedName: "reservedResourceType",
+ type: {
+ name: "String"
+ }
+ },
+ instanceFlexibility: {
+ serializedName: "instanceFlexibility",
+ type: {
+ name: "String"
+ }
+ },
+ displayName: {
+ serializedName: "displayName",
+ type: {
+ name: "String"
+ }
+ },
+ appliedScopes: {
+ serializedName: "appliedScopes",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ appliedScopeType: {
+ serializedName: "appliedScopeType",
+ type: {
+ name: "String"
+ }
+ },
+ archived: {
+ serializedName: "archived",
+ type: {
+ name: "Boolean"
+ }
+ },
+ capabilities: {
+ serializedName: "capabilities",
+ type: {
+ name: "String"
+ }
+ },
+ quantity: {
+ serializedName: "quantity",
+ type: {
+ name: "Number"
+ }
+ },
+ provisioningState: {
+ serializedName: "provisioningState",
+ type: {
+ name: "String"
+ }
+ },
+ effectiveDateTime: {
+ serializedName: "effectiveDateTime",
+ type: {
+ name: "DateTime"
+ }
+ },
+ lastUpdatedDateTime: {
+ serializedName: "lastUpdatedDateTime",
+ readOnly: true,
+ type: {
+ name: "DateTime"
+ }
+ },
+ expiryDate: {
+ serializedName: "expiryDate",
+ type: {
+ name: "Date"
+ }
+ },
+ skuDescription: {
+ serializedName: "skuDescription",
+ type: {
+ name: "String"
+ }
+ },
+ extendedStatusInfo: {
+ serializedName: "extendedStatusInfo",
+ type: {
+ name: "Composite",
+ className: "ExtendedStatusInfo"
+ }
+ },
+ billingPlan: {
+ serializedName: "billingPlan",
+ type: {
+ name: "String"
+ }
+ },
+ displayProvisioningState: {
+ serializedName: "displayProvisioningState",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ provisioningSubState: {
+ serializedName: "provisioningSubState",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ purchaseDate: {
+ serializedName: "purchaseDate",
+ type: {
+ name: "Date"
+ }
+ },
+ splitProperties: {
+ serializedName: "splitProperties",
+ type: {
+ name: "Composite",
+ className: "ReservationSplitProperties"
+ }
+ },
+ mergeProperties: {
+ serializedName: "mergeProperties",
+ type: {
+ name: "Composite",
+ className: "ReservationMergeProperties"
+ }
+ },
+ billingScopeId: {
+ serializedName: "billingScopeId",
+ type: {
+ name: "String"
+ }
+ },
+ renew: {
+ defaultValue: false,
+ serializedName: "renew",
+ type: {
+ name: "Boolean"
+ }
+ },
+ renewSource: {
+ serializedName: "renewSource",
+ type: {
+ name: "String"
+ }
+ },
+ renewDestination: {
+ serializedName: "renewDestination",
+ type: {
+ name: "String"
+ }
+ },
+ renewProperties: {
+ serializedName: "renewProperties",
+ type: {
+ name: "Composite",
+ className: "RenewPropertiesResponse"
+ }
+ },
+ term: {
+ serializedName: "term",
+ type: {
+ name: "String"
+ }
+ },
+ userFriendlyAppliedScopeType: {
+ serializedName: "userFriendlyAppliedScopeType",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ userFriendlyRenewState: {
+ serializedName: "userFriendlyRenewState",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ utilization: {
+ serializedName: "utilization",
+ type: {
+ name: "Composite",
+ className: "ReservationsPropertiesUtilization"
+ }
+ }
+ }
+ }
+};
+
+export const ReservationSplitProperties: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ReservationSplitProperties",
+ modelProperties: {
+ splitDestinations: {
+ serializedName: "splitDestinations",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ },
+ splitSource: {
+ serializedName: "splitSource",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const ReservationMergeProperties: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ReservationMergeProperties",
+ modelProperties: {
+ mergeDestination: {
+ serializedName: "mergeDestination",
+ type: {
+ name: "String"
+ }
+ },
+ mergeSources: {
+ serializedName: "mergeSources",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const RenewPropertiesResponse: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "RenewPropertiesResponse",
modelProperties: {
purchaseProperties: {
serializedName: "purchaseProperties",
@@ -1593,13 +1274,204 @@ export const PatchPropertiesRenewProperties: msRest.CompositeMapper = {
name: "Composite",
className: "PurchaseRequest"
}
+ },
+ pricingCurrencyTotal: {
+ serializedName: "pricingCurrencyTotal",
+ type: {
+ name: "Composite",
+ className: "RenewPropertiesResponsePricingCurrencyTotal"
+ }
+ },
+ billingCurrencyTotal: {
+ serializedName: "billingCurrencyTotal",
+ type: {
+ name: "Composite",
+ className: "RenewPropertiesResponseBillingCurrencyTotal"
+ }
}
}
}
};
-export const MergeRequest: msRest.CompositeMapper = {
- serializedName: "MergeRequest",
+export const RenewPropertiesResponsePricingCurrencyTotal: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "RenewPropertiesResponsePricingCurrencyTotal",
+ modelProperties: {
+ currencyCode: {
+ serializedName: "currencyCode",
+ type: {
+ name: "String"
+ }
+ },
+ amount: {
+ serializedName: "amount",
+ type: {
+ name: "Number"
+ }
+ }
+ }
+ }
+};
+
+export const RenewPropertiesResponseBillingCurrencyTotal: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "RenewPropertiesResponseBillingCurrencyTotal",
+ modelProperties: {
+ currencyCode: {
+ serializedName: "currencyCode",
+ type: {
+ name: "String"
+ }
+ },
+ amount: {
+ serializedName: "amount",
+ type: {
+ name: "Number"
+ }
+ }
+ }
+ }
+};
+
+export const ReservationsPropertiesUtilization: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ReservationsPropertiesUtilization",
+ modelProperties: {
+ trend: {
+ serializedName: "trend",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ aggregates: {
+ serializedName: "aggregates",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ReservationUtilizationAggregates"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const ReservationUtilizationAggregates: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ReservationUtilizationAggregates",
+ modelProperties: {
+ grain: {
+ serializedName: "grain",
+ readOnly: true,
+ type: {
+ name: "Number"
+ }
+ },
+ grainUnit: {
+ serializedName: "grainUnit",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ value: {
+ serializedName: "value",
+ readOnly: true,
+ type: {
+ name: "Number"
+ }
+ },
+ valueUnit: {
+ serializedName: "valueUnit",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const SystemData: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "SystemData",
+ modelProperties: {
+ createdBy: {
+ serializedName: "createdBy",
+ type: {
+ name: "String"
+ }
+ },
+ createdByType: {
+ serializedName: "createdByType",
+ type: {
+ name: "String"
+ }
+ },
+ createdAt: {
+ serializedName: "createdAt",
+ type: {
+ name: "DateTime"
+ }
+ },
+ lastModifiedBy: {
+ serializedName: "lastModifiedBy",
+ type: {
+ name: "String"
+ }
+ },
+ lastModifiedByType: {
+ serializedName: "lastModifiedByType",
+ type: {
+ name: "String"
+ }
+ },
+ lastModifiedAt: {
+ serializedName: "lastModifiedAt",
+ type: {
+ name: "DateTime"
+ }
+ }
+ }
+ }
+};
+
+export const SplitRequest: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "SplitRequest",
+ modelProperties: {
+ quantities: {
+ serializedName: "properties.quantities",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Number"
+ }
+ }
+ }
+ },
+ reservationId: {
+ serializedName: "properties.reservationId",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const MergeRequest: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "MergeRequest",
@@ -1619,8 +1491,34 @@ export const MergeRequest: msRest.CompositeMapper = {
}
};
-export const Patch: msRest.CompositeMapper = {
- serializedName: "Patch",
+export const ReservationList: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ReservationList",
+ modelProperties: {
+ value: {
+ serializedName: "value",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ReservationResponse"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const Patch: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "Patch",
@@ -1655,6 +1553,7 @@ export const Patch: msRest.CompositeMapper = {
}
},
renew: {
+ defaultValue: false,
serializedName: "properties.renew",
type: {
name: "Boolean"
@@ -1671,77 +1570,26 @@ export const Patch: msRest.CompositeMapper = {
}
};
-export const SplitRequest: msRest.CompositeMapper = {
- serializedName: "SplitRequest",
+export const PatchPropertiesRenewProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "SplitRequest",
+ className: "PatchPropertiesRenewProperties",
modelProperties: {
- quantities: {
- serializedName: "properties.quantities",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Number"
- }
- }
- }
- },
- reservationId: {
- serializedName: "properties.reservationId",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const ExtendedErrorInfo: msRest.CompositeMapper = {
- serializedName: "ExtendedErrorInfo",
- type: {
- name: "Composite",
- className: "ExtendedErrorInfo",
- modelProperties: {
- code: {
- serializedName: "code",
- type: {
- name: "String"
- }
- },
- message: {
- serializedName: "message",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const ErrorModel: msRest.CompositeMapper = {
- serializedName: "Error",
- type: {
- name: "Composite",
- className: "ErrorModel",
- modelProperties: {
- error: {
- serializedName: "error",
+ purchaseProperties: {
+ serializedName: "purchaseProperties",
type: {
name: "Composite",
- className: "ExtendedErrorInfo"
+ className: "PurchaseRequest"
}
}
}
}
};
-export const AppliedReservationList: msRest.CompositeMapper = {
- serializedName: "AppliedReservationList",
+export const OperationList: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "AppliedReservationList",
+ className: "OperationList",
modelProperties: {
value: {
serializedName: "value",
@@ -1749,7 +1597,8 @@ export const AppliedReservationList: msRest.CompositeMapper = {
name: "Sequence",
element: {
type: {
- name: "String"
+ name: "Composite",
+ className: "OperationResponse"
}
}
}
@@ -1764,46 +1613,48 @@ export const AppliedReservationList: msRest.CompositeMapper = {
}
};
-export const AppliedReservations: msRest.CompositeMapper = {
- serializedName: "AppliedReservations",
+export const OperationResponse: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "AppliedReservations",
+ className: "OperationResponse",
modelProperties: {
- id: {
- readOnly: true,
- serializedName: "id",
- type: {
- name: "String"
- }
- },
name: {
- readOnly: true,
serializedName: "name",
type: {
name: "String"
}
},
- type: {
- readOnly: true,
- serializedName: "type",
+ isDataAction: {
+ serializedName: "isDataAction",
+ type: {
+ name: "Boolean"
+ }
+ },
+ display: {
+ serializedName: "display",
+ type: {
+ name: "Composite",
+ className: "OperationDisplay"
+ }
+ },
+ origin: {
+ serializedName: "origin",
type: {
name: "String"
}
},
- reservationOrderIds: {
- serializedName: "properties.reservationOrderIds",
+ properties: {
+ serializedName: "properties",
type: {
- name: "Composite",
- className: "AppliedReservationList"
+ name: "Dictionary",
+ value: { type: { name: "any" } }
}
}
}
}
};
-export const OperationDisplay: msRest.CompositeMapper = {
- serializedName: "OperationDisplay",
+export const OperationDisplay: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "OperationDisplay",
@@ -1836,71 +1687,47 @@ export const OperationDisplay: msRest.CompositeMapper = {
}
};
-export const OperationResponse: msRest.CompositeMapper = {
- serializedName: "OperationResponse",
+export const CalculateExchangeRequest: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "OperationResponse",
+ className: "CalculateExchangeRequest",
modelProperties: {
- name: {
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- display: {
- serializedName: "display",
+ properties: {
+ serializedName: "properties",
type: {
name: "Composite",
- className: "OperationDisplay"
- }
- },
- origin: {
- serializedName: "origin",
- type: {
- name: "String"
+ className: "CalculateExchangeRequestProperties"
}
}
}
}
};
-export const ScopeProperties: msRest.CompositeMapper = {
- serializedName: "ScopeProperties",
+export const CalculateExchangeRequestProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ScopeProperties",
+ className: "CalculateExchangeRequestProperties",
modelProperties: {
- scope: {
- serializedName: "scope",
- type: {
- name: "String"
- }
- },
- valid: {
- serializedName: "valid",
- type: {
- name: "Boolean"
- }
- }
- }
- }
-};
-
-export const SubscriptionScopeProperties: msRest.CompositeMapper = {
- serializedName: "SubscriptionScopeProperties",
- type: {
- name: "Composite",
- className: "SubscriptionScopeProperties",
- modelProperties: {
- scopes: {
- serializedName: "scopes",
+ reservationsToPurchase: {
+ serializedName: "reservationsToPurchase",
type: {
name: "Sequence",
element: {
type: {
name: "Composite",
- className: "ScopeProperties"
+ className: "PurchaseRequest"
+ }
+ }
+ }
+ },
+ reservationsToExchange: {
+ serializedName: "reservationsToExchange",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ReservationToReturn"
}
}
}
@@ -1909,38 +1736,257 @@ export const SubscriptionScopeProperties: msRest.CompositeMapper = {
}
};
-export const AvailableScopeProperties: msRest.CompositeMapper = {
- serializedName: "AvailableScopeProperties",
+export const ReservationToReturn: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "AvailableScopeProperties",
+ className: "ReservationToReturn",
+ modelProperties: {
+ reservationId: {
+ serializedName: "reservationId",
+ type: {
+ name: "String"
+ }
+ },
+ quantity: {
+ serializedName: "quantity",
+ type: {
+ name: "Number"
+ }
+ }
+ }
+ }
+};
+
+export const CalculateExchangeOperationResultResponse: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "CalculateExchangeOperationResultResponse",
+ modelProperties: {
+ id: {
+ serializedName: "id",
+ type: {
+ name: "String"
+ }
+ },
+ name: {
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ status: {
+ serializedName: "status",
+ type: {
+ name: "String"
+ }
+ },
+ properties: {
+ serializedName: "properties",
+ type: {
+ name: "Composite",
+ className: "CalculateExchangeResponseProperties"
+ }
+ },
+ error: {
+ serializedName: "error",
+ type: {
+ name: "Composite",
+ className: "OperationResultError"
+ }
+ }
+ }
+ }
+};
+
+export const CalculateExchangeResponseProperties: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "CalculateExchangeResponseProperties",
+ modelProperties: {
+ sessionId: {
+ serializedName: "sessionId",
+ type: {
+ name: "String"
+ }
+ },
+ netPayable: {
+ serializedName: "netPayable",
+ type: {
+ name: "Composite",
+ className: "Price"
+ }
+ },
+ refundsTotal: {
+ serializedName: "refundsTotal",
+ type: {
+ name: "Composite",
+ className: "Price"
+ }
+ },
+ purchasesTotal: {
+ serializedName: "purchasesTotal",
+ type: {
+ name: "Composite",
+ className: "Price"
+ }
+ },
+ reservationsToPurchase: {
+ serializedName: "reservationsToPurchase",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ReservationToPurchaseCalculateExchange"
+ }
+ }
+ }
+ },
+ reservationsToExchange: {
+ serializedName: "reservationsToExchange",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ReservationToExchange"
+ }
+ }
+ }
+ },
+ policyResult: {
+ serializedName: "policyResult",
+ type: {
+ name: "Composite",
+ className: "ExchangePolicyErrors"
+ }
+ }
+ }
+ }
+};
+
+export const ReservationToPurchaseCalculateExchange: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ReservationToPurchaseCalculateExchange",
modelProperties: {
properties: {
serializedName: "properties",
type: {
name: "Composite",
- className: "SubscriptionScopeProperties"
+ className: "PurchaseRequest"
+ }
+ },
+ billingCurrencyTotal: {
+ serializedName: "billingCurrencyTotal",
+ type: {
+ name: "Composite",
+ className: "Price"
}
}
}
}
};
-export const ResourceName: msRest.CompositeMapper = {
- serializedName: "ResourceName",
+export const ReservationToExchange: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ResourceName",
+ className: "ReservationToExchange",
modelProperties: {
- value: {
- serializedName: "value",
+ reservationId: {
+ serializedName: "reservationId",
type: {
name: "String"
}
},
- localizedValue: {
- readOnly: true,
- serializedName: "localizedValue",
+ quantity: {
+ serializedName: "quantity",
+ type: {
+ name: "Number"
+ }
+ },
+ billingRefundAmount: {
+ serializedName: "billingRefundAmount",
+ type: {
+ name: "Composite",
+ className: "Price"
+ }
+ },
+ billingInformation: {
+ serializedName: "billingInformation",
+ type: {
+ name: "Composite",
+ className: "BillingInformation"
+ }
+ }
+ }
+ }
+};
+
+export const BillingInformation: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "BillingInformation",
+ modelProperties: {
+ billingCurrencyTotalPaidAmount: {
+ serializedName: "billingCurrencyTotalPaidAmount",
+ type: {
+ name: "Composite",
+ className: "Price"
+ }
+ },
+ billingCurrencyProratedAmount: {
+ serializedName: "billingCurrencyProratedAmount",
+ type: {
+ name: "Composite",
+ className: "Price"
+ }
+ },
+ billingCurrencyRemainingCommitmentAmount: {
+ serializedName: "billingCurrencyRemainingCommitmentAmount",
+ type: {
+ name: "Composite",
+ className: "Price"
+ }
+ }
+ }
+ }
+};
+
+export const ExchangePolicyErrors: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ExchangePolicyErrors",
+ modelProperties: {
+ policyErrors: {
+ serializedName: "policyErrors",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ExchangePolicyError"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const ExchangePolicyError: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ExchangePolicyError",
+ modelProperties: {
+ code: {
+ serializedName: "code",
+ type: {
+ name: "String"
+ }
+ },
+ message: {
+ serializedName: "message",
type: {
name: "String"
}
@@ -1949,8 +1995,474 @@ export const ResourceName: msRest.CompositeMapper = {
}
};
-export const QuotaProperties: msRest.CompositeMapper = {
- serializedName: "QuotaProperties",
+export const OperationResultError: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "OperationResultError",
+ modelProperties: {
+ code: {
+ serializedName: "code",
+ type: {
+ name: "String"
+ }
+ },
+ message: {
+ serializedName: "message",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const ExchangeRequest: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ExchangeRequest",
+ modelProperties: {
+ properties: {
+ serializedName: "properties",
+ type: {
+ name: "Composite",
+ className: "ExchangeRequestProperties"
+ }
+ }
+ }
+ }
+};
+
+export const ExchangeRequestProperties: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ExchangeRequestProperties",
+ modelProperties: {
+ sessionId: {
+ serializedName: "sessionId",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const ExchangeOperationResultResponse: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ExchangeOperationResultResponse",
+ modelProperties: {
+ id: {
+ serializedName: "id",
+ type: {
+ name: "String"
+ }
+ },
+ name: {
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ status: {
+ serializedName: "status",
+ type: {
+ name: "String"
+ }
+ },
+ properties: {
+ serializedName: "properties",
+ type: {
+ name: "Composite",
+ className: "ExchangeResponseProperties"
+ }
+ },
+ error: {
+ serializedName: "error",
+ type: {
+ name: "Composite",
+ className: "OperationResultError"
+ }
+ }
+ }
+ }
+};
+
+export const ExchangeResponseProperties: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ExchangeResponseProperties",
+ modelProperties: {
+ sessionId: {
+ serializedName: "sessionId",
+ type: {
+ name: "String"
+ }
+ },
+ netPayable: {
+ serializedName: "netPayable",
+ type: {
+ name: "Composite",
+ className: "Price"
+ }
+ },
+ refundsTotal: {
+ serializedName: "refundsTotal",
+ type: {
+ name: "Composite",
+ className: "Price"
+ }
+ },
+ purchasesTotal: {
+ serializedName: "purchasesTotal",
+ type: {
+ name: "Composite",
+ className: "Price"
+ }
+ },
+ reservationsToPurchase: {
+ serializedName: "reservationsToPurchase",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ReservationToPurchaseExchange"
+ }
+ }
+ }
+ },
+ reservationsToExchange: {
+ serializedName: "reservationsToExchange",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ReservationToReturnForExchange"
+ }
+ }
+ }
+ },
+ policyResult: {
+ serializedName: "policyResult",
+ type: {
+ name: "Composite",
+ className: "ExchangePolicyErrors"
+ }
+ }
+ }
+ }
+};
+
+export const ReservationToPurchaseExchange: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ReservationToPurchaseExchange",
+ modelProperties: {
+ reservationOrderId: {
+ serializedName: "reservationOrderId",
+ type: {
+ name: "String"
+ }
+ },
+ reservationId: {
+ serializedName: "reservationId",
+ type: {
+ name: "String"
+ }
+ },
+ properties: {
+ serializedName: "properties",
+ type: {
+ name: "Composite",
+ className: "PurchaseRequest"
+ }
+ },
+ billingCurrencyTotal: {
+ serializedName: "billingCurrencyTotal",
+ type: {
+ name: "Composite",
+ className: "Price"
+ }
+ },
+ status: {
+ serializedName: "status",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const ReservationToReturnForExchange: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ReservationToReturnForExchange",
+ modelProperties: {
+ reservationId: {
+ serializedName: "reservationId",
+ type: {
+ name: "String"
+ }
+ },
+ quantity: {
+ serializedName: "quantity",
+ type: {
+ name: "Number"
+ }
+ },
+ billingRefundAmount: {
+ serializedName: "billingRefundAmount",
+ type: {
+ name: "Composite",
+ className: "Price"
+ }
+ },
+ billingInformation: {
+ serializedName: "billingInformation",
+ type: {
+ name: "Composite",
+ className: "BillingInformation"
+ }
+ },
+ status: {
+ serializedName: "status",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const ReservationsListResult: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ReservationsListResult",
+ modelProperties: {
+ value: {
+ serializedName: "value",
+ readOnly: true,
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ReservationResponse"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ summary: {
+ serializedName: "summary",
+ type: {
+ name: "Composite",
+ className: "ReservationSummary"
+ }
+ }
+ }
+ }
+};
+
+export const ReservationSummary: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ReservationSummary",
+ modelProperties: {
+ succeededCount: {
+ serializedName: "succeededCount",
+ readOnly: true,
+ type: {
+ name: "Number"
+ }
+ },
+ failedCount: {
+ serializedName: "failedCount",
+ readOnly: true,
+ type: {
+ name: "Number"
+ }
+ },
+ expiringCount: {
+ serializedName: "expiringCount",
+ readOnly: true,
+ type: {
+ name: "Number"
+ }
+ },
+ expiredCount: {
+ serializedName: "expiredCount",
+ readOnly: true,
+ type: {
+ name: "Number"
+ }
+ },
+ pendingCount: {
+ serializedName: "pendingCount",
+ readOnly: true,
+ type: {
+ name: "Number"
+ }
+ },
+ cancelledCount: {
+ serializedName: "cancelledCount",
+ readOnly: true,
+ type: {
+ name: "Number"
+ }
+ }
+ }
+ }
+};
+
+export const ErrorResponse: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ErrorResponse",
+ modelProperties: {
+ error: {
+ serializedName: "error",
+ type: {
+ name: "Composite",
+ className: "ErrorDetails"
+ }
+ }
+ }
+ }
+};
+
+export const ErrorDetails: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ErrorDetails",
+ modelProperties: {
+ code: {
+ serializedName: "code",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ message: {
+ serializedName: "message",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ target: {
+ serializedName: "target",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const ChangeDirectoryRequest: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ChangeDirectoryRequest",
+ modelProperties: {
+ destinationTenantId: {
+ serializedName: "destinationTenantId",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const ChangeDirectoryResponse: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ChangeDirectoryResponse",
+ modelProperties: {
+ reservationOrder: {
+ serializedName: "reservationOrder",
+ type: {
+ name: "Composite",
+ className: "ChangeDirectoryResult"
+ }
+ },
+ reservations: {
+ serializedName: "reservations",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ChangeDirectoryResult"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const ChangeDirectoryResult: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ChangeDirectoryResult",
+ modelProperties: {
+ id: {
+ serializedName: "id",
+ type: {
+ name: "String"
+ }
+ },
+ name: {
+ serializedName: "name",
+ type: {
+ name: "String"
+ }
+ },
+ isSucceeded: {
+ serializedName: "isSucceeded",
+ type: {
+ name: "Boolean"
+ }
+ },
+ error: {
+ serializedName: "error",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const CurrentQuotaLimitBase: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "CurrentQuotaLimitBase",
+ modelProperties: {
+ properties: {
+ serializedName: "properties",
+ type: {
+ name: "Composite",
+ className: "QuotaProperties"
+ }
+ }
+ }
+ }
+};
+
+export const QuotaProperties: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "QuotaProperties",
@@ -1962,8 +2474,8 @@ export const QuotaProperties: msRest.CompositeMapper = {
}
},
currentValue: {
- readOnly: true,
serializedName: "currentValue",
+ readOnly: true,
type: {
name: "Number"
}
@@ -1984,12 +2496,12 @@ export const QuotaProperties: msRest.CompositeMapper = {
resourceType: {
serializedName: "resourceType",
type: {
- name: "Object"
+ name: "String"
}
},
quotaPeriod: {
- readOnly: true,
serializedName: "quotaPeriod",
+ readOnly: true,
type: {
name: "String"
}
@@ -1997,21 +2509,158 @@ export const QuotaProperties: msRest.CompositeMapper = {
properties: {
serializedName: "properties",
type: {
- name: "Object"
+ name: "Dictionary",
+ value: { type: { name: "any" } }
}
}
}
}
};
-export const CurrentQuotaLimitBase: msRest.CompositeMapper = {
- serializedName: "CurrentQuotaLimitBase",
+export const ResourceName: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "CurrentQuotaLimitBase",
+ className: "ResourceName",
modelProperties: {
+ value: {
+ serializedName: "value",
+ type: {
+ name: "String"
+ }
+ },
+ localizedValue: {
+ serializedName: "localizedValue",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const ExceptionResponse: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ExceptionResponse",
+ modelProperties: {
+ error: {
+ serializedName: "error",
+ type: {
+ name: "Composite",
+ className: "ServiceError"
+ }
+ }
+ }
+ }
+};
+
+export const ServiceError: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ServiceError",
+ modelProperties: {
+ code: {
+ serializedName: "code",
+ type: {
+ name: "String"
+ }
+ },
+ message: {
+ serializedName: "message",
+ type: {
+ name: "String"
+ }
+ },
+ details: {
+ serializedName: "details",
+ readOnly: true,
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "ServiceErrorDetail"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const ServiceErrorDetail: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "ServiceErrorDetail",
+ modelProperties: {
+ code: {
+ serializedName: "code",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ message: {
+ serializedName: "message",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const QuotaRequestOneResourceSubmitResponse: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "QuotaRequestOneResourceSubmitResponse",
+ modelProperties: {
+ id: {
+ serializedName: "id",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ name: {
+ serializedName: "name",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ type: {
+ serializedName: "type",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ provisioningState: {
+ serializedName: "properties.provisioningState",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ message: {
+ serializedName: "properties.message",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ requestSubmitTime: {
+ serializedName: "properties.requestSubmitTime",
+ readOnly: true,
+ type: {
+ name: "DateTime"
+ }
+ },
properties: {
- serializedName: "properties",
+ serializedName: "properties.properties.properties",
type: {
name: "Composite",
className: "QuotaProperties"
@@ -2021,39 +2670,294 @@ export const CurrentQuotaLimitBase: msRest.CompositeMapper = {
}
};
-export const CurrentQuotaLimit: msRest.CompositeMapper = {
- serializedName: "CurrentQuotaLimit",
+export const QuotaRequestSubmitResponse201: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "QuotaRequestSubmitResponse201",
+ modelProperties: {
+ id: {
+ serializedName: "id",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ name: {
+ serializedName: "name",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ type: {
+ serializedName: "type",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ provisioningState: {
+ serializedName: "properties.provisioningState",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ message: {
+ serializedName: "properties.message",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const QuotaLimits: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "QuotaLimits",
+ modelProperties: {
+ value: {
+ serializedName: "value",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "CurrentQuotaLimitBase"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const QuotaRequestDetails: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "QuotaRequestDetails",
+ modelProperties: {
+ id: {
+ serializedName: "id",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ name: {
+ serializedName: "name",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ type: {
+ serializedName: "type",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ provisioningState: {
+ serializedName: "properties.provisioningState",
+ type: {
+ name: "String"
+ }
+ },
+ message: {
+ serializedName: "properties.message",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ requestSubmitTime: {
+ serializedName: "properties.requestSubmitTime",
+ readOnly: true,
+ type: {
+ name: "DateTime"
+ }
+ },
+ value: {
+ serializedName: "properties.value",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "SubRequest"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const QuotaRequestProperties: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "QuotaRequestProperties",
+ modelProperties: {
+ provisioningState: {
+ serializedName: "provisioningState",
+ type: {
+ name: "String"
+ }
+ },
+ message: {
+ serializedName: "message",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ requestSubmitTime: {
+ serializedName: "requestSubmitTime",
+ readOnly: true,
+ type: {
+ name: "DateTime"
+ }
+ },
+ value: {
+ serializedName: "value",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "SubRequest"
+ }
+ }
+ }
+ }
+ }
+ }
+};
+
+export const SubRequest: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "SubRequest",
+ modelProperties: {
+ limit: {
+ serializedName: "limit",
+ readOnly: true,
+ type: {
+ name: "Number"
+ }
+ },
+ name: {
+ serializedName: "name",
+ type: {
+ name: "Composite",
+ className: "ResourceName"
+ }
+ },
+ resourceType: {
+ serializedName: "resourceType",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ unit: {
+ serializedName: "unit",
+ type: {
+ name: "String"
+ }
+ },
+ provisioningState: {
+ serializedName: "provisioningState",
+ type: {
+ name: "String"
+ }
+ },
+ message: {
+ serializedName: "message",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ subRequestId: {
+ serializedName: "subRequestId",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const QuotaRequestDetailsList: coreClient.CompositeMapper = {
+ type: {
+ name: "Composite",
+ className: "QuotaRequestDetailsList",
+ modelProperties: {
+ value: {
+ serializedName: "value",
+ type: {
+ name: "Sequence",
+ element: {
+ type: {
+ name: "Composite",
+ className: "QuotaRequestDetails"
+ }
+ }
+ }
+ },
+ nextLink: {
+ serializedName: "nextLink",
+ type: {
+ name: "String"
+ }
+ }
+ }
+ }
+};
+
+export const CurrentQuotaLimit: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "CurrentQuotaLimit",
modelProperties: {
+ provisioningState: {
+ serializedName: "properties.provisioningState",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
+ message: {
+ serializedName: "properties.message",
+ readOnly: true,
+ type: {
+ name: "String"
+ }
+ },
properties: {
serializedName: "quotaInformation.properties",
type: {
name: "Composite",
className: "QuotaProperties"
}
- },
- provisioningState: {
- readOnly: true,
- serializedName: "properties.provisioningState",
- type: {
- name: "Object"
- }
- },
- message: {
- readOnly: true,
- serializedName: "properties.message",
- type: {
- name: "String"
- }
}
}
}
};
-export const QuotaLimitsResponse: msRest.CompositeMapper = {
- serializedName: "QuotaLimitsResponse",
+export const QuotaLimitsResponse: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "QuotaLimitsResponse",
@@ -2080,8 +2984,7 @@ export const QuotaLimitsResponse: msRest.CompositeMapper = {
}
};
-export const CreateGenericQuotaRequestParameters: msRest.CompositeMapper = {
- serializedName: "CreateGenericQuotaRequestParameters",
+export const CreateGenericQuotaRequestParameters: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "CreateGenericQuotaRequestParameters",
@@ -2102,180 +3005,21 @@ export const CreateGenericQuotaRequestParameters: msRest.CompositeMapper = {
}
};
-export const SubRequest: msRest.CompositeMapper = {
- serializedName: "SubRequest",
- type: {
- name: "Composite",
- className: "SubRequest",
- modelProperties: {
- limit: {
- readOnly: true,
- serializedName: "limit",
- type: {
- name: "Number"
- }
- },
- name: {
- serializedName: "name",
- type: {
- name: "Composite",
- className: "ResourceName"
- }
- },
- resourceType: {
- readOnly: true,
- serializedName: "resourceType",
- type: {
- name: "String"
- }
- },
- unit: {
- serializedName: "unit",
- type: {
- name: "String"
- }
- },
- provisioningState: {
- serializedName: "provisioningState",
- type: {
- name: "Object"
- }
- },
- message: {
- readOnly: true,
- serializedName: "message",
- type: {
- name: "String"
- }
- },
- subRequestId: {
- readOnly: true,
- serializedName: "subRequestId",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const QuotaRequestOneResourceSubmitResponse: msRest.CompositeMapper = {
- serializedName: "QuotaRequestOneResourceSubmitResponse",
- type: {
- name: "Composite",
- className: "QuotaRequestOneResourceSubmitResponse",
- modelProperties: {
- id: {
- readOnly: true,
- serializedName: "id",
- type: {
- name: "String"
- }
- },
- name: {
- readOnly: true,
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- type: {
- readOnly: true,
- serializedName: "type",
- type: {
- name: "String"
- }
- },
- provisioningState: {
- readOnly: true,
- serializedName: "properties.provisioningState",
- type: {
- name: "Object"
- }
- },
- message: {
- readOnly: true,
- serializedName: "properties.message",
- type: {
- name: "String"
- }
- },
- requestSubmitTime: {
- readOnly: true,
- serializedName: "properties.requestSubmitTime",
- type: {
- name: "DateTime"
- }
- },
- properties: {
- serializedName: "properties.properties.properties",
- type: {
- name: "Composite",
- className: "QuotaProperties"
- }
- }
- }
- }
-};
-
-export const QuotaRequestProperties: msRest.CompositeMapper = {
- serializedName: "QuotaRequestProperties",
- type: {
- name: "Composite",
- className: "QuotaRequestProperties",
- modelProperties: {
- provisioningState: {
- serializedName: "provisioningState",
- type: {
- name: "Object"
- }
- },
- message: {
- readOnly: true,
- serializedName: "message",
- type: {
- name: "String"
- }
- },
- requestSubmitTime: {
- readOnly: true,
- serializedName: "requestSubmitTime",
- type: {
- name: "DateTime"
- }
- },
- value: {
- serializedName: "value",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "SubRequest"
- }
- }
- }
- }
- }
- }
-};
-
-export const QuotaRequestSubmitResponse: msRest.CompositeMapper = {
- serializedName: "QuotaRequestSubmitResponse",
+export const QuotaRequestSubmitResponse: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "QuotaRequestSubmitResponse",
modelProperties: {
id: {
- readOnly: true,
serializedName: "id",
+ readOnly: true,
type: {
name: "String"
}
},
name: {
- readOnly: true,
serializedName: "name",
+ readOnly: true,
type: {
name: "String"
}
@@ -2288,8 +3032,8 @@ export const QuotaRequestSubmitResponse: msRest.CompositeMapper = {
}
},
type: {
- readOnly: true,
serializedName: "type",
+ readOnly: true,
type: {
name: "String"
}
@@ -2298,192 +3042,7 @@ export const QuotaRequestSubmitResponse: msRest.CompositeMapper = {
}
};
-export const QuotaRequestSubmitResponse201: msRest.CompositeMapper = {
- serializedName: "QuotaRequestSubmitResponse201",
- type: {
- name: "Composite",
- className: "QuotaRequestSubmitResponse201",
- modelProperties: {
- id: {
- readOnly: true,
- serializedName: "id",
- type: {
- name: "String"
- }
- },
- name: {
- readOnly: true,
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- type: {
- readOnly: true,
- serializedName: "type",
- type: {
- name: "String"
- }
- },
- provisioningState: {
- readOnly: true,
- serializedName: "properties.provisioningState",
- type: {
- name: "Object"
- }
- },
- message: {
- readOnly: true,
- serializedName: "properties.message",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const QuotaRequestDetails: msRest.CompositeMapper = {
- serializedName: "QuotaRequestDetails",
- type: {
- name: "Composite",
- className: "QuotaRequestDetails",
- modelProperties: {
- id: {
- readOnly: true,
- serializedName: "id",
- type: {
- name: "String"
- }
- },
- name: {
- readOnly: true,
- serializedName: "name",
- type: {
- name: "String"
- }
- },
- provisioningState: {
- serializedName: "properties.provisioningState",
- type: {
- name: "Object"
- }
- },
- message: {
- readOnly: true,
- serializedName: "properties.message",
- type: {
- name: "String"
- }
- },
- requestSubmitTime: {
- readOnly: true,
- serializedName: "properties.requestSubmitTime",
- type: {
- name: "DateTime"
- }
- },
- value: {
- serializedName: "properties.value",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "SubRequest"
- }
- }
- }
- },
- type: {
- readOnly: true,
- serializedName: "type",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const ServiceErrorDetail: msRest.CompositeMapper = {
- serializedName: "ServiceErrorDetail",
- type: {
- name: "Composite",
- className: "ServiceErrorDetail",
- modelProperties: {
- code: {
- readOnly: true,
- serializedName: "code",
- type: {
- name: "String"
- }
- },
- message: {
- readOnly: true,
- serializedName: "message",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const ServiceError: msRest.CompositeMapper = {
- serializedName: "ServiceError",
- type: {
- name: "Composite",
- className: "ServiceError",
- modelProperties: {
- code: {
- serializedName: "code",
- type: {
- name: "String"
- }
- },
- message: {
- serializedName: "message",
- type: {
- name: "String"
- }
- },
- details: {
- readOnly: true,
- serializedName: "details",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ServiceErrorDetail"
- }
- }
- }
- }
- }
- }
-};
-
-export const ExceptionResponse: msRest.CompositeMapper = {
- serializedName: "ExceptionResponse",
- type: {
- name: "Composite",
- className: "ExceptionResponse",
- modelProperties: {
- error: {
- serializedName: "error",
- type: {
- name: "Composite",
- className: "ServiceError"
- }
- }
- }
- }
-};
-
-export const CalculateExchangePostHeaders: msRest.CompositeMapper = {
- serializedName: "calculateexchange-post-headers",
+export const CalculateExchangePostHeaders: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "CalculateExchangePostHeaders",
@@ -2510,8 +3069,7 @@ export const CalculateExchangePostHeaders: msRest.CompositeMapper = {
}
};
-export const ExchangePostHeaders: msRest.CompositeMapper = {
- serializedName: "exchange-post-headers",
+export const ExchangePostHeaders: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "ExchangePostHeaders",
@@ -2538,8 +3096,7 @@ export const ExchangePostHeaders: msRest.CompositeMapper = {
}
};
-export const QuotaGetHeaders: msRest.CompositeMapper = {
- serializedName: "quota-get-headers",
+export const QuotaGetHeaders: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "QuotaGetHeaders",
@@ -2554,8 +3111,7 @@ export const QuotaGetHeaders: msRest.CompositeMapper = {
}
};
-export const QuotaListHeaders: msRest.CompositeMapper = {
- serializedName: "quota-list-headers",
+export const QuotaListHeaders: coreClient.CompositeMapper = {
type: {
name: "Composite",
className: "QuotaListHeaders",
@@ -2570,138 +3126,13 @@ export const QuotaListHeaders: msRest.CompositeMapper = {
}
};
-export const ReservationList: msRest.CompositeMapper = {
- serializedName: "ReservationList",
+export const QuotaListNextHeaders: coreClient.CompositeMapper = {
type: {
name: "Composite",
- className: "ReservationList",
+ className: "QuotaListNextHeaders",
modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ReservationResponse"
- }
- }
- }
- },
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const ReservationOrderList: msRest.CompositeMapper = {
- serializedName: "ReservationOrderList",
- type: {
- name: "Composite",
- className: "ReservationOrderList",
- modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "ReservationOrderResponse"
- }
- }
- }
- },
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const OperationList: msRest.CompositeMapper = {
- serializedName: "OperationList",
- type: {
- name: "Composite",
- className: "OperationList",
- modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "OperationResponse"
- }
- }
- }
- },
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const QuotaLimits: msRest.CompositeMapper = {
- serializedName: "QuotaLimits",
- type: {
- name: "Composite",
- className: "QuotaLimits",
- modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "CurrentQuotaLimitBase"
- }
- }
- }
- },
- nextLink: {
- serializedName: "nextLink",
- type: {
- name: "String"
- }
- }
- }
- }
-};
-
-export const QuotaRequestDetailsList: msRest.CompositeMapper = {
- serializedName: "QuotaRequestDetailsList",
- type: {
- name: "Composite",
- className: "QuotaRequestDetailsList",
- modelProperties: {
- value: {
- serializedName: "",
- type: {
- name: "Sequence",
- element: {
- type: {
- name: "Composite",
- className: "QuotaRequestDetails"
- }
- }
- }
- },
- nextLink: {
- serializedName: "nextLink",
+ eTag: {
+ serializedName: "etag",
type: {
name: "String"
}
diff --git a/sdk/reservations/arm-reservations/src/models/parameters.ts b/sdk/reservations/arm-reservations/src/models/parameters.ts
index c95aea884f0..011b341129a 100644
--- a/sdk/reservations/arm-reservations/src/models/parameters.ts
+++ b/sdk/reservations/arm-reservations/src/models/parameters.ts
@@ -3,51 +3,113 @@
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
+import {
+ OperationParameter,
+ OperationURLParameter,
+ OperationQueryParameter
+} from "@azure/core-client";
+import {
+ AvailableScopeRequest as AvailableScopeRequestMapper,
+ SplitRequest as SplitRequestMapper,
+ MergeRequest as MergeRequestMapper,
+ Patch as PatchMapper,
+ PurchaseRequest as PurchaseRequestMapper,
+ ChangeDirectoryRequest as ChangeDirectoryRequestMapper,
+ CalculateExchangeRequest as CalculateExchangeRequestMapper,
+ ExchangeRequest as ExchangeRequestMapper,
+ CurrentQuotaLimitBase as CurrentQuotaLimitBaseMapper
+} from "../models/mappers";
-export const acceptLanguage: msRest.OperationParameter = {
- parameterPath: "acceptLanguage",
+export const contentType: OperationParameter = {
+ parameterPath: ["options", "contentType"],
mapper: {
- serializedName: "accept-language",
- defaultValue: 'en-US',
+ defaultValue: "application/json",
+ isConstant: true,
+ serializedName: "Content-Type",
type: {
name: "String"
}
}
};
-export const apiVersion0: msRest.OperationQueryParameter = {
+
+export const body: OperationParameter = {
+ parameterPath: "body",
+ mapper: AvailableScopeRequestMapper
+};
+
+export const accept: OperationParameter = {
+ parameterPath: "accept",
+ mapper: {
+ defaultValue: "application/json",
+ isConstant: true,
+ serializedName: "Accept",
+ type: {
+ name: "String"
+ }
+ }
+};
+
+export const $host: OperationURLParameter = {
+ parameterPath: "$host",
+ mapper: {
+ serializedName: "$host",
+ required: true,
+ type: {
+ name: "String"
+ }
+ },
+ skipEncoding: true
+};
+
+export const reservationOrderId: OperationURLParameter = {
+ parameterPath: "reservationOrderId",
+ mapper: {
+ serializedName: "reservationOrderId",
+ required: true,
+ type: {
+ name: "String"
+ }
+ }
+};
+
+export const reservationId: OperationURLParameter = {
+ parameterPath: "reservationId",
+ mapper: {
+ serializedName: "reservationId",
+ required: true,
+ type: {
+ name: "String"
+ }
+ }
+};
+
+export const apiVersion: OperationQueryParameter = {
parameterPath: "apiVersion",
mapper: {
- required: true,
+ defaultValue: "2021-07-01",
isConstant: true,
serializedName: "api-version",
- defaultValue: '2020-10-01-preview',
type: {
name: "String"
}
}
};
-export const apiVersion1: msRest.OperationQueryParameter = {
- parameterPath: "apiVersion",
- mapper: {
- required: true,
- isConstant: true,
- serializedName: "api-version",
- defaultValue: '2020-10-25',
- type: {
- name: "String"
- }
- }
+
+export const body1: OperationParameter = {
+ parameterPath: "body",
+ mapper: SplitRequestMapper
};
-export const expand0: msRest.OperationQueryParameter = {
- parameterPath: [
- "options",
- "expand"
- ],
+
+export const body2: OperationParameter = {
+ parameterPath: "body",
+ mapper: MergeRequestMapper
+};
+
+export const expand: OperationQueryParameter = {
+ parameterPath: ["options", "expand"],
mapper: {
serializedName: "expand",
type: {
@@ -55,23 +117,14 @@ export const expand0: msRest.OperationQueryParameter = {
}
}
};
-export const expand1: msRest.OperationQueryParameter = {
- parameterPath: [
- "options",
- "expand"
- ],
- mapper: {
- serializedName: "$expand",
- type: {
- name: "String"
- }
- }
+
+export const parameters: OperationParameter = {
+ parameterPath: "parameters",
+ mapper: PatchMapper
};
-export const filter: msRest.OperationQueryParameter = {
- parameterPath: [
- "options",
- "filter"
- ],
+
+export const filter: OperationQueryParameter = {
+ parameterPath: ["options", "filter"],
mapper: {
serializedName: "$filter",
type: {
@@ -79,104 +132,206 @@ export const filter: msRest.OperationQueryParameter = {
}
}
};
-export const id: msRest.OperationURLParameter = {
- parameterPath: "id",
+
+export const orderby: OperationQueryParameter = {
+ parameterPath: ["options", "orderby"],
mapper: {
- required: true,
- serializedName: "id",
+ serializedName: "$orderby",
type: {
name: "String"
}
}
};
-export const location0: msRest.OperationQueryParameter = {
- parameterPath: [
- "options",
- "location"
- ],
+
+export const refreshSummary: OperationQueryParameter = {
+ parameterPath: ["options", "refreshSummary"],
mapper: {
- serializedName: "location",
+ serializedName: "refreshSummary",
type: {
name: "String"
}
}
};
-export const location1: msRest.OperationURLParameter = {
- parameterPath: "location",
+
+export const skiptoken: OperationQueryParameter = {
+ parameterPath: ["options", "skiptoken"],
mapper: {
- required: true,
- serializedName: "location",
+ serializedName: "$skiptoken",
+ type: {
+ name: "Number"
+ }
+ }
+};
+
+export const selectedState: OperationQueryParameter = {
+ parameterPath: ["options", "selectedState"],
+ mapper: {
+ serializedName: "selectedState",
type: {
name: "String"
}
}
};
-export const nextPageLink: msRest.OperationURLParameter = {
- parameterPath: "nextPageLink",
+
+export const take: OperationQueryParameter = {
+ parameterPath: ["options", "take"],
+ mapper: {
+ serializedName: "take",
+ type: {
+ name: "Number"
+ }
+ }
+};
+
+export const nextLink: OperationURLParameter = {
+ parameterPath: "nextLink",
mapper: {
- required: true,
serializedName: "nextLink",
+ required: true,
type: {
name: "String"
}
},
skipEncoding: true
};
-export const providerId: msRest.OperationURLParameter = {
- parameterPath: "providerId",
+
+export const subscriptionId: OperationURLParameter = {
+ parameterPath: "subscriptionId",
mapper: {
+ serializedName: "subscriptionId",
required: true,
- serializedName: "providerId",
type: {
name: "String"
}
}
};
-export const reservationId: msRest.OperationURLParameter = {
- parameterPath: "reservationId",
+
+export const reservedResourceType: OperationQueryParameter = {
+ parameterPath: ["options", "reservedResourceType"],
mapper: {
- required: true,
- serializedName: "reservationId",
- type: {
- name: "String"
- }
- }
-};
-export const reservationOrderId: msRest.OperationURLParameter = {
- parameterPath: "reservationOrderId",
- mapper: {
- required: true,
- serializedName: "reservationOrderId",
- type: {
- name: "String"
- }
- }
-};
-export const reservedResourceType: msRest.OperationQueryParameter = {
- parameterPath: "reservedResourceType",
- mapper: {
- required: true,
serializedName: "reservedResourceType",
type: {
name: "String"
}
}
};
-export const resourceName: msRest.OperationURLParameter = {
- parameterPath: "resourceName",
+
+export const location: OperationQueryParameter = {
+ parameterPath: ["options", "location"],
mapper: {
- required: true,
- serializedName: "resourceName",
+ serializedName: "location",
type: {
name: "String"
}
}
};
-export const skiptoken: msRest.OperationQueryParameter = {
- parameterPath: [
- "options",
- "skiptoken"
- ],
+
+export const body3: OperationParameter = {
+ parameterPath: "body",
+ mapper: PurchaseRequestMapper
+};
+
+export const expand1: OperationQueryParameter = {
+ parameterPath: ["options", "expand"],
+ mapper: {
+ serializedName: "$expand",
+ type: {
+ name: "String"
+ }
+ }
+};
+
+export const body4: OperationParameter = {
+ parameterPath: "body",
+ mapper: ChangeDirectoryRequestMapper
+};
+
+export const body5: OperationParameter = {
+ parameterPath: "body",
+ mapper: CalculateExchangeRequestMapper
+};
+
+export const body6: OperationParameter = {
+ parameterPath: "body",
+ mapper: ExchangeRequestMapper
+};
+
+export const providerId: OperationURLParameter = {
+ parameterPath: "providerId",
+ mapper: {
+ serializedName: "providerId",
+ required: true,
+ type: {
+ name: "String"
+ }
+ }
+};
+
+export const location1: OperationURLParameter = {
+ parameterPath: "location",
+ mapper: {
+ serializedName: "location",
+ required: true,
+ type: {
+ name: "String"
+ }
+ }
+};
+
+export const apiVersion1: OperationQueryParameter = {
+ parameterPath: "apiVersion",
+ mapper: {
+ defaultValue: "2020-10-25",
+ isConstant: true,
+ serializedName: "api-version",
+ type: {
+ name: "String"
+ }
+ }
+};
+
+export const resourceName: OperationURLParameter = {
+ parameterPath: "resourceName",
+ mapper: {
+ serializedName: "resourceName",
+ required: true,
+ type: {
+ name: "String"
+ }
+ }
+};
+
+export const createQuotaRequest: OperationParameter = {
+ parameterPath: "createQuotaRequest",
+ mapper: CurrentQuotaLimitBaseMapper
+};
+
+export const id: OperationURLParameter = {
+ parameterPath: "id",
+ mapper: {
+ serializedName: "id",
+ required: true,
+ type: {
+ name: "String"
+ }
+ }
+};
+
+export const top: OperationQueryParameter = {
+ parameterPath: ["options", "top"],
+ mapper: {
+ constraints: {
+ InclusiveMinimum: 1
+ },
+ serializedName: "$top",
+ type: {
+ name: "Number"
+ }
+ }
+};
+
+export const skiptoken1: OperationQueryParameter = {
+ parameterPath: ["options", "skiptoken"],
mapper: {
serializedName: "$skiptoken",
type: {
@@ -184,28 +339,3 @@ export const skiptoken: msRest.OperationQueryParameter = {
}
}
};
-export const subscriptionId: msRest.OperationURLParameter = {
- parameterPath: "subscriptionId",
- mapper: {
- required: true,
- serializedName: "subscriptionId",
- type: {
- name: "String"
- }
- }
-};
-export const top: msRest.OperationQueryParameter = {
- parameterPath: [
- "options",
- "top"
- ],
- mapper: {
- serializedName: "$top",
- constraints: {
- InclusiveMinimum: 1
- },
- type: {
- name: "Number"
- }
- }
-};
diff --git a/sdk/reservations/arm-reservations/src/models/quotaMappers.ts b/sdk/reservations/arm-reservations/src/models/quotaMappers.ts
deleted file mode 100644
index af2331a16f9..00000000000
--- a/sdk/reservations/arm-reservations/src/models/quotaMappers.ts
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- BaseResource,
- CurrentQuotaLimit,
- CurrentQuotaLimitBase,
- ExceptionResponse,
- ExtendedStatusInfo,
- PaymentDetail,
- Price,
- PurchaseRequest,
- PurchaseRequestPropertiesReservedResourceProperties,
- QuotaGetHeaders,
- QuotaLimits,
- QuotaListHeaders,
- QuotaProperties,
- QuotaRequestDetails,
- QuotaRequestOneResourceSubmitResponse,
- QuotaRequestProperties,
- QuotaRequestSubmitResponse,
- QuotaRequestSubmitResponse201,
- RenewPropertiesResponse,
- RenewPropertiesResponseBillingCurrencyTotal,
- RenewPropertiesResponsePricingCurrencyTotal,
- ReservationMergeProperties,
- ReservationOrderBillingPlanInformation,
- ReservationOrderResponse,
- ReservationProperties,
- ReservationResponse,
- ReservationSplitProperties,
- ResourceName,
- ServiceError,
- ServiceErrorDetail,
- SkuName,
- SubRequest
-} from "../models/mappers";
diff --git a/sdk/reservations/arm-reservations/src/models/quotaRequestStatusMappers.ts b/sdk/reservations/arm-reservations/src/models/quotaRequestStatusMappers.ts
deleted file mode 100644
index 4f39a128af2..00000000000
--- a/sdk/reservations/arm-reservations/src/models/quotaRequestStatusMappers.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- BaseResource,
- CurrentQuotaLimit,
- CurrentQuotaLimitBase,
- ExceptionResponse,
- ExtendedStatusInfo,
- PaymentDetail,
- Price,
- PurchaseRequest,
- PurchaseRequestPropertiesReservedResourceProperties,
- QuotaProperties,
- QuotaRequestDetails,
- QuotaRequestDetailsList,
- QuotaRequestOneResourceSubmitResponse,
- QuotaRequestProperties,
- QuotaRequestSubmitResponse,
- RenewPropertiesResponse,
- RenewPropertiesResponseBillingCurrencyTotal,
- RenewPropertiesResponsePricingCurrencyTotal,
- ReservationMergeProperties,
- ReservationOrderBillingPlanInformation,
- ReservationOrderResponse,
- ReservationProperties,
- ReservationResponse,
- ReservationSplitProperties,
- ResourceName,
- ServiceError,
- ServiceErrorDetail,
- SkuName,
- SubRequest
-} from "../models/mappers";
diff --git a/sdk/reservations/arm-reservations/src/models/reservationMappers.ts b/sdk/reservations/arm-reservations/src/models/reservationMappers.ts
deleted file mode 100644
index 03dde736357..00000000000
--- a/sdk/reservations/arm-reservations/src/models/reservationMappers.ts
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- AvailableScopeProperties,
- AvailableScopeRequest,
- AvailableScopeRequestProperties,
- BaseResource,
- CurrentQuotaLimit,
- CurrentQuotaLimitBase,
- ErrorModel,
- ExtendedErrorInfo,
- ExtendedStatusInfo,
- MergeRequest,
- Patch,
- PatchPropertiesRenewProperties,
- PaymentDetail,
- Price,
- PurchaseRequest,
- PurchaseRequestPropertiesReservedResourceProperties,
- QuotaProperties,
- QuotaRequestDetails,
- QuotaRequestOneResourceSubmitResponse,
- QuotaRequestProperties,
- QuotaRequestSubmitResponse,
- RenewPropertiesResponse,
- RenewPropertiesResponseBillingCurrencyTotal,
- RenewPropertiesResponsePricingCurrencyTotal,
- ReservationList,
- ReservationMergeProperties,
- ReservationOrderBillingPlanInformation,
- ReservationOrderResponse,
- ReservationProperties,
- ReservationResponse,
- ReservationSplitProperties,
- ResourceName,
- ScopeProperties,
- SkuName,
- SplitRequest,
- SubRequest,
- SubscriptionScopeProperties
-} from "../models/mappers";
diff --git a/sdk/reservations/arm-reservations/src/models/reservationOrderMappers.ts b/sdk/reservations/arm-reservations/src/models/reservationOrderMappers.ts
deleted file mode 100644
index d5c6d9edc8a..00000000000
--- a/sdk/reservations/arm-reservations/src/models/reservationOrderMappers.ts
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * Copyright (c) Microsoft Corporation.
- * Licensed under the MIT License.
- *
- * Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is regenerated.
- */
-
-export {
- BaseResource,
- CalculatePriceResponse,
- CalculatePriceResponseProperties,
- CalculatePriceResponsePropertiesBillingCurrencyTotal,
- CalculatePriceResponsePropertiesPricingCurrencyTotal,
- CurrentQuotaLimit,
- CurrentQuotaLimitBase,
- ErrorModel,
- ExtendedErrorInfo,
- ExtendedStatusInfo,
- PaymentDetail,
- Price,
- PurchaseRequest,
- PurchaseRequestPropertiesReservedResourceProperties,
- QuotaProperties,
- QuotaRequestDetails,
- QuotaRequestOneResourceSubmitResponse,
- QuotaRequestProperties,
- QuotaRequestSubmitResponse,
- RenewPropertiesResponse,
- RenewPropertiesResponseBillingCurrencyTotal,
- RenewPropertiesResponsePricingCurrencyTotal,
- ReservationMergeProperties,
- ReservationOrderBillingPlanInformation,
- ReservationOrderList,
- ReservationOrderResponse,
- ReservationProperties,
- ReservationResponse,
- ReservationSplitProperties,
- ResourceName,
- SkuName,
- SubRequest
-} from "../models/mappers";
diff --git a/sdk/reservations/arm-reservations/src/operations/calculateExchange.ts b/sdk/reservations/arm-reservations/src/operations/calculateExchange.ts
index 9a69d319795..2a7e94952e5 100644
--- a/sdk/reservations/arm-reservations/src/operations/calculateExchange.ts
+++ b/sdk/reservations/arm-reservations/src/operations/calculateExchange.ts
@@ -3,89 +3,141 @@
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
-import * as msRestAzure from "@azure/ms-rest-azure-js";
-import * as Models from "../models";
-import * as Mappers from "../models/calculateExchangeMappers";
+import { CalculateExchange } from "../operationsInterfaces";
+import * as coreClient from "@azure/core-client";
+import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
-import { AzureReservationAPIContext } from "../azureReservationAPIContext";
+import { AzureReservationAPI } from "../azureReservationAPI";
+import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
+import { LroImpl } from "../lroImpl";
+import {
+ CalculateExchangeRequest,
+ CalculateExchangePostOptionalParams,
+ CalculateExchangePostResponse
+} from "../models";
-/** Class representing a CalculateExchange. */
-export class CalculateExchange {
- private readonly client: AzureReservationAPIContext;
+/** Class containing CalculateExchange operations. */
+export class CalculateExchangeImpl implements CalculateExchange {
+ private readonly client: AzureReservationAPI;
/**
- * Create a CalculateExchange.
- * @param {AzureReservationAPIContext} client Reference to the service client.
+ * Initialize a new instance of the class CalculateExchange class.
+ * @param client Reference to the service client
*/
- constructor(client: AzureReservationAPIContext) {
+ constructor(client: AzureReservationAPI) {
this.client = client;
}
/**
* Calculates price for exchanging `Reservations` if there are no policy errors.
- * @summary Calculates the refund amounts and price of the new purchases.
+ *
* @param body Request containing purchases and refunds that need to be executed.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- post(body: Models.CalculateExchangeRequest, options?: msRest.RequestOptionsBase): Promise {
- return this.beginPost(body,options)
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ async beginPost(
+ body: CalculateExchangeRequest,
+ options?: CalculateExchangePostOptionalParams
+ ): Promise<
+ PollerLike<
+ PollOperationState,
+ CalculateExchangePostResponse
+ >
+ > {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
+ { body, options },
+ postOperationSpec
+ );
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs,
+ lroResourceLocationConfig: "azure-async-operation"
+ });
}
/**
* Calculates price for exchanging `Reservations` if there are no policy errors.
- * @summary Calculates the refund amounts and price of the new purchases.
+ *
* @param body Request containing purchases and refunds that need to be executed.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- beginPost(body: Models.CalculateExchangeRequest, options?: msRest.RequestOptionsBase): Promise {
- return this.client.sendLRORequest(
- {
- body,
- options
- },
- beginPostOperationSpec,
- options);
+ async beginPostAndWait(
+ body: CalculateExchangeRequest,
+ options?: CalculateExchangePostOptionalParams
+ ): Promise {
+ const poller = await this.beginPost(body, options);
+ return poller.pollUntilDone();
}
}
-
// Operation Specifications
-const serializer = new msRest.Serializer(Mappers);
-const beginPostOperationSpec: msRest.OperationSpec = {
+const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
+
+const postOperationSpec: coreClient.OperationSpec = {
+ path: "/providers/Microsoft.Capacity/calculateExchange",
httpMethod: "POST",
- path: "providers/Microsoft.Capacity/calculateExchange",
- queryParameters: [
- Parameters.apiVersion0
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- requestBody: {
- parameterPath: "body",
- mapper: {
- ...Mappers.CalculateExchangeRequest,
- required: true
- }
- },
responses: {
200: {
- bodyMapper: Mappers.CalculateExchangeOperationResultResponse,
- headersMapper: Mappers.CalculateExchangePostHeaders
+ bodyMapper: Mappers.CalculateExchangeOperationResultResponse
+ },
+ 201: {
+ bodyMapper: Mappers.CalculateExchangeOperationResultResponse
},
202: {
- headersMapper: Mappers.CalculateExchangePostHeaders
+ bodyMapper: Mappers.CalculateExchangeOperationResultResponse
+ },
+ 204: {
+ bodyMapper: Mappers.CalculateExchangeOperationResultResponse
},
default: {
- bodyMapper: Mappers.ErrorModel,
- headersMapper: Mappers.CalculateExchangePostHeaders
+ bodyMapper: Mappers.ErrorModel
}
},
+ requestBody: Parameters.body5,
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [Parameters.$host],
+ headerParameters: [Parameters.contentType, Parameters.accept],
+ mediaType: "json",
serializer
};
diff --git a/sdk/reservations/arm-reservations/src/operations/exchange.ts b/sdk/reservations/arm-reservations/src/operations/exchange.ts
index b19ce8e5f86..1ce3fcbb93d 100644
--- a/sdk/reservations/arm-reservations/src/operations/exchange.ts
+++ b/sdk/reservations/arm-reservations/src/operations/exchange.ts
@@ -3,89 +3,138 @@
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
-import * as msRestAzure from "@azure/ms-rest-azure-js";
-import * as Models from "../models";
-import * as Mappers from "../models/exchangeMappers";
+import { Exchange } from "../operationsInterfaces";
+import * as coreClient from "@azure/core-client";
+import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
-import { AzureReservationAPIContext } from "../azureReservationAPIContext";
+import { AzureReservationAPI } from "../azureReservationAPI";
+import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
+import { LroImpl } from "../lroImpl";
+import {
+ ExchangeRequest,
+ ExchangePostOptionalParams,
+ ExchangePostResponse
+} from "../models";
-/** Class representing a Exchange. */
-export class Exchange {
- private readonly client: AzureReservationAPIContext;
+/** Class containing Exchange operations. */
+export class ExchangeImpl implements Exchange {
+ private readonly client: AzureReservationAPI;
/**
- * Create a Exchange.
- * @param {AzureReservationAPIContext} client Reference to the service client.
+ * Initialize a new instance of the class Exchange class.
+ * @param client Reference to the service client
*/
- constructor(client: AzureReservationAPIContext) {
+ constructor(client: AzureReservationAPI) {
this.client = client;
}
/**
* Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.
- * @summary Exchange Reservation(s)
+ *
* @param body Request containing the refunds and purchases that need to be executed.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- post(body: Models.ExchangeRequest, options?: msRest.RequestOptionsBase): Promise {
- return this.beginPost(body,options)
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ async beginPost(
+ body: ExchangeRequest,
+ options?: ExchangePostOptionalParams
+ ): Promise<
+ PollerLike, ExchangePostResponse>
+ > {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
+ { body, options },
+ postOperationSpec
+ );
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs,
+ lroResourceLocationConfig: "azure-async-operation"
+ });
}
/**
* Returns one or more `Reservations` in exchange for one or more `Reservation` purchases.
- * @summary Exchange Reservation(s)
+ *
* @param body Request containing the refunds and purchases that need to be executed.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- beginPost(body: Models.ExchangeRequest, options?: msRest.RequestOptionsBase): Promise {
- return this.client.sendLRORequest(
- {
- body,
- options
- },
- beginPostOperationSpec,
- options);
+ async beginPostAndWait(
+ body: ExchangeRequest,
+ options?: ExchangePostOptionalParams
+ ): Promise {
+ const poller = await this.beginPost(body, options);
+ return poller.pollUntilDone();
}
}
-
// Operation Specifications
-const serializer = new msRest.Serializer(Mappers);
-const beginPostOperationSpec: msRest.OperationSpec = {
+const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
+
+const postOperationSpec: coreClient.OperationSpec = {
+ path: "/providers/Microsoft.Capacity/exchange",
httpMethod: "POST",
- path: "providers/Microsoft.Capacity/exchange",
- queryParameters: [
- Parameters.apiVersion0
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- requestBody: {
- parameterPath: "body",
- mapper: {
- ...Mappers.ExchangeRequest,
- required: true
- }
- },
responses: {
200: {
- bodyMapper: Mappers.ExchangeOperationResultResponse,
- headersMapper: Mappers.ExchangePostHeaders
+ bodyMapper: Mappers.ExchangeOperationResultResponse
+ },
+ 201: {
+ bodyMapper: Mappers.ExchangeOperationResultResponse
},
202: {
- headersMapper: Mappers.ExchangePostHeaders
+ bodyMapper: Mappers.ExchangeOperationResultResponse
+ },
+ 204: {
+ bodyMapper: Mappers.ExchangeOperationResultResponse
},
default: {
- bodyMapper: Mappers.ErrorModel,
- headersMapper: Mappers.ExchangePostHeaders
+ bodyMapper: Mappers.ErrorModel
}
},
+ requestBody: Parameters.body6,
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [Parameters.$host],
+ headerParameters: [Parameters.contentType, Parameters.accept],
+ mediaType: "json",
serializer
};
diff --git a/sdk/reservations/arm-reservations/src/operations/index.ts b/sdk/reservations/arm-reservations/src/operations/index.ts
index a04a56e654d..425138628c9 100644
--- a/sdk/reservations/arm-reservations/src/operations/index.ts
+++ b/sdk/reservations/arm-reservations/src/operations/index.ts
@@ -3,8 +3,7 @@
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
export * from "./reservation";
diff --git a/sdk/reservations/arm-reservations/src/operations/operation.ts b/sdk/reservations/arm-reservations/src/operations/operation.ts
index 492c3c69e2a..ddf54ac4cd9 100644
--- a/sdk/reservations/arm-reservations/src/operations/operation.ts
+++ b/sdk/reservations/arm-reservations/src/operations/operation.ts
@@ -3,118 +3,109 @@
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
-import * as Models from "../models";
-import * as Mappers from "../models/operationMappers";
+import { PagedAsyncIterableIterator } from "@azure/core-paging";
+import { Operation } from "../operationsInterfaces";
+import * as coreClient from "@azure/core-client";
+import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
-import { AzureReservationAPIContext } from "../azureReservationAPIContext";
+import { AzureReservationAPI } from "../azureReservationAPI";
+import {
+ OperationResponse,
+ OperationListNextOptionalParams,
+ OperationListOptionalParams,
+ OperationListResponse,
+ OperationListNextResponse
+} from "../models";
-/** Class representing a Operation. */
-export class Operation {
- private readonly client: AzureReservationAPIContext;
+///
+/** Class containing Operation operations. */
+export class OperationImpl implements Operation {
+ private readonly client: AzureReservationAPI;
/**
- * Create a Operation.
- * @param {AzureReservationAPIContext} client Reference to the service client.
+ * Initialize a new instance of the class Operation class.
+ * @param client Reference to the service client
*/
- constructor(client: AzureReservationAPIContext) {
+ constructor(client: AzureReservationAPI) {
this.client = client;
}
/**
* List all the operations.
- * @summary Get operations.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- list(options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param callback The callback
- */
- list(callback: msRest.ServiceCallback): void;
- /**
- * @param options The optional parameters
- * @param callback The callback
- */
- list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- options
+ public list(
+ options?: OperationListOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listPagingAll(options);
+ return {
+ next() {
+ return iter.next();
},
- listOperationSpec,
- callback) as Promise;
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listPagingPage(options);
+ }
+ };
+ }
+
+ private async *listPagingPage(
+ options?: OperationListOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._list(options);
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._listNext(continuationToken, options);
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listPagingAll(
+ options?: OperationListOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listPagingPage(options)) {
+ yield* page;
+ }
}
/**
* List all the operations.
- * @summary Get operations.
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ private _list(
+ options?: OperationListOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest({ options }, listOperationSpec);
+ }
+
/**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param callback The callback
+ * ListNext
+ * @param nextLink The nextLink from the previous successful call to the List method.
+ * @param options The options parameters.
*/
- listNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param options The optional parameters
- * @param callback The callback
- */
- listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ private _listNext(
+ nextLink: string,
+ options?: OperationListNextOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- nextPageLink,
- options
- },
- listNextOperationSpec,
- callback) as Promise;
+ { nextLink, options },
+ listNextOperationSpec
+ );
}
}
-
// Operation Specifications
-const serializer = new msRest.Serializer(Mappers);
-const listOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- path: "providers/Microsoft.Capacity/operations",
- queryParameters: [
- Parameters.apiVersion0
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: Mappers.OperationList
- },
- default: {
- bodyMapper: Mappers.ErrorModel
- }
- },
- serializer
-};
+const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
-const listNextOperationSpec: msRest.OperationSpec = {
+const listOperationSpec: coreClient.OperationSpec = {
+ path: "/providers/Microsoft.Capacity/operations",
httpMethod: "GET",
- baseUrl: "https://management.azure.com",
- path: "{nextLink}",
- urlParameters: [
- Parameters.nextPageLink
- ],
- queryParameters: [
- Parameters.apiVersion0
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
responses: {
200: {
bodyMapper: Mappers.OperationList
@@ -123,5 +114,24 @@ const listNextOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ErrorModel
}
},
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [Parameters.$host],
+ headerParameters: [Parameters.accept],
+ serializer
+};
+const listNextOperationSpec: coreClient.OperationSpec = {
+ path: "{nextLink}",
+ httpMethod: "GET",
+ responses: {
+ 200: {
+ bodyMapper: Mappers.OperationList
+ },
+ default: {
+ bodyMapper: Mappers.ErrorModel
+ }
+ },
+ queryParameters: [Parameters.apiVersion],
+ urlParameters: [Parameters.$host, Parameters.nextLink],
+ headerParameters: [Parameters.accept],
serializer
};
diff --git a/sdk/reservations/arm-reservations/src/operations/quota.ts b/sdk/reservations/arm-reservations/src/operations/quota.ts
index 9dd20c907d9..fd7cf412c2f 100644
--- a/sdk/reservations/arm-reservations/src/operations/quota.ts
+++ b/sdk/reservations/arm-reservations/src/operations/quota.ts
@@ -3,181 +3,221 @@
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
-import * as msRestAzure from "@azure/ms-rest-azure-js";
-import * as Models from "../models";
-import * as Mappers from "../models/quotaMappers";
+import { PagedAsyncIterableIterator } from "@azure/core-paging";
+import { Quota } from "../operationsInterfaces";
+import * as coreClient from "@azure/core-client";
+import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
-import { AzureReservationAPIContext } from "../azureReservationAPIContext";
+import { AzureReservationAPI } from "../azureReservationAPI";
+import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
+import { LroImpl } from "../lroImpl";
+import {
+ CurrentQuotaLimitBase,
+ QuotaListNextOptionalParams,
+ QuotaListOptionalParams,
+ QuotaGetOptionalParams,
+ QuotaGetResponse,
+ QuotaCreateOrUpdateOptionalParams,
+ QuotaCreateOrUpdateResponse,
+ QuotaUpdateOptionalParams,
+ QuotaUpdateResponse,
+ QuotaListResponse,
+ QuotaListNextResponse
+} from "../models";
-/** Class representing a Quota. */
-export class Quota {
- private readonly client: AzureReservationAPIContext;
+///
+/** Class containing Quota operations. */
+export class QuotaImpl implements Quota {
+ private readonly client: AzureReservationAPI;
/**
- * Create a Quota.
- * @param {AzureReservationAPIContext} client Reference to the service client.
+ * Initialize a new instance of the class Quota class.
+ * @param client Reference to the service client
*/
- constructor(client: AzureReservationAPIContext) {
+ constructor(client: AzureReservationAPI) {
this.client = client;
}
/**
- * Get the current quota (service limit) and usage of a resource. You can use the response from the
- * GET operation to submit quota update request.
+ * Gets a list of current quotas (service limits) and usage for all resources. The response from the
+ * list quota operation can be leveraged to request quota updates.
* @param subscriptionId Azure subscription ID.
* @param providerId Azure resource provider ID.
* @param location Azure region.
- * @param resourceName The resource name for a resource provider, such as SKU name for
- * Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- get(subscriptionId: string, providerId: string, location: string, resourceName: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param subscriptionId Azure subscription ID.
- * @param providerId Azure resource provider ID.
- * @param location Azure region.
- * @param resourceName The resource name for a resource provider, such as SKU name for
- * Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices
- * @param callback The callback
- */
- get(subscriptionId: string, providerId: string, location: string, resourceName: string, callback: msRest.ServiceCallback): void;
- /**
- * @param subscriptionId Azure subscription ID.
- * @param providerId Azure resource provider ID.
- * @param location Azure region.
- * @param resourceName The resource name for a resource provider, such as SKU name for
- * Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices
- * @param options The optional parameters
- * @param callback The callback
- */
- get(subscriptionId: string, providerId: string, location: string, resourceName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- get(subscriptionId: string, providerId: string, location: string, resourceName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
+ public list(
+ subscriptionId: string,
+ providerId: string,
+ location: string,
+ options?: QuotaListOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listPagingAll(
+ subscriptionId,
+ providerId,
+ location,
+ options
+ );
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listPagingPage(
+ subscriptionId,
+ providerId,
+ location,
+ options
+ );
+ }
+ };
+ }
+
+ private async *listPagingPage(
+ subscriptionId: string,
+ providerId: string,
+ location: string,
+ options?: QuotaListOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._list(
+ subscriptionId,
+ providerId,
+ location,
+ options
+ );
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._listNext(
subscriptionId,
providerId,
location,
- resourceName,
+ continuationToken,
options
- },
- getOperationSpec,
- callback) as Promise;
+ );
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listPagingAll(
+ subscriptionId: string,
+ providerId: string,
+ location: string,
+ options?: QuotaListOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listPagingPage(
+ subscriptionId,
+ providerId,
+ location,
+ options
+ )) {
+ yield* page;
+ }
+ }
+
+ /**
+ * Get the current quota (service limit) and usage of a resource. You can use the response from the GET
+ * operation to submit quota update request.
+ * @param subscriptionId Azure subscription ID.
+ * @param providerId Azure resource provider ID.
+ * @param location Azure region.
+ * @param resourceName The resource name for a resource provider, such as SKU name for
+ * Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices
+ * @param options The options parameters.
+ */
+ get(
+ subscriptionId: string,
+ providerId: string,
+ location: string,
+ resourceName: string,
+ options?: QuotaGetOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { subscriptionId, providerId, location, resourceName, options },
+ getOperationSpec
+ );
}
/**
* Create or update the quota (service limits) of a resource to the requested value.
- * Steps:
- *
- * 1. Make the Get request to get the quota information for specific resource.
- *
- * 2. To increase the quota, update the limit field in the response from Get request to new value.
- *
- * 3. Submit the JSON to the quota request API to update the quota.
- * The Create quota request may be constructed as follows. The PUT operation can be used to update
+ * Steps:
+ *
+ 1. Make the Get request to get the quota information for specific resource.
+ *
+ 2. To increase the quota, update the limit field in the response from Get request to new value.
+ *
+ 3. Submit the JSON to the quota request API to update the quota.
+ * The Create quota request may be constructed as follows. The PUT operation can be used to update
* the quota.
* @param subscriptionId Azure subscription ID.
* @param providerId Azure resource provider ID.
* @param location Azure region.
* @param resourceName The resource name for a resource provider, such as SKU name for
- * Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices
+ * Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices
* @param createQuotaRequest Quota requests payload.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- createOrUpdate(subscriptionId: string, providerId: string, location: string, resourceName: string, createQuotaRequest: Models.CurrentQuotaLimitBase, options?: msRest.RequestOptionsBase): Promise {
- return this.beginCreateOrUpdate(subscriptionId, providerId, location, resourceName, createQuotaRequest, options)
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
- }
+ async beginCreateOrUpdate(
+ subscriptionId: string,
+ providerId: string,
+ location: string,
+ resourceName: string,
+ createQuotaRequest: CurrentQuotaLimitBase,
+ options?: QuotaCreateOrUpdateOptionalParams
+ ): Promise<
+ PollerLike<
+ PollOperationState,
+ QuotaCreateOrUpdateResponse
+ >
+ > {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
- /**
- * Update the quota (service limits) of this resource to the requested value.
- *
- * • To get the quota information for specific resource, send a GET request.
- *
- * • To increase the quota, update the limit field from the GET response to a new value.
- *
- * • To update the quota value, submit the JSON response to the quota request API to update the
- * quota.
- * • To update the quota. use the PATCH operation.
- * @param subscriptionId Azure subscription ID.
- * @param providerId Azure resource provider ID.
- * @param location Azure region.
- * @param resourceName The resource name for a resource provider, such as SKU name for
- * Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices
- * @param createQuotaRequest Payload for the quota request.
- * @param [options] The optional parameters
- * @returns Promise
- */
- update(subscriptionId: string, providerId: string, location: string, resourceName: string, createQuotaRequest: Models.CurrentQuotaLimitBase, options?: msRest.RequestOptionsBase): Promise {
- return this.beginUpdate(subscriptionId, providerId, location, resourceName, createQuotaRequest, options)
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
- }
-
- /**
- * Gets a list of current quotas (service limits) and usage for all resources. The response from
- * the list quota operation can be leveraged to request quota updates.
- * @param subscriptionId Azure subscription ID.
- * @param providerId Azure resource provider ID.
- * @param location Azure region.
- * @param [options] The optional parameters
- * @returns Promise
- */
- list(subscriptionId: string, providerId: string, location: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param subscriptionId Azure subscription ID.
- * @param providerId Azure resource provider ID.
- * @param location Azure region.
- * @param callback The callback
- */
- list(subscriptionId: string, providerId: string, location: string, callback: msRest.ServiceCallback): void;
- /**
- * @param subscriptionId Azure subscription ID.
- * @param providerId Azure resource provider ID.
- * @param location Azure region.
- * @param options The optional parameters
- * @param callback The callback
- */
- list(subscriptionId: string, providerId: string, location: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- list(subscriptionId: string, providerId: string, location: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- subscriptionId,
- providerId,
- location,
- options
- },
- listOperationSpec,
- callback) as Promise;
- }
-
- /**
- * Create or update the quota (service limits) of a resource to the requested value.
- * Steps:
- *
- * 1. Make the Get request to get the quota information for specific resource.
- *
- * 2. To increase the quota, update the limit field in the response from Get request to new value.
- *
- * 3. Submit the JSON to the quota request API to update the quota.
- * The Create quota request may be constructed as follows. The PUT operation can be used to update
- * the quota.
- * @param subscriptionId Azure subscription ID.
- * @param providerId Azure resource provider ID.
- * @param location Azure region.
- * @param resourceName The resource name for a resource provider, such as SKU name for
- * Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices
- * @param createQuotaRequest Quota requests payload.
- * @param [options] The optional parameters
- * @returns Promise
- */
- beginCreateOrUpdate(subscriptionId: string, providerId: string, location: string, resourceName: string, createQuotaRequest: Models.CurrentQuotaLimitBase, options?: msRest.RequestOptionsBase): Promise {
- return this.client.sendLRORequest(
+ const lro = new LroImpl(
+ sendOperation,
{
subscriptionId,
providerId,
@@ -186,31 +226,122 @@ export class Quota {
createQuotaRequest,
options
},
- beginCreateOrUpdateOperationSpec,
- options);
+ createOrUpdateOperationSpec
+ );
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs,
+ lroResourceLocationConfig: "location"
+ });
}
/**
- * Update the quota (service limits) of this resource to the requested value.
- *
- * • To get the quota information for specific resource, send a GET request.
- *
- * • To increase the quota, update the limit field from the GET response to a new value.
- *
- * • To update the quota value, submit the JSON response to the quota request API to update the
- * quota.
- * • To update the quota. use the PATCH operation.
+ * Create or update the quota (service limits) of a resource to the requested value.
+ * Steps:
+ *
+ 1. Make the Get request to get the quota information for specific resource.
+ *
+ 2. To increase the quota, update the limit field in the response from Get request to new value.
+ *
+ 3. Submit the JSON to the quota request API to update the quota.
+ * The Create quota request may be constructed as follows. The PUT operation can be used to update
+ * the quota.
* @param subscriptionId Azure subscription ID.
* @param providerId Azure resource provider ID.
* @param location Azure region.
* @param resourceName The resource name for a resource provider, such as SKU name for
- * Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices
- * @param createQuotaRequest Payload for the quota request.
- * @param [options] The optional parameters
- * @returns Promise
+ * Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices
+ * @param createQuotaRequest Quota requests payload.
+ * @param options The options parameters.
*/
- beginUpdate(subscriptionId: string, providerId: string, location: string, resourceName: string, createQuotaRequest: Models.CurrentQuotaLimitBase, options?: msRest.RequestOptionsBase): Promise {
- return this.client.sendLRORequest(
+ async beginCreateOrUpdateAndWait(
+ subscriptionId: string,
+ providerId: string,
+ location: string,
+ resourceName: string,
+ createQuotaRequest: CurrentQuotaLimitBase,
+ options?: QuotaCreateOrUpdateOptionalParams
+ ): Promise {
+ const poller = await this.beginCreateOrUpdate(
+ subscriptionId,
+ providerId,
+ location,
+ resourceName,
+ createQuotaRequest,
+ options
+ );
+ return poller.pollUntilDone();
+ }
+
+ /**
+ * Update the quota (service limits) of this resource to the requested value.
+ *
+ • To get the quota information for specific resource, send a GET request.
+ *
+ • To increase the quota, update the limit field from the GET response to a new value.
+ *
+ • To update the quota value, submit the JSON response to the quota request API to update the
+ * quota.
+ * • To update the quota. use the PATCH operation.
+ * @param subscriptionId Azure subscription ID.
+ * @param providerId Azure resource provider ID.
+ * @param location Azure region.
+ * @param resourceName The resource name for a resource provider, such as SKU name for
+ * Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices
+ * @param createQuotaRequest Payload for the quota request.
+ * @param options The options parameters.
+ */
+ async beginUpdate(
+ subscriptionId: string,
+ providerId: string,
+ location: string,
+ resourceName: string,
+ createQuotaRequest: CurrentQuotaLimitBase,
+ options?: QuotaUpdateOptionalParams
+ ): Promise<
+ PollerLike, QuotaUpdateResponse>
+ > {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
{
subscriptionId,
providerId,
@@ -219,191 +350,231 @@ export class Quota {
createQuotaRequest,
options
},
- beginUpdateOperationSpec,
- options);
+ updateOperationSpec
+ );
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs,
+ lroResourceLocationConfig: "location"
+ });
}
/**
- * Gets a list of current quotas (service limits) and usage for all resources. The response from
- * the list quota operation can be leveraged to request quota updates.
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param [options] The optional parameters
- * @returns Promise
+ * Update the quota (service limits) of this resource to the requested value.
+ *
+ • To get the quota information for specific resource, send a GET request.
+ *
+ • To increase the quota, update the limit field from the GET response to a new value.
+ *
+ • To update the quota value, submit the JSON response to the quota request API to update the
+ * quota.
+ * • To update the quota. use the PATCH operation.
+ * @param subscriptionId Azure subscription ID.
+ * @param providerId Azure resource provider ID.
+ * @param location Azure region.
+ * @param resourceName The resource name for a resource provider, such as SKU name for
+ * Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices
+ * @param createQuotaRequest Payload for the quota request.
+ * @param options The options parameters.
*/
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise;
+ async beginUpdateAndWait(
+ subscriptionId: string,
+ providerId: string,
+ location: string,
+ resourceName: string,
+ createQuotaRequest: CurrentQuotaLimitBase,
+ options?: QuotaUpdateOptionalParams
+ ): Promise {
+ const poller = await this.beginUpdate(
+ subscriptionId,
+ providerId,
+ location,
+ resourceName,
+ createQuotaRequest,
+ options
+ );
+ return poller.pollUntilDone();
+ }
+
/**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param callback The callback
+ * Gets a list of current quotas (service limits) and usage for all resources. The response from the
+ * list quota operation can be leveraged to request quota updates.
+ * @param subscriptionId Azure subscription ID.
+ * @param providerId Azure resource provider ID.
+ * @param location Azure region.
+ * @param options The options parameters.
*/
- listNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param options The optional parameters
- * @param callback The callback
- */
- listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ private _list(
+ subscriptionId: string,
+ providerId: string,
+ location: string,
+ options?: QuotaListOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- nextPageLink,
- options
- },
- listNextOperationSpec,
- callback) as Promise;
+ { subscriptionId, providerId, location, options },
+ listOperationSpec
+ );
+ }
+
+ /**
+ * ListNext
+ * @param subscriptionId Azure subscription ID.
+ * @param providerId Azure resource provider ID.
+ * @param location Azure region.
+ * @param nextLink The nextLink from the previous successful call to the List method.
+ * @param options The options parameters.
+ */
+ private _listNext(
+ subscriptionId: string,
+ providerId: string,
+ location: string,
+ nextLink: string,
+ options?: QuotaListNextOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { subscriptionId, providerId, location, nextLink, options },
+ listNextOperationSpec
+ );
}
}
-
// Operation Specifications
-const serializer = new msRest.Serializer(Mappers);
-const getOperationSpec: msRest.OperationSpec = {
+const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
+
+const getOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimits/{resourceName}",
httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimits/{resourceName}",
- urlParameters: [
- Parameters.subscriptionId,
- Parameters.providerId,
- Parameters.location1,
- Parameters.resourceName
- ],
- queryParameters: [
- Parameters.apiVersion1
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
responses: {
200: {
bodyMapper: Mappers.CurrentQuotaLimitBase,
headersMapper: Mappers.QuotaGetHeaders
},
default: {
- bodyMapper: Mappers.ExceptionResponse,
- headersMapper: Mappers.QuotaGetHeaders
+ bodyMapper: Mappers.ExceptionResponse
}
},
+ queryParameters: [Parameters.apiVersion1],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.providerId,
+ Parameters.location1,
+ Parameters.resourceName
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
-
-const listOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimits",
+const createOrUpdateOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimits/{resourceName}",
+ httpMethod: "PUT",
+ responses: {
+ 200: {
+ bodyMapper: Mappers.QuotaRequestOneResourceSubmitResponse
+ },
+ 201: {
+ bodyMapper: Mappers.QuotaRequestOneResourceSubmitResponse
+ },
+ 202: {
+ bodyMapper: Mappers.QuotaRequestOneResourceSubmitResponse
+ },
+ 204: {
+ bodyMapper: Mappers.QuotaRequestOneResourceSubmitResponse
+ },
+ default: {
+ bodyMapper: Mappers.ExceptionResponse
+ }
+ },
+ requestBody: Parameters.createQuotaRequest,
+ queryParameters: [Parameters.apiVersion1],
urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.providerId,
+ Parameters.location1,
+ Parameters.resourceName
+ ],
+ headerParameters: [Parameters.contentType, Parameters.accept],
+ mediaType: "json",
+ serializer
+};
+const updateOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimits/{resourceName}",
+ httpMethod: "PATCH",
+ responses: {
+ 200: {
+ bodyMapper: Mappers.QuotaRequestOneResourceSubmitResponse
+ },
+ 201: {
+ bodyMapper: Mappers.QuotaRequestOneResourceSubmitResponse
+ },
+ 202: {
+ bodyMapper: Mappers.QuotaRequestOneResourceSubmitResponse
+ },
+ 204: {
+ bodyMapper: Mappers.QuotaRequestOneResourceSubmitResponse
+ },
+ default: {
+ bodyMapper: Mappers.ExceptionResponse
+ }
+ },
+ requestBody: Parameters.createQuotaRequest,
+ queryParameters: [Parameters.apiVersion1],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.providerId,
+ Parameters.location1,
+ Parameters.resourceName
+ ],
+ headerParameters: [Parameters.contentType, Parameters.accept],
+ mediaType: "json",
+ serializer
+};
+const listOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimits",
+ httpMethod: "GET",
+ responses: {
+ 200: {
+ bodyMapper: Mappers.QuotaLimits,
+ headersMapper: Mappers.QuotaListHeaders
+ },
+ default: {
+ bodyMapper: Mappers.ExceptionResponse
+ }
+ },
+ queryParameters: [Parameters.apiVersion1],
+ urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.providerId,
Parameters.location1
],
- queryParameters: [
- Parameters.apiVersion1
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: Mappers.QuotaLimits,
- headersMapper: Mappers.QuotaListHeaders
- },
- default: {
- bodyMapper: Mappers.ExceptionResponse,
- headersMapper: Mappers.QuotaListHeaders
- }
- },
+ headerParameters: [Parameters.accept],
serializer
};
-
-const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
- httpMethod: "PUT",
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimits/{resourceName}",
- urlParameters: [
- Parameters.subscriptionId,
- Parameters.providerId,
- Parameters.location1,
- Parameters.resourceName
- ],
- queryParameters: [
- Parameters.apiVersion1
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- requestBody: {
- parameterPath: "createQuotaRequest",
- mapper: {
- ...Mappers.CurrentQuotaLimitBase,
- required: true
- }
- },
- responses: {
- 200: {
- bodyMapper: Mappers.QuotaRequestOneResourceSubmitResponse
- },
- 201: {
- bodyMapper: Mappers.QuotaRequestSubmitResponse201
- },
- default: {
- bodyMapper: Mappers.ExceptionResponse
- }
- },
- serializer
-};
-
-const beginUpdateOperationSpec: msRest.OperationSpec = {
- httpMethod: "PATCH",
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimits/{resourceName}",
- urlParameters: [
- Parameters.subscriptionId,
- Parameters.providerId,
- Parameters.location1,
- Parameters.resourceName
- ],
- queryParameters: [
- Parameters.apiVersion1
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- requestBody: {
- parameterPath: "createQuotaRequest",
- mapper: {
- ...Mappers.CurrentQuotaLimitBase,
- required: true
- }
- },
- responses: {
- 200: {
- bodyMapper: Mappers.QuotaRequestOneResourceSubmitResponse
- },
- 201: {
- bodyMapper: Mappers.QuotaRequestSubmitResponse201
- },
- default: {
- bodyMapper: Mappers.ExceptionResponse
- }
- },
- serializer
-};
-
-const listNextOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
+const listNextOperationSpec: coreClient.OperationSpec = {
path: "{nextLink}",
- urlParameters: [
- Parameters.nextPageLink
- ],
- queryParameters: [
- Parameters.apiVersion1
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.QuotaLimits,
- headersMapper: Mappers.QuotaListHeaders
+ headersMapper: Mappers.QuotaListNextHeaders
},
default: {
- bodyMapper: Mappers.ExceptionResponse,
- headersMapper: Mappers.QuotaListHeaders
+ bodyMapper: Mappers.ExceptionResponse
}
},
+ queryParameters: [Parameters.apiVersion1],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.nextLink,
+ Parameters.subscriptionId,
+ Parameters.providerId,
+ Parameters.location1
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
diff --git a/sdk/reservations/arm-reservations/src/operations/quotaRequestStatus.ts b/sdk/reservations/arm-reservations/src/operations/quotaRequestStatus.ts
index e16dee92ad3..24ed7688d73 100644
--- a/sdk/reservations/arm-reservations/src/operations/quotaRequestStatus.ts
+++ b/sdk/reservations/arm-reservations/src/operations/quotaRequestStatus.ts
@@ -3,156 +3,190 @@
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
-import * as Models from "../models";
-import * as Mappers from "../models/quotaRequestStatusMappers";
+import { PagedAsyncIterableIterator } from "@azure/core-paging";
+import { QuotaRequestStatus } from "../operationsInterfaces";
+import * as coreClient from "@azure/core-client";
+import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
-import { AzureReservationAPIContext } from "../azureReservationAPIContext";
+import { AzureReservationAPI } from "../azureReservationAPI";
+import {
+ QuotaRequestDetails,
+ QuotaRequestStatusListNextOptionalParams,
+ QuotaRequestStatusListOptionalParams,
+ QuotaRequestStatusGetOptionalParams,
+ QuotaRequestStatusGetResponse,
+ QuotaRequestStatusListResponse,
+ QuotaRequestStatusListNextResponse
+} from "../models";
-/** Class representing a QuotaRequestStatus. */
-export class QuotaRequestStatus {
- private readonly client: AzureReservationAPIContext;
+///
+/** Class containing QuotaRequestStatus operations. */
+export class QuotaRequestStatusImpl implements QuotaRequestStatus {
+ private readonly client: AzureReservationAPI;
/**
- * Create a QuotaRequestStatus.
- * @param {AzureReservationAPIContext} client Reference to the service client.
+ * Initialize a new instance of the class QuotaRequestStatus class.
+ * @param client Reference to the service client
*/
- constructor(client: AzureReservationAPIContext) {
+ constructor(client: AzureReservationAPI) {
this.client = client;
}
/**
- * For the specified Azure region (location), get the details and status of the quota request by
- * the quota request ID for the resources of the resource provider. The PUT request for the quota
- * (service limit) returns a response with the requestId parameter.
+ * For the specified Azure region (location), subscription, and resource provider, get the history of
+ * the quota requests for the past year. To select specific quota requests, use the oData filter.
* @param subscriptionId Azure subscription ID.
* @param providerId Azure resource provider ID.
* @param location Azure region.
- * @param id Quota Request ID.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- get(subscriptionId: string, providerId: string, location: string, id: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param subscriptionId Azure subscription ID.
- * @param providerId Azure resource provider ID.
- * @param location Azure region.
- * @param id Quota Request ID.
- * @param callback The callback
- */
- get(subscriptionId: string, providerId: string, location: string, id: string, callback: msRest.ServiceCallback): void;
- /**
- * @param subscriptionId Azure subscription ID.
- * @param providerId Azure resource provider ID.
- * @param location Azure region.
- * @param id Quota Request ID.
- * @param options The optional parameters
- * @param callback The callback
- */
- get(subscriptionId: string, providerId: string, location: string, id: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- get(subscriptionId: string, providerId: string, location: string, id: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
+ public list(
+ subscriptionId: string,
+ providerId: string,
+ location: string,
+ options?: QuotaRequestStatusListOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listPagingAll(
+ subscriptionId,
+ providerId,
+ location,
+ options
+ );
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listPagingPage(
+ subscriptionId,
+ providerId,
+ location,
+ options
+ );
+ }
+ };
+ }
+
+ private async *listPagingPage(
+ subscriptionId: string,
+ providerId: string,
+ location: string,
+ options?: QuotaRequestStatusListOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._list(
+ subscriptionId,
+ providerId,
+ location,
+ options
+ );
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._listNext(
subscriptionId,
providerId,
location,
- id,
+ continuationToken,
options
- },
- getOperationSpec,
- callback) as Promise;
+ );
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listPagingAll(
+ subscriptionId: string,
+ providerId: string,
+ location: string,
+ options?: QuotaRequestStatusListOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listPagingPage(
+ subscriptionId,
+ providerId,
+ location,
+ options
+ )) {
+ yield* page;
+ }
}
/**
- * For the specified Azure region (location), subscription, and resource provider, get the history
- * of the quota requests for the past year. To select specific quota requests, use the oData
- * filter.
+ * For the specified Azure region (location), get the details and status of the quota request by the
+ * quota request ID for the resources of the resource provider. The PUT request for the quota (service
+ * limit) returns a response with the requestId parameter.
* @param subscriptionId Azure subscription ID.
* @param providerId Azure resource provider ID.
* @param location Azure region.
- * @param [options] The optional parameters
- * @returns Promise
+ * @param id Quota Request ID.
+ * @param options The options parameters.
*/
- list(subscriptionId: string, providerId: string, location: string, options?: Models.QuotaRequestStatusListOptionalParams): Promise;
- /**
- * @param subscriptionId Azure subscription ID.
- * @param providerId Azure resource provider ID.
- * @param location Azure region.
- * @param callback The callback
- */
- list(subscriptionId: string, providerId: string, location: string, callback: msRest.ServiceCallback): void;
- /**
- * @param subscriptionId Azure subscription ID.
- * @param providerId Azure resource provider ID.
- * @param location Azure region.
- * @param options The optional parameters
- * @param callback The callback
- */
- list(subscriptionId: string, providerId: string, location: string, options: Models.QuotaRequestStatusListOptionalParams, callback: msRest.ServiceCallback): void;
- list(subscriptionId: string, providerId: string, location: string, options?: Models.QuotaRequestStatusListOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ get(
+ subscriptionId: string,
+ providerId: string,
+ location: string,
+ id: string,
+ options?: QuotaRequestStatusGetOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- subscriptionId,
- providerId,
- location,
- options
- },
- listOperationSpec,
- callback) as Promise;
+ { subscriptionId, providerId, location, id, options },
+ getOperationSpec
+ );
}
/**
- * For the specified Azure region (location), subscription, and resource provider, get the history
- * of the quota requests for the past year. To select specific quota requests, use the oData
- * filter.
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param [options] The optional parameters
- * @returns Promise
+ * For the specified Azure region (location), subscription, and resource provider, get the history of
+ * the quota requests for the past year. To select specific quota requests, use the oData filter.
+ * @param subscriptionId Azure subscription ID.
+ * @param providerId Azure resource provider ID.
+ * @param location Azure region.
+ * @param options The options parameters.
*/
- listNext(nextPageLink: string, options?: Models.QuotaRequestStatusListNextOptionalParams): Promise;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param callback The callback
- */
- listNext(nextPageLink: string, callback: msRest.ServiceCallback): void;
- /**
- * @param nextPageLink The NextLink from the previous successful call to List operation.
- * @param options The optional parameters
- * @param callback The callback
- */
- listNext(nextPageLink: string, options: Models.QuotaRequestStatusListNextOptionalParams, callback: msRest.ServiceCallback): void;
- listNext(nextPageLink: string, options?: Models.QuotaRequestStatusListNextOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ private _list(
+ subscriptionId: string,
+ providerId: string,
+ location: string,
+ options?: QuotaRequestStatusListOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- nextPageLink,
- options
- },
- listNextOperationSpec,
- callback) as Promise;
+ { subscriptionId, providerId, location, options },
+ listOperationSpec
+ );
+ }
+
+ /**
+ * ListNext
+ * @param subscriptionId Azure subscription ID.
+ * @param providerId Azure resource provider ID.
+ * @param location Azure region.
+ * @param nextLink The nextLink from the previous successful call to the List method.
+ * @param options The options parameters.
+ */
+ private _listNext(
+ subscriptionId: string,
+ providerId: string,
+ location: string,
+ nextLink: string,
+ options?: QuotaRequestStatusListNextOptionalParams
+ ): Promise {
+ return this.client.sendOperationRequest(
+ { subscriptionId, providerId, location, nextLink, options },
+ listNextOperationSpec
+ );
}
}
-
// Operation Specifications
-const serializer = new msRest.Serializer(Mappers);
-const getOperationSpec: msRest.OperationSpec = {
+const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
+
+const getOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimitsRequests/{id}",
httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimitsRequests/{id}",
- urlParameters: [
- Parameters.subscriptionId,
- Parameters.providerId,
- Parameters.location1,
- Parameters.id
- ],
- queryParameters: [
- Parameters.apiVersion1
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
responses: {
200: {
bodyMapper: Mappers.QuotaRequestDetails
@@ -161,53 +195,47 @@ const getOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ExceptionResponse
}
},
+ queryParameters: [Parameters.apiVersion1],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.subscriptionId,
+ Parameters.providerId,
+ Parameters.location1,
+ Parameters.id
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
-
-const listOperationSpec: msRest.OperationSpec = {
+const listOperationSpec: coreClient.OperationSpec = {
+ path:
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimitsRequests",
httpMethod: "GET",
- path: "subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimitsRequests",
+ responses: {
+ 200: {
+ bodyMapper: Mappers.QuotaRequestDetailsList
+ },
+ default: {
+ bodyMapper: Mappers.ExceptionResponse
+ }
+ },
+ queryParameters: [
+ Parameters.filter,
+ Parameters.apiVersion1,
+ Parameters.top,
+ Parameters.skiptoken1
+ ],
urlParameters: [
+ Parameters.$host,
Parameters.subscriptionId,
Parameters.providerId,
Parameters.location1
],
- queryParameters: [
- Parameters.apiVersion1,
- Parameters.filter,
- Parameters.top,
- Parameters.skiptoken
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
- responses: {
- 200: {
- bodyMapper: Mappers.QuotaRequestDetailsList
- },
- default: {
- bodyMapper: Mappers.ExceptionResponse
- }
- },
+ headerParameters: [Parameters.accept],
serializer
};
-
-const listNextOperationSpec: msRest.OperationSpec = {
- httpMethod: "GET",
- baseUrl: "https://management.azure.com",
+const listNextOperationSpec: coreClient.OperationSpec = {
path: "{nextLink}",
- urlParameters: [
- Parameters.nextPageLink
- ],
- queryParameters: [
- Parameters.apiVersion1,
- Parameters.filter,
- Parameters.top,
- Parameters.skiptoken
- ],
- headerParameters: [
- Parameters.acceptLanguage
- ],
+ httpMethod: "GET",
responses: {
200: {
bodyMapper: Mappers.QuotaRequestDetailsList
@@ -216,5 +244,19 @@ const listNextOperationSpec: msRest.OperationSpec = {
bodyMapper: Mappers.ExceptionResponse
}
},
+ queryParameters: [
+ Parameters.filter,
+ Parameters.apiVersion1,
+ Parameters.top,
+ Parameters.skiptoken1
+ ],
+ urlParameters: [
+ Parameters.$host,
+ Parameters.nextLink,
+ Parameters.subscriptionId,
+ Parameters.providerId,
+ Parameters.location1
+ ],
+ headerParameters: [Parameters.accept],
serializer
};
diff --git a/sdk/reservations/arm-reservations/src/operations/reservation.ts b/sdk/reservations/arm-reservations/src/operations/reservation.ts
index 6dde501a186..431cc065169 100644
--- a/sdk/reservations/arm-reservations/src/operations/reservation.ts
+++ b/sdk/reservations/arm-reservations/src/operations/reservation.ts
@@ -3,553 +3,904 @@
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
- * Changes may cause incorrect behavior and will be lost if the code is
- * regenerated.
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/
-import * as msRest from "@azure/ms-rest-js";
-import * as msRestAzure from "@azure/ms-rest-azure-js";
-import * as Models from "../models";
-import * as Mappers from "../models/reservationMappers";
+import { PagedAsyncIterableIterator } from "@azure/core-paging";
+import { Reservation } from "../operationsInterfaces";
+import * as coreClient from "@azure/core-client";
+import * as Mappers from "../models/mappers";
import * as Parameters from "../models/parameters";
-import { AzureReservationAPIContext } from "../azureReservationAPIContext";
+import { AzureReservationAPI } from "../azureReservationAPI";
+import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
+import { LroImpl } from "../lroImpl";
+import {
+ ReservationResponse,
+ ReservationListNextOptionalParams,
+ ReservationListOptionalParams,
+ ReservationListRevisionsNextOptionalParams,
+ ReservationListRevisionsOptionalParams,
+ ReservationListAllNextOptionalParams,
+ ReservationListAllOptionalParams,
+ AvailableScopeRequest,
+ ReservationAvailableScopesOptionalParams,
+ ReservationAvailableScopesResponse,
+ SplitRequest,
+ ReservationSplitOptionalParams,
+ ReservationSplitResponse,
+ MergeRequest,
+ ReservationMergeOptionalParams,
+ ReservationMergeResponse,
+ ReservationListResponse,
+ ReservationGetOptionalParams,
+ ReservationGetResponse,
+ Patch,
+ ReservationUpdateOptionalParams,
+ ReservationUpdateResponse,
+ ReservationListRevisionsResponse,
+ ReservationListAllResponse,
+ ReservationListNextResponse,
+ ReservationListRevisionsNextResponse,
+ ReservationListAllNextResponse
+} from "../models";
-/** Class representing a Reservation. */
-export class Reservation {
- private readonly client: AzureReservationAPIContext;
+///
+/** Class containing Reservation operations. */
+export class ReservationImpl implements Reservation {
+ private readonly client: AzureReservationAPI;
/**
- * Create a Reservation.
- * @param {AzureReservationAPIContext} client Reference to the service client.
+ * Initialize a new instance of the class Reservation class.
+ * @param client Reference to the service client
*/
- constructor(client: AzureReservationAPIContext) {
+ constructor(client: AzureReservationAPI) {
this.client = client;
}
+ /**
+ * List `Reservation`s within a single `ReservationOrder`.
+ * @param reservationOrderId Order Id of the reservation
+ * @param options The options parameters.
+ */
+ public list(
+ reservationOrderId: string,
+ options?: ReservationListOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listPagingAll(reservationOrderId, options);
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listPagingPage(reservationOrderId, options);
+ }
+ };
+ }
+
+ private async *listPagingPage(
+ reservationOrderId: string,
+ options?: ReservationListOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._list(reservationOrderId, options);
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._listNext(
+ reservationOrderId,
+ continuationToken,
+ options
+ );
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listPagingAll(
+ reservationOrderId: string,
+ options?: ReservationListOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listPagingPage(reservationOrderId, options)) {
+ yield* page;
+ }
+ }
+
+ /**
+ * List of all the revisions for the `Reservation`.
+ * @param reservationId Id of the Reservation Item
+ * @param reservationOrderId Order Id of the reservation
+ * @param options The options parameters.
+ */
+ public listRevisions(
+ reservationId: string,
+ reservationOrderId: string,
+ options?: ReservationListRevisionsOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listRevisionsPagingAll(
+ reservationId,
+ reservationOrderId,
+ options
+ );
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listRevisionsPagingPage(
+ reservationId,
+ reservationOrderId,
+ options
+ );
+ }
+ };
+ }
+
+ private async *listRevisionsPagingPage(
+ reservationId: string,
+ reservationOrderId: string,
+ options?: ReservationListRevisionsOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listRevisions(
+ reservationId,
+ reservationOrderId,
+ options
+ );
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._listRevisionsNext(
+ reservationId,
+ reservationOrderId,
+ continuationToken,
+ options
+ );
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listRevisionsPagingAll(
+ reservationId: string,
+ reservationOrderId: string,
+ options?: ReservationListRevisionsOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listRevisionsPagingPage(
+ reservationId,
+ reservationOrderId,
+ options
+ )) {
+ yield* page;
+ }
+ }
+
+ /**
+ * List the reservations and the roll up counts of reservations group by provisioning states that the
+ * user has access to in the current tenant.
+ * @param options The options parameters.
+ */
+ public listAll(
+ options?: ReservationListAllOptionalParams
+ ): PagedAsyncIterableIterator {
+ const iter = this.listAllPagingAll(options);
+ return {
+ next() {
+ return iter.next();
+ },
+ [Symbol.asyncIterator]() {
+ return this;
+ },
+ byPage: () => {
+ return this.listAllPagingPage(options);
+ }
+ };
+ }
+
+ private async *listAllPagingPage(
+ options?: ReservationListAllOptionalParams
+ ): AsyncIterableIterator {
+ let result = await this._listAll(options);
+ yield result.value || [];
+ let continuationToken = result.nextLink;
+ while (continuationToken) {
+ result = await this._listAllNext(continuationToken, options);
+ continuationToken = result.nextLink;
+ yield result.value || [];
+ }
+ }
+
+ private async *listAllPagingAll(
+ options?: ReservationListAllOptionalParams
+ ): AsyncIterableIterator {
+ for await (const page of this.listAllPagingPage(options)) {
+ yield* page;
+ }
+ }
+
/**
* Get Available Scopes for `Reservation`.
- * @summary Get Available Scopes for `Reservation`.
+ *
* @param reservationOrderId Order Id of the reservation
* @param reservationId Id of the Reservation Item
- * @param body
- * @param [options] The optional parameters
- * @returns Promise
+ * @param body Available scope
+ * @param options The options parameters.
*/
- availableScopes(reservationOrderId: string, reservationId: string, body: Models.AvailableScopeRequest, options?: msRest.RequestOptionsBase): Promise {
- return this.beginAvailableScopes(reservationOrderId, reservationId, body, options)
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ async beginAvailableScopes(
+ reservationOrderId: string,
+ reservationId: string,
+ body: AvailableScopeRequest,
+ options?: ReservationAvailableScopesOptionalParams
+ ): Promise<
+ PollerLike<
+ PollOperationState,
+ ReservationAvailableScopesResponse
+ >
+ > {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
+ { reservationOrderId, reservationId, body, options },
+ availableScopesOperationSpec
+ );
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs
+ });
+ }
+
+ /**
+ * Get Available Scopes for `Reservation`.
+ *
+ * @param reservationOrderId Order Id of the reservation
+ * @param reservationId Id of the Reservation Item
+ * @param body Available scope
+ * @param options The options parameters.
+ */
+ async beginAvailableScopesAndWait(
+ reservationOrderId: string,
+ reservationId: string,
+ body: AvailableScopeRequest,
+ options?: ReservationAvailableScopesOptionalParams
+ ): Promise {
+ const poller = await this.beginAvailableScopes(
+ reservationOrderId,
+ reservationId,
+ body,
+ options
+ );
+ return poller.pollUntilDone();
}
/**
* Split a `Reservation` into two `Reservation`s with specified quantity distribution.
- * @summary Split the `Reservation`.
* @param reservationOrderId Order Id of the reservation
* @param body Information needed to Split a reservation item
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- split(reservationOrderId: string, body: Models.SplitRequest, options?: msRest.RequestOptionsBase): Promise {
- return this.beginSplit(reservationOrderId, body, options)
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ async beginSplit(
+ reservationOrderId: string,
+ body: SplitRequest,
+ options?: ReservationSplitOptionalParams
+ ): Promise<
+ PollerLike<
+ PollOperationState,
+ ReservationSplitResponse
+ >
+ > {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
+ { reservationOrderId, body, options },
+ splitOperationSpec
+ );
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs,
+ lroResourceLocationConfig: "location"
+ });
+ }
+
+ /**
+ * Split a `Reservation` into two `Reservation`s with specified quantity distribution.
+ * @param reservationOrderId Order Id of the reservation
+ * @param body Information needed to Split a reservation item
+ * @param options The options parameters.
+ */
+ async beginSplitAndWait(
+ reservationOrderId: string,
+ body: SplitRequest,
+ options?: ReservationSplitOptionalParams
+ ): Promise {
+ const poller = await this.beginSplit(reservationOrderId, body, options);
+ return poller.pollUntilDone();
}
/**
* Merge the specified `Reservation`s into a new `Reservation`. The two `Reservation`s being merged
* must have same properties.
- * @summary Merges two `Reservation`s.
* @param reservationOrderId Order Id of the reservation
* @param body Information needed for commercial request for a reservation
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- merge(reservationOrderId: string, body: Models.MergeRequest, options?: msRest.RequestOptionsBase): Promise {
- return this.beginMerge(reservationOrderId, body, options)
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
+ async beginMerge(
+ reservationOrderId: string,
+ body: MergeRequest,
+ options?: ReservationMergeOptionalParams
+ ): Promise<
+ PollerLike<
+ PollOperationState,
+ ReservationMergeResponse
+ >
+ > {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
+
+ const lro = new LroImpl(
+ sendOperation,
+ { reservationOrderId, body, options },
+ mergeOperationSpec
+ );
+ return new LroEngine(lro, {
+ resumeFrom: options?.resumeFrom,
+ intervalInMs: options?.updateIntervalInMs,
+ lroResourceLocationConfig: "location"
+ });
+ }
+
+ /**
+ * Merge the specified `Reservation`s into a new `Reservation`. The two `Reservation`s being merged
+ * must have same properties.
+ * @param reservationOrderId Order Id of the reservation
+ * @param body Information needed for commercial request for a reservation
+ * @param options The options parameters.
+ */
+ async beginMergeAndWait(
+ reservationOrderId: string,
+ body: MergeRequest,
+ options?: ReservationMergeOptionalParams
+ ): Promise {
+ const poller = await this.beginMerge(reservationOrderId, body, options);
+ return poller.pollUntilDone();
}
/**
* List `Reservation`s within a single `ReservationOrder`.
- * @summary Get `Reservation`s in a given reservation Order
* @param reservationOrderId Order Id of the reservation
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- list(reservationOrderId: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param reservationOrderId Order Id of the reservation
- * @param callback The callback
- */
- list(reservationOrderId: string, callback: msRest.ServiceCallback): void;
- /**
- * @param reservationOrderId Order Id of the reservation
- * @param options The optional parameters
- * @param callback The callback
- */
- list(reservationOrderId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- list(reservationOrderId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ private _list(
+ reservationOrderId: string,
+ options?: ReservationListOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- reservationOrderId,
- options
- },
- listOperationSpec,
- callback) as Promise;
+ { reservationOrderId, options },
+ listOperationSpec
+ );
}
/**
* Get specific `Reservation` details.
- * @summary Get `Reservation` details.
* @param reservationId Id of the Reservation Item
* @param reservationOrderId Order Id of the reservation
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- get(reservationId: string, reservationOrderId: string, options?: Models.ReservationGetOptionalParams): Promise;
- /**
- * @param reservationId Id of the Reservation Item
- * @param reservationOrderId Order Id of the reservation
- * @param callback The callback
- */
- get(reservationId: string, reservationOrderId: string, callback: msRest.ServiceCallback): void;
- /**
- * @param reservationId Id of the Reservation Item
- * @param reservationOrderId Order Id of the reservation
- * @param options The optional parameters
- * @param callback The callback
- */
- get(reservationId: string, reservationOrderId: string, options: Models.ReservationGetOptionalParams, callback: msRest.ServiceCallback): void;
- get(reservationId: string, reservationOrderId: string, options?: Models.ReservationGetOptionalParams | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
+ get(
+ reservationId: string,
+ reservationOrderId: string,
+ options?: ReservationGetOptionalParams
+ ): Promise {
return this.client.sendOperationRequest(
- {
- reservationId,
- reservationOrderId,
- options
- },
- getOperationSpec,
- callback) as Promise;
+ { reservationId, reservationOrderId, options },
+ getOperationSpec
+ );
}
/**
* Updates the applied scopes of the `Reservation`.
- * @summary Updates a `Reservation`.
* @param reservationOrderId Order Id of the reservation
* @param reservationId Id of the Reservation Item
* @param parameters Information needed to patch a reservation item
- * @param [options] The optional parameters
- * @returns Promise
+ * @param options The options parameters.
*/
- update(reservationOrderId: string, reservationId: string, parameters: Models.Patch, options?: msRest.RequestOptionsBase): Promise {
- return this.beginUpdate(reservationOrderId, reservationId, parameters, options)
- .then(lroPoller => lroPoller.pollUntilFinished()) as Promise;
- }
+ async beginUpdate(
+ reservationOrderId: string,
+ reservationId: string,
+ parameters: Patch,
+ options?: ReservationUpdateOptionalParams
+ ): Promise<
+ PollerLike<
+ PollOperationState,
+ ReservationUpdateResponse
+ >
+ > {
+ const directSendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ): Promise => {
+ return this.client.sendOperationRequest(args, spec);
+ };
+ const sendOperation = async (
+ args: coreClient.OperationArguments,
+ spec: coreClient.OperationSpec
+ ) => {
+ let currentRawResponse:
+ | coreClient.FullOperationResponse
+ | undefined = undefined;
+ const providedCallback = args.options?.onResponse;
+ const callback: coreClient.RawResponseCallback = (
+ rawResponse: coreClient.FullOperationResponse,
+ flatResponse: unknown
+ ) => {
+ currentRawResponse = rawResponse;
+ providedCallback?.(rawResponse, flatResponse);
+ };
+ const updatedArgs = {
+ ...args,
+ options: {
+ ...args.options,
+ onResponse: callback
+ }
+ };
+ const flatResponse = await directSendOperation(updatedArgs, spec);
+ return {
+ flatResponse,
+ rawResponse: {
+ statusCode: currentRawResponse!.status,
+ body: currentRawResponse!.parsedBody,
+ headers: currentRawResponse!.headers.toJSON()
+ }
+ };
+ };
- /**
- * List of all the revisions for the `Reservation`.
- * @summary Get `Reservation` revisions.
- * @param reservationId Id of the Reservation Item
- * @param reservationOrderId Order Id of the reservation
- * @param [options] The optional parameters
- * @returns Promise
- */
- listRevisions(reservationId: string, reservationOrderId: string, options?: msRest.RequestOptionsBase): Promise;
- /**
- * @param reservationId Id of the Reservation Item
- * @param reservationOrderId Order Id of the reservation
- * @param callback The callback
- */
- listRevisions(reservationId: string, reservationOrderId: string, callback: msRest.ServiceCallback): void;
- /**
- * @param reservationId Id of the Reservation Item
- * @param reservationOrderId Order Id of the reservation
- * @param options The optional parameters
- * @param callback The callback
- */
- listRevisions(reservationId: string, reservationOrderId: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void;
- listRevisions(reservationId: string, reservationOrderId: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise {
- return this.client.sendOperationRequest(
- {
- reservationId,
- reservationOrderId,
- options
- },
- listRevisionsOperationSpec,
- callback) as Promise;
- }
-
- /**
- * Get Available Scopes for `Reservation`.
- * @summary Get Available Scopes for `Reservation`.
- * @param reservationOrderId Order Id of the reservation
- * @param reservationId Id of the Reservation Item
- * @param body
- * @param [options] The optional parameters
- * @returns Promise
- */
- beginAvailableScopes(reservationOrderId: string, reservationId: string, body: Models.AvailableScopeRequest, options?: msRest.RequestOptionsBase): Promise {
- return this.client.sendLRORequest(
- {
- reservationOrderId,
- reservationId,
- body,
- options
- },
- beginAvailableScopesOperationSpec,
- options);
- }
-
- /**
- * Split a `Reservation` into two `Reservation`s with specified quantity distribution.
- * @summary Split the `Reservation`.
- * @param reservationOrderId Order Id of the reservation
- * @param body Information needed to Split a reservation item
- * @param [options] The optional parameters
- * @returns Promise
- */
- beginSplit(reservationOrderId: string, body: Models.SplitRequest, options?: msRest.RequestOptionsBase): Promise {
- return this.client.sendLRORequest(
- {
- reservationOrderId,
- body,
- options
- },
- beginSplitOperationSpec,
- options);
- }
-
- /**
- * Merge the specified `Reservation`s into a new `Reservation`. The two `Reservation`s being merged
- * must have same properties.
- * @summary Merges two `Reservation`s.
- * @param reservationOrderId Order Id of the reservation
- * @param body Information needed for commercial request for a reservation
- * @param [options] The optional parameters
- * @returns Promise
- */
- beginMerge(reservationOrderId: string, body: Models.MergeRequest, options?: msRest.RequestOptionsBase): Promise