@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
|
@@ -0,0 +1,825 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
import { LroEngine } from "@azure/core-lro";
|
|
13
|
+
import { LroImpl } from "../lroImpl";
|
|
14
|
+
/// <reference lib="esnext.asynciterable" />
|
|
15
|
+
/** Class containing Caches operations. */
|
|
16
|
+
export class CachesImpl {
|
|
17
|
+
/**
|
|
18
|
+
* Initialize a new instance of the class Caches class.
|
|
19
|
+
* @param client Reference to the service client
|
|
20
|
+
*/
|
|
21
|
+
constructor(client) {
|
|
22
|
+
this.client = client;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Returns all Caches the user has access to under a subscription.
|
|
26
|
+
* @param options The options parameters.
|
|
27
|
+
*/
|
|
28
|
+
list(options) {
|
|
29
|
+
const iter = this.listPagingAll(options);
|
|
30
|
+
return {
|
|
31
|
+
next() {
|
|
32
|
+
return iter.next();
|
|
33
|
+
},
|
|
34
|
+
[Symbol.asyncIterator]() {
|
|
35
|
+
return this;
|
|
36
|
+
},
|
|
37
|
+
byPage: () => {
|
|
38
|
+
return this.listPagingPage(options);
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
listPagingPage(options) {
|
|
43
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
44
|
+
let result = yield __await(this._list(options));
|
|
45
|
+
yield yield __await(result.value || []);
|
|
46
|
+
let continuationToken = result.nextLink;
|
|
47
|
+
while (continuationToken) {
|
|
48
|
+
result = yield __await(this._listNext(continuationToken, options));
|
|
49
|
+
continuationToken = result.nextLink;
|
|
50
|
+
yield yield __await(result.value || []);
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
listPagingAll(options) {
|
|
55
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
56
|
+
var e_1, _a;
|
|
57
|
+
try {
|
|
58
|
+
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
59
|
+
const page = _c.value;
|
|
60
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
64
|
+
finally {
|
|
65
|
+
try {
|
|
66
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
67
|
+
}
|
|
68
|
+
finally { if (e_1) throw e_1.error; }
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Returns all Caches the user has access to under a resource group.
|
|
74
|
+
* @param resourceGroupName Target resource group.
|
|
75
|
+
* @param options The options parameters.
|
|
76
|
+
*/
|
|
77
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
78
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
79
|
+
return {
|
|
80
|
+
next() {
|
|
81
|
+
return iter.next();
|
|
82
|
+
},
|
|
83
|
+
[Symbol.asyncIterator]() {
|
|
84
|
+
return this;
|
|
85
|
+
},
|
|
86
|
+
byPage: () => {
|
|
87
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
}
|
|
91
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
92
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
93
|
+
let result = yield __await(this._listByResourceGroup(resourceGroupName, options));
|
|
94
|
+
yield yield __await(result.value || []);
|
|
95
|
+
let continuationToken = result.nextLink;
|
|
96
|
+
while (continuationToken) {
|
|
97
|
+
result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
98
|
+
continuationToken = result.nextLink;
|
|
99
|
+
yield yield __await(result.value || []);
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
104
|
+
return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
105
|
+
var e_2, _a;
|
|
106
|
+
try {
|
|
107
|
+
for (var _b = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
108
|
+
const page = _c.value;
|
|
109
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
113
|
+
finally {
|
|
114
|
+
try {
|
|
115
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
116
|
+
}
|
|
117
|
+
finally { if (e_2) throw e_2.error; }
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Returns all Caches the user has access to under a subscription.
|
|
123
|
+
* @param options The options parameters.
|
|
124
|
+
*/
|
|
125
|
+
_list(options) {
|
|
126
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Returns all Caches the user has access to under a resource group.
|
|
130
|
+
* @param resourceGroupName Target resource group.
|
|
131
|
+
* @param options The options parameters.
|
|
132
|
+
*/
|
|
133
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
134
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
135
|
+
}
|
|
136
|
+
/**
|
|
137
|
+
* Schedules a Cache for deletion.
|
|
138
|
+
* @param resourceGroupName Target resource group.
|
|
139
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
140
|
+
* the [-0-9a-zA-Z_] char class.
|
|
141
|
+
* @param options The options parameters.
|
|
142
|
+
*/
|
|
143
|
+
beginDelete(resourceGroupName, cacheName, options) {
|
|
144
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
146
|
+
return this.client.sendOperationRequest(args, spec);
|
|
147
|
+
});
|
|
148
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
149
|
+
var _a;
|
|
150
|
+
let currentRawResponse = undefined;
|
|
151
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
152
|
+
const callback = (rawResponse, flatResponse) => {
|
|
153
|
+
currentRawResponse = rawResponse;
|
|
154
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
155
|
+
};
|
|
156
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
157
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
158
|
+
return {
|
|
159
|
+
flatResponse,
|
|
160
|
+
rawResponse: {
|
|
161
|
+
statusCode: currentRawResponse.status,
|
|
162
|
+
body: currentRawResponse.parsedBody,
|
|
163
|
+
headers: currentRawResponse.headers.toJSON()
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
});
|
|
167
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, cacheName, options }, deleteOperationSpec);
|
|
168
|
+
return new LroEngine(lro, {
|
|
169
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
170
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
171
|
+
});
|
|
172
|
+
});
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* Schedules a Cache for deletion.
|
|
176
|
+
* @param resourceGroupName Target resource group.
|
|
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.
|
|
180
|
+
*/
|
|
181
|
+
beginDeleteAndWait(resourceGroupName, cacheName, options) {
|
|
182
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
183
|
+
const poller = yield this.beginDelete(resourceGroupName, cacheName, options);
|
|
184
|
+
return poller.pollUntilDone();
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Returns a Cache.
|
|
189
|
+
* @param resourceGroupName Target resource group.
|
|
190
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
191
|
+
* the [-0-9a-zA-Z_] char class.
|
|
192
|
+
* @param options The options parameters.
|
|
193
|
+
*/
|
|
194
|
+
get(resourceGroupName, cacheName, options) {
|
|
195
|
+
return this.client.sendOperationRequest({ resourceGroupName, cacheName, options }, getOperationSpec);
|
|
196
|
+
}
|
|
197
|
+
/**
|
|
198
|
+
* Create or update a Cache.
|
|
199
|
+
* @param resourceGroupName Target resource group.
|
|
200
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
201
|
+
* the [-0-9a-zA-Z_] char class.
|
|
202
|
+
* @param options The options parameters.
|
|
203
|
+
*/
|
|
204
|
+
beginCreateOrUpdate(resourceGroupName, cacheName, options) {
|
|
205
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
206
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
207
|
+
return this.client.sendOperationRequest(args, spec);
|
|
208
|
+
});
|
|
209
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
210
|
+
var _a;
|
|
211
|
+
let currentRawResponse = undefined;
|
|
212
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
213
|
+
const callback = (rawResponse, flatResponse) => {
|
|
214
|
+
currentRawResponse = rawResponse;
|
|
215
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
216
|
+
};
|
|
217
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
218
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
219
|
+
return {
|
|
220
|
+
flatResponse,
|
|
221
|
+
rawResponse: {
|
|
222
|
+
statusCode: currentRawResponse.status,
|
|
223
|
+
body: currentRawResponse.parsedBody,
|
|
224
|
+
headers: currentRawResponse.headers.toJSON()
|
|
225
|
+
}
|
|
226
|
+
};
|
|
227
|
+
});
|
|
228
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, cacheName, options }, createOrUpdateOperationSpec);
|
|
229
|
+
return new LroEngine(lro, {
|
|
230
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
231
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
232
|
+
});
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
/**
|
|
236
|
+
* Create or update a Cache.
|
|
237
|
+
* @param resourceGroupName Target resource group.
|
|
238
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
239
|
+
* the [-0-9a-zA-Z_] char class.
|
|
240
|
+
* @param options The options parameters.
|
|
241
|
+
*/
|
|
242
|
+
beginCreateOrUpdateAndWait(resourceGroupName, cacheName, options) {
|
|
243
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
244
|
+
const poller = yield this.beginCreateOrUpdate(resourceGroupName, cacheName, options);
|
|
245
|
+
return poller.pollUntilDone();
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Update a Cache instance.
|
|
250
|
+
* @param resourceGroupName Target resource group.
|
|
251
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
252
|
+
* the [-0-9a-zA-Z_] char class.
|
|
253
|
+
* @param options The options parameters.
|
|
254
|
+
*/
|
|
255
|
+
update(resourceGroupName, cacheName, options) {
|
|
256
|
+
return this.client.sendOperationRequest({ resourceGroupName, cacheName, options }, updateOperationSpec);
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* Tells a Cache to write generate debug info for support to process.
|
|
260
|
+
* @param resourceGroupName Target resource group.
|
|
261
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
262
|
+
* the [-0-9a-zA-Z_] char class.
|
|
263
|
+
* @param options The options parameters.
|
|
264
|
+
*/
|
|
265
|
+
beginDebugInfo(resourceGroupName, cacheName, options) {
|
|
266
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
267
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
268
|
+
return this.client.sendOperationRequest(args, spec);
|
|
269
|
+
});
|
|
270
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
271
|
+
var _a;
|
|
272
|
+
let currentRawResponse = undefined;
|
|
273
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
274
|
+
const callback = (rawResponse, flatResponse) => {
|
|
275
|
+
currentRawResponse = rawResponse;
|
|
276
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
277
|
+
};
|
|
278
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
279
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
280
|
+
return {
|
|
281
|
+
flatResponse,
|
|
282
|
+
rawResponse: {
|
|
283
|
+
statusCode: currentRawResponse.status,
|
|
284
|
+
body: currentRawResponse.parsedBody,
|
|
285
|
+
headers: currentRawResponse.headers.toJSON()
|
|
286
|
+
}
|
|
287
|
+
};
|
|
288
|
+
});
|
|
289
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, cacheName, options }, debugInfoOperationSpec);
|
|
290
|
+
return new LroEngine(lro, {
|
|
291
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
292
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
293
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
294
|
+
});
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* Tells a Cache to write generate debug info for support to process.
|
|
299
|
+
* @param resourceGroupName Target resource group.
|
|
300
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
301
|
+
* the [-0-9a-zA-Z_] char class.
|
|
302
|
+
* @param options The options parameters.
|
|
303
|
+
*/
|
|
304
|
+
beginDebugInfoAndWait(resourceGroupName, cacheName, options) {
|
|
305
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
306
|
+
const poller = yield this.beginDebugInfo(resourceGroupName, cacheName, options);
|
|
307
|
+
return poller.pollUntilDone();
|
|
308
|
+
});
|
|
309
|
+
}
|
|
310
|
+
/**
|
|
311
|
+
* Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see
|
|
312
|
+
* errors returned until the flush is complete.
|
|
313
|
+
* @param resourceGroupName Target resource group.
|
|
314
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
315
|
+
* the [-0-9a-zA-Z_] char class.
|
|
316
|
+
* @param options The options parameters.
|
|
317
|
+
*/
|
|
318
|
+
beginFlush(resourceGroupName, cacheName, options) {
|
|
319
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
320
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
321
|
+
return this.client.sendOperationRequest(args, spec);
|
|
322
|
+
});
|
|
323
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
324
|
+
var _a;
|
|
325
|
+
let currentRawResponse = undefined;
|
|
326
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
327
|
+
const callback = (rawResponse, flatResponse) => {
|
|
328
|
+
currentRawResponse = rawResponse;
|
|
329
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
330
|
+
};
|
|
331
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
332
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
333
|
+
return {
|
|
334
|
+
flatResponse,
|
|
335
|
+
rawResponse: {
|
|
336
|
+
statusCode: currentRawResponse.status,
|
|
337
|
+
body: currentRawResponse.parsedBody,
|
|
338
|
+
headers: currentRawResponse.headers.toJSON()
|
|
339
|
+
}
|
|
340
|
+
};
|
|
341
|
+
});
|
|
342
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, cacheName, options }, flushOperationSpec);
|
|
343
|
+
return new LroEngine(lro, {
|
|
344
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
345
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
346
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
347
|
+
});
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
/**
|
|
351
|
+
* Tells a Cache to write all dirty data to the Storage Target(s). During the flush, clients will see
|
|
352
|
+
* errors returned until the flush is complete.
|
|
353
|
+
* @param resourceGroupName Target resource group.
|
|
354
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
355
|
+
* the [-0-9a-zA-Z_] char class.
|
|
356
|
+
* @param options The options parameters.
|
|
357
|
+
*/
|
|
358
|
+
beginFlushAndWait(resourceGroupName, cacheName, options) {
|
|
359
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
360
|
+
const poller = yield this.beginFlush(resourceGroupName, cacheName, options);
|
|
361
|
+
return poller.pollUntilDone();
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
/**
|
|
365
|
+
* Tells a Stopped state Cache to transition to Active state.
|
|
366
|
+
* @param resourceGroupName Target resource group.
|
|
367
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
368
|
+
* the [-0-9a-zA-Z_] char class.
|
|
369
|
+
* @param options The options parameters.
|
|
370
|
+
*/
|
|
371
|
+
beginStart(resourceGroupName, cacheName, options) {
|
|
372
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
373
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
374
|
+
return this.client.sendOperationRequest(args, spec);
|
|
375
|
+
});
|
|
376
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
377
|
+
var _a;
|
|
378
|
+
let currentRawResponse = undefined;
|
|
379
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
380
|
+
const callback = (rawResponse, flatResponse) => {
|
|
381
|
+
currentRawResponse = rawResponse;
|
|
382
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
383
|
+
};
|
|
384
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
385
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
386
|
+
return {
|
|
387
|
+
flatResponse,
|
|
388
|
+
rawResponse: {
|
|
389
|
+
statusCode: currentRawResponse.status,
|
|
390
|
+
body: currentRawResponse.parsedBody,
|
|
391
|
+
headers: currentRawResponse.headers.toJSON()
|
|
392
|
+
}
|
|
393
|
+
};
|
|
394
|
+
});
|
|
395
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, cacheName, options }, startOperationSpec);
|
|
396
|
+
return new LroEngine(lro, {
|
|
397
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
398
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
399
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
400
|
+
});
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* Tells a Stopped state Cache to transition to Active state.
|
|
405
|
+
* @param resourceGroupName Target resource group.
|
|
406
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
407
|
+
* the [-0-9a-zA-Z_] char class.
|
|
408
|
+
* @param options The options parameters.
|
|
409
|
+
*/
|
|
410
|
+
beginStartAndWait(resourceGroupName, cacheName, options) {
|
|
411
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
412
|
+
const poller = yield this.beginStart(resourceGroupName, cacheName, options);
|
|
413
|
+
return poller.pollUntilDone();
|
|
414
|
+
});
|
|
415
|
+
}
|
|
416
|
+
/**
|
|
417
|
+
* Tells an Active Cache to transition to Stopped state.
|
|
418
|
+
* @param resourceGroupName Target resource group.
|
|
419
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
420
|
+
* the [-0-9a-zA-Z_] char class.
|
|
421
|
+
* @param options The options parameters.
|
|
422
|
+
*/
|
|
423
|
+
beginStop(resourceGroupName, cacheName, options) {
|
|
424
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
425
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
426
|
+
return this.client.sendOperationRequest(args, spec);
|
|
427
|
+
});
|
|
428
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
429
|
+
var _a;
|
|
430
|
+
let currentRawResponse = undefined;
|
|
431
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
432
|
+
const callback = (rawResponse, flatResponse) => {
|
|
433
|
+
currentRawResponse = rawResponse;
|
|
434
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
435
|
+
};
|
|
436
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
437
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
438
|
+
return {
|
|
439
|
+
flatResponse,
|
|
440
|
+
rawResponse: {
|
|
441
|
+
statusCode: currentRawResponse.status,
|
|
442
|
+
body: currentRawResponse.parsedBody,
|
|
443
|
+
headers: currentRawResponse.headers.toJSON()
|
|
444
|
+
}
|
|
445
|
+
};
|
|
446
|
+
});
|
|
447
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, cacheName, options }, stopOperationSpec);
|
|
448
|
+
return new LroEngine(lro, {
|
|
449
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
450
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
451
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
452
|
+
});
|
|
453
|
+
});
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* Tells an Active Cache to transition to Stopped state.
|
|
457
|
+
* @param resourceGroupName Target resource group.
|
|
458
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
459
|
+
* the [-0-9a-zA-Z_] char class.
|
|
460
|
+
* @param options The options parameters.
|
|
461
|
+
*/
|
|
462
|
+
beginStopAndWait(resourceGroupName, cacheName, options) {
|
|
463
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
464
|
+
const poller = yield this.beginStop(resourceGroupName, cacheName, options);
|
|
465
|
+
return poller.pollUntilDone();
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect.
|
|
470
|
+
* @param resourceGroupName Target resource group.
|
|
471
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
472
|
+
* the [-0-9a-zA-Z_] char class.
|
|
473
|
+
* @param options The options parameters.
|
|
474
|
+
*/
|
|
475
|
+
beginUpgradeFirmware(resourceGroupName, cacheName, options) {
|
|
476
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
477
|
+
const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
478
|
+
return this.client.sendOperationRequest(args, spec);
|
|
479
|
+
});
|
|
480
|
+
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
481
|
+
var _a;
|
|
482
|
+
let currentRawResponse = undefined;
|
|
483
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
484
|
+
const callback = (rawResponse, flatResponse) => {
|
|
485
|
+
currentRawResponse = rawResponse;
|
|
486
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
487
|
+
};
|
|
488
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
489
|
+
const flatResponse = yield directSendOperation(updatedArgs, spec);
|
|
490
|
+
return {
|
|
491
|
+
flatResponse,
|
|
492
|
+
rawResponse: {
|
|
493
|
+
statusCode: currentRawResponse.status,
|
|
494
|
+
body: currentRawResponse.parsedBody,
|
|
495
|
+
headers: currentRawResponse.headers.toJSON()
|
|
496
|
+
}
|
|
497
|
+
};
|
|
498
|
+
});
|
|
499
|
+
const lro = new LroImpl(sendOperation, { resourceGroupName, cacheName, options }, upgradeFirmwareOperationSpec);
|
|
500
|
+
return new LroEngine(lro, {
|
|
501
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
502
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
503
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
504
|
+
});
|
|
505
|
+
});
|
|
506
|
+
}
|
|
507
|
+
/**
|
|
508
|
+
* Upgrade a Cache's firmware if a new version is available. Otherwise, this operation has no effect.
|
|
509
|
+
* @param resourceGroupName Target resource group.
|
|
510
|
+
* @param cacheName Name of Cache. Length of name must not be greater than 80 and chars must be from
|
|
511
|
+
* the [-0-9a-zA-Z_] char class.
|
|
512
|
+
* @param options The options parameters.
|
|
513
|
+
*/
|
|
514
|
+
beginUpgradeFirmwareAndWait(resourceGroupName, cacheName, options) {
|
|
515
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
516
|
+
const poller = yield this.beginUpgradeFirmware(resourceGroupName, cacheName, options);
|
|
517
|
+
return poller.pollUntilDone();
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* ListNext
|
|
522
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
523
|
+
* @param options The options parameters.
|
|
524
|
+
*/
|
|
525
|
+
_listNext(nextLink, options) {
|
|
526
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* ListByResourceGroupNext
|
|
530
|
+
* @param resourceGroupName Target resource group.
|
|
531
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
532
|
+
* @param options The options parameters.
|
|
533
|
+
*/
|
|
534
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
535
|
+
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
// Operation Specifications
|
|
539
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
540
|
+
const listOperationSpec = {
|
|
541
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/caches",
|
|
542
|
+
httpMethod: "GET",
|
|
543
|
+
responses: {
|
|
544
|
+
200: {
|
|
545
|
+
bodyMapper: Mappers.CachesListResult
|
|
546
|
+
},
|
|
547
|
+
default: {
|
|
548
|
+
bodyMapper: Mappers.CloudError
|
|
549
|
+
}
|
|
550
|
+
},
|
|
551
|
+
queryParameters: [Parameters.apiVersion],
|
|
552
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
553
|
+
headerParameters: [Parameters.accept],
|
|
554
|
+
serializer
|
|
555
|
+
};
|
|
556
|
+
const listByResourceGroupOperationSpec = {
|
|
557
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches",
|
|
558
|
+
httpMethod: "GET",
|
|
559
|
+
responses: {
|
|
560
|
+
200: {
|
|
561
|
+
bodyMapper: Mappers.CachesListResult
|
|
562
|
+
},
|
|
563
|
+
default: {
|
|
564
|
+
bodyMapper: Mappers.CloudError
|
|
565
|
+
}
|
|
566
|
+
},
|
|
567
|
+
queryParameters: [Parameters.apiVersion],
|
|
568
|
+
urlParameters: [
|
|
569
|
+
Parameters.$host,
|
|
570
|
+
Parameters.subscriptionId,
|
|
571
|
+
Parameters.resourceGroupName
|
|
572
|
+
],
|
|
573
|
+
headerParameters: [Parameters.accept],
|
|
574
|
+
serializer
|
|
575
|
+
};
|
|
576
|
+
const deleteOperationSpec = {
|
|
577
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}",
|
|
578
|
+
httpMethod: "DELETE",
|
|
579
|
+
responses: {
|
|
580
|
+
200: {},
|
|
581
|
+
201: {},
|
|
582
|
+
202: {},
|
|
583
|
+
204: {},
|
|
584
|
+
default: {
|
|
585
|
+
bodyMapper: Mappers.CloudError
|
|
586
|
+
}
|
|
587
|
+
},
|
|
588
|
+
queryParameters: [Parameters.apiVersion],
|
|
589
|
+
urlParameters: [
|
|
590
|
+
Parameters.$host,
|
|
591
|
+
Parameters.subscriptionId,
|
|
592
|
+
Parameters.resourceGroupName,
|
|
593
|
+
Parameters.cacheName
|
|
594
|
+
],
|
|
595
|
+
headerParameters: [Parameters.accept],
|
|
596
|
+
serializer
|
|
597
|
+
};
|
|
598
|
+
const getOperationSpec = {
|
|
599
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}",
|
|
600
|
+
httpMethod: "GET",
|
|
601
|
+
responses: {
|
|
602
|
+
200: {
|
|
603
|
+
bodyMapper: Mappers.Cache
|
|
604
|
+
},
|
|
605
|
+
default: {
|
|
606
|
+
bodyMapper: Mappers.CloudError
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
queryParameters: [Parameters.apiVersion],
|
|
610
|
+
urlParameters: [
|
|
611
|
+
Parameters.$host,
|
|
612
|
+
Parameters.subscriptionId,
|
|
613
|
+
Parameters.resourceGroupName,
|
|
614
|
+
Parameters.cacheName
|
|
615
|
+
],
|
|
616
|
+
headerParameters: [Parameters.accept],
|
|
617
|
+
serializer
|
|
618
|
+
};
|
|
619
|
+
const createOrUpdateOperationSpec = {
|
|
620
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}",
|
|
621
|
+
httpMethod: "PUT",
|
|
622
|
+
responses: {
|
|
623
|
+
200: {
|
|
624
|
+
bodyMapper: Mappers.Cache
|
|
625
|
+
},
|
|
626
|
+
201: {
|
|
627
|
+
bodyMapper: Mappers.Cache
|
|
628
|
+
},
|
|
629
|
+
202: {
|
|
630
|
+
bodyMapper: Mappers.Cache
|
|
631
|
+
},
|
|
632
|
+
204: {
|
|
633
|
+
bodyMapper: Mappers.Cache
|
|
634
|
+
},
|
|
635
|
+
default: {
|
|
636
|
+
bodyMapper: Mappers.CloudError
|
|
637
|
+
}
|
|
638
|
+
},
|
|
639
|
+
requestBody: Parameters.cache,
|
|
640
|
+
queryParameters: [Parameters.apiVersion],
|
|
641
|
+
urlParameters: [
|
|
642
|
+
Parameters.$host,
|
|
643
|
+
Parameters.subscriptionId,
|
|
644
|
+
Parameters.resourceGroupName,
|
|
645
|
+
Parameters.cacheName
|
|
646
|
+
],
|
|
647
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
648
|
+
mediaType: "json",
|
|
649
|
+
serializer
|
|
650
|
+
};
|
|
651
|
+
const updateOperationSpec = {
|
|
652
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}",
|
|
653
|
+
httpMethod: "PATCH",
|
|
654
|
+
responses: {
|
|
655
|
+
200: {
|
|
656
|
+
bodyMapper: Mappers.Cache
|
|
657
|
+
},
|
|
658
|
+
default: {
|
|
659
|
+
bodyMapper: Mappers.CloudError
|
|
660
|
+
}
|
|
661
|
+
},
|
|
662
|
+
requestBody: Parameters.cache,
|
|
663
|
+
queryParameters: [Parameters.apiVersion],
|
|
664
|
+
urlParameters: [
|
|
665
|
+
Parameters.$host,
|
|
666
|
+
Parameters.subscriptionId,
|
|
667
|
+
Parameters.resourceGroupName,
|
|
668
|
+
Parameters.cacheName
|
|
669
|
+
],
|
|
670
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
671
|
+
mediaType: "json",
|
|
672
|
+
serializer
|
|
673
|
+
};
|
|
674
|
+
const debugInfoOperationSpec = {
|
|
675
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/debugInfo",
|
|
676
|
+
httpMethod: "POST",
|
|
677
|
+
responses: {
|
|
678
|
+
200: {},
|
|
679
|
+
201: {},
|
|
680
|
+
202: {},
|
|
681
|
+
204: {},
|
|
682
|
+
default: {
|
|
683
|
+
bodyMapper: Mappers.CloudError
|
|
684
|
+
}
|
|
685
|
+
},
|
|
686
|
+
queryParameters: [Parameters.apiVersion],
|
|
687
|
+
urlParameters: [
|
|
688
|
+
Parameters.$host,
|
|
689
|
+
Parameters.subscriptionId,
|
|
690
|
+
Parameters.resourceGroupName,
|
|
691
|
+
Parameters.cacheName
|
|
692
|
+
],
|
|
693
|
+
headerParameters: [Parameters.accept],
|
|
694
|
+
serializer
|
|
695
|
+
};
|
|
696
|
+
const flushOperationSpec = {
|
|
697
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/flush",
|
|
698
|
+
httpMethod: "POST",
|
|
699
|
+
responses: {
|
|
700
|
+
200: {},
|
|
701
|
+
201: {},
|
|
702
|
+
202: {},
|
|
703
|
+
204: {},
|
|
704
|
+
default: {
|
|
705
|
+
bodyMapper: Mappers.CloudError
|
|
706
|
+
}
|
|
707
|
+
},
|
|
708
|
+
queryParameters: [Parameters.apiVersion],
|
|
709
|
+
urlParameters: [
|
|
710
|
+
Parameters.$host,
|
|
711
|
+
Parameters.subscriptionId,
|
|
712
|
+
Parameters.resourceGroupName,
|
|
713
|
+
Parameters.cacheName
|
|
714
|
+
],
|
|
715
|
+
headerParameters: [Parameters.accept],
|
|
716
|
+
serializer
|
|
717
|
+
};
|
|
718
|
+
const startOperationSpec = {
|
|
719
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/start",
|
|
720
|
+
httpMethod: "POST",
|
|
721
|
+
responses: {
|
|
722
|
+
200: {},
|
|
723
|
+
201: {},
|
|
724
|
+
202: {},
|
|
725
|
+
204: {},
|
|
726
|
+
default: {
|
|
727
|
+
bodyMapper: Mappers.CloudError
|
|
728
|
+
}
|
|
729
|
+
},
|
|
730
|
+
queryParameters: [Parameters.apiVersion],
|
|
731
|
+
urlParameters: [
|
|
732
|
+
Parameters.$host,
|
|
733
|
+
Parameters.subscriptionId,
|
|
734
|
+
Parameters.resourceGroupName,
|
|
735
|
+
Parameters.cacheName
|
|
736
|
+
],
|
|
737
|
+
headerParameters: [Parameters.accept],
|
|
738
|
+
serializer
|
|
739
|
+
};
|
|
740
|
+
const stopOperationSpec = {
|
|
741
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/stop",
|
|
742
|
+
httpMethod: "POST",
|
|
743
|
+
responses: {
|
|
744
|
+
200: {},
|
|
745
|
+
201: {},
|
|
746
|
+
202: {},
|
|
747
|
+
204: {},
|
|
748
|
+
default: {
|
|
749
|
+
bodyMapper: Mappers.CloudError
|
|
750
|
+
}
|
|
751
|
+
},
|
|
752
|
+
queryParameters: [Parameters.apiVersion],
|
|
753
|
+
urlParameters: [
|
|
754
|
+
Parameters.$host,
|
|
755
|
+
Parameters.subscriptionId,
|
|
756
|
+
Parameters.resourceGroupName,
|
|
757
|
+
Parameters.cacheName
|
|
758
|
+
],
|
|
759
|
+
headerParameters: [Parameters.accept],
|
|
760
|
+
serializer
|
|
761
|
+
};
|
|
762
|
+
const upgradeFirmwareOperationSpec = {
|
|
763
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/upgrade",
|
|
764
|
+
httpMethod: "POST",
|
|
765
|
+
responses: {
|
|
766
|
+
200: {},
|
|
767
|
+
201: {},
|
|
768
|
+
202: {},
|
|
769
|
+
204: {},
|
|
770
|
+
default: {
|
|
771
|
+
bodyMapper: Mappers.CloudError
|
|
772
|
+
}
|
|
773
|
+
},
|
|
774
|
+
queryParameters: [Parameters.apiVersion],
|
|
775
|
+
urlParameters: [
|
|
776
|
+
Parameters.$host,
|
|
777
|
+
Parameters.subscriptionId,
|
|
778
|
+
Parameters.resourceGroupName,
|
|
779
|
+
Parameters.cacheName
|
|
780
|
+
],
|
|
781
|
+
headerParameters: [Parameters.accept],
|
|
782
|
+
serializer
|
|
783
|
+
};
|
|
784
|
+
const listNextOperationSpec = {
|
|
785
|
+
path: "{nextLink}",
|
|
786
|
+
httpMethod: "GET",
|
|
787
|
+
responses: {
|
|
788
|
+
200: {
|
|
789
|
+
bodyMapper: Mappers.CachesListResult
|
|
790
|
+
},
|
|
791
|
+
default: {
|
|
792
|
+
bodyMapper: Mappers.CloudError
|
|
793
|
+
}
|
|
794
|
+
},
|
|
795
|
+
queryParameters: [Parameters.apiVersion],
|
|
796
|
+
urlParameters: [
|
|
797
|
+
Parameters.$host,
|
|
798
|
+
Parameters.nextLink,
|
|
799
|
+
Parameters.subscriptionId
|
|
800
|
+
],
|
|
801
|
+
headerParameters: [Parameters.accept],
|
|
802
|
+
serializer
|
|
803
|
+
};
|
|
804
|
+
const listByResourceGroupNextOperationSpec = {
|
|
805
|
+
path: "{nextLink}",
|
|
806
|
+
httpMethod: "GET",
|
|
807
|
+
responses: {
|
|
808
|
+
200: {
|
|
809
|
+
bodyMapper: Mappers.CachesListResult
|
|
810
|
+
},
|
|
811
|
+
default: {
|
|
812
|
+
bodyMapper: Mappers.CloudError
|
|
813
|
+
}
|
|
814
|
+
},
|
|
815
|
+
queryParameters: [Parameters.apiVersion],
|
|
816
|
+
urlParameters: [
|
|
817
|
+
Parameters.$host,
|
|
818
|
+
Parameters.nextLink,
|
|
819
|
+
Parameters.subscriptionId,
|
|
820
|
+
Parameters.resourceGroupName
|
|
821
|
+
],
|
|
822
|
+
headerParameters: [Parameters.accept],
|
|
823
|
+
serializer
|
|
824
|
+
};
|
|
825
|
+
//# sourceMappingURL=caches.js.map
|