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