@azure/arm-storagecache 8.0.1-alpha.20250717.1 → 8.0.1-alpha.20250730.1
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/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +88 -42
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/amlFilesystems.js +78 -97
- package/dist/browser/operations/amlFilesystems.js.map +1 -1
- package/dist/browser/operations/ascOperations.js +1 -0
- package/dist/browser/operations/ascOperations.js.map +1 -1
- package/dist/browser/operations/ascUsages.js +23 -40
- package/dist/browser/operations/ascUsages.js.map +1 -1
- package/dist/browser/operations/caches.js +188 -157
- package/dist/browser/operations/caches.js.map +1 -1
- package/dist/browser/operations/importJobs.js +56 -58
- package/dist/browser/operations/importJobs.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/skus.js +23 -40
- package/dist/browser/operations/skus.js.map +1 -1
- package/dist/browser/operations/storageTargetOperations.js +45 -24
- package/dist/browser/operations/storageTargetOperations.js.map +1 -1
- package/dist/browser/operations/storageTargets.js +67 -64
- package/dist/browser/operations/storageTargets.js.map +1 -1
- package/dist/browser/operations/usageModels.js +23 -40
- package/dist/browser/operations/usageModels.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/storageCacheManagementClient.js +23 -5
- package/dist/browser/storageCacheManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +88 -42
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/amlFilesystems.js +78 -96
- package/dist/commonjs/operations/amlFilesystems.js.map +1 -1
- package/dist/commonjs/operations/ascOperations.js +1 -0
- package/dist/commonjs/operations/ascOperations.js.map +1 -1
- package/dist/commonjs/operations/ascUsages.js +23 -39
- package/dist/commonjs/operations/ascUsages.js.map +1 -1
- package/dist/commonjs/operations/caches.js +188 -156
- package/dist/commonjs/operations/caches.js.map +1 -1
- package/dist/commonjs/operations/importJobs.js +56 -57
- package/dist/commonjs/operations/importJobs.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/skus.js +23 -39
- package/dist/commonjs/operations/skus.js.map +1 -1
- package/dist/commonjs/operations/storageTargetOperations.js +45 -24
- package/dist/commonjs/operations/storageTargetOperations.js.map +1 -1
- package/dist/commonjs/operations/storageTargets.js +67 -63
- package/dist/commonjs/operations/storageTargets.js.map +1 -1
- package/dist/commonjs/operations/usageModels.js +23 -39
- package/dist/commonjs/operations/usageModels.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/storageCacheManagementClient.js +23 -5
- package/dist/commonjs/storageCacheManagementClient.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +88 -42
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/amlFilesystems.js +78 -97
- package/dist/esm/operations/amlFilesystems.js.map +1 -1
- package/dist/esm/operations/ascOperations.js +1 -0
- package/dist/esm/operations/ascOperations.js.map +1 -1
- package/dist/esm/operations/ascUsages.js +23 -40
- package/dist/esm/operations/ascUsages.js.map +1 -1
- package/dist/esm/operations/caches.js +188 -157
- package/dist/esm/operations/caches.js.map +1 -1
- package/dist/esm/operations/importJobs.js +56 -58
- package/dist/esm/operations/importJobs.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/skus.js +23 -40
- package/dist/esm/operations/skus.js.map +1 -1
- package/dist/esm/operations/storageTargetOperations.js +45 -24
- package/dist/esm/operations/storageTargetOperations.js.map +1 -1
- package/dist/esm/operations/storageTargets.js +67 -64
- package/dist/esm/operations/storageTargets.js.map +1 -1
- package/dist/esm/operations/usageModels.js +23 -40
- package/dist/esm/operations/usageModels.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/storageCacheManagementClient.js +23 -5
- package/dist/esm/storageCacheManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +88 -42
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/amlFilesystems.js +78 -97
- package/dist/react-native/operations/amlFilesystems.js.map +1 -1
- package/dist/react-native/operations/ascOperations.js +1 -0
- package/dist/react-native/operations/ascOperations.js.map +1 -1
- package/dist/react-native/operations/ascUsages.js +23 -40
- package/dist/react-native/operations/ascUsages.js.map +1 -1
- package/dist/react-native/operations/caches.js +188 -157
- package/dist/react-native/operations/caches.js.map +1 -1
- package/dist/react-native/operations/importJobs.js +56 -58
- package/dist/react-native/operations/importJobs.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/skus.js +23 -40
- package/dist/react-native/operations/skus.js.map +1 -1
- package/dist/react-native/operations/storageTargetOperations.js +45 -24
- package/dist/react-native/operations/storageTargetOperations.js.map +1 -1
- package/dist/react-native/operations/storageTargets.js +67 -64
- package/dist/react-native/operations/storageTargets.js.map +1 -1
- package/dist/react-native/operations/usageModels.js +23 -40
- package/dist/react-native/operations/usageModels.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/dist/react-native/storageCacheManagementClient.js +23 -5
- package/dist/react-native/storageCacheManagementClient.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-storagecache-node.api.md +1647 -1647
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ascUsages.js","sourceRoot":"","sources":["../../../src/operations/ascUsages.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG
|
|
1
|
+
{"version":3,"file":"ascUsages.js","sourceRoot":"","sources":["../../../src/operations/ascUsages.ts"],"names":[],"mappings":"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","sourcesContent":["/*\n * 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 */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { AscUsages } 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 ResourceUsage,\n AscUsagesListNextOptionalParams,\n AscUsagesListOptionalParams,\n AscUsagesListResponse,\n AscUsagesListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing AscUsages operations. */\nexport class AscUsagesImpl implements AscUsages {\n private readonly client: StorageCacheManagementClient;\n\n /**\n * Initialize a new instance of the class AscUsages class.\n * @param client Reference to the service client\n */\n constructor(client: StorageCacheManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the quantity used and quota limit for resources\n * @param location The name of the region to query for usage information.\n * @param options The options parameters.\n */\n public list(\n location: string,\n options?: AscUsagesListOptionalParams,\n ): PagedAsyncIterableIterator<ResourceUsage> {\n const iter = this.listPagingAll(location, 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(location, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n location: string,\n options?: AscUsagesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ResourceUsage[]> {\n let result: AscUsagesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(location, 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(location, 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 location: string,\n options?: AscUsagesListOptionalParams,\n ): AsyncIterableIterator<ResourceUsage> {\n for await (const page of this.listPagingPage(location, options)) {\n yield* page;\n }\n }\n\n /**\n * Gets the quantity used and quota limit for resources\n * @param location The name of the region to query for usage information.\n * @param options The options parameters.\n */\n private _list(\n location: string,\n options?: AscUsagesListOptionalParams,\n ): Promise<AscUsagesListResponse> {\n return this.client.sendOperationRequest(\n { location, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param location The name of the region to query for usage information.\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 location: string,\n nextLink: string,\n options?: AscUsagesListNextOptionalParams,\n ): Promise<AscUsagesListNextResponse> {\n return this.client.sendOperationRequest(\n { location, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.StorageCache/locations/{location}/usages\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceUsagesListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.location1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ResourceUsagesListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.location1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
|
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
|
16
15
|
/** Class containing Caches operations. */
|
|
17
16
|
export class CachesImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class Caches class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -36,52 +36,35 @@ export class CachesImpl {
|
|
|
36
36
|
return this;
|
|
37
37
|
},
|
|
38
38
|
byPage: (settings) => {
|
|
39
|
-
if (settings
|
|
39
|
+
if (settings?.maxPageSize) {
|
|
40
40
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
41
|
}
|
|
42
42
|
return this.listPagingPage(options, settings);
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
listPagingPage(options, settings) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
});
|
|
46
|
+
async *listPagingPage(options, settings) {
|
|
47
|
+
let result;
|
|
48
|
+
let continuationToken = settings?.continuationToken;
|
|
49
|
+
if (!continuationToken) {
|
|
50
|
+
result = await this._list(options);
|
|
51
|
+
let page = result.value || [];
|
|
52
|
+
continuationToken = result.nextLink;
|
|
53
|
+
setContinuationToken(page, continuationToken);
|
|
54
|
+
yield page;
|
|
55
|
+
}
|
|
56
|
+
while (continuationToken) {
|
|
57
|
+
result = await this._listNext(continuationToken, options);
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
let page = result.value || [];
|
|
60
|
+
setContinuationToken(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
65
63
|
}
|
|
66
|
-
listPagingAll(options) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
71
|
-
_c = _f.value;
|
|
72
|
-
_d = false;
|
|
73
|
-
const page = _c;
|
|
74
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
78
|
-
finally {
|
|
79
|
-
try {
|
|
80
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
81
|
-
}
|
|
82
|
-
finally { if (e_1) throw e_1.error; }
|
|
83
|
-
}
|
|
84
|
-
});
|
|
64
|
+
async *listPagingAll(options) {
|
|
65
|
+
for await (const page of this.listPagingPage(options)) {
|
|
66
|
+
yield* page;
|
|
67
|
+
}
|
|
85
68
|
}
|
|
86
69
|
/**
|
|
87
70
|
* Returns all caches the user has access to under a resource group.
|
|
@@ -98,52 +81,35 @@ export class CachesImpl {
|
|
|
98
81
|
return this;
|
|
99
82
|
},
|
|
100
83
|
byPage: (settings) => {
|
|
101
|
-
if (settings
|
|
84
|
+
if (settings?.maxPageSize) {
|
|
102
85
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
103
86
|
}
|
|
104
87
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
105
88
|
},
|
|
106
89
|
};
|
|
107
90
|
}
|
|
108
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
}
|
|
126
|
-
});
|
|
91
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
92
|
+
let result;
|
|
93
|
+
let continuationToken = settings?.continuationToken;
|
|
94
|
+
if (!continuationToken) {
|
|
95
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
96
|
+
let page = result.value || [];
|
|
97
|
+
continuationToken = result.nextLink;
|
|
98
|
+
setContinuationToken(page, continuationToken);
|
|
99
|
+
yield page;
|
|
100
|
+
}
|
|
101
|
+
while (continuationToken) {
|
|
102
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
103
|
+
continuationToken = result.nextLink;
|
|
104
|
+
let page = result.value || [];
|
|
105
|
+
setContinuationToken(page, continuationToken);
|
|
106
|
+
yield page;
|
|
107
|
+
}
|
|
127
108
|
}
|
|
128
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
133
|
-
_c = _f.value;
|
|
134
|
-
_d = false;
|
|
135
|
-
const page = _c;
|
|
136
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
140
|
-
finally {
|
|
141
|
-
try {
|
|
142
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
143
|
-
}
|
|
144
|
-
finally { if (e_2) throw e_2.error; }
|
|
145
|
-
}
|
|
146
|
-
});
|
|
109
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
110
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
111
|
+
yield* page;
|
|
112
|
+
}
|
|
147
113
|
}
|
|
148
114
|
/**
|
|
149
115
|
* Returns all caches the user has access to under a subscription.
|
|
@@ -172,14 +138,19 @@ export class CachesImpl {
|
|
|
172
138
|
return this.client.sendOperationRequest(args, spec);
|
|
173
139
|
};
|
|
174
140
|
const sendOperationFn = async (args, spec) => {
|
|
175
|
-
var _a;
|
|
176
141
|
let currentRawResponse = undefined;
|
|
177
|
-
const providedCallback =
|
|
142
|
+
const providedCallback = args.options?.onResponse;
|
|
178
143
|
const callback = (rawResponse, flatResponse) => {
|
|
179
144
|
currentRawResponse = rawResponse;
|
|
180
|
-
providedCallback
|
|
145
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
146
|
+
};
|
|
147
|
+
const updatedArgs = {
|
|
148
|
+
...args,
|
|
149
|
+
options: {
|
|
150
|
+
...args.options,
|
|
151
|
+
onResponse: callback,
|
|
152
|
+
},
|
|
181
153
|
};
|
|
182
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
183
154
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
184
155
|
return {
|
|
185
156
|
flatResponse,
|
|
@@ -196,8 +167,8 @@ export class CachesImpl {
|
|
|
196
167
|
spec: deleteOperationSpec,
|
|
197
168
|
});
|
|
198
169
|
const poller = await createHttpPoller(lro, {
|
|
199
|
-
restoreFrom: options
|
|
200
|
-
intervalInMs: options
|
|
170
|
+
restoreFrom: options?.resumeFrom,
|
|
171
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
201
172
|
});
|
|
202
173
|
await poller.poll();
|
|
203
174
|
return poller;
|
|
@@ -237,14 +208,19 @@ export class CachesImpl {
|
|
|
237
208
|
return this.client.sendOperationRequest(args, spec);
|
|
238
209
|
};
|
|
239
210
|
const sendOperationFn = async (args, spec) => {
|
|
240
|
-
var _a;
|
|
241
211
|
let currentRawResponse = undefined;
|
|
242
|
-
const providedCallback =
|
|
212
|
+
const providedCallback = args.options?.onResponse;
|
|
243
213
|
const callback = (rawResponse, flatResponse) => {
|
|
244
214
|
currentRawResponse = rawResponse;
|
|
245
|
-
providedCallback
|
|
215
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
216
|
+
};
|
|
217
|
+
const updatedArgs = {
|
|
218
|
+
...args,
|
|
219
|
+
options: {
|
|
220
|
+
...args.options,
|
|
221
|
+
onResponse: callback,
|
|
222
|
+
},
|
|
246
223
|
};
|
|
247
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
248
224
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
249
225
|
return {
|
|
250
226
|
flatResponse,
|
|
@@ -261,8 +237,8 @@ export class CachesImpl {
|
|
|
261
237
|
spec: createOrUpdateOperationSpec,
|
|
262
238
|
});
|
|
263
239
|
const poller = await createHttpPoller(lro, {
|
|
264
|
-
restoreFrom: options
|
|
265
|
-
intervalInMs: options
|
|
240
|
+
restoreFrom: options?.resumeFrom,
|
|
241
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
266
242
|
});
|
|
267
243
|
await poller.poll();
|
|
268
244
|
return poller;
|
|
@@ -292,14 +268,19 @@ export class CachesImpl {
|
|
|
292
268
|
return this.client.sendOperationRequest(args, spec);
|
|
293
269
|
};
|
|
294
270
|
const sendOperationFn = async (args, spec) => {
|
|
295
|
-
var _a;
|
|
296
271
|
let currentRawResponse = undefined;
|
|
297
|
-
const providedCallback =
|
|
272
|
+
const providedCallback = args.options?.onResponse;
|
|
298
273
|
const callback = (rawResponse, flatResponse) => {
|
|
299
274
|
currentRawResponse = rawResponse;
|
|
300
|
-
providedCallback
|
|
275
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
276
|
+
};
|
|
277
|
+
const updatedArgs = {
|
|
278
|
+
...args,
|
|
279
|
+
options: {
|
|
280
|
+
...args.options,
|
|
281
|
+
onResponse: callback,
|
|
282
|
+
},
|
|
301
283
|
};
|
|
302
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
303
284
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
304
285
|
return {
|
|
305
286
|
flatResponse,
|
|
@@ -316,8 +297,8 @@ export class CachesImpl {
|
|
|
316
297
|
spec: updateOperationSpec,
|
|
317
298
|
});
|
|
318
299
|
const poller = await createHttpPoller(lro, {
|
|
319
|
-
restoreFrom: options
|
|
320
|
-
intervalInMs: options
|
|
300
|
+
restoreFrom: options?.resumeFrom,
|
|
301
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
321
302
|
resourceLocationConfig: "azure-async-operation",
|
|
322
303
|
});
|
|
323
304
|
await poller.poll();
|
|
@@ -346,14 +327,19 @@ export class CachesImpl {
|
|
|
346
327
|
return this.client.sendOperationRequest(args, spec);
|
|
347
328
|
};
|
|
348
329
|
const sendOperationFn = async (args, spec) => {
|
|
349
|
-
var _a;
|
|
350
330
|
let currentRawResponse = undefined;
|
|
351
|
-
const providedCallback =
|
|
331
|
+
const providedCallback = args.options?.onResponse;
|
|
352
332
|
const callback = (rawResponse, flatResponse) => {
|
|
353
333
|
currentRawResponse = rawResponse;
|
|
354
|
-
providedCallback
|
|
334
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
335
|
+
};
|
|
336
|
+
const updatedArgs = {
|
|
337
|
+
...args,
|
|
338
|
+
options: {
|
|
339
|
+
...args.options,
|
|
340
|
+
onResponse: callback,
|
|
341
|
+
},
|
|
355
342
|
};
|
|
356
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
357
343
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
358
344
|
return {
|
|
359
345
|
flatResponse,
|
|
@@ -370,8 +356,8 @@ export class CachesImpl {
|
|
|
370
356
|
spec: debugInfoOperationSpec,
|
|
371
357
|
});
|
|
372
358
|
const poller = await createHttpPoller(lro, {
|
|
373
|
-
restoreFrom: options
|
|
374
|
-
intervalInMs: options
|
|
359
|
+
restoreFrom: options?.resumeFrom,
|
|
360
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
375
361
|
resourceLocationConfig: "azure-async-operation",
|
|
376
362
|
});
|
|
377
363
|
await poller.poll();
|
|
@@ -401,14 +387,19 @@ export class CachesImpl {
|
|
|
401
387
|
return this.client.sendOperationRequest(args, spec);
|
|
402
388
|
};
|
|
403
389
|
const sendOperationFn = async (args, spec) => {
|
|
404
|
-
var _a;
|
|
405
390
|
let currentRawResponse = undefined;
|
|
406
|
-
const providedCallback =
|
|
391
|
+
const providedCallback = args.options?.onResponse;
|
|
407
392
|
const callback = (rawResponse, flatResponse) => {
|
|
408
393
|
currentRawResponse = rawResponse;
|
|
409
|
-
providedCallback
|
|
394
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
395
|
+
};
|
|
396
|
+
const updatedArgs = {
|
|
397
|
+
...args,
|
|
398
|
+
options: {
|
|
399
|
+
...args.options,
|
|
400
|
+
onResponse: callback,
|
|
401
|
+
},
|
|
410
402
|
};
|
|
411
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
412
403
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
413
404
|
return {
|
|
414
405
|
flatResponse,
|
|
@@ -425,8 +416,8 @@ export class CachesImpl {
|
|
|
425
416
|
spec: flushOperationSpec,
|
|
426
417
|
});
|
|
427
418
|
const poller = await createHttpPoller(lro, {
|
|
428
|
-
restoreFrom: options
|
|
429
|
-
intervalInMs: options
|
|
419
|
+
restoreFrom: options?.resumeFrom,
|
|
420
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
430
421
|
resourceLocationConfig: "azure-async-operation",
|
|
431
422
|
});
|
|
432
423
|
await poller.poll();
|
|
@@ -456,14 +447,19 @@ export class CachesImpl {
|
|
|
456
447
|
return this.client.sendOperationRequest(args, spec);
|
|
457
448
|
};
|
|
458
449
|
const sendOperationFn = async (args, spec) => {
|
|
459
|
-
var _a;
|
|
460
450
|
let currentRawResponse = undefined;
|
|
461
|
-
const providedCallback =
|
|
451
|
+
const providedCallback = args.options?.onResponse;
|
|
462
452
|
const callback = (rawResponse, flatResponse) => {
|
|
463
453
|
currentRawResponse = rawResponse;
|
|
464
|
-
providedCallback
|
|
454
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
455
|
+
};
|
|
456
|
+
const updatedArgs = {
|
|
457
|
+
...args,
|
|
458
|
+
options: {
|
|
459
|
+
...args.options,
|
|
460
|
+
onResponse: callback,
|
|
461
|
+
},
|
|
465
462
|
};
|
|
466
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
467
463
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
468
464
|
return {
|
|
469
465
|
flatResponse,
|
|
@@ -480,8 +476,8 @@ export class CachesImpl {
|
|
|
480
476
|
spec: startOperationSpec,
|
|
481
477
|
});
|
|
482
478
|
const poller = await createHttpPoller(lro, {
|
|
483
|
-
restoreFrom: options
|
|
484
|
-
intervalInMs: options
|
|
479
|
+
restoreFrom: options?.resumeFrom,
|
|
480
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
485
481
|
resourceLocationConfig: "azure-async-operation",
|
|
486
482
|
});
|
|
487
483
|
await poller.poll();
|
|
@@ -510,14 +506,19 @@ export class CachesImpl {
|
|
|
510
506
|
return this.client.sendOperationRequest(args, spec);
|
|
511
507
|
};
|
|
512
508
|
const sendOperationFn = async (args, spec) => {
|
|
513
|
-
var _a;
|
|
514
509
|
let currentRawResponse = undefined;
|
|
515
|
-
const providedCallback =
|
|
510
|
+
const providedCallback = args.options?.onResponse;
|
|
516
511
|
const callback = (rawResponse, flatResponse) => {
|
|
517
512
|
currentRawResponse = rawResponse;
|
|
518
|
-
providedCallback
|
|
513
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
514
|
+
};
|
|
515
|
+
const updatedArgs = {
|
|
516
|
+
...args,
|
|
517
|
+
options: {
|
|
518
|
+
...args.options,
|
|
519
|
+
onResponse: callback,
|
|
520
|
+
},
|
|
519
521
|
};
|
|
520
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
521
522
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
522
523
|
return {
|
|
523
524
|
flatResponse,
|
|
@@ -534,8 +535,8 @@ export class CachesImpl {
|
|
|
534
535
|
spec: stopOperationSpec,
|
|
535
536
|
});
|
|
536
537
|
const poller = await createHttpPoller(lro, {
|
|
537
|
-
restoreFrom: options
|
|
538
|
-
intervalInMs: options
|
|
538
|
+
restoreFrom: options?.resumeFrom,
|
|
539
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
539
540
|
resourceLocationConfig: "azure-async-operation",
|
|
540
541
|
});
|
|
541
542
|
await poller.poll();
|
|
@@ -564,14 +565,19 @@ export class CachesImpl {
|
|
|
564
565
|
return this.client.sendOperationRequest(args, spec);
|
|
565
566
|
};
|
|
566
567
|
const sendOperationFn = async (args, spec) => {
|
|
567
|
-
var _a;
|
|
568
568
|
let currentRawResponse = undefined;
|
|
569
|
-
const providedCallback =
|
|
569
|
+
const providedCallback = args.options?.onResponse;
|
|
570
570
|
const callback = (rawResponse, flatResponse) => {
|
|
571
571
|
currentRawResponse = rawResponse;
|
|
572
|
-
providedCallback
|
|
572
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
573
|
+
};
|
|
574
|
+
const updatedArgs = {
|
|
575
|
+
...args,
|
|
576
|
+
options: {
|
|
577
|
+
...args.options,
|
|
578
|
+
onResponse: callback,
|
|
579
|
+
},
|
|
573
580
|
};
|
|
574
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
575
581
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
576
582
|
return {
|
|
577
583
|
flatResponse,
|
|
@@ -588,8 +594,8 @@ export class CachesImpl {
|
|
|
588
594
|
spec: startPrimingJobOperationSpec,
|
|
589
595
|
});
|
|
590
596
|
const poller = await createHttpPoller(lro, {
|
|
591
|
-
restoreFrom: options
|
|
592
|
-
intervalInMs: options
|
|
597
|
+
restoreFrom: options?.resumeFrom,
|
|
598
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
593
599
|
resourceLocationConfig: "azure-async-operation",
|
|
594
600
|
});
|
|
595
601
|
await poller.poll();
|
|
@@ -618,14 +624,19 @@ export class CachesImpl {
|
|
|
618
624
|
return this.client.sendOperationRequest(args, spec);
|
|
619
625
|
};
|
|
620
626
|
const sendOperationFn = async (args, spec) => {
|
|
621
|
-
var _a;
|
|
622
627
|
let currentRawResponse = undefined;
|
|
623
|
-
const providedCallback =
|
|
628
|
+
const providedCallback = args.options?.onResponse;
|
|
624
629
|
const callback = (rawResponse, flatResponse) => {
|
|
625
630
|
currentRawResponse = rawResponse;
|
|
626
|
-
providedCallback
|
|
631
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
632
|
+
};
|
|
633
|
+
const updatedArgs = {
|
|
634
|
+
...args,
|
|
635
|
+
options: {
|
|
636
|
+
...args.options,
|
|
637
|
+
onResponse: callback,
|
|
638
|
+
},
|
|
627
639
|
};
|
|
628
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
629
640
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
630
641
|
return {
|
|
631
642
|
flatResponse,
|
|
@@ -642,8 +653,8 @@ export class CachesImpl {
|
|
|
642
653
|
spec: stopPrimingJobOperationSpec,
|
|
643
654
|
});
|
|
644
655
|
const poller = await createHttpPoller(lro, {
|
|
645
|
-
restoreFrom: options
|
|
646
|
-
intervalInMs: options
|
|
656
|
+
restoreFrom: options?.resumeFrom,
|
|
657
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
647
658
|
resourceLocationConfig: "azure-async-operation",
|
|
648
659
|
});
|
|
649
660
|
await poller.poll();
|
|
@@ -672,14 +683,19 @@ export class CachesImpl {
|
|
|
672
683
|
return this.client.sendOperationRequest(args, spec);
|
|
673
684
|
};
|
|
674
685
|
const sendOperationFn = async (args, spec) => {
|
|
675
|
-
var _a;
|
|
676
686
|
let currentRawResponse = undefined;
|
|
677
|
-
const providedCallback =
|
|
687
|
+
const providedCallback = args.options?.onResponse;
|
|
678
688
|
const callback = (rawResponse, flatResponse) => {
|
|
679
689
|
currentRawResponse = rawResponse;
|
|
680
|
-
providedCallback
|
|
690
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
691
|
+
};
|
|
692
|
+
const updatedArgs = {
|
|
693
|
+
...args,
|
|
694
|
+
options: {
|
|
695
|
+
...args.options,
|
|
696
|
+
onResponse: callback,
|
|
697
|
+
},
|
|
681
698
|
};
|
|
682
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
683
699
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
684
700
|
return {
|
|
685
701
|
flatResponse,
|
|
@@ -696,8 +712,8 @@ export class CachesImpl {
|
|
|
696
712
|
spec: pausePrimingJobOperationSpec,
|
|
697
713
|
});
|
|
698
714
|
const poller = await createHttpPoller(lro, {
|
|
699
|
-
restoreFrom: options
|
|
700
|
-
intervalInMs: options
|
|
715
|
+
restoreFrom: options?.resumeFrom,
|
|
716
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
701
717
|
resourceLocationConfig: "azure-async-operation",
|
|
702
718
|
});
|
|
703
719
|
await poller.poll();
|
|
@@ -726,14 +742,19 @@ export class CachesImpl {
|
|
|
726
742
|
return this.client.sendOperationRequest(args, spec);
|
|
727
743
|
};
|
|
728
744
|
const sendOperationFn = async (args, spec) => {
|
|
729
|
-
var _a;
|
|
730
745
|
let currentRawResponse = undefined;
|
|
731
|
-
const providedCallback =
|
|
746
|
+
const providedCallback = args.options?.onResponse;
|
|
732
747
|
const callback = (rawResponse, flatResponse) => {
|
|
733
748
|
currentRawResponse = rawResponse;
|
|
734
|
-
providedCallback
|
|
749
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
750
|
+
};
|
|
751
|
+
const updatedArgs = {
|
|
752
|
+
...args,
|
|
753
|
+
options: {
|
|
754
|
+
...args.options,
|
|
755
|
+
onResponse: callback,
|
|
756
|
+
},
|
|
735
757
|
};
|
|
736
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
737
758
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
738
759
|
return {
|
|
739
760
|
flatResponse,
|
|
@@ -750,8 +771,8 @@ export class CachesImpl {
|
|
|
750
771
|
spec: resumePrimingJobOperationSpec,
|
|
751
772
|
});
|
|
752
773
|
const poller = await createHttpPoller(lro, {
|
|
753
|
-
restoreFrom: options
|
|
754
|
-
intervalInMs: options
|
|
774
|
+
restoreFrom: options?.resumeFrom,
|
|
775
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
755
776
|
resourceLocationConfig: "azure-async-operation",
|
|
756
777
|
});
|
|
757
778
|
await poller.poll();
|
|
@@ -780,14 +801,19 @@ export class CachesImpl {
|
|
|
780
801
|
return this.client.sendOperationRequest(args, spec);
|
|
781
802
|
};
|
|
782
803
|
const sendOperationFn = async (args, spec) => {
|
|
783
|
-
var _a;
|
|
784
804
|
let currentRawResponse = undefined;
|
|
785
|
-
const providedCallback =
|
|
805
|
+
const providedCallback = args.options?.onResponse;
|
|
786
806
|
const callback = (rawResponse, flatResponse) => {
|
|
787
807
|
currentRawResponse = rawResponse;
|
|
788
|
-
providedCallback
|
|
808
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
809
|
+
};
|
|
810
|
+
const updatedArgs = {
|
|
811
|
+
...args,
|
|
812
|
+
options: {
|
|
813
|
+
...args.options,
|
|
814
|
+
onResponse: callback,
|
|
815
|
+
},
|
|
789
816
|
};
|
|
790
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
791
817
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
792
818
|
return {
|
|
793
819
|
flatResponse,
|
|
@@ -804,8 +830,8 @@ export class CachesImpl {
|
|
|
804
830
|
spec: upgradeFirmwareOperationSpec,
|
|
805
831
|
});
|
|
806
832
|
const poller = await createHttpPoller(lro, {
|
|
807
|
-
restoreFrom: options
|
|
808
|
-
intervalInMs: options
|
|
833
|
+
restoreFrom: options?.resumeFrom,
|
|
834
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
809
835
|
resourceLocationConfig: "azure-async-operation",
|
|
810
836
|
});
|
|
811
837
|
await poller.poll();
|
|
@@ -834,14 +860,19 @@ export class CachesImpl {
|
|
|
834
860
|
return this.client.sendOperationRequest(args, spec);
|
|
835
861
|
};
|
|
836
862
|
const sendOperationFn = async (args, spec) => {
|
|
837
|
-
var _a;
|
|
838
863
|
let currentRawResponse = undefined;
|
|
839
|
-
const providedCallback =
|
|
864
|
+
const providedCallback = args.options?.onResponse;
|
|
840
865
|
const callback = (rawResponse, flatResponse) => {
|
|
841
866
|
currentRawResponse = rawResponse;
|
|
842
|
-
providedCallback
|
|
867
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
868
|
+
};
|
|
869
|
+
const updatedArgs = {
|
|
870
|
+
...args,
|
|
871
|
+
options: {
|
|
872
|
+
...args.options,
|
|
873
|
+
onResponse: callback,
|
|
874
|
+
},
|
|
843
875
|
};
|
|
844
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
845
876
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
846
877
|
return {
|
|
847
878
|
flatResponse,
|
|
@@ -858,8 +889,8 @@ export class CachesImpl {
|
|
|
858
889
|
spec: spaceAllocationOperationSpec,
|
|
859
890
|
});
|
|
860
891
|
const poller = await createHttpPoller(lro, {
|
|
861
|
-
restoreFrom: options
|
|
862
|
-
intervalInMs: options
|
|
892
|
+
restoreFrom: options?.resumeFrom,
|
|
893
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
863
894
|
resourceLocationConfig: "azure-async-operation",
|
|
864
895
|
});
|
|
865
896
|
await poller.poll();
|