@azure/arm-storagecache 8.1.0 → 8.2.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/README.md +2 -2
- package/dist/browser/models/index.d.ts +185 -2
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js +32 -0
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/mappers.d.ts +6 -0
- package/dist/browser/models/mappers.d.ts.map +1 -1
- package/dist/browser/models/mappers.js +183 -0
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/models/parameters.d.ts +3 -0
- package/dist/browser/models/parameters.d.ts.map +1 -1
- package/dist/browser/models/parameters.js +25 -2
- package/dist/browser/models/parameters.js.map +1 -1
- package/dist/browser/operations/expansionJobs.d.ts +120 -0
- package/dist/browser/operations/expansionJobs.d.ts.map +1 -0
- package/dist/browser/operations/expansionJobs.js +473 -0
- package/dist/browser/operations/expansionJobs.js.map +1 -0
- package/dist/browser/operations/index.d.ts +1 -0
- package/dist/browser/operations/index.d.ts.map +1 -1
- package/dist/browser/operations/index.js +1 -0
- package/dist/browser/operations/index.js.map +1 -1
- package/dist/browser/operationsInterfaces/expansionJobs.d.ts +93 -0
- package/dist/browser/operationsInterfaces/expansionJobs.d.ts.map +1 -0
- package/dist/browser/operationsInterfaces/expansionJobs.js +4 -0
- package/dist/browser/operationsInterfaces/expansionJobs.js.map +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts +1 -0
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/index.js +1 -0
- package/dist/browser/operationsInterfaces/index.js.map +1 -1
- package/dist/browser/storageCacheManagementClient.d.ts +2 -1
- package/dist/browser/storageCacheManagementClient.d.ts.map +1 -1
- package/dist/browser/storageCacheManagementClient.js +5 -3
- package/dist/browser/storageCacheManagementClient.js.map +1 -1
- package/dist/commonjs/index.js +35 -16
- package/dist/commonjs/index.js.map +7 -1
- package/dist/commonjs/lroImpl.js +41 -21
- package/dist/commonjs/lroImpl.js.map +7 -1
- package/dist/commonjs/models/index.d.ts +185 -2
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +326 -386
- package/dist/commonjs/models/index.js.map +7 -1
- package/dist/commonjs/models/mappers.d.ts +6 -0
- package/dist/commonjs/models/mappers.d.ts.map +1 -1
- package/dist/commonjs/models/mappers.js +4573 -4116
- package/dist/commonjs/models/mappers.js.map +7 -1
- package/dist/commonjs/models/parameters.d.ts +3 -0
- package/dist/commonjs/models/parameters.d.ts.map +1 -1
- package/dist/commonjs/models/parameters.js +402 -287
- package/dist/commonjs/models/parameters.js.map +7 -1
- package/dist/commonjs/operations/amlFilesystems.js +594 -540
- package/dist/commonjs/operations/amlFilesystems.js.map +7 -1
- package/dist/commonjs/operations/ascOperations.js +79 -49
- package/dist/commonjs/operations/ascOperations.js.map +7 -1
- package/dist/commonjs/operations/ascUsages.js +141 -112
- package/dist/commonjs/operations/ascUsages.js.map +7 -1
- package/dist/commonjs/operations/autoExportJobs.js +527 -458
- package/dist/commonjs/operations/autoExportJobs.js.map +7 -1
- package/dist/commonjs/operations/autoImportJobs.js +527 -458
- package/dist/commonjs/operations/autoImportJobs.js.map +7 -1
- package/dist/commonjs/operations/caches.js +1353 -1315
- package/dist/commonjs/operations/caches.js.map +7 -1
- package/dist/commonjs/operations/expansionJobs.d.ts +120 -0
- package/dist/commonjs/operations/expansionJobs.d.ts.map +1 -0
- package/dist/commonjs/operations/expansionJobs.js +547 -0
- package/dist/commonjs/operations/expansionJobs.js.map +7 -0
- package/dist/commonjs/operations/importJobs.js +522 -453
- package/dist/commonjs/operations/importJobs.js.map +7 -1
- package/dist/commonjs/operations/index.d.ts +1 -0
- package/dist/commonjs/operations/index.d.ts.map +1 -1
- package/dist/commonjs/operations/index.js +45 -20
- package/dist/commonjs/operations/index.js.map +7 -1
- package/dist/commonjs/operations/operations.js +133 -104
- package/dist/commonjs/operations/operations.js.map +7 -1
- package/dist/commonjs/operations/skus.js +133 -104
- package/dist/commonjs/operations/skus.js.map +7 -1
- package/dist/commonjs/operations/storageTargetOperations.js +396 -356
- package/dist/commonjs/operations/storageTargetOperations.js.map +7 -1
- package/dist/commonjs/operations/storageTargets.js +567 -508
- package/dist/commonjs/operations/storageTargets.js.map +7 -1
- package/dist/commonjs/operations/usageModels.js +133 -104
- package/dist/commonjs/operations/usageModels.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/amlFilesystems.js +15 -5
- package/dist/commonjs/operationsInterfaces/amlFilesystems.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/ascOperations.js +15 -5
- package/dist/commonjs/operationsInterfaces/ascOperations.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/ascUsages.js +15 -5
- package/dist/commonjs/operationsInterfaces/ascUsages.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/autoExportJobs.js +15 -5
- package/dist/commonjs/operationsInterfaces/autoExportJobs.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/autoImportJobs.js +15 -5
- package/dist/commonjs/operationsInterfaces/autoImportJobs.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/caches.js +15 -5
- package/dist/commonjs/operationsInterfaces/caches.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/expansionJobs.d.ts +93 -0
- package/dist/commonjs/operationsInterfaces/expansionJobs.d.ts.map +1 -0
- package/dist/commonjs/operationsInterfaces/expansionJobs.js +15 -0
- package/dist/commonjs/operationsInterfaces/expansionJobs.js.map +7 -0
- package/dist/commonjs/operationsInterfaces/importJobs.js +15 -5
- package/dist/commonjs/operationsInterfaces/importJobs.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/index.d.ts +1 -0
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/index.js +45 -20
- package/dist/commonjs/operationsInterfaces/index.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/operations.js +15 -5
- package/dist/commonjs/operationsInterfaces/operations.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/skus.js +15 -5
- package/dist/commonjs/operationsInterfaces/skus.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/storageTargetOperations.js +15 -5
- package/dist/commonjs/operationsInterfaces/storageTargetOperations.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/storageTargets.js +15 -5
- package/dist/commonjs/operationsInterfaces/storageTargets.js.map +7 -1
- package/dist/commonjs/operationsInterfaces/usageModels.js +15 -5
- package/dist/commonjs/operationsInterfaces/usageModels.js.map +7 -1
- package/dist/commonjs/pagingHelper.js +39 -25
- package/dist/commonjs/pagingHelper.js.map +7 -1
- package/dist/commonjs/storageCacheManagementClient.d.ts +2 -1
- package/dist/commonjs/storageCacheManagementClient.d.ts.map +1 -1
- package/dist/commonjs/storageCacheManagementClient.js +198 -172
- package/dist/commonjs/storageCacheManagementClient.js.map +7 -1
- package/dist/commonjs/tsdoc-metadata.json +1 -1
- package/dist/esm/index.js +6 -8
- package/dist/esm/index.js.map +7 -1
- package/dist/esm/lroImpl.js +19 -19
- package/dist/esm/lroImpl.js.map +7 -1
- package/dist/esm/models/index.d.ts +185 -2
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +272 -383
- package/dist/esm/models/index.js.map +7 -1
- package/dist/esm/models/mappers.d.ts +6 -0
- package/dist/esm/models/mappers.d.ts.map +1 -1
- package/dist/esm/models/mappers.js +4422 -4111
- package/dist/esm/models/mappers.js.map +7 -1
- package/dist/esm/models/parameters.d.ts +3 -0
- package/dist/esm/models/parameters.d.ts.map +1 -1
- package/dist/esm/models/parameters.js +360 -283
- package/dist/esm/models/parameters.js.map +7 -1
- package/dist/esm/operations/amlFilesystems.js +556 -530
- package/dist/esm/operations/amlFilesystems.js.map +7 -1
- package/dist/esm/operations/ascOperations.js +44 -42
- package/dist/esm/operations/ascOperations.js.map +7 -1
- package/dist/esm/operations/ascUsages.js +105 -104
- package/dist/esm/operations/ascUsages.js.map +7 -1
- package/dist/esm/operations/autoExportJobs.js +489 -448
- package/dist/esm/operations/autoExportJobs.js.map +7 -1
- package/dist/esm/operations/autoImportJobs.js +489 -448
- package/dist/esm/operations/autoImportJobs.js.map +7 -1
- package/dist/esm/operations/caches.js +1315 -1305
- package/dist/esm/operations/caches.js.map +7 -1
- package/dist/esm/operations/expansionJobs.d.ts +120 -0
- package/dist/esm/operations/expansionJobs.d.ts.map +1 -0
- package/dist/esm/operations/expansionJobs.js +514 -0
- package/dist/esm/operations/expansionJobs.js.map +7 -0
- package/dist/esm/operations/importJobs.js +484 -443
- package/dist/esm/operations/importJobs.js.map +7 -1
- package/dist/esm/operations/index.d.ts +1 -0
- package/dist/esm/operations/index.d.ts.map +1 -1
- package/dist/esm/operations/index.js +1 -5
- package/dist/esm/operations/index.js.map +7 -1
- package/dist/esm/operations/operations.js +97 -96
- package/dist/esm/operations/operations.js.map +7 -1
- package/dist/esm/operations/skus.js +97 -96
- package/dist/esm/operations/skus.js.map +7 -1
- package/dist/esm/operations/storageTargetOperations.js +359 -347
- package/dist/esm/operations/storageTargetOperations.js.map +7 -1
- package/dist/esm/operations/storageTargets.js +529 -498
- package/dist/esm/operations/storageTargets.js.map +7 -1
- package/dist/esm/operations/usageModels.js +97 -96
- package/dist/esm/operations/usageModels.js.map +7 -1
- package/dist/esm/operationsInterfaces/amlFilesystems.js +0 -4
- package/dist/esm/operationsInterfaces/amlFilesystems.js.map +7 -1
- package/dist/esm/operationsInterfaces/ascOperations.js +0 -4
- package/dist/esm/operationsInterfaces/ascOperations.js.map +7 -1
- package/dist/esm/operationsInterfaces/ascUsages.js +0 -4
- package/dist/esm/operationsInterfaces/ascUsages.js.map +7 -1
- package/dist/esm/operationsInterfaces/autoExportJobs.js +0 -4
- package/dist/esm/operationsInterfaces/autoExportJobs.js.map +7 -1
- package/dist/esm/operationsInterfaces/autoImportJobs.js +0 -4
- package/dist/esm/operationsInterfaces/autoImportJobs.js.map +7 -1
- package/dist/esm/operationsInterfaces/caches.js +0 -4
- package/dist/esm/operationsInterfaces/caches.js.map +7 -1
- package/dist/esm/operationsInterfaces/expansionJobs.d.ts +93 -0
- package/dist/esm/operationsInterfaces/expansionJobs.d.ts.map +1 -0
- package/dist/esm/operationsInterfaces/expansionJobs.js +0 -0
- package/dist/esm/operationsInterfaces/expansionJobs.js.map +7 -0
- package/dist/esm/operationsInterfaces/importJobs.js +0 -4
- package/dist/esm/operationsInterfaces/importJobs.js.map +7 -1
- package/dist/esm/operationsInterfaces/index.d.ts +1 -0
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/index.js +1 -5
- package/dist/esm/operationsInterfaces/index.js.map +7 -1
- package/dist/esm/operationsInterfaces/operations.js +0 -4
- package/dist/esm/operationsInterfaces/operations.js.map +7 -1
- package/dist/esm/operationsInterfaces/skus.js +0 -4
- package/dist/esm/operationsInterfaces/skus.js.map +7 -1
- package/dist/esm/operationsInterfaces/storageTargetOperations.js +0 -4
- package/dist/esm/operationsInterfaces/storageTargetOperations.js.map +7 -1
- package/dist/esm/operationsInterfaces/storageTargets.js +0 -4
- package/dist/esm/operationsInterfaces/storageTargets.js.map +7 -1
- package/dist/esm/operationsInterfaces/usageModels.js +0 -4
- package/dist/esm/operationsInterfaces/usageModels.js.map +7 -1
- package/dist/esm/pagingHelper.js +17 -23
- package/dist/esm/pagingHelper.js.map +7 -1
- package/dist/esm/storageCacheManagementClient.d.ts +2 -1
- package/dist/esm/storageCacheManagementClient.d.ts.map +1 -1
- package/dist/esm/storageCacheManagementClient.js +176 -164
- package/dist/esm/storageCacheManagementClient.js.map +7 -1
- package/dist/react-native/models/index.d.ts +185 -2
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js +32 -0
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/mappers.d.ts +6 -0
- package/dist/react-native/models/mappers.d.ts.map +1 -1
- package/dist/react-native/models/mappers.js +183 -0
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/models/parameters.d.ts +3 -0
- package/dist/react-native/models/parameters.d.ts.map +1 -1
- package/dist/react-native/models/parameters.js +25 -2
- package/dist/react-native/models/parameters.js.map +1 -1
- package/dist/react-native/operations/expansionJobs.d.ts +120 -0
- package/dist/react-native/operations/expansionJobs.d.ts.map +1 -0
- package/dist/react-native/operations/expansionJobs.js +473 -0
- package/dist/react-native/operations/expansionJobs.js.map +1 -0
- package/dist/react-native/operations/index.d.ts +1 -0
- package/dist/react-native/operations/index.d.ts.map +1 -1
- package/dist/react-native/operations/index.js +1 -0
- package/dist/react-native/operations/index.js.map +1 -1
- package/dist/react-native/operationsInterfaces/expansionJobs.d.ts +93 -0
- package/dist/react-native/operationsInterfaces/expansionJobs.d.ts.map +1 -0
- package/dist/react-native/operationsInterfaces/expansionJobs.js +4 -0
- package/dist/react-native/operationsInterfaces/expansionJobs.js.map +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts +1 -0
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/index.js +1 -0
- package/dist/react-native/operationsInterfaces/index.js.map +1 -1
- package/dist/react-native/storageCacheManagementClient.d.ts +2 -1
- package/dist/react-native/storageCacheManagementClient.d.ts.map +1 -1
- package/dist/react-native/storageCacheManagementClient.js +5 -3
- package/dist/react-native/storageCacheManagementClient.js.map +1 -1
- package/package.json +26 -38
|
@@ -1,1369 +1,1379 @@
|
|
|
1
|
-
// Copyright (c) Microsoft Corporation.
|
|
2
|
-
// Licensed under the MIT License.
|
|
3
1
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
4
2
|
import * as coreClient from "@azure/core-client";
|
|
5
3
|
import * as Mappers from "../models/mappers.js";
|
|
6
4
|
import * as Parameters from "../models/parameters.js";
|
|
7
5
|
import { createHttpPoller } from "@azure/core-lro";
|
|
8
6
|
import { createLroSpec } from "../lroImpl.js";
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
7
|
+
class CachesImpl {
|
|
8
|
+
client;
|
|
9
|
+
/**
|
|
10
|
+
* Initialize a new instance of the class Caches class.
|
|
11
|
+
* @param client Reference to the service client
|
|
12
|
+
*/
|
|
13
|
+
constructor(client) {
|
|
14
|
+
this.client = client;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Returns all caches the user has access to under a subscription.
|
|
18
|
+
* @param options The options parameters.
|
|
19
|
+
*/
|
|
20
|
+
list(options) {
|
|
21
|
+
const iter = this.listPagingAll(options);
|
|
22
|
+
return {
|
|
23
|
+
next() {
|
|
24
|
+
return iter.next();
|
|
25
|
+
},
|
|
26
|
+
[Symbol.asyncIterator]() {
|
|
27
|
+
return this;
|
|
28
|
+
},
|
|
29
|
+
byPage: (settings) => {
|
|
30
|
+
if (settings?.maxPageSize) {
|
|
31
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
32
|
+
}
|
|
33
|
+
return this.listPagingPage(options, settings);
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
async *listPagingPage(options, settings) {
|
|
38
|
+
let result;
|
|
39
|
+
let continuationToken = settings?.continuationToken;
|
|
40
|
+
if (!continuationToken) {
|
|
41
|
+
result = await this._list(options);
|
|
42
|
+
let page = result.value || [];
|
|
43
|
+
continuationToken = result.nextLink;
|
|
44
|
+
setContinuationToken(page, continuationToken);
|
|
45
|
+
yield page;
|
|
19
46
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
return {
|
|
27
|
-
next() {
|
|
28
|
-
return iter.next();
|
|
29
|
-
},
|
|
30
|
-
[Symbol.asyncIterator]() {
|
|
31
|
-
return this;
|
|
32
|
-
},
|
|
33
|
-
byPage: (settings) => {
|
|
34
|
-
if (settings?.maxPageSize) {
|
|
35
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
36
|
-
}
|
|
37
|
-
return this.listPagingPage(options, settings);
|
|
38
|
-
},
|
|
39
|
-
};
|
|
47
|
+
while (continuationToken) {
|
|
48
|
+
result = await this._listNext(continuationToken, options);
|
|
49
|
+
continuationToken = result.nextLink;
|
|
50
|
+
let page = result.value || [];
|
|
51
|
+
setContinuationToken(page, continuationToken);
|
|
52
|
+
yield page;
|
|
40
53
|
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
result = await this._list(options);
|
|
46
|
-
let page = result.value || [];
|
|
47
|
-
continuationToken = result.nextLink;
|
|
48
|
-
setContinuationToken(page, continuationToken);
|
|
49
|
-
yield page;
|
|
50
|
-
}
|
|
51
|
-
while (continuationToken) {
|
|
52
|
-
result = await this._listNext(continuationToken, options);
|
|
53
|
-
continuationToken = result.nextLink;
|
|
54
|
-
let page = result.value || [];
|
|
55
|
-
setContinuationToken(page, continuationToken);
|
|
56
|
-
yield page;
|
|
57
|
-
}
|
|
54
|
+
}
|
|
55
|
+
async *listPagingAll(options) {
|
|
56
|
+
for await (const page of this.listPagingPage(options)) {
|
|
57
|
+
yield* page;
|
|
58
58
|
}
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Returns all caches the user has access to under a resource group.
|
|
62
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
63
|
+
* @param options The options parameters.
|
|
64
|
+
*/
|
|
65
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
66
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
67
|
+
return {
|
|
68
|
+
next() {
|
|
69
|
+
return iter.next();
|
|
70
|
+
},
|
|
71
|
+
[Symbol.asyncIterator]() {
|
|
72
|
+
return this;
|
|
73
|
+
},
|
|
74
|
+
byPage: (settings) => {
|
|
75
|
+
if (settings?.maxPageSize) {
|
|
76
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
62
77
|
}
|
|
78
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
83
|
+
let result;
|
|
84
|
+
let continuationToken = settings?.continuationToken;
|
|
85
|
+
if (!continuationToken) {
|
|
86
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
87
|
+
let page = result.value || [];
|
|
88
|
+
continuationToken = result.nextLink;
|
|
89
|
+
setContinuationToken(page, continuationToken);
|
|
90
|
+
yield page;
|
|
91
|
+
}
|
|
92
|
+
while (continuationToken) {
|
|
93
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
94
|
+
continuationToken = result.nextLink;
|
|
95
|
+
let page = result.value || [];
|
|
96
|
+
setContinuationToken(page, continuationToken);
|
|
97
|
+
yield page;
|
|
63
98
|
}
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
*/
|
|
69
|
-
listByResourceGroup(resourceGroupName, options) {
|
|
70
|
-
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
71
|
-
return {
|
|
72
|
-
next() {
|
|
73
|
-
return iter.next();
|
|
74
|
-
},
|
|
75
|
-
[Symbol.asyncIterator]() {
|
|
76
|
-
return this;
|
|
77
|
-
},
|
|
78
|
-
byPage: (settings) => {
|
|
79
|
-
if (settings?.maxPageSize) {
|
|
80
|
-
throw new Error("maxPageSize is not supported by this operation.");
|
|
81
|
-
}
|
|
82
|
-
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
83
|
-
},
|
|
84
|
-
};
|
|
99
|
+
}
|
|
100
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
101
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
102
|
+
yield* page;
|
|
85
103
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Returns all caches the user has access to under a subscription.
|
|
107
|
+
* @param options The options parameters.
|
|
108
|
+
*/
|
|
109
|
+
_list(options) {
|
|
110
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Returns all caches the user has access to under a resource group.
|
|
114
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
115
|
+
* @param options The options parameters.
|
|
116
|
+
*/
|
|
117
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
118
|
+
return this.client.sendOperationRequest(
|
|
119
|
+
{ resourceGroupName, options },
|
|
120
|
+
listByResourceGroupOperationSpec
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Schedules a cache for deletion.
|
|
125
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
126
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
127
|
+
* the [-0-9a-zA-Z_] char class.
|
|
128
|
+
* @param options The options parameters.
|
|
129
|
+
*/
|
|
130
|
+
async beginDelete(resourceGroupName, cacheName, options) {
|
|
131
|
+
const directSendOperation = async (args, spec) => {
|
|
132
|
+
return this.client.sendOperationRequest(args, spec);
|
|
133
|
+
};
|
|
134
|
+
const sendOperationFn = async (args, spec) => {
|
|
135
|
+
let currentRawResponse = void 0;
|
|
136
|
+
const providedCallback = args.options?.onResponse;
|
|
137
|
+
const callback = (rawResponse, flatResponse2) => {
|
|
138
|
+
currentRawResponse = rawResponse;
|
|
139
|
+
providedCallback?.(rawResponse, flatResponse2);
|
|
140
|
+
};
|
|
141
|
+
const updatedArgs = {
|
|
142
|
+
...args,
|
|
143
|
+
options: {
|
|
144
|
+
...args.options,
|
|
145
|
+
onResponse: callback
|
|
95
146
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
147
|
+
};
|
|
148
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
149
|
+
return {
|
|
150
|
+
flatResponse,
|
|
151
|
+
rawResponse: {
|
|
152
|
+
statusCode: currentRawResponse.status,
|
|
153
|
+
body: currentRawResponse.parsedBody,
|
|
154
|
+
headers: currentRawResponse.headers.toJSON()
|
|
102
155
|
}
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
const lro = createLroSpec({
|
|
159
|
+
sendOperationFn,
|
|
160
|
+
args: { resourceGroupName, cacheName, options },
|
|
161
|
+
spec: deleteOperationSpec
|
|
162
|
+
});
|
|
163
|
+
const poller = await createHttpPoller(lro, {
|
|
164
|
+
restoreFrom: options?.resumeFrom,
|
|
165
|
+
intervalInMs: options?.updateIntervalInMs
|
|
166
|
+
});
|
|
167
|
+
await poller.poll();
|
|
168
|
+
return poller;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* Schedules a cache for deletion.
|
|
172
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
173
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
174
|
+
* the [-0-9a-zA-Z_] char class.
|
|
175
|
+
* @param options The options parameters.
|
|
176
|
+
*/
|
|
177
|
+
async beginDeleteAndWait(resourceGroupName, cacheName, options) {
|
|
178
|
+
const poller = await this.beginDelete(resourceGroupName, cacheName, options);
|
|
179
|
+
return poller.pollUntilDone();
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Returns a cache.
|
|
183
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
184
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
185
|
+
* the [-0-9a-zA-Z_] char class.
|
|
186
|
+
* @param options The options parameters.
|
|
187
|
+
*/
|
|
188
|
+
get(resourceGroupName, cacheName, options) {
|
|
189
|
+
return this.client.sendOperationRequest(
|
|
190
|
+
{ resourceGroupName, cacheName, options },
|
|
191
|
+
getOperationSpec
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Create or update a cache.
|
|
196
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
197
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
198
|
+
* the [-0-9a-zA-Z_] char class.
|
|
199
|
+
* @param cache Object containing the user-selectable properties of the new cache. If read-only
|
|
200
|
+
* properties are included, they must match the existing values of those properties.
|
|
201
|
+
* @param options The options parameters.
|
|
202
|
+
*/
|
|
203
|
+
async beginCreateOrUpdate(resourceGroupName, cacheName, cache, options) {
|
|
204
|
+
const directSendOperation = async (args, spec) => {
|
|
205
|
+
return this.client.sendOperationRequest(args, spec);
|
|
206
|
+
};
|
|
207
|
+
const sendOperationFn = async (args, spec) => {
|
|
208
|
+
let currentRawResponse = void 0;
|
|
209
|
+
const providedCallback = args.options?.onResponse;
|
|
210
|
+
const callback = (rawResponse, flatResponse2) => {
|
|
211
|
+
currentRawResponse = rawResponse;
|
|
212
|
+
providedCallback?.(rawResponse, flatResponse2);
|
|
213
|
+
};
|
|
214
|
+
const updatedArgs = {
|
|
215
|
+
...args,
|
|
216
|
+
options: {
|
|
217
|
+
...args.options,
|
|
218
|
+
onResponse: callback
|
|
107
219
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
}
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
}
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
}
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
}
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
}
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
rawResponse: {
|
|
816
|
-
statusCode: currentRawResponse.status,
|
|
817
|
-
body: currentRawResponse.parsedBody,
|
|
818
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
819
|
-
},
|
|
820
|
-
};
|
|
821
|
-
};
|
|
822
|
-
const lro = createLroSpec({
|
|
823
|
-
sendOperationFn,
|
|
824
|
-
args: { resourceGroupName, cacheName, options },
|
|
825
|
-
spec: upgradeFirmwareOperationSpec,
|
|
826
|
-
});
|
|
827
|
-
const poller = await createHttpPoller(lro, {
|
|
828
|
-
restoreFrom: options?.resumeFrom,
|
|
829
|
-
intervalInMs: options?.updateIntervalInMs,
|
|
830
|
-
resourceLocationConfig: "azure-async-operation",
|
|
831
|
-
});
|
|
832
|
-
await poller.poll();
|
|
833
|
-
return poller;
|
|
834
|
-
}
|
|
835
|
-
/**
|
|
836
|
-
* Upgrade a cache's firmware if a new version is available. Otherwise, this operation has no effect.
|
|
837
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
838
|
-
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
839
|
-
* the [-0-9a-zA-Z_] char class.
|
|
840
|
-
* @param options The options parameters.
|
|
841
|
-
*/
|
|
842
|
-
async beginUpgradeFirmwareAndWait(resourceGroupName, cacheName, options) {
|
|
843
|
-
const poller = await this.beginUpgradeFirmware(resourceGroupName, cacheName, options);
|
|
844
|
-
return poller.pollUntilDone();
|
|
845
|
-
}
|
|
846
|
-
/**
|
|
847
|
-
* Update cache space allocation.
|
|
848
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
849
|
-
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
850
|
-
* the [-0-9a-zA-Z_] char class.
|
|
851
|
-
* @param options The options parameters.
|
|
852
|
-
*/
|
|
853
|
-
async beginSpaceAllocation(resourceGroupName, cacheName, options) {
|
|
854
|
-
const directSendOperation = async (args, spec) => {
|
|
855
|
-
return this.client.sendOperationRequest(args, spec);
|
|
856
|
-
};
|
|
857
|
-
const sendOperationFn = async (args, spec) => {
|
|
858
|
-
let currentRawResponse = undefined;
|
|
859
|
-
const providedCallback = args.options?.onResponse;
|
|
860
|
-
const callback = (rawResponse, flatResponse) => {
|
|
861
|
-
currentRawResponse = rawResponse;
|
|
862
|
-
providedCallback?.(rawResponse, flatResponse);
|
|
863
|
-
};
|
|
864
|
-
const updatedArgs = {
|
|
865
|
-
...args,
|
|
866
|
-
options: {
|
|
867
|
-
...args.options,
|
|
868
|
-
onResponse: callback,
|
|
869
|
-
},
|
|
870
|
-
};
|
|
871
|
-
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
872
|
-
return {
|
|
873
|
-
flatResponse,
|
|
874
|
-
rawResponse: {
|
|
875
|
-
statusCode: currentRawResponse.status,
|
|
876
|
-
body: currentRawResponse.parsedBody,
|
|
877
|
-
headers: currentRawResponse.headers.toJSON(),
|
|
878
|
-
},
|
|
879
|
-
};
|
|
880
|
-
};
|
|
881
|
-
const lro = createLroSpec({
|
|
882
|
-
sendOperationFn,
|
|
883
|
-
args: { resourceGroupName, cacheName, options },
|
|
884
|
-
spec: spaceAllocationOperationSpec,
|
|
885
|
-
});
|
|
886
|
-
const poller = await createHttpPoller(lro, {
|
|
887
|
-
restoreFrom: options?.resumeFrom,
|
|
888
|
-
intervalInMs: options?.updateIntervalInMs,
|
|
889
|
-
resourceLocationConfig: "azure-async-operation",
|
|
890
|
-
});
|
|
891
|
-
await poller.poll();
|
|
892
|
-
return poller;
|
|
893
|
-
}
|
|
894
|
-
/**
|
|
895
|
-
* Update cache space allocation.
|
|
896
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
897
|
-
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
898
|
-
* the [-0-9a-zA-Z_] char class.
|
|
899
|
-
* @param options The options parameters.
|
|
900
|
-
*/
|
|
901
|
-
async beginSpaceAllocationAndWait(resourceGroupName, cacheName, options) {
|
|
902
|
-
const poller = await this.beginSpaceAllocation(resourceGroupName, cacheName, options);
|
|
903
|
-
return poller.pollUntilDone();
|
|
904
|
-
}
|
|
905
|
-
/**
|
|
906
|
-
* ListNext
|
|
907
|
-
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
908
|
-
* @param options The options parameters.
|
|
909
|
-
*/
|
|
910
|
-
_listNext(nextLink, options) {
|
|
911
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
912
|
-
}
|
|
913
|
-
/**
|
|
914
|
-
* ListByResourceGroupNext
|
|
915
|
-
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
916
|
-
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
917
|
-
* @param options The options parameters.
|
|
918
|
-
*/
|
|
919
|
-
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
920
|
-
return this.client.sendOperationRequest({ resourceGroupName, nextLink, options }, listByResourceGroupNextOperationSpec);
|
|
921
|
-
}
|
|
220
|
+
};
|
|
221
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
222
|
+
return {
|
|
223
|
+
flatResponse,
|
|
224
|
+
rawResponse: {
|
|
225
|
+
statusCode: currentRawResponse.status,
|
|
226
|
+
body: currentRawResponse.parsedBody,
|
|
227
|
+
headers: currentRawResponse.headers.toJSON()
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
const lro = createLroSpec({
|
|
232
|
+
sendOperationFn,
|
|
233
|
+
args: { resourceGroupName, cacheName, cache, options },
|
|
234
|
+
spec: createOrUpdateOperationSpec
|
|
235
|
+
});
|
|
236
|
+
const poller = await createHttpPoller(lro, {
|
|
237
|
+
restoreFrom: options?.resumeFrom,
|
|
238
|
+
intervalInMs: options?.updateIntervalInMs
|
|
239
|
+
});
|
|
240
|
+
await poller.poll();
|
|
241
|
+
return poller;
|
|
242
|
+
}
|
|
243
|
+
/**
|
|
244
|
+
* Create or update a cache.
|
|
245
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
246
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
247
|
+
* the [-0-9a-zA-Z_] char class.
|
|
248
|
+
* @param cache Object containing the user-selectable properties of the new cache. If read-only
|
|
249
|
+
* properties are included, they must match the existing values of those properties.
|
|
250
|
+
* @param options The options parameters.
|
|
251
|
+
*/
|
|
252
|
+
async beginCreateOrUpdateAndWait(resourceGroupName, cacheName, cache, options) {
|
|
253
|
+
const poller = await this.beginCreateOrUpdate(resourceGroupName, cacheName, cache, options);
|
|
254
|
+
return poller.pollUntilDone();
|
|
255
|
+
}
|
|
256
|
+
/**
|
|
257
|
+
* Update a cache instance.
|
|
258
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
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.
|
|
262
|
+
*/
|
|
263
|
+
async beginUpdate(resourceGroupName, cacheName, options) {
|
|
264
|
+
const directSendOperation = async (args, spec) => {
|
|
265
|
+
return this.client.sendOperationRequest(args, spec);
|
|
266
|
+
};
|
|
267
|
+
const sendOperationFn = async (args, spec) => {
|
|
268
|
+
let currentRawResponse = void 0;
|
|
269
|
+
const providedCallback = args.options?.onResponse;
|
|
270
|
+
const callback = (rawResponse, flatResponse2) => {
|
|
271
|
+
currentRawResponse = rawResponse;
|
|
272
|
+
providedCallback?.(rawResponse, flatResponse2);
|
|
273
|
+
};
|
|
274
|
+
const updatedArgs = {
|
|
275
|
+
...args,
|
|
276
|
+
options: {
|
|
277
|
+
...args.options,
|
|
278
|
+
onResponse: callback
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
282
|
+
return {
|
|
283
|
+
flatResponse,
|
|
284
|
+
rawResponse: {
|
|
285
|
+
statusCode: currentRawResponse.status,
|
|
286
|
+
body: currentRawResponse.parsedBody,
|
|
287
|
+
headers: currentRawResponse.headers.toJSON()
|
|
288
|
+
}
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
const lro = createLroSpec({
|
|
292
|
+
sendOperationFn,
|
|
293
|
+
args: { resourceGroupName, cacheName, options },
|
|
294
|
+
spec: updateOperationSpec
|
|
295
|
+
});
|
|
296
|
+
const poller = await createHttpPoller(lro, {
|
|
297
|
+
restoreFrom: options?.resumeFrom,
|
|
298
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
299
|
+
resourceLocationConfig: "azure-async-operation"
|
|
300
|
+
});
|
|
301
|
+
await poller.poll();
|
|
302
|
+
return poller;
|
|
303
|
+
}
|
|
304
|
+
/**
|
|
305
|
+
* Update a cache instance.
|
|
306
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
307
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
308
|
+
* the [-0-9a-zA-Z_] char class.
|
|
309
|
+
* @param options The options parameters.
|
|
310
|
+
*/
|
|
311
|
+
async beginUpdateAndWait(resourceGroupName, cacheName, options) {
|
|
312
|
+
const poller = await this.beginUpdate(resourceGroupName, cacheName, options);
|
|
313
|
+
return poller.pollUntilDone();
|
|
314
|
+
}
|
|
315
|
+
/**
|
|
316
|
+
* Tells a cache to write generate debug info for support to process.
|
|
317
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
318
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
319
|
+
* the [-0-9a-zA-Z_] char class.
|
|
320
|
+
* @param options The options parameters.
|
|
321
|
+
*/
|
|
322
|
+
async beginDebugInfo(resourceGroupName, cacheName, options) {
|
|
323
|
+
const directSendOperation = async (args, spec) => {
|
|
324
|
+
return this.client.sendOperationRequest(args, spec);
|
|
325
|
+
};
|
|
326
|
+
const sendOperationFn = async (args, spec) => {
|
|
327
|
+
let currentRawResponse = void 0;
|
|
328
|
+
const providedCallback = args.options?.onResponse;
|
|
329
|
+
const callback = (rawResponse, flatResponse2) => {
|
|
330
|
+
currentRawResponse = rawResponse;
|
|
331
|
+
providedCallback?.(rawResponse, flatResponse2);
|
|
332
|
+
};
|
|
333
|
+
const updatedArgs = {
|
|
334
|
+
...args,
|
|
335
|
+
options: {
|
|
336
|
+
...args.options,
|
|
337
|
+
onResponse: callback
|
|
338
|
+
}
|
|
339
|
+
};
|
|
340
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
341
|
+
return {
|
|
342
|
+
flatResponse,
|
|
343
|
+
rawResponse: {
|
|
344
|
+
statusCode: currentRawResponse.status,
|
|
345
|
+
body: currentRawResponse.parsedBody,
|
|
346
|
+
headers: currentRawResponse.headers.toJSON()
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
const lro = createLroSpec({
|
|
351
|
+
sendOperationFn,
|
|
352
|
+
args: { resourceGroupName, cacheName, options },
|
|
353
|
+
spec: debugInfoOperationSpec
|
|
354
|
+
});
|
|
355
|
+
const poller = await createHttpPoller(lro, {
|
|
356
|
+
restoreFrom: options?.resumeFrom,
|
|
357
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
358
|
+
resourceLocationConfig: "azure-async-operation"
|
|
359
|
+
});
|
|
360
|
+
await poller.poll();
|
|
361
|
+
return poller;
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* Tells a cache to write generate debug info for support to process.
|
|
365
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
366
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
367
|
+
* the [-0-9a-zA-Z_] char class.
|
|
368
|
+
* @param options The options parameters.
|
|
369
|
+
*/
|
|
370
|
+
async beginDebugInfoAndWait(resourceGroupName, cacheName, options) {
|
|
371
|
+
const poller = await this.beginDebugInfo(resourceGroupName, cacheName, options);
|
|
372
|
+
return poller.pollUntilDone();
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* Tells a cache to write all dirty data to the Storage Target(s). During the flush, clients will see
|
|
376
|
+
* errors returned until the flush is complete.
|
|
377
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
378
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
379
|
+
* the [-0-9a-zA-Z_] char class.
|
|
380
|
+
* @param options The options parameters.
|
|
381
|
+
*/
|
|
382
|
+
async beginFlush(resourceGroupName, cacheName, options) {
|
|
383
|
+
const directSendOperation = async (args, spec) => {
|
|
384
|
+
return this.client.sendOperationRequest(args, spec);
|
|
385
|
+
};
|
|
386
|
+
const sendOperationFn = async (args, spec) => {
|
|
387
|
+
let currentRawResponse = void 0;
|
|
388
|
+
const providedCallback = args.options?.onResponse;
|
|
389
|
+
const callback = (rawResponse, flatResponse2) => {
|
|
390
|
+
currentRawResponse = rawResponse;
|
|
391
|
+
providedCallback?.(rawResponse, flatResponse2);
|
|
392
|
+
};
|
|
393
|
+
const updatedArgs = {
|
|
394
|
+
...args,
|
|
395
|
+
options: {
|
|
396
|
+
...args.options,
|
|
397
|
+
onResponse: callback
|
|
398
|
+
}
|
|
399
|
+
};
|
|
400
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
401
|
+
return {
|
|
402
|
+
flatResponse,
|
|
403
|
+
rawResponse: {
|
|
404
|
+
statusCode: currentRawResponse.status,
|
|
405
|
+
body: currentRawResponse.parsedBody,
|
|
406
|
+
headers: currentRawResponse.headers.toJSON()
|
|
407
|
+
}
|
|
408
|
+
};
|
|
409
|
+
};
|
|
410
|
+
const lro = createLroSpec({
|
|
411
|
+
sendOperationFn,
|
|
412
|
+
args: { resourceGroupName, cacheName, options },
|
|
413
|
+
spec: flushOperationSpec
|
|
414
|
+
});
|
|
415
|
+
const poller = await createHttpPoller(lro, {
|
|
416
|
+
restoreFrom: options?.resumeFrom,
|
|
417
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
418
|
+
resourceLocationConfig: "azure-async-operation"
|
|
419
|
+
});
|
|
420
|
+
await poller.poll();
|
|
421
|
+
return poller;
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* Tells a cache to write all dirty data to the Storage Target(s). During the flush, clients will see
|
|
425
|
+
* errors returned until the flush is complete.
|
|
426
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
427
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
428
|
+
* the [-0-9a-zA-Z_] char class.
|
|
429
|
+
* @param options The options parameters.
|
|
430
|
+
*/
|
|
431
|
+
async beginFlushAndWait(resourceGroupName, cacheName, options) {
|
|
432
|
+
const poller = await this.beginFlush(resourceGroupName, cacheName, options);
|
|
433
|
+
return poller.pollUntilDone();
|
|
434
|
+
}
|
|
435
|
+
/**
|
|
436
|
+
* Tells a Stopped state cache to transition to Active state.
|
|
437
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
438
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
439
|
+
* the [-0-9a-zA-Z_] char class.
|
|
440
|
+
* @param options The options parameters.
|
|
441
|
+
*/
|
|
442
|
+
async beginStart(resourceGroupName, cacheName, options) {
|
|
443
|
+
const directSendOperation = async (args, spec) => {
|
|
444
|
+
return this.client.sendOperationRequest(args, spec);
|
|
445
|
+
};
|
|
446
|
+
const sendOperationFn = async (args, spec) => {
|
|
447
|
+
let currentRawResponse = void 0;
|
|
448
|
+
const providedCallback = args.options?.onResponse;
|
|
449
|
+
const callback = (rawResponse, flatResponse2) => {
|
|
450
|
+
currentRawResponse = rawResponse;
|
|
451
|
+
providedCallback?.(rawResponse, flatResponse2);
|
|
452
|
+
};
|
|
453
|
+
const updatedArgs = {
|
|
454
|
+
...args,
|
|
455
|
+
options: {
|
|
456
|
+
...args.options,
|
|
457
|
+
onResponse: callback
|
|
458
|
+
}
|
|
459
|
+
};
|
|
460
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
461
|
+
return {
|
|
462
|
+
flatResponse,
|
|
463
|
+
rawResponse: {
|
|
464
|
+
statusCode: currentRawResponse.status,
|
|
465
|
+
body: currentRawResponse.parsedBody,
|
|
466
|
+
headers: currentRawResponse.headers.toJSON()
|
|
467
|
+
}
|
|
468
|
+
};
|
|
469
|
+
};
|
|
470
|
+
const lro = createLroSpec({
|
|
471
|
+
sendOperationFn,
|
|
472
|
+
args: { resourceGroupName, cacheName, options },
|
|
473
|
+
spec: startOperationSpec
|
|
474
|
+
});
|
|
475
|
+
const poller = await createHttpPoller(lro, {
|
|
476
|
+
restoreFrom: options?.resumeFrom,
|
|
477
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
478
|
+
resourceLocationConfig: "azure-async-operation"
|
|
479
|
+
});
|
|
480
|
+
await poller.poll();
|
|
481
|
+
return poller;
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* Tells a Stopped state cache to transition to Active state.
|
|
485
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
486
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
487
|
+
* the [-0-9a-zA-Z_] char class.
|
|
488
|
+
* @param options The options parameters.
|
|
489
|
+
*/
|
|
490
|
+
async beginStartAndWait(resourceGroupName, cacheName, options) {
|
|
491
|
+
const poller = await this.beginStart(resourceGroupName, cacheName, options);
|
|
492
|
+
return poller.pollUntilDone();
|
|
493
|
+
}
|
|
494
|
+
/**
|
|
495
|
+
* Tells an Active cache to transition to Stopped state.
|
|
496
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
497
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
498
|
+
* the [-0-9a-zA-Z_] char class.
|
|
499
|
+
* @param options The options parameters.
|
|
500
|
+
*/
|
|
501
|
+
async beginStop(resourceGroupName, cacheName, options) {
|
|
502
|
+
const directSendOperation = async (args, spec) => {
|
|
503
|
+
return this.client.sendOperationRequest(args, spec);
|
|
504
|
+
};
|
|
505
|
+
const sendOperationFn = async (args, spec) => {
|
|
506
|
+
let currentRawResponse = void 0;
|
|
507
|
+
const providedCallback = args.options?.onResponse;
|
|
508
|
+
const callback = (rawResponse, flatResponse2) => {
|
|
509
|
+
currentRawResponse = rawResponse;
|
|
510
|
+
providedCallback?.(rawResponse, flatResponse2);
|
|
511
|
+
};
|
|
512
|
+
const updatedArgs = {
|
|
513
|
+
...args,
|
|
514
|
+
options: {
|
|
515
|
+
...args.options,
|
|
516
|
+
onResponse: callback
|
|
517
|
+
}
|
|
518
|
+
};
|
|
519
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
520
|
+
return {
|
|
521
|
+
flatResponse,
|
|
522
|
+
rawResponse: {
|
|
523
|
+
statusCode: currentRawResponse.status,
|
|
524
|
+
body: currentRawResponse.parsedBody,
|
|
525
|
+
headers: currentRawResponse.headers.toJSON()
|
|
526
|
+
}
|
|
527
|
+
};
|
|
528
|
+
};
|
|
529
|
+
const lro = createLroSpec({
|
|
530
|
+
sendOperationFn,
|
|
531
|
+
args: { resourceGroupName, cacheName, options },
|
|
532
|
+
spec: stopOperationSpec
|
|
533
|
+
});
|
|
534
|
+
const poller = await createHttpPoller(lro, {
|
|
535
|
+
restoreFrom: options?.resumeFrom,
|
|
536
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
537
|
+
resourceLocationConfig: "azure-async-operation"
|
|
538
|
+
});
|
|
539
|
+
await poller.poll();
|
|
540
|
+
return poller;
|
|
541
|
+
}
|
|
542
|
+
/**
|
|
543
|
+
* Tells an Active cache to transition to Stopped state.
|
|
544
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
545
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
546
|
+
* the [-0-9a-zA-Z_] char class.
|
|
547
|
+
* @param options The options parameters.
|
|
548
|
+
*/
|
|
549
|
+
async beginStopAndWait(resourceGroupName, cacheName, options) {
|
|
550
|
+
const poller = await this.beginStop(resourceGroupName, cacheName, options);
|
|
551
|
+
return poller.pollUntilDone();
|
|
552
|
+
}
|
|
553
|
+
/**
|
|
554
|
+
* Create a priming job. This operation is only allowed when the cache is healthy.
|
|
555
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
556
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
557
|
+
* the [-0-9a-zA-Z_] char class.
|
|
558
|
+
* @param options The options parameters.
|
|
559
|
+
*/
|
|
560
|
+
async beginStartPrimingJob(resourceGroupName, cacheName, options) {
|
|
561
|
+
const directSendOperation = async (args, spec) => {
|
|
562
|
+
return this.client.sendOperationRequest(args, spec);
|
|
563
|
+
};
|
|
564
|
+
const sendOperationFn = async (args, spec) => {
|
|
565
|
+
let currentRawResponse = void 0;
|
|
566
|
+
const providedCallback = args.options?.onResponse;
|
|
567
|
+
const callback = (rawResponse, flatResponse2) => {
|
|
568
|
+
currentRawResponse = rawResponse;
|
|
569
|
+
providedCallback?.(rawResponse, flatResponse2);
|
|
570
|
+
};
|
|
571
|
+
const updatedArgs = {
|
|
572
|
+
...args,
|
|
573
|
+
options: {
|
|
574
|
+
...args.options,
|
|
575
|
+
onResponse: callback
|
|
576
|
+
}
|
|
577
|
+
};
|
|
578
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
579
|
+
return {
|
|
580
|
+
flatResponse,
|
|
581
|
+
rawResponse: {
|
|
582
|
+
statusCode: currentRawResponse.status,
|
|
583
|
+
body: currentRawResponse.parsedBody,
|
|
584
|
+
headers: currentRawResponse.headers.toJSON()
|
|
585
|
+
}
|
|
586
|
+
};
|
|
587
|
+
};
|
|
588
|
+
const lro = createLroSpec({
|
|
589
|
+
sendOperationFn,
|
|
590
|
+
args: { resourceGroupName, cacheName, options },
|
|
591
|
+
spec: startPrimingJobOperationSpec
|
|
592
|
+
});
|
|
593
|
+
const poller = await createHttpPoller(lro, {
|
|
594
|
+
restoreFrom: options?.resumeFrom,
|
|
595
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
596
|
+
resourceLocationConfig: "azure-async-operation"
|
|
597
|
+
});
|
|
598
|
+
await poller.poll();
|
|
599
|
+
return poller;
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
* Create a priming job. This operation is only allowed when the cache is healthy.
|
|
603
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
604
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
605
|
+
* the [-0-9a-zA-Z_] char class.
|
|
606
|
+
* @param options The options parameters.
|
|
607
|
+
*/
|
|
608
|
+
async beginStartPrimingJobAndWait(resourceGroupName, cacheName, options) {
|
|
609
|
+
const poller = await this.beginStartPrimingJob(resourceGroupName, cacheName, options);
|
|
610
|
+
return poller.pollUntilDone();
|
|
611
|
+
}
|
|
612
|
+
/**
|
|
613
|
+
* Schedule a priming job for deletion.
|
|
614
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
615
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
616
|
+
* the [-0-9a-zA-Z_] char class.
|
|
617
|
+
* @param options The options parameters.
|
|
618
|
+
*/
|
|
619
|
+
async beginStopPrimingJob(resourceGroupName, cacheName, options) {
|
|
620
|
+
const directSendOperation = async (args, spec) => {
|
|
621
|
+
return this.client.sendOperationRequest(args, spec);
|
|
622
|
+
};
|
|
623
|
+
const sendOperationFn = async (args, spec) => {
|
|
624
|
+
let currentRawResponse = void 0;
|
|
625
|
+
const providedCallback = args.options?.onResponse;
|
|
626
|
+
const callback = (rawResponse, flatResponse2) => {
|
|
627
|
+
currentRawResponse = rawResponse;
|
|
628
|
+
providedCallback?.(rawResponse, flatResponse2);
|
|
629
|
+
};
|
|
630
|
+
const updatedArgs = {
|
|
631
|
+
...args,
|
|
632
|
+
options: {
|
|
633
|
+
...args.options,
|
|
634
|
+
onResponse: callback
|
|
635
|
+
}
|
|
636
|
+
};
|
|
637
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
638
|
+
return {
|
|
639
|
+
flatResponse,
|
|
640
|
+
rawResponse: {
|
|
641
|
+
statusCode: currentRawResponse.status,
|
|
642
|
+
body: currentRawResponse.parsedBody,
|
|
643
|
+
headers: currentRawResponse.headers.toJSON()
|
|
644
|
+
}
|
|
645
|
+
};
|
|
646
|
+
};
|
|
647
|
+
const lro = createLroSpec({
|
|
648
|
+
sendOperationFn,
|
|
649
|
+
args: { resourceGroupName, cacheName, options },
|
|
650
|
+
spec: stopPrimingJobOperationSpec
|
|
651
|
+
});
|
|
652
|
+
const poller = await createHttpPoller(lro, {
|
|
653
|
+
restoreFrom: options?.resumeFrom,
|
|
654
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
655
|
+
resourceLocationConfig: "azure-async-operation"
|
|
656
|
+
});
|
|
657
|
+
await poller.poll();
|
|
658
|
+
return poller;
|
|
659
|
+
}
|
|
660
|
+
/**
|
|
661
|
+
* Schedule a priming job for deletion.
|
|
662
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
663
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
664
|
+
* the [-0-9a-zA-Z_] char class.
|
|
665
|
+
* @param options The options parameters.
|
|
666
|
+
*/
|
|
667
|
+
async beginStopPrimingJobAndWait(resourceGroupName, cacheName, options) {
|
|
668
|
+
const poller = await this.beginStopPrimingJob(resourceGroupName, cacheName, options);
|
|
669
|
+
return poller.pollUntilDone();
|
|
670
|
+
}
|
|
671
|
+
/**
|
|
672
|
+
* Schedule a priming job to be paused.
|
|
673
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
674
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
675
|
+
* the [-0-9a-zA-Z_] char class.
|
|
676
|
+
* @param options The options parameters.
|
|
677
|
+
*/
|
|
678
|
+
async beginPausePrimingJob(resourceGroupName, cacheName, options) {
|
|
679
|
+
const directSendOperation = async (args, spec) => {
|
|
680
|
+
return this.client.sendOperationRequest(args, spec);
|
|
681
|
+
};
|
|
682
|
+
const sendOperationFn = async (args, spec) => {
|
|
683
|
+
let currentRawResponse = void 0;
|
|
684
|
+
const providedCallback = args.options?.onResponse;
|
|
685
|
+
const callback = (rawResponse, flatResponse2) => {
|
|
686
|
+
currentRawResponse = rawResponse;
|
|
687
|
+
providedCallback?.(rawResponse, flatResponse2);
|
|
688
|
+
};
|
|
689
|
+
const updatedArgs = {
|
|
690
|
+
...args,
|
|
691
|
+
options: {
|
|
692
|
+
...args.options,
|
|
693
|
+
onResponse: callback
|
|
694
|
+
}
|
|
695
|
+
};
|
|
696
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
697
|
+
return {
|
|
698
|
+
flatResponse,
|
|
699
|
+
rawResponse: {
|
|
700
|
+
statusCode: currentRawResponse.status,
|
|
701
|
+
body: currentRawResponse.parsedBody,
|
|
702
|
+
headers: currentRawResponse.headers.toJSON()
|
|
703
|
+
}
|
|
704
|
+
};
|
|
705
|
+
};
|
|
706
|
+
const lro = createLroSpec({
|
|
707
|
+
sendOperationFn,
|
|
708
|
+
args: { resourceGroupName, cacheName, options },
|
|
709
|
+
spec: pausePrimingJobOperationSpec
|
|
710
|
+
});
|
|
711
|
+
const poller = await createHttpPoller(lro, {
|
|
712
|
+
restoreFrom: options?.resumeFrom,
|
|
713
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
714
|
+
resourceLocationConfig: "azure-async-operation"
|
|
715
|
+
});
|
|
716
|
+
await poller.poll();
|
|
717
|
+
return poller;
|
|
718
|
+
}
|
|
719
|
+
/**
|
|
720
|
+
* Schedule a priming job to be paused.
|
|
721
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
722
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
723
|
+
* the [-0-9a-zA-Z_] char class.
|
|
724
|
+
* @param options The options parameters.
|
|
725
|
+
*/
|
|
726
|
+
async beginPausePrimingJobAndWait(resourceGroupName, cacheName, options) {
|
|
727
|
+
const poller = await this.beginPausePrimingJob(resourceGroupName, cacheName, options);
|
|
728
|
+
return poller.pollUntilDone();
|
|
729
|
+
}
|
|
730
|
+
/**
|
|
731
|
+
* Resumes a paused priming job.
|
|
732
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
733
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
734
|
+
* the [-0-9a-zA-Z_] char class.
|
|
735
|
+
* @param options The options parameters.
|
|
736
|
+
*/
|
|
737
|
+
async beginResumePrimingJob(resourceGroupName, cacheName, options) {
|
|
738
|
+
const directSendOperation = async (args, spec) => {
|
|
739
|
+
return this.client.sendOperationRequest(args, spec);
|
|
740
|
+
};
|
|
741
|
+
const sendOperationFn = async (args, spec) => {
|
|
742
|
+
let currentRawResponse = void 0;
|
|
743
|
+
const providedCallback = args.options?.onResponse;
|
|
744
|
+
const callback = (rawResponse, flatResponse2) => {
|
|
745
|
+
currentRawResponse = rawResponse;
|
|
746
|
+
providedCallback?.(rawResponse, flatResponse2);
|
|
747
|
+
};
|
|
748
|
+
const updatedArgs = {
|
|
749
|
+
...args,
|
|
750
|
+
options: {
|
|
751
|
+
...args.options,
|
|
752
|
+
onResponse: callback
|
|
753
|
+
}
|
|
754
|
+
};
|
|
755
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
756
|
+
return {
|
|
757
|
+
flatResponse,
|
|
758
|
+
rawResponse: {
|
|
759
|
+
statusCode: currentRawResponse.status,
|
|
760
|
+
body: currentRawResponse.parsedBody,
|
|
761
|
+
headers: currentRawResponse.headers.toJSON()
|
|
762
|
+
}
|
|
763
|
+
};
|
|
764
|
+
};
|
|
765
|
+
const lro = createLroSpec({
|
|
766
|
+
sendOperationFn,
|
|
767
|
+
args: { resourceGroupName, cacheName, options },
|
|
768
|
+
spec: resumePrimingJobOperationSpec
|
|
769
|
+
});
|
|
770
|
+
const poller = await createHttpPoller(lro, {
|
|
771
|
+
restoreFrom: options?.resumeFrom,
|
|
772
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
773
|
+
resourceLocationConfig: "azure-async-operation"
|
|
774
|
+
});
|
|
775
|
+
await poller.poll();
|
|
776
|
+
return poller;
|
|
777
|
+
}
|
|
778
|
+
/**
|
|
779
|
+
* Resumes a paused priming job.
|
|
780
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
781
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
782
|
+
* the [-0-9a-zA-Z_] char class.
|
|
783
|
+
* @param options The options parameters.
|
|
784
|
+
*/
|
|
785
|
+
async beginResumePrimingJobAndWait(resourceGroupName, cacheName, options) {
|
|
786
|
+
const poller = await this.beginResumePrimingJob(resourceGroupName, cacheName, options);
|
|
787
|
+
return poller.pollUntilDone();
|
|
788
|
+
}
|
|
789
|
+
/**
|
|
790
|
+
* Upgrade a cache's firmware if a new version is available. Otherwise, this operation has no effect.
|
|
791
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
792
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
793
|
+
* the [-0-9a-zA-Z_] char class.
|
|
794
|
+
* @param options The options parameters.
|
|
795
|
+
*/
|
|
796
|
+
async beginUpgradeFirmware(resourceGroupName, cacheName, options) {
|
|
797
|
+
const directSendOperation = async (args, spec) => {
|
|
798
|
+
return this.client.sendOperationRequest(args, spec);
|
|
799
|
+
};
|
|
800
|
+
const sendOperationFn = async (args, spec) => {
|
|
801
|
+
let currentRawResponse = void 0;
|
|
802
|
+
const providedCallback = args.options?.onResponse;
|
|
803
|
+
const callback = (rawResponse, flatResponse2) => {
|
|
804
|
+
currentRawResponse = rawResponse;
|
|
805
|
+
providedCallback?.(rawResponse, flatResponse2);
|
|
806
|
+
};
|
|
807
|
+
const updatedArgs = {
|
|
808
|
+
...args,
|
|
809
|
+
options: {
|
|
810
|
+
...args.options,
|
|
811
|
+
onResponse: callback
|
|
812
|
+
}
|
|
813
|
+
};
|
|
814
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
815
|
+
return {
|
|
816
|
+
flatResponse,
|
|
817
|
+
rawResponse: {
|
|
818
|
+
statusCode: currentRawResponse.status,
|
|
819
|
+
body: currentRawResponse.parsedBody,
|
|
820
|
+
headers: currentRawResponse.headers.toJSON()
|
|
821
|
+
}
|
|
822
|
+
};
|
|
823
|
+
};
|
|
824
|
+
const lro = createLroSpec({
|
|
825
|
+
sendOperationFn,
|
|
826
|
+
args: { resourceGroupName, cacheName, options },
|
|
827
|
+
spec: upgradeFirmwareOperationSpec
|
|
828
|
+
});
|
|
829
|
+
const poller = await createHttpPoller(lro, {
|
|
830
|
+
restoreFrom: options?.resumeFrom,
|
|
831
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
832
|
+
resourceLocationConfig: "azure-async-operation"
|
|
833
|
+
});
|
|
834
|
+
await poller.poll();
|
|
835
|
+
return poller;
|
|
836
|
+
}
|
|
837
|
+
/**
|
|
838
|
+
* Upgrade a cache's firmware if a new version is available. Otherwise, this operation has no effect.
|
|
839
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
840
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
841
|
+
* the [-0-9a-zA-Z_] char class.
|
|
842
|
+
* @param options The options parameters.
|
|
843
|
+
*/
|
|
844
|
+
async beginUpgradeFirmwareAndWait(resourceGroupName, cacheName, options) {
|
|
845
|
+
const poller = await this.beginUpgradeFirmware(resourceGroupName, cacheName, options);
|
|
846
|
+
return poller.pollUntilDone();
|
|
847
|
+
}
|
|
848
|
+
/**
|
|
849
|
+
* Update cache space allocation.
|
|
850
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
851
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
852
|
+
* the [-0-9a-zA-Z_] char class.
|
|
853
|
+
* @param options The options parameters.
|
|
854
|
+
*/
|
|
855
|
+
async beginSpaceAllocation(resourceGroupName, cacheName, options) {
|
|
856
|
+
const directSendOperation = async (args, spec) => {
|
|
857
|
+
return this.client.sendOperationRequest(args, spec);
|
|
858
|
+
};
|
|
859
|
+
const sendOperationFn = async (args, spec) => {
|
|
860
|
+
let currentRawResponse = void 0;
|
|
861
|
+
const providedCallback = args.options?.onResponse;
|
|
862
|
+
const callback = (rawResponse, flatResponse2) => {
|
|
863
|
+
currentRawResponse = rawResponse;
|
|
864
|
+
providedCallback?.(rawResponse, flatResponse2);
|
|
865
|
+
};
|
|
866
|
+
const updatedArgs = {
|
|
867
|
+
...args,
|
|
868
|
+
options: {
|
|
869
|
+
...args.options,
|
|
870
|
+
onResponse: callback
|
|
871
|
+
}
|
|
872
|
+
};
|
|
873
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
874
|
+
return {
|
|
875
|
+
flatResponse,
|
|
876
|
+
rawResponse: {
|
|
877
|
+
statusCode: currentRawResponse.status,
|
|
878
|
+
body: currentRawResponse.parsedBody,
|
|
879
|
+
headers: currentRawResponse.headers.toJSON()
|
|
880
|
+
}
|
|
881
|
+
};
|
|
882
|
+
};
|
|
883
|
+
const lro = createLroSpec({
|
|
884
|
+
sendOperationFn,
|
|
885
|
+
args: { resourceGroupName, cacheName, options },
|
|
886
|
+
spec: spaceAllocationOperationSpec
|
|
887
|
+
});
|
|
888
|
+
const poller = await createHttpPoller(lro, {
|
|
889
|
+
restoreFrom: options?.resumeFrom,
|
|
890
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
891
|
+
resourceLocationConfig: "azure-async-operation"
|
|
892
|
+
});
|
|
893
|
+
await poller.poll();
|
|
894
|
+
return poller;
|
|
895
|
+
}
|
|
896
|
+
/**
|
|
897
|
+
* Update cache space allocation.
|
|
898
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
899
|
+
* @param cacheName Name of cache. Length of name must not be greater than 80 and chars must be from
|
|
900
|
+
* the [-0-9a-zA-Z_] char class.
|
|
901
|
+
* @param options The options parameters.
|
|
902
|
+
*/
|
|
903
|
+
async beginSpaceAllocationAndWait(resourceGroupName, cacheName, options) {
|
|
904
|
+
const poller = await this.beginSpaceAllocation(resourceGroupName, cacheName, options);
|
|
905
|
+
return poller.pollUntilDone();
|
|
906
|
+
}
|
|
907
|
+
/**
|
|
908
|
+
* ListNext
|
|
909
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
910
|
+
* @param options The options parameters.
|
|
911
|
+
*/
|
|
912
|
+
_listNext(nextLink, options) {
|
|
913
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
914
|
+
}
|
|
915
|
+
/**
|
|
916
|
+
* ListByResourceGroupNext
|
|
917
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
918
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
919
|
+
* @param options The options parameters.
|
|
920
|
+
*/
|
|
921
|
+
_listByResourceGroupNext(resourceGroupName, nextLink, options) {
|
|
922
|
+
return this.client.sendOperationRequest(
|
|
923
|
+
{ resourceGroupName, nextLink, options },
|
|
924
|
+
listByResourceGroupNextOperationSpec
|
|
925
|
+
);
|
|
926
|
+
}
|
|
922
927
|
}
|
|
923
|
-
|
|
924
|
-
|
|
928
|
+
const serializer = coreClient.createSerializer(
|
|
929
|
+
Mappers,
|
|
930
|
+
/* isXml */
|
|
931
|
+
false
|
|
932
|
+
);
|
|
925
933
|
const listOperationSpec = {
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
},
|
|
932
|
-
default: {
|
|
933
|
-
bodyMapper: Mappers.CloudError,
|
|
934
|
-
},
|
|
934
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/caches",
|
|
935
|
+
httpMethod: "GET",
|
|
936
|
+
responses: {
|
|
937
|
+
200: {
|
|
938
|
+
bodyMapper: Mappers.CachesListResult
|
|
935
939
|
},
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
+
default: {
|
|
941
|
+
bodyMapper: Mappers.CloudError
|
|
942
|
+
}
|
|
943
|
+
},
|
|
944
|
+
queryParameters: [Parameters.apiVersion],
|
|
945
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
946
|
+
headerParameters: [Parameters.accept],
|
|
947
|
+
serializer
|
|
940
948
|
};
|
|
941
949
|
const listByResourceGroupOperationSpec = {
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
},
|
|
948
|
-
default: {
|
|
949
|
-
bodyMapper: Mappers.CloudError,
|
|
950
|
-
},
|
|
950
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches",
|
|
951
|
+
httpMethod: "GET",
|
|
952
|
+
responses: {
|
|
953
|
+
200: {
|
|
954
|
+
bodyMapper: Mappers.CachesListResult
|
|
951
955
|
},
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
+
default: {
|
|
957
|
+
bodyMapper: Mappers.CloudError
|
|
958
|
+
}
|
|
959
|
+
},
|
|
960
|
+
queryParameters: [Parameters.apiVersion],
|
|
961
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName],
|
|
962
|
+
headerParameters: [Parameters.accept],
|
|
963
|
+
serializer
|
|
956
964
|
};
|
|
957
965
|
const deleteOperationSpec = {
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
966
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}",
|
|
967
|
+
httpMethod: "DELETE",
|
|
968
|
+
responses: {
|
|
969
|
+
200: {},
|
|
970
|
+
201: {},
|
|
971
|
+
202: {},
|
|
972
|
+
204: {},
|
|
973
|
+
default: {
|
|
974
|
+
bodyMapper: Mappers.CloudError
|
|
975
|
+
}
|
|
976
|
+
},
|
|
977
|
+
queryParameters: [Parameters.apiVersion],
|
|
978
|
+
urlParameters: [
|
|
979
|
+
Parameters.$host,
|
|
980
|
+
Parameters.subscriptionId,
|
|
981
|
+
Parameters.resourceGroupName,
|
|
982
|
+
Parameters.cacheName
|
|
983
|
+
],
|
|
984
|
+
headerParameters: [Parameters.accept],
|
|
985
|
+
serializer
|
|
978
986
|
};
|
|
979
987
|
const getOperationSpec = {
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
},
|
|
986
|
-
default: {
|
|
987
|
-
bodyMapper: Mappers.CloudError,
|
|
988
|
-
},
|
|
988
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}",
|
|
989
|
+
httpMethod: "GET",
|
|
990
|
+
responses: {
|
|
991
|
+
200: {
|
|
992
|
+
bodyMapper: Mappers.Cache
|
|
989
993
|
},
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
994
|
+
default: {
|
|
995
|
+
bodyMapper: Mappers.CloudError
|
|
996
|
+
}
|
|
997
|
+
},
|
|
998
|
+
queryParameters: [Parameters.apiVersion],
|
|
999
|
+
urlParameters: [
|
|
1000
|
+
Parameters.$host,
|
|
1001
|
+
Parameters.subscriptionId,
|
|
1002
|
+
Parameters.resourceGroupName,
|
|
1003
|
+
Parameters.cacheName
|
|
1004
|
+
],
|
|
1005
|
+
headerParameters: [Parameters.accept],
|
|
1006
|
+
serializer
|
|
999
1007
|
};
|
|
1000
1008
|
const createOrUpdateOperationSpec = {
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
},
|
|
1013
|
-
204: {
|
|
1014
|
-
bodyMapper: Mappers.Cache,
|
|
1015
|
-
},
|
|
1016
|
-
default: {
|
|
1017
|
-
bodyMapper: Mappers.CloudError,
|
|
1018
|
-
},
|
|
1009
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}",
|
|
1010
|
+
httpMethod: "PUT",
|
|
1011
|
+
responses: {
|
|
1012
|
+
200: {
|
|
1013
|
+
bodyMapper: Mappers.Cache
|
|
1014
|
+
},
|
|
1015
|
+
201: {
|
|
1016
|
+
bodyMapper: Mappers.Cache
|
|
1017
|
+
},
|
|
1018
|
+
202: {
|
|
1019
|
+
bodyMapper: Mappers.Cache
|
|
1019
1020
|
},
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1021
|
+
204: {
|
|
1022
|
+
bodyMapper: Mappers.Cache
|
|
1023
|
+
},
|
|
1024
|
+
default: {
|
|
1025
|
+
bodyMapper: Mappers.CloudError
|
|
1026
|
+
}
|
|
1027
|
+
},
|
|
1028
|
+
requestBody: Parameters.cache,
|
|
1029
|
+
queryParameters: [Parameters.apiVersion],
|
|
1030
|
+
urlParameters: [
|
|
1031
|
+
Parameters.$host,
|
|
1032
|
+
Parameters.subscriptionId,
|
|
1033
|
+
Parameters.resourceGroupName,
|
|
1034
|
+
Parameters.cacheName
|
|
1035
|
+
],
|
|
1036
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1037
|
+
mediaType: "json",
|
|
1038
|
+
serializer
|
|
1031
1039
|
};
|
|
1032
1040
|
const updateOperationSpec = {
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
},
|
|
1045
|
-
204: {
|
|
1046
|
-
bodyMapper: Mappers.Cache,
|
|
1047
|
-
},
|
|
1048
|
-
default: {
|
|
1049
|
-
bodyMapper: Mappers.CloudError,
|
|
1050
|
-
},
|
|
1041
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}",
|
|
1042
|
+
httpMethod: "PATCH",
|
|
1043
|
+
responses: {
|
|
1044
|
+
200: {
|
|
1045
|
+
bodyMapper: Mappers.Cache
|
|
1046
|
+
},
|
|
1047
|
+
201: {
|
|
1048
|
+
bodyMapper: Mappers.Cache
|
|
1049
|
+
},
|
|
1050
|
+
202: {
|
|
1051
|
+
bodyMapper: Mappers.Cache
|
|
1051
1052
|
},
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1053
|
+
204: {
|
|
1054
|
+
bodyMapper: Mappers.Cache
|
|
1055
|
+
},
|
|
1056
|
+
default: {
|
|
1057
|
+
bodyMapper: Mappers.CloudError
|
|
1058
|
+
}
|
|
1059
|
+
},
|
|
1060
|
+
requestBody: Parameters.cache1,
|
|
1061
|
+
queryParameters: [Parameters.apiVersion],
|
|
1062
|
+
urlParameters: [
|
|
1063
|
+
Parameters.$host,
|
|
1064
|
+
Parameters.subscriptionId,
|
|
1065
|
+
Parameters.resourceGroupName,
|
|
1066
|
+
Parameters.cacheName
|
|
1067
|
+
],
|
|
1068
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1069
|
+
mediaType: "json",
|
|
1070
|
+
serializer
|
|
1063
1071
|
};
|
|
1064
1072
|
const debugInfoOperationSpec = {
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1073
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/debugInfo",
|
|
1074
|
+
httpMethod: "POST",
|
|
1075
|
+
responses: {
|
|
1076
|
+
200: {},
|
|
1077
|
+
201: {},
|
|
1078
|
+
202: {},
|
|
1079
|
+
204: {},
|
|
1080
|
+
default: {
|
|
1081
|
+
bodyMapper: Mappers.CloudError
|
|
1082
|
+
}
|
|
1083
|
+
},
|
|
1084
|
+
queryParameters: [Parameters.apiVersion],
|
|
1085
|
+
urlParameters: [
|
|
1086
|
+
Parameters.$host,
|
|
1087
|
+
Parameters.subscriptionId,
|
|
1088
|
+
Parameters.resourceGroupName,
|
|
1089
|
+
Parameters.cacheName
|
|
1090
|
+
],
|
|
1091
|
+
headerParameters: [Parameters.accept],
|
|
1092
|
+
serializer
|
|
1085
1093
|
};
|
|
1086
1094
|
const flushOperationSpec = {
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1095
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/flush",
|
|
1096
|
+
httpMethod: "POST",
|
|
1097
|
+
responses: {
|
|
1098
|
+
200: {},
|
|
1099
|
+
201: {},
|
|
1100
|
+
202: {},
|
|
1101
|
+
204: {},
|
|
1102
|
+
default: {
|
|
1103
|
+
bodyMapper: Mappers.CloudError
|
|
1104
|
+
}
|
|
1105
|
+
},
|
|
1106
|
+
queryParameters: [Parameters.apiVersion],
|
|
1107
|
+
urlParameters: [
|
|
1108
|
+
Parameters.$host,
|
|
1109
|
+
Parameters.subscriptionId,
|
|
1110
|
+
Parameters.resourceGroupName,
|
|
1111
|
+
Parameters.cacheName
|
|
1112
|
+
],
|
|
1113
|
+
headerParameters: [Parameters.accept],
|
|
1114
|
+
serializer
|
|
1107
1115
|
};
|
|
1108
1116
|
const startOperationSpec = {
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1117
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/start",
|
|
1118
|
+
httpMethod: "POST",
|
|
1119
|
+
responses: {
|
|
1120
|
+
200: {},
|
|
1121
|
+
201: {},
|
|
1122
|
+
202: {},
|
|
1123
|
+
204: {},
|
|
1124
|
+
default: {
|
|
1125
|
+
bodyMapper: Mappers.CloudError
|
|
1126
|
+
}
|
|
1127
|
+
},
|
|
1128
|
+
queryParameters: [Parameters.apiVersion],
|
|
1129
|
+
urlParameters: [
|
|
1130
|
+
Parameters.$host,
|
|
1131
|
+
Parameters.subscriptionId,
|
|
1132
|
+
Parameters.resourceGroupName,
|
|
1133
|
+
Parameters.cacheName
|
|
1134
|
+
],
|
|
1135
|
+
headerParameters: [Parameters.accept],
|
|
1136
|
+
serializer
|
|
1129
1137
|
};
|
|
1130
1138
|
const stopOperationSpec = {
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1139
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/stop",
|
|
1140
|
+
httpMethod: "POST",
|
|
1141
|
+
responses: {
|
|
1142
|
+
200: {},
|
|
1143
|
+
201: {},
|
|
1144
|
+
202: {},
|
|
1145
|
+
204: {},
|
|
1146
|
+
default: {
|
|
1147
|
+
bodyMapper: Mappers.CloudError
|
|
1148
|
+
}
|
|
1149
|
+
},
|
|
1150
|
+
queryParameters: [Parameters.apiVersion],
|
|
1151
|
+
urlParameters: [
|
|
1152
|
+
Parameters.$host,
|
|
1153
|
+
Parameters.subscriptionId,
|
|
1154
|
+
Parameters.resourceGroupName,
|
|
1155
|
+
Parameters.cacheName
|
|
1156
|
+
],
|
|
1157
|
+
headerParameters: [Parameters.accept],
|
|
1158
|
+
serializer
|
|
1151
1159
|
};
|
|
1152
1160
|
const startPrimingJobOperationSpec = {
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
},
|
|
1168
|
-
default: {
|
|
1169
|
-
bodyMapper: Mappers.CloudError,
|
|
1170
|
-
},
|
|
1161
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/startPrimingJob",
|
|
1162
|
+
httpMethod: "POST",
|
|
1163
|
+
responses: {
|
|
1164
|
+
200: {
|
|
1165
|
+
headersMapper: Mappers.CachesStartPrimingJobHeaders
|
|
1166
|
+
},
|
|
1167
|
+
201: {
|
|
1168
|
+
headersMapper: Mappers.CachesStartPrimingJobHeaders
|
|
1169
|
+
},
|
|
1170
|
+
202: {
|
|
1171
|
+
headersMapper: Mappers.CachesStartPrimingJobHeaders
|
|
1172
|
+
},
|
|
1173
|
+
204: {
|
|
1174
|
+
headersMapper: Mappers.CachesStartPrimingJobHeaders
|
|
1171
1175
|
},
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1176
|
+
default: {
|
|
1177
|
+
bodyMapper: Mappers.CloudError
|
|
1178
|
+
}
|
|
1179
|
+
},
|
|
1180
|
+
requestBody: Parameters.primingjob,
|
|
1181
|
+
queryParameters: [Parameters.apiVersion],
|
|
1182
|
+
urlParameters: [
|
|
1183
|
+
Parameters.$host,
|
|
1184
|
+
Parameters.subscriptionId,
|
|
1185
|
+
Parameters.resourceGroupName,
|
|
1186
|
+
Parameters.cacheName
|
|
1187
|
+
],
|
|
1188
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1189
|
+
mediaType: "json",
|
|
1190
|
+
serializer
|
|
1183
1191
|
};
|
|
1184
1192
|
const stopPrimingJobOperationSpec = {
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
},
|
|
1197
|
-
204: {
|
|
1198
|
-
headersMapper: Mappers.CachesStopPrimingJobHeaders,
|
|
1199
|
-
},
|
|
1200
|
-
default: {
|
|
1201
|
-
bodyMapper: Mappers.CloudError,
|
|
1202
|
-
},
|
|
1193
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/stopPrimingJob",
|
|
1194
|
+
httpMethod: "POST",
|
|
1195
|
+
responses: {
|
|
1196
|
+
200: {
|
|
1197
|
+
headersMapper: Mappers.CachesStopPrimingJobHeaders
|
|
1198
|
+
},
|
|
1199
|
+
201: {
|
|
1200
|
+
headersMapper: Mappers.CachesStopPrimingJobHeaders
|
|
1201
|
+
},
|
|
1202
|
+
202: {
|
|
1203
|
+
headersMapper: Mappers.CachesStopPrimingJobHeaders
|
|
1203
1204
|
},
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1205
|
+
204: {
|
|
1206
|
+
headersMapper: Mappers.CachesStopPrimingJobHeaders
|
|
1207
|
+
},
|
|
1208
|
+
default: {
|
|
1209
|
+
bodyMapper: Mappers.CloudError
|
|
1210
|
+
}
|
|
1211
|
+
},
|
|
1212
|
+
requestBody: Parameters.primingJobId,
|
|
1213
|
+
queryParameters: [Parameters.apiVersion],
|
|
1214
|
+
urlParameters: [
|
|
1215
|
+
Parameters.$host,
|
|
1216
|
+
Parameters.subscriptionId,
|
|
1217
|
+
Parameters.resourceGroupName,
|
|
1218
|
+
Parameters.cacheName
|
|
1219
|
+
],
|
|
1220
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1221
|
+
mediaType: "json",
|
|
1222
|
+
serializer
|
|
1215
1223
|
};
|
|
1216
1224
|
const pausePrimingJobOperationSpec = {
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
},
|
|
1226
|
-
202: {
|
|
1227
|
-
headersMapper: Mappers.CachesPausePrimingJobHeaders,
|
|
1228
|
-
},
|
|
1229
|
-
204: {
|
|
1230
|
-
headersMapper: Mappers.CachesPausePrimingJobHeaders,
|
|
1231
|
-
},
|
|
1232
|
-
default: {
|
|
1233
|
-
bodyMapper: Mappers.CloudError,
|
|
1234
|
-
},
|
|
1225
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/pausePrimingJob",
|
|
1226
|
+
httpMethod: "POST",
|
|
1227
|
+
responses: {
|
|
1228
|
+
200: {
|
|
1229
|
+
headersMapper: Mappers.CachesPausePrimingJobHeaders
|
|
1230
|
+
},
|
|
1231
|
+
201: {
|
|
1232
|
+
headersMapper: Mappers.CachesPausePrimingJobHeaders
|
|
1235
1233
|
},
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1234
|
+
202: {
|
|
1235
|
+
headersMapper: Mappers.CachesPausePrimingJobHeaders
|
|
1236
|
+
},
|
|
1237
|
+
204: {
|
|
1238
|
+
headersMapper: Mappers.CachesPausePrimingJobHeaders
|
|
1239
|
+
},
|
|
1240
|
+
default: {
|
|
1241
|
+
bodyMapper: Mappers.CloudError
|
|
1242
|
+
}
|
|
1243
|
+
},
|
|
1244
|
+
requestBody: Parameters.primingJobId,
|
|
1245
|
+
queryParameters: [Parameters.apiVersion],
|
|
1246
|
+
urlParameters: [
|
|
1247
|
+
Parameters.$host,
|
|
1248
|
+
Parameters.subscriptionId,
|
|
1249
|
+
Parameters.resourceGroupName,
|
|
1250
|
+
Parameters.cacheName
|
|
1251
|
+
],
|
|
1252
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1253
|
+
mediaType: "json",
|
|
1254
|
+
serializer
|
|
1247
1255
|
};
|
|
1248
1256
|
const resumePrimingJobOperationSpec = {
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
},
|
|
1255
|
-
201: {
|
|
1256
|
-
headersMapper: Mappers.CachesResumePrimingJobHeaders,
|
|
1257
|
-
},
|
|
1258
|
-
202: {
|
|
1259
|
-
headersMapper: Mappers.CachesResumePrimingJobHeaders,
|
|
1260
|
-
},
|
|
1261
|
-
204: {
|
|
1262
|
-
headersMapper: Mappers.CachesResumePrimingJobHeaders,
|
|
1263
|
-
},
|
|
1264
|
-
default: {
|
|
1265
|
-
bodyMapper: Mappers.CloudError,
|
|
1266
|
-
},
|
|
1257
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/resumePrimingJob",
|
|
1258
|
+
httpMethod: "POST",
|
|
1259
|
+
responses: {
|
|
1260
|
+
200: {
|
|
1261
|
+
headersMapper: Mappers.CachesResumePrimingJobHeaders
|
|
1267
1262
|
},
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1263
|
+
201: {
|
|
1264
|
+
headersMapper: Mappers.CachesResumePrimingJobHeaders
|
|
1265
|
+
},
|
|
1266
|
+
202: {
|
|
1267
|
+
headersMapper: Mappers.CachesResumePrimingJobHeaders
|
|
1268
|
+
},
|
|
1269
|
+
204: {
|
|
1270
|
+
headersMapper: Mappers.CachesResumePrimingJobHeaders
|
|
1271
|
+
},
|
|
1272
|
+
default: {
|
|
1273
|
+
bodyMapper: Mappers.CloudError
|
|
1274
|
+
}
|
|
1275
|
+
},
|
|
1276
|
+
requestBody: Parameters.primingJobId,
|
|
1277
|
+
queryParameters: [Parameters.apiVersion],
|
|
1278
|
+
urlParameters: [
|
|
1279
|
+
Parameters.$host,
|
|
1280
|
+
Parameters.subscriptionId,
|
|
1281
|
+
Parameters.resourceGroupName,
|
|
1282
|
+
Parameters.cacheName
|
|
1283
|
+
],
|
|
1284
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1285
|
+
mediaType: "json",
|
|
1286
|
+
serializer
|
|
1279
1287
|
};
|
|
1280
1288
|
const upgradeFirmwareOperationSpec = {
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1289
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/upgrade",
|
|
1290
|
+
httpMethod: "POST",
|
|
1291
|
+
responses: {
|
|
1292
|
+
200: {},
|
|
1293
|
+
201: {},
|
|
1294
|
+
202: {},
|
|
1295
|
+
204: {},
|
|
1296
|
+
default: {
|
|
1297
|
+
bodyMapper: Mappers.CloudError
|
|
1298
|
+
}
|
|
1299
|
+
},
|
|
1300
|
+
queryParameters: [Parameters.apiVersion],
|
|
1301
|
+
urlParameters: [
|
|
1302
|
+
Parameters.$host,
|
|
1303
|
+
Parameters.subscriptionId,
|
|
1304
|
+
Parameters.resourceGroupName,
|
|
1305
|
+
Parameters.cacheName
|
|
1306
|
+
],
|
|
1307
|
+
headerParameters: [Parameters.accept],
|
|
1308
|
+
serializer
|
|
1301
1309
|
};
|
|
1302
1310
|
const spaceAllocationOperationSpec = {
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
},
|
|
1312
|
-
202: {
|
|
1313
|
-
headersMapper: Mappers.CachesSpaceAllocationHeaders,
|
|
1314
|
-
},
|
|
1315
|
-
204: {
|
|
1316
|
-
headersMapper: Mappers.CachesSpaceAllocationHeaders,
|
|
1317
|
-
},
|
|
1318
|
-
default: {
|
|
1319
|
-
bodyMapper: Mappers.CloudError,
|
|
1320
|
-
},
|
|
1311
|
+
path: "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.StorageCache/caches/{cacheName}/spaceAllocation",
|
|
1312
|
+
httpMethod: "POST",
|
|
1313
|
+
responses: {
|
|
1314
|
+
200: {
|
|
1315
|
+
headersMapper: Mappers.CachesSpaceAllocationHeaders
|
|
1316
|
+
},
|
|
1317
|
+
201: {
|
|
1318
|
+
headersMapper: Mappers.CachesSpaceAllocationHeaders
|
|
1321
1319
|
},
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1320
|
+
202: {
|
|
1321
|
+
headersMapper: Mappers.CachesSpaceAllocationHeaders
|
|
1322
|
+
},
|
|
1323
|
+
204: {
|
|
1324
|
+
headersMapper: Mappers.CachesSpaceAllocationHeaders
|
|
1325
|
+
},
|
|
1326
|
+
default: {
|
|
1327
|
+
bodyMapper: Mappers.CloudError
|
|
1328
|
+
}
|
|
1329
|
+
},
|
|
1330
|
+
requestBody: Parameters.spaceAllocation,
|
|
1331
|
+
queryParameters: [Parameters.apiVersion],
|
|
1332
|
+
urlParameters: [
|
|
1333
|
+
Parameters.$host,
|
|
1334
|
+
Parameters.subscriptionId,
|
|
1335
|
+
Parameters.resourceGroupName,
|
|
1336
|
+
Parameters.cacheName
|
|
1337
|
+
],
|
|
1338
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
1339
|
+
mediaType: "json",
|
|
1340
|
+
serializer
|
|
1333
1341
|
};
|
|
1334
1342
|
const listNextOperationSpec = {
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
|
|
1339
|
-
|
|
1340
|
-
},
|
|
1341
|
-
default: {
|
|
1342
|
-
bodyMapper: Mappers.CloudError,
|
|
1343
|
-
},
|
|
1343
|
+
path: "{nextLink}",
|
|
1344
|
+
httpMethod: "GET",
|
|
1345
|
+
responses: {
|
|
1346
|
+
200: {
|
|
1347
|
+
bodyMapper: Mappers.CachesListResult
|
|
1344
1348
|
},
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1349
|
+
default: {
|
|
1350
|
+
bodyMapper: Mappers.CloudError
|
|
1351
|
+
}
|
|
1352
|
+
},
|
|
1353
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink],
|
|
1354
|
+
headerParameters: [Parameters.accept],
|
|
1355
|
+
serializer
|
|
1348
1356
|
};
|
|
1349
1357
|
const listByResourceGroupNextOperationSpec = {
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
},
|
|
1356
|
-
default: {
|
|
1357
|
-
bodyMapper: Mappers.CloudError,
|
|
1358
|
-
},
|
|
1358
|
+
path: "{nextLink}",
|
|
1359
|
+
httpMethod: "GET",
|
|
1360
|
+
responses: {
|
|
1361
|
+
200: {
|
|
1362
|
+
bodyMapper: Mappers.CachesListResult
|
|
1359
1363
|
},
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1364
|
+
default: {
|
|
1365
|
+
bodyMapper: Mappers.CloudError
|
|
1366
|
+
}
|
|
1367
|
+
},
|
|
1368
|
+
urlParameters: [
|
|
1369
|
+
Parameters.$host,
|
|
1370
|
+
Parameters.subscriptionId,
|
|
1371
|
+
Parameters.resourceGroupName,
|
|
1372
|
+
Parameters.nextLink
|
|
1373
|
+
],
|
|
1374
|
+
headerParameters: [Parameters.accept],
|
|
1375
|
+
serializer
|
|
1376
|
+
};
|
|
1377
|
+
export {
|
|
1378
|
+
CachesImpl
|
|
1368
1379
|
};
|
|
1369
|
-
//# sourceMappingURL=caches.js.map
|