@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,116 +1,145 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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 skus_exports = {};
|
|
29
|
+
__export(skus_exports, {
|
|
30
|
+
SkusImpl: () => SkusImpl
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(skus_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"));
|
|
13
37
|
class SkusImpl {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
}
|
|
39
|
-
return this.listPagingPage(options, settings);
|
|
40
|
-
},
|
|
41
|
-
};
|
|
42
|
-
}
|
|
43
|
-
async *listPagingPage(options, settings) {
|
|
44
|
-
let result;
|
|
45
|
-
let continuationToken = settings?.continuationToken;
|
|
46
|
-
if (!continuationToken) {
|
|
47
|
-
result = await this._list(options);
|
|
48
|
-
let page = result.value || [];
|
|
49
|
-
continuationToken = result.nextLink;
|
|
50
|
-
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
51
|
-
yield page;
|
|
52
|
-
}
|
|
53
|
-
while (continuationToken) {
|
|
54
|
-
result = await this._listNext(continuationToken, options);
|
|
55
|
-
continuationToken = result.nextLink;
|
|
56
|
-
let page = result.value || [];
|
|
57
|
-
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
58
|
-
yield page;
|
|
38
|
+
client;
|
|
39
|
+
/**
|
|
40
|
+
* Initialize a new instance of the class Skus class.
|
|
41
|
+
* @param client Reference to the service client
|
|
42
|
+
*/
|
|
43
|
+
constructor(client) {
|
|
44
|
+
this.client = client;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Get the list of StorageCache.Cache SKUs available to this subscription.
|
|
48
|
+
* @param options The options parameters.
|
|
49
|
+
*/
|
|
50
|
+
list(options) {
|
|
51
|
+
const iter = this.listPagingAll(options);
|
|
52
|
+
return {
|
|
53
|
+
next() {
|
|
54
|
+
return iter.next();
|
|
55
|
+
},
|
|
56
|
+
[Symbol.asyncIterator]() {
|
|
57
|
+
return this;
|
|
58
|
+
},
|
|
59
|
+
byPage: (settings) => {
|
|
60
|
+
if (settings?.maxPageSize) {
|
|
61
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
59
62
|
}
|
|
63
|
+
return this.listPagingPage(options, settings);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
async *listPagingPage(options, settings) {
|
|
68
|
+
let result;
|
|
69
|
+
let continuationToken = settings?.continuationToken;
|
|
70
|
+
if (!continuationToken) {
|
|
71
|
+
result = await this._list(options);
|
|
72
|
+
let page = result.value || [];
|
|
73
|
+
continuationToken = result.nextLink;
|
|
74
|
+
(0, import_pagingHelper.setContinuationToken)(page, continuationToken);
|
|
75
|
+
yield page;
|
|
60
76
|
}
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
* Get the list of StorageCache.Cache SKUs available to this subscription.
|
|
68
|
-
* @param options The options parameters.
|
|
69
|
-
*/
|
|
70
|
-
_list(options) {
|
|
71
|
-
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
77
|
+
while (continuationToken) {
|
|
78
|
+
result = await this._listNext(continuationToken, options);
|
|
79
|
+
continuationToken = result.nextLink;
|
|
80
|
+
let page = result.value || [];
|
|
81
|
+
(0, import_pagingHelper.setContinuationToken)(page, continuationToken);
|
|
82
|
+
yield page;
|
|
72
83
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
*/
|
|
78
|
-
_listNext(nextLink, options) {
|
|
79
|
-
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
84
|
+
}
|
|
85
|
+
async *listPagingAll(options) {
|
|
86
|
+
for await (const page of this.listPagingPage(options)) {
|
|
87
|
+
yield* page;
|
|
80
88
|
}
|
|
89
|
+
}
|
|
90
|
+
/**
|
|
91
|
+
* Get the list of StorageCache.Cache SKUs available to this subscription.
|
|
92
|
+
* @param options The options parameters.
|
|
93
|
+
*/
|
|
94
|
+
_list(options) {
|
|
95
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* ListNext
|
|
99
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
100
|
+
* @param options The options parameters.
|
|
101
|
+
*/
|
|
102
|
+
_listNext(nextLink, options) {
|
|
103
|
+
return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);
|
|
104
|
+
}
|
|
81
105
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
106
|
+
const serializer = coreClient.createSerializer(
|
|
107
|
+
Mappers,
|
|
108
|
+
/* isXml */
|
|
109
|
+
false
|
|
110
|
+
);
|
|
85
111
|
const listOperationSpec = {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
},
|
|
92
|
-
default: {
|
|
93
|
-
bodyMapper: Mappers.CloudError,
|
|
94
|
-
},
|
|
112
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/skus",
|
|
113
|
+
httpMethod: "GET",
|
|
114
|
+
responses: {
|
|
115
|
+
200: {
|
|
116
|
+
bodyMapper: Mappers.ResourceSkusResult
|
|
95
117
|
},
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
118
|
+
default: {
|
|
119
|
+
bodyMapper: Mappers.CloudError
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
queryParameters: [Parameters.apiVersion],
|
|
123
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
124
|
+
headerParameters: [Parameters.accept],
|
|
125
|
+
serializer
|
|
100
126
|
};
|
|
101
127
|
const listNextOperationSpec = {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
},
|
|
108
|
-
default: {
|
|
109
|
-
bodyMapper: Mappers.CloudError,
|
|
110
|
-
},
|
|
128
|
+
path: "{nextLink}",
|
|
129
|
+
httpMethod: "GET",
|
|
130
|
+
responses: {
|
|
131
|
+
200: {
|
|
132
|
+
bodyMapper: Mappers.ResourceSkusResult
|
|
111
133
|
},
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
134
|
+
default: {
|
|
135
|
+
bodyMapper: Mappers.CloudError
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink],
|
|
139
|
+
headerParameters: [Parameters.accept],
|
|
140
|
+
serializer
|
|
115
141
|
};
|
|
116
|
-
|
|
142
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
143
|
+
0 && (module.exports = {
|
|
144
|
+
SkusImpl
|
|
145
|
+
});
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["/mnt/vss/_work/1/s/sdk/storagecache/arm-storagecache/src/operations/skus.ts"],
|
|
4
|
+
"sourcesContent": ["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Skus } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { StorageCacheManagementClient } from \"../storageCacheManagementClient.js\";\nimport {\n ResourceSku,\n SkusListNextOptionalParams,\n SkusListOptionalParams,\n SkusListResponse,\n SkusListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Skus operations. */\nexport class SkusImpl implements Skus {\n private readonly client: StorageCacheManagementClient;\n\n /**\n * Initialize a new instance of the class Skus class.\n * @param client Reference to the service client\n */\n constructor(client: StorageCacheManagementClient) {\n this.client = client;\n }\n\n /**\n * Get the list of StorageCache.Cache SKUs available to this subscription.\n * @param options The options parameters.\n */\n public list(options?: SkusListOptionalParams): PagedAsyncIterableIterator<ResourceSku> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: SkusListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ResourceSku[]> {\n let result: SkusListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: SkusListOptionalParams,\n ): AsyncIterableIterator<ResourceSku> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Get the list of StorageCache.Cache SKUs available to this subscription.\n * @param options The options parameters.\n */\n private _list(options?: SkusListOptionalParams): Promise<SkusListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: SkusListNextOptionalParams,\n ): Promise<SkusListNextResponse> {\n return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec);\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/skus\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceSkusResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceSkusResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"],
|
|
5
|
+
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAOA,0BAAqC;AAErC,iBAA4B;AAC5B,cAAyB;AACzB,iBAA4B;AAYrB,MAAM,SAAyB;AAAA,EACnB;AAAA;AAAA;AAAA;AAAA;AAAA,EAMjB,YAAY,QAAsC;AAChD,SAAK,SAAS;AAAA,EAChB;AAAA;AAAA;AAAA;AAAA;AAAA,EAMO,KAAK,SAA2E;AACrF,UAAM,OAAO,KAAK,cAAc,OAAO;AACvC,WAAO;AAAA,MACL,OAAO;AACL,eAAO,KAAK,KAAK;AAAA,MACnB;AAAA,MACA,CAAC,OAAO,aAAa,IAAI;AACvB,eAAO;AAAA,MACT;AAAA,MACA,QAAQ,CAAC,aAA4B;AACnC,YAAI,UAAU,aAAa;AACzB,gBAAM,IAAI,MAAM,iDAAiD;AAAA,QACnE;AACA,eAAO,KAAK,eAAe,SAAS,QAAQ;AAAA,MAC9C;AAAA,IACF;AAAA,EACF;AAAA,EAEA,OAAe,eACb,SACA,UACsC;AACtC,QAAI;AACJ,QAAI,oBAAoB,UAAU;AAClC,QAAI,CAAC,mBAAmB;AACtB,eAAS,MAAM,KAAK,MAAM,OAAO;AACjC,UAAI,OAAO,OAAO,SAAS,CAAC;AAC5B,0BAAoB,OAAO;AAC3B,oDAAqB,MAAM,iBAAiB;AAC5C,YAAM;AAAA,IACR;AACA,WAAO,mBAAmB;AACxB,eAAS,MAAM,KAAK,UAAU,mBAAmB,OAAO;AACxD,0BAAoB,OAAO;AAC3B,UAAI,OAAO,OAAO,SAAS,CAAC;AAC5B,oDAAqB,MAAM,iBAAiB;AAC5C,YAAM;AAAA,IACR;AAAA,EACF;AAAA,EAEA,OAAe,cACb,SACoC;AACpC,qBAAiB,QAAQ,KAAK,eAAe,OAAO,GAAG;AACrD,aAAO;AAAA,IACT;AAAA,EACF;AAAA;AAAA;AAAA;AAAA;AAAA,EAMQ,MAAM,SAA6D;AACzE,WAAO,KAAK,OAAO,qBAAqB,EAAE,QAAQ,GAAG,iBAAiB;AAAA,EACxE;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOQ,UACN,UACA,SAC+B;AAC/B,WAAO,KAAK,OAAO,qBAAqB,EAAE,UAAU,QAAQ,GAAG,qBAAqB;AAAA,EACtF;AACF;AAEA,MAAM,aAAa,WAAW;AAAA,EAAiB;AAAA;AAAA,EAAqB;AAAK;AAEzE,MAAM,oBAA8C;AAAA,EAClD,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,WAAW;AAAA,IACT,KAAK;AAAA,MACH,YAAY,QAAQ;AAAA,IACtB;AAAA,IACA,SAAS;AAAA,MACP,YAAY,QAAQ;AAAA,IACtB;AAAA,EACF;AAAA,EACA,iBAAiB,CAAC,WAAW,UAAU;AAAA,EACvC,eAAe,CAAC,WAAW,OAAO,WAAW,cAAc;AAAA,EAC3D,kBAAkB,CAAC,WAAW,MAAM;AAAA,EACpC;AACF;AACA,MAAM,wBAAkD;AAAA,EACtD,MAAM;AAAA,EACN,YAAY;AAAA,EACZ,WAAW;AAAA,IACT,KAAK;AAAA,MACH,YAAY,QAAQ;AAAA,IACtB;AAAA,IACA,SAAS;AAAA,MACP,YAAY,QAAQ;AAAA,IACtB;AAAA,EACF;AAAA,EACA,eAAe,CAAC,WAAW,OAAO,WAAW,gBAAgB,WAAW,QAAQ;AAAA,EAChF,kBAAkB,CAAC,WAAW,MAAM;AAAA,EACpC;AACF;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|