@azure/arm-storagecache 4.3.0 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +11 -0
- package/LICENSE +21 -0
- package/README.md +70 -78
- package/dist/index.js +3916 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/ascOperationsGet.d.ts +2 -0
- package/dist-esm/samples-dev/ascOperationsGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/ascOperationsGet.js +31 -0
- package/dist-esm/samples-dev/ascOperationsGet.js.map +1 -0
- package/dist-esm/samples-dev/cachesCreateOrUpdate.d.ts +2 -0
- package/dist-esm/samples-dev/cachesCreateOrUpdate.d.ts.map +1 -0
- package/dist-esm/samples-dev/cachesCreateOrUpdate.js +89 -0
- package/dist-esm/samples-dev/cachesCreateOrUpdate.js.map +1 -0
- package/dist-esm/samples-dev/cachesCreateOrUpdateLdapOnly.d.ts +2 -0
- package/dist-esm/samples-dev/cachesCreateOrUpdateLdapOnly.d.ts.map +1 -0
- package/dist-esm/samples-dev/cachesCreateOrUpdateLdapOnly.js +75 -0
- package/dist-esm/samples-dev/cachesCreateOrUpdateLdapOnly.js.map +1 -0
- package/dist-esm/samples-dev/cachesDebugInfo.d.ts +2 -0
- package/dist-esm/samples-dev/cachesDebugInfo.d.ts.map +1 -0
- package/dist-esm/samples-dev/cachesDebugInfo.js +31 -0
- package/dist-esm/samples-dev/cachesDebugInfo.js.map +1 -0
- package/dist-esm/samples-dev/cachesDelete.d.ts +2 -0
- package/dist-esm/samples-dev/cachesDelete.d.ts.map +1 -0
- package/dist-esm/samples-dev/cachesDelete.js +31 -0
- package/dist-esm/samples-dev/cachesDelete.js.map +1 -0
- package/dist-esm/samples-dev/cachesDnsRefresh.d.ts +2 -0
- package/dist-esm/samples-dev/cachesDnsRefresh.d.ts.map +1 -0
- package/dist-esm/samples-dev/cachesDnsRefresh.js +32 -0
- package/dist-esm/samples-dev/cachesDnsRefresh.js.map +1 -0
- package/dist-esm/samples-dev/cachesFlush.d.ts +2 -0
- package/dist-esm/samples-dev/cachesFlush.d.ts.map +1 -0
- package/dist-esm/samples-dev/cachesFlush.js +31 -0
- package/dist-esm/samples-dev/cachesFlush.js.map +1 -0
- package/dist-esm/samples-dev/cachesGet.d.ts +2 -0
- package/dist-esm/samples-dev/cachesGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/cachesGet.js +31 -0
- package/dist-esm/samples-dev/cachesGet.js.map +1 -0
- package/dist-esm/samples-dev/cachesList.d.ts +2 -0
- package/dist-esm/samples-dev/cachesList.d.ts.map +1 -0
- package/dist-esm/samples-dev/cachesList.js +43 -0
- package/dist-esm/samples-dev/cachesList.js.map +1 -0
- package/dist-esm/samples-dev/cachesListByResourceGroup.d.ts +2 -0
- package/dist-esm/samples-dev/cachesListByResourceGroup.d.ts.map +1 -0
- package/dist-esm/samples-dev/cachesListByResourceGroup.js +44 -0
- package/dist-esm/samples-dev/cachesListByResourceGroup.js.map +1 -0
- package/dist-esm/samples-dev/cachesStart.d.ts +2 -0
- package/dist-esm/samples-dev/cachesStart.d.ts.map +1 -0
- package/dist-esm/samples-dev/cachesStart.js +31 -0
- package/dist-esm/samples-dev/cachesStart.js.map +1 -0
- package/dist-esm/samples-dev/cachesStop.d.ts +2 -0
- package/dist-esm/samples-dev/cachesStop.d.ts.map +1 -0
- package/dist-esm/samples-dev/cachesStop.js +31 -0
- package/dist-esm/samples-dev/cachesStop.js.map +1 -0
- package/dist-esm/samples-dev/cachesUpdate.d.ts +2 -0
- package/dist-esm/samples-dev/cachesUpdate.d.ts.map +1 -0
- package/dist-esm/samples-dev/cachesUpdate.js +101 -0
- package/dist-esm/samples-dev/cachesUpdate.js.map +1 -0
- package/dist-esm/samples-dev/cachesUpdateLdapOnly.d.ts +2 -0
- package/dist-esm/samples-dev/cachesUpdateLdapOnly.d.ts.map +1 -0
- package/dist-esm/samples-dev/cachesUpdateLdapOnly.js +103 -0
- package/dist-esm/samples-dev/cachesUpdateLdapOnly.js.map +1 -0
- package/dist-esm/samples-dev/cachesUpgradeFirmware.d.ts +2 -0
- package/dist-esm/samples-dev/cachesUpgradeFirmware.d.ts.map +1 -0
- package/dist-esm/samples-dev/cachesUpgradeFirmware.js +31 -0
- package/dist-esm/samples-dev/cachesUpgradeFirmware.js.map +1 -0
- package/dist-esm/samples-dev/skusList.d.ts +2 -0
- package/dist-esm/samples-dev/skusList.d.ts.map +1 -0
- package/dist-esm/samples-dev/skusList.js +43 -0
- package/dist-esm/samples-dev/skusList.js.map +1 -0
- package/dist-esm/samples-dev/storageTargetsCreateOrUpdate.d.ts +2 -0
- package/dist-esm/samples-dev/storageTargetsCreateOrUpdate.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTargetsCreateOrUpdate.js +51 -0
- package/dist-esm/samples-dev/storageTargetsCreateOrUpdate.js.map +1 -0
- package/dist-esm/samples-dev/storageTargetsCreateOrUpdateBlobNfs.d.ts +2 -0
- package/dist-esm/samples-dev/storageTargetsCreateOrUpdateBlobNfs.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTargetsCreateOrUpdateBlobNfs.js +41 -0
- package/dist-esm/samples-dev/storageTargetsCreateOrUpdateBlobNfs.js.map +1 -0
- package/dist-esm/samples-dev/storageTargetsCreateOrUpdateNoJunctions.d.ts +2 -0
- package/dist-esm/samples-dev/storageTargetsCreateOrUpdateNoJunctions.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTargetsCreateOrUpdateNoJunctions.js +37 -0
- package/dist-esm/samples-dev/storageTargetsCreateOrUpdateNoJunctions.js.map +1 -0
- package/dist-esm/samples-dev/storageTargetsDelete.d.ts +2 -0
- package/dist-esm/samples-dev/storageTargetsDelete.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTargetsDelete.js +32 -0
- package/dist-esm/samples-dev/storageTargetsDelete.js.map +1 -0
- package/dist-esm/samples-dev/storageTargetsFlush.d.ts +2 -0
- package/dist-esm/samples-dev/storageTargetsFlush.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTargetsFlush.js +32 -0
- package/dist-esm/samples-dev/storageTargetsFlush.js.map +1 -0
- package/dist-esm/samples-dev/storageTargetsGet.d.ts +2 -0
- package/dist-esm/samples-dev/storageTargetsGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTargetsGet.js +32 -0
- package/dist-esm/samples-dev/storageTargetsGet.js.map +1 -0
- package/dist-esm/samples-dev/storageTargetsList.d.ts +2 -0
- package/dist-esm/samples-dev/storageTargetsList.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTargetsList.js +45 -0
- package/dist-esm/samples-dev/storageTargetsList.js.map +1 -0
- package/dist-esm/samples-dev/storageTargetsResume.d.ts +2 -0
- package/dist-esm/samples-dev/storageTargetsResume.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTargetsResume.js +32 -0
- package/dist-esm/samples-dev/storageTargetsResume.js.map +1 -0
- package/dist-esm/samples-dev/storageTargetsSuspend.d.ts +2 -0
- package/dist-esm/samples-dev/storageTargetsSuspend.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTargetsSuspend.js +32 -0
- package/dist-esm/samples-dev/storageTargetsSuspend.js.map +1 -0
- package/dist-esm/samples-dev/usageModelsList.d.ts +2 -0
- package/dist-esm/samples-dev/usageModelsList.d.ts.map +1 -0
- package/dist-esm/samples-dev/usageModelsList.js +43 -0
- package/dist-esm/samples-dev/usageModelsList.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/{esm/models/ascOperationsMappers.js → dist-esm/src/index.js} +5 -2
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +1030 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +114 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +49 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +848 -893
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +16 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.js +71 -42
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/ascOperations.d.ts +20 -0
- package/dist-esm/src/operations/ascOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/ascOperations.js +53 -0
- package/dist-esm/src/operations/ascOperations.js.map +1 -0
- package/dist-esm/src/operations/caches.d.ts +184 -0
- package/dist-esm/src/operations/caches.d.ts.map +1 -0
- package/dist-esm/src/operations/caches.js +825 -0
- package/dist-esm/src/operations/caches.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/skus.d.ts +32 -0
- package/dist-esm/src/operations/skus.d.ts.map +1 -0
- package/dist-esm/src/operations/skus.js +124 -0
- package/dist-esm/src/operations/skus.js.map +1 -0
- package/dist-esm/src/operations/storageTargetOperations.d.ts +70 -0
- package/dist-esm/src/operations/storageTargetOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/storageTargetOperations.js +259 -0
- package/dist-esm/src/operations/storageTargetOperations.js.map +1 -0
- package/dist-esm/src/operations/storageTargets.d.ts +115 -0
- package/dist-esm/src/operations/storageTargets.d.ts.map +1 -0
- package/dist-esm/src/operations/storageTargets.js +424 -0
- package/dist-esm/src/operations/storageTargets.js.map +1 -0
- package/dist-esm/src/operations/usageModels.d.ts +32 -0
- package/dist-esm/src/operations/usageModels.d.ts.map +1 -0
- package/dist-esm/src/operations/usageModels.js +124 -0
- package/dist-esm/src/operations/usageModels.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/ascOperations.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/ascOperations.d.ts.map +1 -0
- package/{src/models/ascOperationsMappers.ts → dist-esm/src/operationsInterfaces/ascOperations.js} +2 -6
- package/dist-esm/src/operationsInterfaces/ascOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/caches.d.ts +148 -0
- package/dist-esm/src/operationsInterfaces/caches.d.ts.map +1 -0
- package/{src/models/storageTargetOperationsMappers.ts → dist-esm/src/operationsInterfaces/caches.js} +2 -4
- package/dist-esm/src/operationsInterfaces/caches.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +8 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +15 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/{esm/models/storageTargetOperationsMappers.js → dist-esm/src/operationsInterfaces/operations.js} +2 -2
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/skus.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/skus.d.ts.map +1 -0
- package/{esm/models/index.js → dist-esm/src/operationsInterfaces/skus.js} +2 -1
- package/dist-esm/src/operationsInterfaces/skus.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/storageTargetOperations.d.ts +62 -0
- package/dist-esm/src/operationsInterfaces/storageTargetOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/storageTargetOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/storageTargetOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/storageTargets.d.ts +88 -0
- package/dist-esm/src/operationsInterfaces/storageTargets.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/storageTargets.js +9 -0
- package/dist-esm/src/operationsInterfaces/storageTargets.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/usageModels.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/usageModels.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/usageModels.js +9 -0
- package/dist-esm/src/operationsInterfaces/usageModels.js.map +1 -0
- package/dist-esm/src/storageCacheManagementClient.d.ts +25 -0
- package/dist-esm/src/storageCacheManagementClient.d.ts.map +1 -0
- package/dist-esm/src/storageCacheManagementClient.js +58 -0
- package/dist-esm/src/storageCacheManagementClient.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +80 -33
- package/review/arm-storagecache.api.md +883 -0
- package/rollup.config.js +181 -30
- package/src/{models/skusMappers.ts → index.ts} +4 -8
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +819 -1303
- package/src/models/mappers.ts +856 -900
- package/src/models/parameters.ts +92 -43
- package/src/operations/ascOperations.ts +37 -51
- package/src/operations/caches.ts +844 -504
- package/src/operations/index.ts +1 -2
- package/src/operations/operations.ts +85 -73
- package/src/operations/skus.ts +87 -76
- package/src/operations/storageTargetOperations.ts +284 -124
- package/src/operations/storageTargets.ts +458 -271
- package/src/operations/usageModels.ts +90 -76
- package/src/operationsInterfaces/ascOperations.ts +27 -0
- package/src/operationsInterfaces/caches.ts +245 -0
- package/src/{models/operationsMappers.ts → operationsInterfaces/index.ts} +7 -9
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/skus.ts +22 -0
- package/src/operationsInterfaces/storageTargetOperations.ts +104 -0
- package/src/operationsInterfaces/storageTargets.ts +150 -0
- package/src/operationsInterfaces/usageModels.ts +22 -0
- package/src/storageCacheManagementClient.ts +90 -46
- package/tsconfig.json +5 -4
- package/types/arm-storagecache.d.ts +1507 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-storagecache.js +0 -3545
- package/dist/arm-storagecache.js.map +0 -1
- package/dist/arm-storagecache.min.js +0 -1
- package/dist/arm-storagecache.min.js.map +0 -1
- package/esm/models/ascOperationsMappers.d.ts +0 -2
- package/esm/models/ascOperationsMappers.d.ts.map +0 -1
- package/esm/models/ascOperationsMappers.js.map +0 -1
- package/esm/models/cachesMappers.d.ts +0 -2
- package/esm/models/cachesMappers.d.ts.map +0 -1
- package/esm/models/cachesMappers.js +0 -9
- package/esm/models/cachesMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -1541
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -50
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js +0 -9
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -12
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/skusMappers.d.ts +0 -2
- package/esm/models/skusMappers.d.ts.map +0 -1
- package/esm/models/skusMappers.js +0 -9
- package/esm/models/skusMappers.js.map +0 -1
- package/esm/models/storageTargetOperationsMappers.d.ts +0 -2
- package/esm/models/storageTargetOperationsMappers.d.ts.map +0 -1
- package/esm/models/storageTargetOperationsMappers.js.map +0 -1
- package/esm/models/storageTargetsMappers.d.ts +0 -2
- package/esm/models/storageTargetsMappers.d.ts.map +0 -1
- package/esm/models/storageTargetsMappers.js +0 -9
- package/esm/models/storageTargetsMappers.js.map +0 -1
- package/esm/models/usageModelsMappers.d.ts +0 -2
- package/esm/models/usageModelsMappers.d.ts.map +0 -1
- package/esm/models/usageModelsMappers.js +0 -9
- package/esm/models/usageModelsMappers.js.map +0 -1
- package/esm/operations/ascOperations.d.ts +0 -34
- package/esm/operations/ascOperations.d.ts.map +0 -1
- package/esm/operations/ascOperations.js +0 -57
- package/esm/operations/ascOperations.js.map +0 -1
- package/esm/operations/caches.d.ts +0 -261
- package/esm/operations/caches.d.ts.map +0 -1
- package/esm/operations/caches.js +0 -581
- package/esm/operations/caches.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -79
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/skus.d.ts +0 -46
- package/esm/operations/skus.d.ts.map +0 -1
- package/esm/operations/skus.js +0 -82
- package/esm/operations/skus.js.map +0 -1
- package/esm/operations/storageTargetOperations.d.ts +0 -75
- package/esm/operations/storageTargetOperations.d.ts.map +0 -1
- package/esm/operations/storageTargetOperations.js +0 -193
- package/esm/operations/storageTargetOperations.js.map +0 -1
- package/esm/operations/storageTargets.d.ts +0 -153
- package/esm/operations/storageTargets.d.ts.map +0 -1
- package/esm/operations/storageTargets.js +0 -305
- package/esm/operations/storageTargets.js.map +0 -1
- package/esm/operations/usageModels.d.ts +0 -46
- package/esm/operations/usageModels.d.ts.map +0 -1
- package/esm/operations/usageModels.js +0 -82
- package/esm/operations/usageModels.js.map +0 -1
- package/esm/storageCacheManagementClient.d.ts +0 -31
- package/esm/storageCacheManagementClient.d.ts.map +0 -1
- package/esm/storageCacheManagementClient.js +0 -44
- package/esm/storageCacheManagementClient.js.map +0 -1
- package/esm/storageCacheManagementClientContext.d.ts +0 -23
- package/esm/storageCacheManagementClientContext.d.ts.map +0 -1
- package/esm/storageCacheManagementClientContext.js +0 -61
- package/esm/storageCacheManagementClientContext.js.map +0 -1
- package/src/models/cachesMappers.ts +0 -40
- package/src/models/storageTargetsMappers.ts +0 -40
- package/src/models/usageModelsMappers.ts +0 -14
- package/src/storageCacheManagementClientContext.ts +0 -68
package/src/operations/caches.ts
CHANGED
|
@@ -3,450 +3,823 @@
|
|
|
3
3
|
* Licensed under the MIT License.
|
|
4
4
|
*
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
7
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
7
|
*/
|
|
9
8
|
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import * as
|
|
13
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Caches } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
14
13
|
import * as Parameters from "../models/parameters";
|
|
15
|
-
import {
|
|
14
|
+
import { StorageCacheManagementClient } from "../storageCacheManagementClient";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
Cache,
|
|
19
|
+
CachesListNextOptionalParams,
|
|
20
|
+
CachesListOptionalParams,
|
|
21
|
+
CachesListByResourceGroupNextOptionalParams,
|
|
22
|
+
CachesListByResourceGroupOptionalParams,
|
|
23
|
+
CachesListResponse,
|
|
24
|
+
CachesListByResourceGroupResponse,
|
|
25
|
+
CachesDeleteOptionalParams,
|
|
26
|
+
CachesGetOptionalParams,
|
|
27
|
+
CachesGetResponse,
|
|
28
|
+
CachesCreateOrUpdateOptionalParams,
|
|
29
|
+
CachesCreateOrUpdateResponse,
|
|
30
|
+
CachesUpdateOptionalParams,
|
|
31
|
+
CachesUpdateResponse,
|
|
32
|
+
CachesDebugInfoOptionalParams,
|
|
33
|
+
CachesFlushOptionalParams,
|
|
34
|
+
CachesStartOptionalParams,
|
|
35
|
+
CachesStopOptionalParams,
|
|
36
|
+
CachesUpgradeFirmwareOptionalParams,
|
|
37
|
+
CachesListNextResponse,
|
|
38
|
+
CachesListByResourceGroupNextResponse
|
|
39
|
+
} from "../models";
|
|
16
40
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
41
|
+
/// <reference lib="esnext.asynciterable" />
|
|
42
|
+
/** Class containing Caches operations. */
|
|
43
|
+
export class CachesImpl implements Caches {
|
|
44
|
+
private readonly client: StorageCacheManagementClient;
|
|
20
45
|
|
|
21
46
|
/**
|
|
22
|
-
*
|
|
23
|
-
* @param
|
|
47
|
+
* Initialize a new instance of the class Caches class.
|
|
48
|
+
* @param client Reference to the service client
|
|
24
49
|
*/
|
|
25
|
-
constructor(client:
|
|
50
|
+
constructor(client: StorageCacheManagementClient) {
|
|
26
51
|
this.client = client;
|
|
27
52
|
}
|
|
28
53
|
|
|
29
54
|
/**
|
|
30
55
|
* Returns all Caches the user has access to under a subscription.
|
|
31
|
-
* @param
|
|
32
|
-
* @returns Promise<Models.CachesListResponse>
|
|
56
|
+
* @param options The options parameters.
|
|
33
57
|
*/
|
|
34
|
-
list(
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CachesListResult>, callback?: msRest.ServiceCallback<Models.CachesListResult>): Promise<Models.CachesListResponse> {
|
|
45
|
-
return this.client.sendOperationRequest(
|
|
46
|
-
{
|
|
47
|
-
options
|
|
58
|
+
public list(
|
|
59
|
+
options?: CachesListOptionalParams
|
|
60
|
+
): PagedAsyncIterableIterator<Cache> {
|
|
61
|
+
const iter = this.listPagingAll(options);
|
|
62
|
+
return {
|
|
63
|
+
next() {
|
|
64
|
+
return iter.next();
|
|
65
|
+
},
|
|
66
|
+
[Symbol.asyncIterator]() {
|
|
67
|
+
return this;
|
|
48
68
|
},
|
|
49
|
-
|
|
50
|
-
|
|
69
|
+
byPage: () => {
|
|
70
|
+
return this.listPagingPage(options);
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
private async *listPagingPage(
|
|
76
|
+
options?: CachesListOptionalParams
|
|
77
|
+
): AsyncIterableIterator<Cache[]> {
|
|
78
|
+
let result = await this._list(options);
|
|
79
|
+
yield result.value || [];
|
|
80
|
+
let continuationToken = result.nextLink;
|
|
81
|
+
while (continuationToken) {
|
|
82
|
+
result = await this._listNext(continuationToken, options);
|
|
83
|
+
continuationToken = result.nextLink;
|
|
84
|
+
yield result.value || [];
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
private async *listPagingAll(
|
|
89
|
+
options?: CachesListOptionalParams
|
|
90
|
+
): AsyncIterableIterator<Cache> {
|
|
91
|
+
for await (const page of this.listPagingPage(options)) {
|
|
92
|
+
yield* page;
|
|
93
|
+
}
|
|
51
94
|
}
|
|
52
95
|
|
|
53
96
|
/**
|
|
54
97
|
* Returns all Caches the user has access to under a resource group.
|
|
55
98
|
* @param resourceGroupName Target resource group.
|
|
56
|
-
* @param
|
|
57
|
-
* @returns Promise<Models.CachesListByResourceGroupResponse>
|
|
58
|
-
*/
|
|
59
|
-
listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise<Models.CachesListByResourceGroupResponse>;
|
|
60
|
-
/**
|
|
61
|
-
* @param resourceGroupName Target resource group.
|
|
62
|
-
* @param callback The callback
|
|
63
|
-
*/
|
|
64
|
-
listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback<Models.CachesListResult>): void;
|
|
65
|
-
/**
|
|
66
|
-
* @param resourceGroupName Target resource group.
|
|
67
|
-
* @param options The optional parameters
|
|
68
|
-
* @param callback The callback
|
|
99
|
+
* @param options The options parameters.
|
|
69
100
|
*/
|
|
70
|
-
listByResourceGroup(
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
101
|
+
public listByResourceGroup(
|
|
102
|
+
resourceGroupName: string,
|
|
103
|
+
options?: CachesListByResourceGroupOptionalParams
|
|
104
|
+
): PagedAsyncIterableIterator<Cache> {
|
|
105
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
106
|
+
return {
|
|
107
|
+
next() {
|
|
108
|
+
return iter.next();
|
|
109
|
+
},
|
|
110
|
+
[Symbol.asyncIterator]() {
|
|
111
|
+
return this;
|
|
112
|
+
},
|
|
113
|
+
byPage: () => {
|
|
114
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
private async *listByResourceGroupPagingPage(
|
|
120
|
+
resourceGroupName: string,
|
|
121
|
+
options?: CachesListByResourceGroupOptionalParams
|
|
122
|
+
): AsyncIterableIterator<Cache[]> {
|
|
123
|
+
let result = await this._listByResourceGroup(resourceGroupName, options);
|
|
124
|
+
yield result.value || [];
|
|
125
|
+
let continuationToken = result.nextLink;
|
|
126
|
+
while (continuationToken) {
|
|
127
|
+
result = await this._listByResourceGroupNext(
|
|
74
128
|
resourceGroupName,
|
|
129
|
+
continuationToken,
|
|
75
130
|
options
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
131
|
+
);
|
|
132
|
+
continuationToken = result.nextLink;
|
|
133
|
+
yield result.value || [];
|
|
134
|
+
}
|
|
79
135
|
}
|
|
80
136
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
.then(lroPoller => lroPoller.pollUntilFinished());
|
|
137
|
+
private async *listByResourceGroupPagingAll(
|
|
138
|
+
resourceGroupName: string,
|
|
139
|
+
options?: CachesListByResourceGroupOptionalParams
|
|
140
|
+
): AsyncIterableIterator<Cache> {
|
|
141
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
|
142
|
+
resourceGroupName,
|
|
143
|
+
options
|
|
144
|
+
)) {
|
|
145
|
+
yield* page;
|
|
146
|
+
}
|
|
92
147
|
}
|
|
93
148
|
|
|
94
149
|
/**
|
|
95
|
-
* Returns a
|
|
96
|
-
* @param
|
|
97
|
-
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be
|
|
98
|
-
* from the [-0-9a-zA-Z_] char class.
|
|
99
|
-
* @param [options] The optional parameters
|
|
100
|
-
* @returns Promise<Models.CachesGetResponse>
|
|
101
|
-
*/
|
|
102
|
-
get(resourceGroupName: string, cacheName: string, options?: msRest.RequestOptionsBase): Promise<Models.CachesGetResponse>;
|
|
103
|
-
/**
|
|
104
|
-
* @param resourceGroupName Target resource group.
|
|
105
|
-
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be
|
|
106
|
-
* from the [-0-9a-zA-Z_] char class.
|
|
107
|
-
* @param callback The callback
|
|
150
|
+
* Returns all Caches the user has access to under a subscription.
|
|
151
|
+
* @param options The options parameters.
|
|
108
152
|
*/
|
|
109
|
-
|
|
153
|
+
private _list(
|
|
154
|
+
options?: CachesListOptionalParams
|
|
155
|
+
): Promise<CachesListResponse> {
|
|
156
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
157
|
+
}
|
|
158
|
+
|
|
110
159
|
/**
|
|
160
|
+
* Returns all Caches the user has access to under a resource group.
|
|
111
161
|
* @param resourceGroupName Target resource group.
|
|
112
|
-
* @param
|
|
113
|
-
* from the [-0-9a-zA-Z_] char class.
|
|
114
|
-
* @param options The optional parameters
|
|
115
|
-
* @param callback The callback
|
|
162
|
+
* @param options The options parameters.
|
|
116
163
|
*/
|
|
117
|
-
|
|
118
|
-
|
|
164
|
+
private _listByResourceGroup(
|
|
165
|
+
resourceGroupName: string,
|
|
166
|
+
options?: CachesListByResourceGroupOptionalParams
|
|
167
|
+
): Promise<CachesListByResourceGroupResponse> {
|
|
119
168
|
return this.client.sendOperationRequest(
|
|
120
|
-
{
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
options
|
|
124
|
-
},
|
|
125
|
-
getOperationSpec,
|
|
126
|
-
callback) as Promise<Models.CachesGetResponse>;
|
|
169
|
+
{ resourceGroupName, options },
|
|
170
|
+
listByResourceGroupOperationSpec
|
|
171
|
+
);
|
|
127
172
|
}
|
|
128
173
|
|
|
129
174
|
/**
|
|
130
|
-
*
|
|
175
|
+
* Schedules a Cache for deletion.
|
|
131
176
|
* @param resourceGroupName Target resource group.
|
|
132
|
-
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be
|
|
133
|
-
*
|
|
134
|
-
* @param
|
|
135
|
-
* @returns Promise<Models.CachesCreateOrUpdateResponse>
|
|
177
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
178
|
+
* the [-0-9a-zA-Z_] char class.
|
|
179
|
+
* @param options The options parameters.
|
|
136
180
|
*/
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
181
|
+
async beginDelete(
|
|
182
|
+
resourceGroupName: string,
|
|
183
|
+
cacheName: string,
|
|
184
|
+
options?: CachesDeleteOptionalParams
|
|
185
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
186
|
+
const directSendOperation = async (
|
|
187
|
+
args: coreClient.OperationArguments,
|
|
188
|
+
spec: coreClient.OperationSpec
|
|
189
|
+
): Promise<void> => {
|
|
190
|
+
return this.client.sendOperationRequest(args, spec);
|
|
191
|
+
};
|
|
192
|
+
const sendOperation = async (
|
|
193
|
+
args: coreClient.OperationArguments,
|
|
194
|
+
spec: coreClient.OperationSpec
|
|
195
|
+
) => {
|
|
196
|
+
let currentRawResponse:
|
|
197
|
+
| coreClient.FullOperationResponse
|
|
198
|
+
| undefined = undefined;
|
|
199
|
+
const providedCallback = args.options?.onResponse;
|
|
200
|
+
const callback: coreClient.RawResponseCallback = (
|
|
201
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
202
|
+
flatResponse: unknown
|
|
203
|
+
) => {
|
|
204
|
+
currentRawResponse = rawResponse;
|
|
205
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
206
|
+
};
|
|
207
|
+
const updatedArgs = {
|
|
208
|
+
...args,
|
|
209
|
+
options: {
|
|
210
|
+
...args.options,
|
|
211
|
+
onResponse: callback
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
215
|
+
return {
|
|
216
|
+
flatResponse,
|
|
217
|
+
rawResponse: {
|
|
218
|
+
statusCode: currentRawResponse!.status,
|
|
219
|
+
body: currentRawResponse!.parsedBody,
|
|
220
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
|
|
225
|
+
const lro = new LroImpl(
|
|
226
|
+
sendOperation,
|
|
227
|
+
{ resourceGroupName, cacheName, options },
|
|
228
|
+
deleteOperationSpec
|
|
229
|
+
);
|
|
230
|
+
return new LroEngine(lro, {
|
|
231
|
+
resumeFrom: options?.resumeFrom,
|
|
232
|
+
intervalInMs: options?.updateIntervalInMs
|
|
233
|
+
});
|
|
140
234
|
}
|
|
141
235
|
|
|
142
236
|
/**
|
|
143
|
-
*
|
|
144
|
-
* @param resourceGroupName Target resource group.
|
|
145
|
-
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be
|
|
146
|
-
* from the [-0-9a-zA-Z_] char class.
|
|
147
|
-
* @param [options] The optional parameters
|
|
148
|
-
* @returns Promise<Models.CachesUpdateResponse>
|
|
149
|
-
*/
|
|
150
|
-
update(resourceGroupName: string, cacheName: string, options?: Models.CachesUpdateOptionalParams): Promise<Models.CachesUpdateResponse>;
|
|
151
|
-
/**
|
|
237
|
+
* Schedules a Cache for deletion.
|
|
152
238
|
* @param resourceGroupName Target resource group.
|
|
153
|
-
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be
|
|
154
|
-
*
|
|
155
|
-
* @param
|
|
239
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
240
|
+
* the [-0-9a-zA-Z_] char class.
|
|
241
|
+
* @param options The options parameters.
|
|
156
242
|
*/
|
|
157
|
-
|
|
243
|
+
async beginDeleteAndWait(
|
|
244
|
+
resourceGroupName: string,
|
|
245
|
+
cacheName: string,
|
|
246
|
+
options?: CachesDeleteOptionalParams
|
|
247
|
+
): Promise<void> {
|
|
248
|
+
const poller = await this.beginDelete(
|
|
249
|
+
resourceGroupName,
|
|
250
|
+
cacheName,
|
|
251
|
+
options
|
|
252
|
+
);
|
|
253
|
+
return poller.pollUntilDone();
|
|
254
|
+
}
|
|
255
|
+
|
|
158
256
|
/**
|
|
257
|
+
* Returns a Cache.
|
|
159
258
|
* @param resourceGroupName Target resource group.
|
|
160
|
-
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be
|
|
161
|
-
*
|
|
162
|
-
* @param options The
|
|
163
|
-
* @param callback The callback
|
|
259
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
260
|
+
* the [-0-9a-zA-Z_] char class.
|
|
261
|
+
* @param options The options parameters.
|
|
164
262
|
*/
|
|
165
|
-
|
|
166
|
-
|
|
263
|
+
get(
|
|
264
|
+
resourceGroupName: string,
|
|
265
|
+
cacheName: string,
|
|
266
|
+
options?: CachesGetOptionalParams
|
|
267
|
+
): Promise<CachesGetResponse> {
|
|
167
268
|
return this.client.sendOperationRequest(
|
|
168
|
-
{
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
options
|
|
172
|
-
},
|
|
173
|
-
updateOperationSpec,
|
|
174
|
-
callback) as Promise<Models.CachesUpdateResponse>;
|
|
269
|
+
{ resourceGroupName, cacheName, options },
|
|
270
|
+
getOperationSpec
|
|
271
|
+
);
|
|
175
272
|
}
|
|
176
273
|
|
|
177
274
|
/**
|
|
178
|
-
*
|
|
275
|
+
* Create or update a Cache.
|
|
179
276
|
* @param resourceGroupName Target resource group.
|
|
180
|
-
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be
|
|
181
|
-
*
|
|
182
|
-
* @param
|
|
183
|
-
* @returns Promise<msRest.RestResponse>
|
|
277
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
278
|
+
* the [-0-9a-zA-Z_] char class.
|
|
279
|
+
* @param options The options parameters.
|
|
184
280
|
*/
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
281
|
+
async beginCreateOrUpdate(
|
|
282
|
+
resourceGroupName: string,
|
|
283
|
+
cacheName: string,
|
|
284
|
+
options?: CachesCreateOrUpdateOptionalParams
|
|
285
|
+
): Promise<
|
|
286
|
+
PollerLike<
|
|
287
|
+
PollOperationState<CachesCreateOrUpdateResponse>,
|
|
288
|
+
CachesCreateOrUpdateResponse
|
|
289
|
+
>
|
|
290
|
+
> {
|
|
291
|
+
const directSendOperation = async (
|
|
292
|
+
args: coreClient.OperationArguments,
|
|
293
|
+
spec: coreClient.OperationSpec
|
|
294
|
+
): Promise<CachesCreateOrUpdateResponse> => {
|
|
295
|
+
return this.client.sendOperationRequest(args, spec);
|
|
296
|
+
};
|
|
297
|
+
const sendOperation = async (
|
|
298
|
+
args: coreClient.OperationArguments,
|
|
299
|
+
spec: coreClient.OperationSpec
|
|
300
|
+
) => {
|
|
301
|
+
let currentRawResponse:
|
|
302
|
+
| coreClient.FullOperationResponse
|
|
303
|
+
| undefined = undefined;
|
|
304
|
+
const providedCallback = args.options?.onResponse;
|
|
305
|
+
const callback: coreClient.RawResponseCallback = (
|
|
306
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
307
|
+
flatResponse: unknown
|
|
308
|
+
) => {
|
|
309
|
+
currentRawResponse = rawResponse;
|
|
310
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
311
|
+
};
|
|
312
|
+
const updatedArgs = {
|
|
313
|
+
...args,
|
|
314
|
+
options: {
|
|
315
|
+
...args.options,
|
|
316
|
+
onResponse: callback
|
|
317
|
+
}
|
|
318
|
+
};
|
|
319
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
320
|
+
return {
|
|
321
|
+
flatResponse,
|
|
322
|
+
rawResponse: {
|
|
323
|
+
statusCode: currentRawResponse!.status,
|
|
324
|
+
body: currentRawResponse!.parsedBody,
|
|
325
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
326
|
+
}
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
|
|
330
|
+
const lro = new LroImpl(
|
|
331
|
+
sendOperation,
|
|
332
|
+
{ resourceGroupName, cacheName, options },
|
|
333
|
+
createOrUpdateOperationSpec
|
|
334
|
+
);
|
|
335
|
+
return new LroEngine(lro, {
|
|
336
|
+
resumeFrom: options?.resumeFrom,
|
|
337
|
+
intervalInMs: options?.updateIntervalInMs
|
|
338
|
+
});
|
|
188
339
|
}
|
|
189
340
|
|
|
190
341
|
/**
|
|
191
|
-
*
|
|
192
|
-
* see errors returned until the flush is complete.
|
|
342
|
+
* Create or update a Cache.
|
|
193
343
|
* @param resourceGroupName Target resource group.
|
|
194
|
-
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be
|
|
195
|
-
*
|
|
196
|
-
* @param
|
|
197
|
-
* @returns Promise<msRest.RestResponse>
|
|
344
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
345
|
+
* the [-0-9a-zA-Z_] char class.
|
|
346
|
+
* @param options The options parameters.
|
|
198
347
|
*/
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
348
|
+
async beginCreateOrUpdateAndWait(
|
|
349
|
+
resourceGroupName: string,
|
|
350
|
+
cacheName: string,
|
|
351
|
+
options?: CachesCreateOrUpdateOptionalParams
|
|
352
|
+
): Promise<CachesCreateOrUpdateResponse> {
|
|
353
|
+
const poller = await this.beginCreateOrUpdate(
|
|
354
|
+
resourceGroupName,
|
|
355
|
+
cacheName,
|
|
356
|
+
options
|
|
357
|
+
);
|
|
358
|
+
return poller.pollUntilDone();
|
|
202
359
|
}
|
|
203
360
|
|
|
204
361
|
/**
|
|
205
|
-
*
|
|
362
|
+
* Update a Cache instance.
|
|
206
363
|
* @param resourceGroupName Target resource group.
|
|
207
|
-
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be
|
|
208
|
-
*
|
|
209
|
-
* @param
|
|
210
|
-
* @returns Promise<msRest.RestResponse>
|
|
364
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
365
|
+
* the [-0-9a-zA-Z_] char class.
|
|
366
|
+
* @param options The options parameters.
|
|
211
367
|
*/
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
368
|
+
update(
|
|
369
|
+
resourceGroupName: string,
|
|
370
|
+
cacheName: string,
|
|
371
|
+
options?: CachesUpdateOptionalParams
|
|
372
|
+
): Promise<CachesUpdateResponse> {
|
|
373
|
+
return this.client.sendOperationRequest(
|
|
374
|
+
{ resourceGroupName, cacheName, options },
|
|
375
|
+
updateOperationSpec
|
|
376
|
+
);
|
|
215
377
|
}
|
|
216
378
|
|
|
217
379
|
/**
|
|
218
|
-
* Tells
|
|
380
|
+
* Tells a Cache to write generate debug info for support to process.
|
|
219
381
|
* @param resourceGroupName Target resource group.
|
|
220
|
-
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be
|
|
221
|
-
*
|
|
222
|
-
* @param
|
|
223
|
-
* @returns Promise<msRest.RestResponse>
|
|
382
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
383
|
+
* the [-0-9a-zA-Z_] char class.
|
|
384
|
+
* @param options The options parameters.
|
|
224
385
|
*/
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
386
|
+
async beginDebugInfo(
|
|
387
|
+
resourceGroupName: string,
|
|
388
|
+
cacheName: string,
|
|
389
|
+
options?: CachesDebugInfoOptionalParams
|
|
390
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
391
|
+
const directSendOperation = async (
|
|
392
|
+
args: coreClient.OperationArguments,
|
|
393
|
+
spec: coreClient.OperationSpec
|
|
394
|
+
): Promise<void> => {
|
|
395
|
+
return this.client.sendOperationRequest(args, spec);
|
|
396
|
+
};
|
|
397
|
+
const sendOperation = async (
|
|
398
|
+
args: coreClient.OperationArguments,
|
|
399
|
+
spec: coreClient.OperationSpec
|
|
400
|
+
) => {
|
|
401
|
+
let currentRawResponse:
|
|
402
|
+
| coreClient.FullOperationResponse
|
|
403
|
+
| undefined = undefined;
|
|
404
|
+
const providedCallback = args.options?.onResponse;
|
|
405
|
+
const callback: coreClient.RawResponseCallback = (
|
|
406
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
407
|
+
flatResponse: unknown
|
|
408
|
+
) => {
|
|
409
|
+
currentRawResponse = rawResponse;
|
|
410
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
411
|
+
};
|
|
412
|
+
const updatedArgs = {
|
|
413
|
+
...args,
|
|
414
|
+
options: {
|
|
415
|
+
...args.options,
|
|
416
|
+
onResponse: callback
|
|
417
|
+
}
|
|
418
|
+
};
|
|
419
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
420
|
+
return {
|
|
421
|
+
flatResponse,
|
|
422
|
+
rawResponse: {
|
|
423
|
+
statusCode: currentRawResponse!.status,
|
|
424
|
+
body: currentRawResponse!.parsedBody,
|
|
425
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
426
|
+
}
|
|
427
|
+
};
|
|
428
|
+
};
|
|
429
|
+
|
|
430
|
+
const lro = new LroImpl(
|
|
431
|
+
sendOperation,
|
|
432
|
+
{ resourceGroupName, cacheName, options },
|
|
433
|
+
debugInfoOperationSpec
|
|
434
|
+
);
|
|
435
|
+
return new LroEngine(lro, {
|
|
436
|
+
resumeFrom: options?.resumeFrom,
|
|
437
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
438
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
439
|
+
});
|
|
228
440
|
}
|
|
229
441
|
|
|
230
442
|
/**
|
|
231
|
-
*
|
|
232
|
-
* effect.
|
|
443
|
+
* Tells a Cache to write generate debug info for support to process.
|
|
233
444
|
* @param resourceGroupName Target resource group.
|
|
234
|
-
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be
|
|
235
|
-
*
|
|
236
|
-
* @param
|
|
237
|
-
* @returns Promise<msRest.RestResponse>
|
|
445
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
446
|
+
* the [-0-9a-zA-Z_] char class.
|
|
447
|
+
* @param options The options parameters.
|
|
238
448
|
*/
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
449
|
+
async beginDebugInfoAndWait(
|
|
450
|
+
resourceGroupName: string,
|
|
451
|
+
cacheName: string,
|
|
452
|
+
options?: CachesDebugInfoOptionalParams
|
|
453
|
+
): Promise<void> {
|
|
454
|
+
const poller = await this.beginDebugInfo(
|
|
455
|
+
resourceGroupName,
|
|
456
|
+
cacheName,
|
|
457
|
+
options
|
|
458
|
+
);
|
|
459
|
+
return poller.pollUntilDone();
|
|
242
460
|
}
|
|
243
461
|
|
|
244
462
|
/**
|
|
245
|
-
*
|
|
463
|
+
* Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see
|
|
464
|
+
* errors returned until the flush is complete.
|
|
246
465
|
* @param resourceGroupName Target resource group.
|
|
247
|
-
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be
|
|
248
|
-
*
|
|
249
|
-
* @param
|
|
250
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
466
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
467
|
+
* the [-0-9a-zA-Z_] char class.
|
|
468
|
+
* @param options The options parameters.
|
|
251
469
|
*/
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
470
|
+
async beginFlush(
|
|
471
|
+
resourceGroupName: string,
|
|
472
|
+
cacheName: string,
|
|
473
|
+
options?: CachesFlushOptionalParams
|
|
474
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
475
|
+
const directSendOperation = async (
|
|
476
|
+
args: coreClient.OperationArguments,
|
|
477
|
+
spec: coreClient.OperationSpec
|
|
478
|
+
): Promise<void> => {
|
|
479
|
+
return this.client.sendOperationRequest(args, spec);
|
|
480
|
+
};
|
|
481
|
+
const sendOperation = async (
|
|
482
|
+
args: coreClient.OperationArguments,
|
|
483
|
+
spec: coreClient.OperationSpec
|
|
484
|
+
) => {
|
|
485
|
+
let currentRawResponse:
|
|
486
|
+
| coreClient.FullOperationResponse
|
|
487
|
+
| undefined = undefined;
|
|
488
|
+
const providedCallback = args.options?.onResponse;
|
|
489
|
+
const callback: coreClient.RawResponseCallback = (
|
|
490
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
491
|
+
flatResponse: unknown
|
|
492
|
+
) => {
|
|
493
|
+
currentRawResponse = rawResponse;
|
|
494
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
495
|
+
};
|
|
496
|
+
const updatedArgs = {
|
|
497
|
+
...args,
|
|
498
|
+
options: {
|
|
499
|
+
...args.options,
|
|
500
|
+
onResponse: callback
|
|
501
|
+
}
|
|
502
|
+
};
|
|
503
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
504
|
+
return {
|
|
505
|
+
flatResponse,
|
|
506
|
+
rawResponse: {
|
|
507
|
+
statusCode: currentRawResponse!.status,
|
|
508
|
+
body: currentRawResponse!.parsedBody,
|
|
509
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
510
|
+
}
|
|
511
|
+
};
|
|
512
|
+
};
|
|
513
|
+
|
|
514
|
+
const lro = new LroImpl(
|
|
515
|
+
sendOperation,
|
|
516
|
+
{ resourceGroupName, cacheName, options },
|
|
517
|
+
flushOperationSpec
|
|
518
|
+
);
|
|
519
|
+
return new LroEngine(lro, {
|
|
520
|
+
resumeFrom: options?.resumeFrom,
|
|
521
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
522
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
523
|
+
});
|
|
261
524
|
}
|
|
262
525
|
|
|
263
526
|
/**
|
|
264
|
-
*
|
|
527
|
+
* Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see
|
|
528
|
+
* errors returned until the flush is complete.
|
|
265
529
|
* @param resourceGroupName Target resource group.
|
|
266
|
-
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be
|
|
267
|
-
*
|
|
268
|
-
* @param
|
|
269
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
530
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
531
|
+
* the [-0-9a-zA-Z_] char class.
|
|
532
|
+
* @param options The options parameters.
|
|
270
533
|
*/
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
beginCreateOrUpdateOperationSpec,
|
|
279
|
-
options);
|
|
534
|
+
async beginFlushAndWait(
|
|
535
|
+
resourceGroupName: string,
|
|
536
|
+
cacheName: string,
|
|
537
|
+
options?: CachesFlushOptionalParams
|
|
538
|
+
): Promise<void> {
|
|
539
|
+
const poller = await this.beginFlush(resourceGroupName, cacheName, options);
|
|
540
|
+
return poller.pollUntilDone();
|
|
280
541
|
}
|
|
281
542
|
|
|
282
543
|
/**
|
|
283
|
-
* Tells a Cache to
|
|
544
|
+
* Tells a Stopped state Cache to transition to Active state.
|
|
284
545
|
* @param resourceGroupName Target resource group.
|
|
285
|
-
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be
|
|
286
|
-
*
|
|
287
|
-
* @param
|
|
288
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
546
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
547
|
+
* the [-0-9a-zA-Z_] char class.
|
|
548
|
+
* @param options The options parameters.
|
|
289
549
|
*/
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
550
|
+
async beginStart(
|
|
551
|
+
resourceGroupName: string,
|
|
552
|
+
cacheName: string,
|
|
553
|
+
options?: CachesStartOptionalParams
|
|
554
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
555
|
+
const directSendOperation = async (
|
|
556
|
+
args: coreClient.OperationArguments,
|
|
557
|
+
spec: coreClient.OperationSpec
|
|
558
|
+
): Promise<void> => {
|
|
559
|
+
return this.client.sendOperationRequest(args, spec);
|
|
560
|
+
};
|
|
561
|
+
const sendOperation = async (
|
|
562
|
+
args: coreClient.OperationArguments,
|
|
563
|
+
spec: coreClient.OperationSpec
|
|
564
|
+
) => {
|
|
565
|
+
let currentRawResponse:
|
|
566
|
+
| coreClient.FullOperationResponse
|
|
567
|
+
| undefined = undefined;
|
|
568
|
+
const providedCallback = args.options?.onResponse;
|
|
569
|
+
const callback: coreClient.RawResponseCallback = (
|
|
570
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
571
|
+
flatResponse: unknown
|
|
572
|
+
) => {
|
|
573
|
+
currentRawResponse = rawResponse;
|
|
574
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
575
|
+
};
|
|
576
|
+
const updatedArgs = {
|
|
577
|
+
...args,
|
|
578
|
+
options: {
|
|
579
|
+
...args.options,
|
|
580
|
+
onResponse: callback
|
|
581
|
+
}
|
|
582
|
+
};
|
|
583
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
584
|
+
return {
|
|
585
|
+
flatResponse,
|
|
586
|
+
rawResponse: {
|
|
587
|
+
statusCode: currentRawResponse!.status,
|
|
588
|
+
body: currentRawResponse!.parsedBody,
|
|
589
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
590
|
+
}
|
|
591
|
+
};
|
|
592
|
+
};
|
|
593
|
+
|
|
594
|
+
const lro = new LroImpl(
|
|
595
|
+
sendOperation,
|
|
596
|
+
{ resourceGroupName, cacheName, options },
|
|
597
|
+
startOperationSpec
|
|
598
|
+
);
|
|
599
|
+
return new LroEngine(lro, {
|
|
600
|
+
resumeFrom: options?.resumeFrom,
|
|
601
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
602
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
603
|
+
});
|
|
299
604
|
}
|
|
300
605
|
|
|
301
606
|
/**
|
|
302
|
-
* Tells a Cache to
|
|
303
|
-
* see errors returned until the flush is complete.
|
|
607
|
+
* Tells a Stopped state Cache to transition to Active state.
|
|
304
608
|
* @param resourceGroupName Target resource group.
|
|
305
|
-
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be
|
|
306
|
-
*
|
|
307
|
-
* @param
|
|
308
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
609
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
610
|
+
* the [-0-9a-zA-Z_] char class.
|
|
611
|
+
* @param options The options parameters.
|
|
309
612
|
*/
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
beginFlushOperationSpec,
|
|
318
|
-
options);
|
|
613
|
+
async beginStartAndWait(
|
|
614
|
+
resourceGroupName: string,
|
|
615
|
+
cacheName: string,
|
|
616
|
+
options?: CachesStartOptionalParams
|
|
617
|
+
): Promise<void> {
|
|
618
|
+
const poller = await this.beginStart(resourceGroupName, cacheName, options);
|
|
619
|
+
return poller.pollUntilDone();
|
|
319
620
|
}
|
|
320
621
|
|
|
321
622
|
/**
|
|
322
|
-
* Tells
|
|
623
|
+
* Tells an Active Cache to transition to Stopped state.
|
|
323
624
|
* @param resourceGroupName Target resource group.
|
|
324
|
-
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be
|
|
325
|
-
*
|
|
326
|
-
* @param
|
|
327
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
625
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
626
|
+
* the [-0-9a-zA-Z_] char class.
|
|
627
|
+
* @param options The options parameters.
|
|
328
628
|
*/
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
629
|
+
async beginStop(
|
|
630
|
+
resourceGroupName: string,
|
|
631
|
+
cacheName: string,
|
|
632
|
+
options?: CachesStopOptionalParams
|
|
633
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
634
|
+
const directSendOperation = async (
|
|
635
|
+
args: coreClient.OperationArguments,
|
|
636
|
+
spec: coreClient.OperationSpec
|
|
637
|
+
): Promise<void> => {
|
|
638
|
+
return this.client.sendOperationRequest(args, spec);
|
|
639
|
+
};
|
|
640
|
+
const sendOperation = async (
|
|
641
|
+
args: coreClient.OperationArguments,
|
|
642
|
+
spec: coreClient.OperationSpec
|
|
643
|
+
) => {
|
|
644
|
+
let currentRawResponse:
|
|
645
|
+
| coreClient.FullOperationResponse
|
|
646
|
+
| undefined = undefined;
|
|
647
|
+
const providedCallback = args.options?.onResponse;
|
|
648
|
+
const callback: coreClient.RawResponseCallback = (
|
|
649
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
650
|
+
flatResponse: unknown
|
|
651
|
+
) => {
|
|
652
|
+
currentRawResponse = rawResponse;
|
|
653
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
654
|
+
};
|
|
655
|
+
const updatedArgs = {
|
|
656
|
+
...args,
|
|
657
|
+
options: {
|
|
658
|
+
...args.options,
|
|
659
|
+
onResponse: callback
|
|
660
|
+
}
|
|
661
|
+
};
|
|
662
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
663
|
+
return {
|
|
664
|
+
flatResponse,
|
|
665
|
+
rawResponse: {
|
|
666
|
+
statusCode: currentRawResponse!.status,
|
|
667
|
+
body: currentRawResponse!.parsedBody,
|
|
668
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
669
|
+
}
|
|
670
|
+
};
|
|
671
|
+
};
|
|
672
|
+
|
|
673
|
+
const lro = new LroImpl(
|
|
674
|
+
sendOperation,
|
|
675
|
+
{ resourceGroupName, cacheName, options },
|
|
676
|
+
stopOperationSpec
|
|
677
|
+
);
|
|
678
|
+
return new LroEngine(lro, {
|
|
679
|
+
resumeFrom: options?.resumeFrom,
|
|
680
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
681
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
682
|
+
});
|
|
338
683
|
}
|
|
339
684
|
|
|
340
685
|
/**
|
|
341
686
|
* Tells an Active Cache to transition to Stopped state.
|
|
342
687
|
* @param resourceGroupName Target resource group.
|
|
343
|
-
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be
|
|
344
|
-
*
|
|
345
|
-
* @param
|
|
346
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
688
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
689
|
+
* the [-0-9a-zA-Z_] char class.
|
|
690
|
+
* @param options The options parameters.
|
|
347
691
|
*/
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
beginStopOperationSpec,
|
|
356
|
-
options);
|
|
692
|
+
async beginStopAndWait(
|
|
693
|
+
resourceGroupName: string,
|
|
694
|
+
cacheName: string,
|
|
695
|
+
options?: CachesStopOptionalParams
|
|
696
|
+
): Promise<void> {
|
|
697
|
+
const poller = await this.beginStop(resourceGroupName, cacheName, options);
|
|
698
|
+
return poller.pollUntilDone();
|
|
357
699
|
}
|
|
358
700
|
|
|
359
701
|
/**
|
|
360
|
-
* Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no
|
|
361
|
-
* effect.
|
|
702
|
+
* Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect.
|
|
362
703
|
* @param resourceGroupName Target resource group.
|
|
363
|
-
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be
|
|
364
|
-
*
|
|
365
|
-
* @param
|
|
366
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
704
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
705
|
+
* the [-0-9a-zA-Z_] char class.
|
|
706
|
+
* @param options The options parameters.
|
|
367
707
|
*/
|
|
368
|
-
beginUpgradeFirmware(
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
708
|
+
async beginUpgradeFirmware(
|
|
709
|
+
resourceGroupName: string,
|
|
710
|
+
cacheName: string,
|
|
711
|
+
options?: CachesUpgradeFirmwareOptionalParams
|
|
712
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
713
|
+
const directSendOperation = async (
|
|
714
|
+
args: coreClient.OperationArguments,
|
|
715
|
+
spec: coreClient.OperationSpec
|
|
716
|
+
): Promise<void> => {
|
|
717
|
+
return this.client.sendOperationRequest(args, spec);
|
|
718
|
+
};
|
|
719
|
+
const sendOperation = async (
|
|
720
|
+
args: coreClient.OperationArguments,
|
|
721
|
+
spec: coreClient.OperationSpec
|
|
722
|
+
) => {
|
|
723
|
+
let currentRawResponse:
|
|
724
|
+
| coreClient.FullOperationResponse
|
|
725
|
+
| undefined = undefined;
|
|
726
|
+
const providedCallback = args.options?.onResponse;
|
|
727
|
+
const callback: coreClient.RawResponseCallback = (
|
|
728
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
729
|
+
flatResponse: unknown
|
|
730
|
+
) => {
|
|
731
|
+
currentRawResponse = rawResponse;
|
|
732
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
733
|
+
};
|
|
734
|
+
const updatedArgs = {
|
|
735
|
+
...args,
|
|
736
|
+
options: {
|
|
737
|
+
...args.options,
|
|
738
|
+
onResponse: callback
|
|
739
|
+
}
|
|
740
|
+
};
|
|
741
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
742
|
+
return {
|
|
743
|
+
flatResponse,
|
|
744
|
+
rawResponse: {
|
|
745
|
+
statusCode: currentRawResponse!.status,
|
|
746
|
+
body: currentRawResponse!.parsedBody,
|
|
747
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
748
|
+
}
|
|
749
|
+
};
|
|
750
|
+
};
|
|
751
|
+
|
|
752
|
+
const lro = new LroImpl(
|
|
753
|
+
sendOperation,
|
|
754
|
+
{ resourceGroupName, cacheName, options },
|
|
755
|
+
upgradeFirmwareOperationSpec
|
|
756
|
+
);
|
|
757
|
+
return new LroEngine(lro, {
|
|
758
|
+
resumeFrom: options?.resumeFrom,
|
|
759
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
760
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
761
|
+
});
|
|
377
762
|
}
|
|
378
763
|
|
|
379
764
|
/**
|
|
380
|
-
*
|
|
381
|
-
* @param
|
|
382
|
-
* @param
|
|
383
|
-
*
|
|
384
|
-
|
|
385
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.CachesListNextResponse>;
|
|
386
|
-
/**
|
|
387
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
388
|
-
* @param callback The callback
|
|
765
|
+
* Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect.
|
|
766
|
+
* @param resourceGroupName Target resource group.
|
|
767
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
768
|
+
* the [-0-9a-zA-Z_] char class.
|
|
769
|
+
* @param options The options parameters.
|
|
389
770
|
*/
|
|
390
|
-
|
|
771
|
+
async beginUpgradeFirmwareAndWait(
|
|
772
|
+
resourceGroupName: string,
|
|
773
|
+
cacheName: string,
|
|
774
|
+
options?: CachesUpgradeFirmwareOptionalParams
|
|
775
|
+
): Promise<void> {
|
|
776
|
+
const poller = await this.beginUpgradeFirmware(
|
|
777
|
+
resourceGroupName,
|
|
778
|
+
cacheName,
|
|
779
|
+
options
|
|
780
|
+
);
|
|
781
|
+
return poller.pollUntilDone();
|
|
782
|
+
}
|
|
783
|
+
|
|
391
784
|
/**
|
|
392
|
-
*
|
|
393
|
-
* @param
|
|
394
|
-
* @param
|
|
785
|
+
* ListNext
|
|
786
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
787
|
+
* @param options The options parameters.
|
|
395
788
|
*/
|
|
396
|
-
|
|
397
|
-
|
|
789
|
+
private _listNext(
|
|
790
|
+
nextLink: string,
|
|
791
|
+
options?: CachesListNextOptionalParams
|
|
792
|
+
): Promise<CachesListNextResponse> {
|
|
398
793
|
return this.client.sendOperationRequest(
|
|
399
|
-
{
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
},
|
|
403
|
-
listNextOperationSpec,
|
|
404
|
-
callback) as Promise<Models.CachesListNextResponse>;
|
|
794
|
+
{ nextLink, options },
|
|
795
|
+
listNextOperationSpec
|
|
796
|
+
);
|
|
405
797
|
}
|
|
406
798
|
|
|
407
799
|
/**
|
|
408
|
-
*
|
|
409
|
-
* @param
|
|
410
|
-
* @param
|
|
411
|
-
* @
|
|
412
|
-
*/
|
|
413
|
-
listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.CachesListByResourceGroupNextResponse>;
|
|
414
|
-
/**
|
|
415
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
416
|
-
* @param callback The callback
|
|
417
|
-
*/
|
|
418
|
-
listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.CachesListResult>): void;
|
|
419
|
-
/**
|
|
420
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
421
|
-
* @param options The optional parameters
|
|
422
|
-
* @param callback The callback
|
|
800
|
+
* ListByResourceGroupNext
|
|
801
|
+
* @param resourceGroupName Target resource group.
|
|
802
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
803
|
+
* @param options The options parameters.
|
|
423
804
|
*/
|
|
424
|
-
|
|
425
|
-
|
|
805
|
+
private _listByResourceGroupNext(
|
|
806
|
+
resourceGroupName: string,
|
|
807
|
+
nextLink: string,
|
|
808
|
+
options?: CachesListByResourceGroupNextOptionalParams
|
|
809
|
+
): Promise<CachesListByResourceGroupNextResponse> {
|
|
426
810
|
return this.client.sendOperationRequest(
|
|
427
|
-
{
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
},
|
|
431
|
-
listByResourceGroupNextOperationSpec,
|
|
432
|
-
callback) as Promise<Models.CachesListByResourceGroupNextResponse>;
|
|
811
|
+
{ resourceGroupName, nextLink, options },
|
|
812
|
+
listByResourceGroupNextOperationSpec
|
|
813
|
+
);
|
|
433
814
|
}
|
|
434
815
|
}
|
|
435
|
-
|
|
436
816
|
// Operation Specifications
|
|
437
|
-
const serializer =
|
|
438
|
-
|
|
817
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
818
|
+
|
|
819
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
820
|
+
path:
|
|
821
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/caches",
|
|
439
822
|
httpMethod: "GET",
|
|
440
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/caches",
|
|
441
|
-
urlParameters: [
|
|
442
|
-
Parameters.subscriptionId
|
|
443
|
-
],
|
|
444
|
-
queryParameters: [
|
|
445
|
-
Parameters.apiVersion
|
|
446
|
-
],
|
|
447
|
-
headerParameters: [
|
|
448
|
-
Parameters.acceptLanguage
|
|
449
|
-
],
|
|
450
823
|
responses: {
|
|
451
824
|
200: {
|
|
452
825
|
bodyMapper: Mappers.CachesListResult
|
|
@@ -455,22 +828,15 @@ const listOperationSpec: msRest.OperationSpec = {
|
|
|
455
828
|
bodyMapper: Mappers.CloudError
|
|
456
829
|
}
|
|
457
830
|
},
|
|
831
|
+
queryParameters: [Parameters.apiVersion],
|
|
832
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
833
|
+
headerParameters: [Parameters.accept],
|
|
458
834
|
serializer
|
|
459
835
|
};
|
|
460
|
-
|
|
461
|
-
|
|
836
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
837
|
+
path:
|
|
838
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches",
|
|
462
839
|
httpMethod: "GET",
|
|
463
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches",
|
|
464
|
-
urlParameters: [
|
|
465
|
-
Parameters.resourceGroupName,
|
|
466
|
-
Parameters.subscriptionId
|
|
467
|
-
],
|
|
468
|
-
queryParameters: [
|
|
469
|
-
Parameters.apiVersion
|
|
470
|
-
],
|
|
471
|
-
headerParameters: [
|
|
472
|
-
Parameters.acceptLanguage
|
|
473
|
-
],
|
|
474
840
|
responses: {
|
|
475
841
|
200: {
|
|
476
842
|
bodyMapper: Mappers.CachesListResult
|
|
@@ -479,55 +845,42 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
|
479
845
|
bodyMapper: Mappers.CloudError
|
|
480
846
|
}
|
|
481
847
|
},
|
|
482
|
-
|
|
483
|
-
};
|
|
484
|
-
|
|
485
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
486
|
-
httpMethod: "GET",
|
|
487
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}",
|
|
848
|
+
queryParameters: [Parameters.apiVersion],
|
|
488
849
|
urlParameters: [
|
|
489
|
-
Parameters
|
|
490
|
-
Parameters.
|
|
491
|
-
Parameters.
|
|
492
|
-
],
|
|
493
|
-
queryParameters: [
|
|
494
|
-
Parameters.apiVersion
|
|
495
|
-
],
|
|
496
|
-
headerParameters: [
|
|
497
|
-
Parameters.acceptLanguage
|
|
850
|
+
Parameters.$host,
|
|
851
|
+
Parameters.subscriptionId,
|
|
852
|
+
Parameters.resourceGroupName
|
|
498
853
|
],
|
|
854
|
+
headerParameters: [Parameters.accept],
|
|
855
|
+
serializer
|
|
856
|
+
};
|
|
857
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
858
|
+
path:
|
|
859
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}",
|
|
860
|
+
httpMethod: "DELETE",
|
|
499
861
|
responses: {
|
|
500
|
-
200: {
|
|
501
|
-
|
|
502
|
-
},
|
|
862
|
+
200: {},
|
|
863
|
+
201: {},
|
|
864
|
+
202: {},
|
|
865
|
+
204: {},
|
|
503
866
|
default: {
|
|
504
867
|
bodyMapper: Mappers.CloudError
|
|
505
868
|
}
|
|
506
869
|
},
|
|
507
|
-
|
|
508
|
-
};
|
|
509
|
-
|
|
510
|
-
const updateOperationSpec: msRest.OperationSpec = {
|
|
511
|
-
httpMethod: "PATCH",
|
|
512
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}",
|
|
870
|
+
queryParameters: [Parameters.apiVersion],
|
|
513
871
|
urlParameters: [
|
|
514
|
-
Parameters
|
|
872
|
+
Parameters.$host,
|
|
515
873
|
Parameters.subscriptionId,
|
|
874
|
+
Parameters.resourceGroupName,
|
|
516
875
|
Parameters.cacheName
|
|
517
876
|
],
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
parameterPath: [
|
|
526
|
-
"options",
|
|
527
|
-
"cache"
|
|
528
|
-
],
|
|
529
|
-
mapper: Mappers.Cache
|
|
530
|
-
},
|
|
877
|
+
headerParameters: [Parameters.accept],
|
|
878
|
+
serializer
|
|
879
|
+
};
|
|
880
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
881
|
+
path:
|
|
882
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}",
|
|
883
|
+
httpMethod: "GET",
|
|
531
884
|
responses: {
|
|
532
885
|
200: {
|
|
533
886
|
bodyMapper: Mappers.Cache
|
|
@@ -536,185 +889,171 @@ const updateOperationSpec: msRest.OperationSpec = {
|
|
|
536
889
|
bodyMapper: Mappers.CloudError
|
|
537
890
|
}
|
|
538
891
|
},
|
|
539
|
-
|
|
540
|
-
};
|
|
541
|
-
|
|
542
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
543
|
-
httpMethod: "DELETE",
|
|
544
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}",
|
|
892
|
+
queryParameters: [Parameters.apiVersion],
|
|
545
893
|
urlParameters: [
|
|
894
|
+
Parameters.$host,
|
|
895
|
+
Parameters.subscriptionId,
|
|
546
896
|
Parameters.resourceGroupName,
|
|
547
|
-
Parameters.cacheName
|
|
548
|
-
Parameters.subscriptionId
|
|
549
|
-
],
|
|
550
|
-
queryParameters: [
|
|
551
|
-
Parameters.apiVersion
|
|
552
|
-
],
|
|
553
|
-
headerParameters: [
|
|
554
|
-
Parameters.acceptLanguage
|
|
897
|
+
Parameters.cacheName
|
|
555
898
|
],
|
|
899
|
+
headerParameters: [Parameters.accept],
|
|
900
|
+
serializer
|
|
901
|
+
};
|
|
902
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
903
|
+
path:
|
|
904
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}",
|
|
905
|
+
httpMethod: "PUT",
|
|
556
906
|
responses: {
|
|
557
|
-
200: {
|
|
558
|
-
|
|
559
|
-
|
|
907
|
+
200: {
|
|
908
|
+
bodyMapper: Mappers.Cache
|
|
909
|
+
},
|
|
910
|
+
201: {
|
|
911
|
+
bodyMapper: Mappers.Cache
|
|
912
|
+
},
|
|
913
|
+
202: {
|
|
914
|
+
bodyMapper: Mappers.Cache
|
|
915
|
+
},
|
|
916
|
+
204: {
|
|
917
|
+
bodyMapper: Mappers.Cache
|
|
918
|
+
},
|
|
560
919
|
default: {
|
|
561
920
|
bodyMapper: Mappers.CloudError
|
|
562
921
|
}
|
|
563
922
|
},
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
568
|
-
httpMethod: "PUT",
|
|
569
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}",
|
|
923
|
+
requestBody: Parameters.cache,
|
|
924
|
+
queryParameters: [Parameters.apiVersion],
|
|
570
925
|
urlParameters: [
|
|
571
|
-
Parameters
|
|
926
|
+
Parameters.$host,
|
|
572
927
|
Parameters.subscriptionId,
|
|
928
|
+
Parameters.resourceGroupName,
|
|
573
929
|
Parameters.cacheName
|
|
574
930
|
],
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
"options",
|
|
584
|
-
"cache"
|
|
585
|
-
],
|
|
586
|
-
mapper: Mappers.Cache
|
|
587
|
-
},
|
|
931
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
932
|
+
mediaType: "json",
|
|
933
|
+
serializer
|
|
934
|
+
};
|
|
935
|
+
const updateOperationSpec: coreClient.OperationSpec = {
|
|
936
|
+
path:
|
|
937
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}",
|
|
938
|
+
httpMethod: "PATCH",
|
|
588
939
|
responses: {
|
|
589
940
|
200: {
|
|
590
941
|
bodyMapper: Mappers.Cache
|
|
591
942
|
},
|
|
592
|
-
201: {
|
|
593
|
-
bodyMapper: Mappers.Cache
|
|
594
|
-
},
|
|
595
|
-
202: {},
|
|
596
943
|
default: {
|
|
597
944
|
bodyMapper: Mappers.CloudError
|
|
598
945
|
}
|
|
599
946
|
},
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
const beginDebugInfoOperationSpec: msRest.OperationSpec = {
|
|
604
|
-
httpMethod: "POST",
|
|
605
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/debugInfo",
|
|
947
|
+
requestBody: Parameters.cache,
|
|
948
|
+
queryParameters: [Parameters.apiVersion],
|
|
606
949
|
urlParameters: [
|
|
607
|
-
Parameters
|
|
950
|
+
Parameters.$host,
|
|
608
951
|
Parameters.subscriptionId,
|
|
952
|
+
Parameters.resourceGroupName,
|
|
609
953
|
Parameters.cacheName
|
|
610
954
|
],
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
955
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
956
|
+
mediaType: "json",
|
|
957
|
+
serializer
|
|
958
|
+
};
|
|
959
|
+
const debugInfoOperationSpec: coreClient.OperationSpec = {
|
|
960
|
+
path:
|
|
961
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/debugInfo",
|
|
962
|
+
httpMethod: "POST",
|
|
617
963
|
responses: {
|
|
618
964
|
200: {},
|
|
965
|
+
201: {},
|
|
619
966
|
202: {},
|
|
620
967
|
204: {},
|
|
621
968
|
default: {
|
|
622
969
|
bodyMapper: Mappers.CloudError
|
|
623
970
|
}
|
|
624
971
|
},
|
|
625
|
-
|
|
626
|
-
};
|
|
627
|
-
|
|
628
|
-
const beginFlushOperationSpec: msRest.OperationSpec = {
|
|
629
|
-
httpMethod: "POST",
|
|
630
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/flush",
|
|
972
|
+
queryParameters: [Parameters.apiVersion],
|
|
631
973
|
urlParameters: [
|
|
632
|
-
Parameters
|
|
974
|
+
Parameters.$host,
|
|
633
975
|
Parameters.subscriptionId,
|
|
976
|
+
Parameters.resourceGroupName,
|
|
634
977
|
Parameters.cacheName
|
|
635
978
|
],
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
979
|
+
headerParameters: [Parameters.accept],
|
|
980
|
+
serializer
|
|
981
|
+
};
|
|
982
|
+
const flushOperationSpec: coreClient.OperationSpec = {
|
|
983
|
+
path:
|
|
984
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/flush",
|
|
985
|
+
httpMethod: "POST",
|
|
642
986
|
responses: {
|
|
643
987
|
200: {},
|
|
988
|
+
201: {},
|
|
644
989
|
202: {},
|
|
645
990
|
204: {},
|
|
646
991
|
default: {
|
|
647
992
|
bodyMapper: Mappers.CloudError
|
|
648
993
|
}
|
|
649
994
|
},
|
|
650
|
-
|
|
651
|
-
};
|
|
652
|
-
|
|
653
|
-
const beginStartOperationSpec: msRest.OperationSpec = {
|
|
654
|
-
httpMethod: "POST",
|
|
655
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/start",
|
|
995
|
+
queryParameters: [Parameters.apiVersion],
|
|
656
996
|
urlParameters: [
|
|
657
|
-
Parameters
|
|
997
|
+
Parameters.$host,
|
|
658
998
|
Parameters.subscriptionId,
|
|
999
|
+
Parameters.resourceGroupName,
|
|
659
1000
|
Parameters.cacheName
|
|
660
1001
|
],
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
1002
|
+
headerParameters: [Parameters.accept],
|
|
1003
|
+
serializer
|
|
1004
|
+
};
|
|
1005
|
+
const startOperationSpec: coreClient.OperationSpec = {
|
|
1006
|
+
path:
|
|
1007
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/start",
|
|
1008
|
+
httpMethod: "POST",
|
|
667
1009
|
responses: {
|
|
668
1010
|
200: {},
|
|
1011
|
+
201: {},
|
|
669
1012
|
202: {},
|
|
670
1013
|
204: {},
|
|
671
1014
|
default: {
|
|
672
1015
|
bodyMapper: Mappers.CloudError
|
|
673
1016
|
}
|
|
674
1017
|
},
|
|
675
|
-
|
|
676
|
-
};
|
|
677
|
-
|
|
678
|
-
const beginStopOperationSpec: msRest.OperationSpec = {
|
|
679
|
-
httpMethod: "POST",
|
|
680
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/stop",
|
|
1018
|
+
queryParameters: [Parameters.apiVersion],
|
|
681
1019
|
urlParameters: [
|
|
682
|
-
Parameters
|
|
1020
|
+
Parameters.$host,
|
|
683
1021
|
Parameters.subscriptionId,
|
|
1022
|
+
Parameters.resourceGroupName,
|
|
684
1023
|
Parameters.cacheName
|
|
685
1024
|
],
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
1025
|
+
headerParameters: [Parameters.accept],
|
|
1026
|
+
serializer
|
|
1027
|
+
};
|
|
1028
|
+
const stopOperationSpec: coreClient.OperationSpec = {
|
|
1029
|
+
path:
|
|
1030
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/stop",
|
|
1031
|
+
httpMethod: "POST",
|
|
692
1032
|
responses: {
|
|
693
1033
|
200: {},
|
|
1034
|
+
201: {},
|
|
694
1035
|
202: {},
|
|
695
1036
|
204: {},
|
|
696
1037
|
default: {
|
|
697
1038
|
bodyMapper: Mappers.CloudError
|
|
698
1039
|
}
|
|
699
1040
|
},
|
|
700
|
-
|
|
701
|
-
};
|
|
702
|
-
|
|
703
|
-
const beginUpgradeFirmwareOperationSpec: msRest.OperationSpec = {
|
|
704
|
-
httpMethod: "POST",
|
|
705
|
-
path: "subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/upgrade",
|
|
1041
|
+
queryParameters: [Parameters.apiVersion],
|
|
706
1042
|
urlParameters: [
|
|
707
|
-
Parameters
|
|
1043
|
+
Parameters.$host,
|
|
708
1044
|
Parameters.subscriptionId,
|
|
1045
|
+
Parameters.resourceGroupName,
|
|
709
1046
|
Parameters.cacheName
|
|
710
1047
|
],
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
1048
|
+
headerParameters: [Parameters.accept],
|
|
1049
|
+
serializer
|
|
1050
|
+
};
|
|
1051
|
+
const upgradeFirmwareOperationSpec: coreClient.OperationSpec = {
|
|
1052
|
+
path:
|
|
1053
|
+
"/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/upgrade",
|
|
1054
|
+
httpMethod: "POST",
|
|
717
1055
|
responses: {
|
|
1056
|
+
200: {},
|
|
718
1057
|
201: {},
|
|
719
1058
|
202: {},
|
|
720
1059
|
204: {},
|
|
@@ -722,22 +1061,19 @@ const beginUpgradeFirmwareOperationSpec: msRest.OperationSpec = {
|
|
|
722
1061
|
bodyMapper: Mappers.CloudError
|
|
723
1062
|
}
|
|
724
1063
|
},
|
|
1064
|
+
queryParameters: [Parameters.apiVersion],
|
|
1065
|
+
urlParameters: [
|
|
1066
|
+
Parameters.$host,
|
|
1067
|
+
Parameters.subscriptionId,
|
|
1068
|
+
Parameters.resourceGroupName,
|
|
1069
|
+
Parameters.cacheName
|
|
1070
|
+
],
|
|
1071
|
+
headerParameters: [Parameters.accept],
|
|
725
1072
|
serializer
|
|
726
1073
|
};
|
|
727
|
-
|
|
728
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
729
|
-
httpMethod: "GET",
|
|
730
|
-
baseUrl: "https://management.azure.com",
|
|
1074
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
731
1075
|
path: "{nextLink}",
|
|
732
|
-
|
|
733
|
-
Parameters.nextPageLink
|
|
734
|
-
],
|
|
735
|
-
queryParameters: [
|
|
736
|
-
Parameters.apiVersion
|
|
737
|
-
],
|
|
738
|
-
headerParameters: [
|
|
739
|
-
Parameters.acceptLanguage
|
|
740
|
-
],
|
|
1076
|
+
httpMethod: "GET",
|
|
741
1077
|
responses: {
|
|
742
1078
|
200: {
|
|
743
1079
|
bodyMapper: Mappers.CachesListResult
|
|
@@ -746,22 +1082,18 @@ const listNextOperationSpec: msRest.OperationSpec = {
|
|
|
746
1082
|
bodyMapper: Mappers.CloudError
|
|
747
1083
|
}
|
|
748
1084
|
},
|
|
1085
|
+
queryParameters: [Parameters.apiVersion],
|
|
1086
|
+
urlParameters: [
|
|
1087
|
+
Parameters.$host,
|
|
1088
|
+
Parameters.nextLink,
|
|
1089
|
+
Parameters.subscriptionId
|
|
1090
|
+
],
|
|
1091
|
+
headerParameters: [Parameters.accept],
|
|
749
1092
|
serializer
|
|
750
1093
|
};
|
|
751
|
-
|
|
752
|
-
const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
753
|
-
httpMethod: "GET",
|
|
754
|
-
baseUrl: "https://management.azure.com",
|
|
1094
|
+
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
755
1095
|
path: "{nextLink}",
|
|
756
|
-
|
|
757
|
-
Parameters.nextPageLink
|
|
758
|
-
],
|
|
759
|
-
queryParameters: [
|
|
760
|
-
Parameters.apiVersion
|
|
761
|
-
],
|
|
762
|
-
headerParameters: [
|
|
763
|
-
Parameters.acceptLanguage
|
|
764
|
-
],
|
|
1096
|
+
httpMethod: "GET",
|
|
765
1097
|
responses: {
|
|
766
1098
|
200: {
|
|
767
1099
|
bodyMapper: Mappers.CachesListResult
|
|
@@ -770,5 +1102,13 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
|
770
1102
|
bodyMapper: Mappers.CloudError
|
|
771
1103
|
}
|
|
772
1104
|
},
|
|
1105
|
+
queryParameters: [Parameters.apiVersion],
|
|
1106
|
+
urlParameters: [
|
|
1107
|
+
Parameters.$host,
|
|
1108
|
+
Parameters.nextLink,
|
|
1109
|
+
Parameters.subscriptionId,
|
|
1110
|
+
Parameters.resourceGroupName
|
|
1111
|
+
],
|
|
1112
|
+
headerParameters: [Parameters.accept],
|
|
773
1113
|
serializer
|
|
774
1114
|
};
|