@azure/arm-storage 18.6.0-alpha.20250718.2 → 18.6.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/dist/browser/lroImpl.js +3 -7
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +241 -511
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/blobContainers.js +46 -34
- package/dist/browser/operations/blobContainers.js.map +1 -1
- package/dist/browser/operations/blobInventoryPolicies.js +27 -10
- package/dist/browser/operations/blobInventoryPolicies.js.map +1 -1
- package/dist/browser/operations/blobServices.js +27 -10
- package/dist/browser/operations/blobServices.js.map +1 -1
- package/dist/browser/operations/deletedAccounts.js +40 -23
- package/dist/browser/operations/deletedAccounts.js.map +1 -1
- package/dist/browser/operations/encryptionScopes.js +40 -23
- package/dist/browser/operations/encryptionScopes.js.map +1 -1
- package/dist/browser/operations/fileServices.js +40 -23
- package/dist/browser/operations/fileServices.js.map +1 -1
- package/dist/browser/operations/fileShares.js +40 -23
- package/dist/browser/operations/fileShares.js.map +1 -1
- package/dist/browser/operations/localUsersOperations.js +27 -10
- package/dist/browser/operations/localUsersOperations.js.map +1 -1
- package/dist/browser/operations/managementPolicies.js +0 -1
- package/dist/browser/operations/managementPolicies.js.map +1 -1
- package/dist/browser/operations/networkSecurityPerimeterConfigurations.js +33 -21
- package/dist/browser/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
- package/dist/browser/operations/objectReplicationPoliciesOperations.js +27 -10
- package/dist/browser/operations/objectReplicationPoliciesOperations.js.map +1 -1
- package/dist/browser/operations/operations.js +27 -10
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnections.js +27 -10
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/privateLinkResources.js +0 -1
- package/dist/browser/operations/privateLinkResources.js.map +1 -1
- package/dist/browser/operations/queue.js +40 -23
- package/dist/browser/operations/queue.js.map +1 -1
- package/dist/browser/operations/queueServices.js +0 -1
- package/dist/browser/operations/queueServices.js.map +1 -1
- package/dist/browser/operations/skus.js +27 -10
- package/dist/browser/operations/skus.js.map +1 -1
- package/dist/browser/operations/storageAccounts.js +115 -111
- package/dist/browser/operations/storageAccounts.js.map +1 -1
- package/dist/browser/operations/storageTaskAssignmentInstancesReport.js +40 -23
- package/dist/browser/operations/storageTaskAssignmentInstancesReport.js.map +1 -1
- package/dist/browser/operations/storageTaskAssignments.js +58 -56
- package/dist/browser/operations/storageTaskAssignments.js.map +1 -1
- package/dist/browser/operations/storageTaskAssignmentsInstancesReport.js +40 -23
- package/dist/browser/operations/storageTaskAssignmentsInstancesReport.js.map +1 -1
- package/dist/browser/operations/tableOperations.js +40 -23
- package/dist/browser/operations/tableOperations.js.map +1 -1
- package/dist/browser/operations/tableServices.js +0 -1
- package/dist/browser/operations/tableServices.js.map +1 -1
- package/dist/browser/operations/usages.js +27 -10
- package/dist/browser/operations/usages.js.map +1 -1
- package/dist/browser/pagingHelper.js +4 -2
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/browser/storageManagementClient.js +5 -37
- package/dist/browser/storageManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +3 -7
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +241 -511
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/blobContainers.js +45 -34
- package/dist/commonjs/operations/blobContainers.js.map +1 -1
- package/dist/commonjs/operations/blobInventoryPolicies.js +26 -10
- package/dist/commonjs/operations/blobInventoryPolicies.js.map +1 -1
- package/dist/commonjs/operations/blobServices.js +26 -10
- package/dist/commonjs/operations/blobServices.js.map +1 -1
- package/dist/commonjs/operations/deletedAccounts.js +39 -23
- package/dist/commonjs/operations/deletedAccounts.js.map +1 -1
- package/dist/commonjs/operations/encryptionScopes.js +39 -23
- package/dist/commonjs/operations/encryptionScopes.js.map +1 -1
- package/dist/commonjs/operations/fileServices.js +39 -23
- package/dist/commonjs/operations/fileServices.js.map +1 -1
- package/dist/commonjs/operations/fileShares.js +39 -23
- package/dist/commonjs/operations/fileShares.js.map +1 -1
- package/dist/commonjs/operations/localUsersOperations.js +26 -10
- package/dist/commonjs/operations/localUsersOperations.js.map +1 -1
- package/dist/commonjs/operations/managementPolicies.js +0 -1
- package/dist/commonjs/operations/managementPolicies.js.map +1 -1
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js +32 -21
- package/dist/commonjs/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
- package/dist/commonjs/operations/objectReplicationPoliciesOperations.js +26 -10
- package/dist/commonjs/operations/objectReplicationPoliciesOperations.js.map +1 -1
- package/dist/commonjs/operations/operations.js +26 -10
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnections.js +26 -10
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.js +0 -1
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/queue.js +39 -23
- package/dist/commonjs/operations/queue.js.map +1 -1
- package/dist/commonjs/operations/queueServices.js +0 -1
- package/dist/commonjs/operations/queueServices.js.map +1 -1
- package/dist/commonjs/operations/skus.js +26 -10
- package/dist/commonjs/operations/skus.js.map +1 -1
- package/dist/commonjs/operations/storageAccounts.js +114 -111
- package/dist/commonjs/operations/storageAccounts.js.map +1 -1
- package/dist/commonjs/operations/storageTaskAssignmentInstancesReport.js +39 -23
- package/dist/commonjs/operations/storageTaskAssignmentInstancesReport.js.map +1 -1
- package/dist/commonjs/operations/storageTaskAssignments.js +57 -56
- package/dist/commonjs/operations/storageTaskAssignments.js.map +1 -1
- package/dist/commonjs/operations/storageTaskAssignmentsInstancesReport.js +39 -23
- package/dist/commonjs/operations/storageTaskAssignmentsInstancesReport.js.map +1 -1
- package/dist/commonjs/operations/tableOperations.js +39 -23
- package/dist/commonjs/operations/tableOperations.js.map +1 -1
- package/dist/commonjs/operations/tableServices.js +0 -1
- package/dist/commonjs/operations/tableServices.js.map +1 -1
- package/dist/commonjs/operations/usages.js +26 -10
- package/dist/commonjs/operations/usages.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +4 -2
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/storageManagementClient.js +5 -37
- package/dist/commonjs/storageManagementClient.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/lroImpl.js +3 -7
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +241 -511
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/blobContainers.js +46 -34
- package/dist/esm/operations/blobContainers.js.map +1 -1
- package/dist/esm/operations/blobInventoryPolicies.js +27 -10
- package/dist/esm/operations/blobInventoryPolicies.js.map +1 -1
- package/dist/esm/operations/blobServices.js +27 -10
- package/dist/esm/operations/blobServices.js.map +1 -1
- package/dist/esm/operations/deletedAccounts.js +40 -23
- package/dist/esm/operations/deletedAccounts.js.map +1 -1
- package/dist/esm/operations/encryptionScopes.js +40 -23
- package/dist/esm/operations/encryptionScopes.js.map +1 -1
- package/dist/esm/operations/fileServices.js +40 -23
- package/dist/esm/operations/fileServices.js.map +1 -1
- package/dist/esm/operations/fileShares.js +40 -23
- package/dist/esm/operations/fileShares.js.map +1 -1
- package/dist/esm/operations/localUsersOperations.js +27 -10
- package/dist/esm/operations/localUsersOperations.js.map +1 -1
- package/dist/esm/operations/managementPolicies.js +0 -1
- package/dist/esm/operations/managementPolicies.js.map +1 -1
- package/dist/esm/operations/networkSecurityPerimeterConfigurations.js +33 -21
- package/dist/esm/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
- package/dist/esm/operations/objectReplicationPoliciesOperations.js +27 -10
- package/dist/esm/operations/objectReplicationPoliciesOperations.js.map +1 -1
- package/dist/esm/operations/operations.js +27 -10
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnections.js +27 -10
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/privateLinkResources.js +0 -1
- package/dist/esm/operations/privateLinkResources.js.map +1 -1
- package/dist/esm/operations/queue.js +40 -23
- package/dist/esm/operations/queue.js.map +1 -1
- package/dist/esm/operations/queueServices.js +0 -1
- package/dist/esm/operations/queueServices.js.map +1 -1
- package/dist/esm/operations/skus.js +27 -10
- package/dist/esm/operations/skus.js.map +1 -1
- package/dist/esm/operations/storageAccounts.js +115 -111
- package/dist/esm/operations/storageAccounts.js.map +1 -1
- package/dist/esm/operations/storageTaskAssignmentInstancesReport.js +40 -23
- package/dist/esm/operations/storageTaskAssignmentInstancesReport.js.map +1 -1
- package/dist/esm/operations/storageTaskAssignments.js +58 -56
- package/dist/esm/operations/storageTaskAssignments.js.map +1 -1
- package/dist/esm/operations/storageTaskAssignmentsInstancesReport.js +40 -23
- package/dist/esm/operations/storageTaskAssignmentsInstancesReport.js.map +1 -1
- package/dist/esm/operations/tableOperations.js +40 -23
- package/dist/esm/operations/tableOperations.js.map +1 -1
- package/dist/esm/operations/tableServices.js +0 -1
- package/dist/esm/operations/tableServices.js.map +1 -1
- package/dist/esm/operations/usages.js +27 -10
- package/dist/esm/operations/usages.js.map +1 -1
- package/dist/esm/pagingHelper.js +4 -2
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/esm/storageManagementClient.js +5 -37
- package/dist/esm/storageManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +3 -7
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +241 -511
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/blobContainers.js +46 -34
- package/dist/react-native/operations/blobContainers.js.map +1 -1
- package/dist/react-native/operations/blobInventoryPolicies.js +27 -10
- package/dist/react-native/operations/blobInventoryPolicies.js.map +1 -1
- package/dist/react-native/operations/blobServices.js +27 -10
- package/dist/react-native/operations/blobServices.js.map +1 -1
- package/dist/react-native/operations/deletedAccounts.js +40 -23
- package/dist/react-native/operations/deletedAccounts.js.map +1 -1
- package/dist/react-native/operations/encryptionScopes.js +40 -23
- package/dist/react-native/operations/encryptionScopes.js.map +1 -1
- package/dist/react-native/operations/fileServices.js +40 -23
- package/dist/react-native/operations/fileServices.js.map +1 -1
- package/dist/react-native/operations/fileShares.js +40 -23
- package/dist/react-native/operations/fileShares.js.map +1 -1
- package/dist/react-native/operations/localUsersOperations.js +27 -10
- package/dist/react-native/operations/localUsersOperations.js.map +1 -1
- package/dist/react-native/operations/managementPolicies.js +0 -1
- package/dist/react-native/operations/managementPolicies.js.map +1 -1
- package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js +33 -21
- package/dist/react-native/operations/networkSecurityPerimeterConfigurations.js.map +1 -1
- package/dist/react-native/operations/objectReplicationPoliciesOperations.js +27 -10
- package/dist/react-native/operations/objectReplicationPoliciesOperations.js.map +1 -1
- package/dist/react-native/operations/operations.js +27 -10
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnections.js +27 -10
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/privateLinkResources.js +0 -1
- package/dist/react-native/operations/privateLinkResources.js.map +1 -1
- package/dist/react-native/operations/queue.js +40 -23
- package/dist/react-native/operations/queue.js.map +1 -1
- package/dist/react-native/operations/queueServices.js +0 -1
- package/dist/react-native/operations/queueServices.js.map +1 -1
- package/dist/react-native/operations/skus.js +27 -10
- package/dist/react-native/operations/skus.js.map +1 -1
- package/dist/react-native/operations/storageAccounts.js +115 -111
- package/dist/react-native/operations/storageAccounts.js.map +1 -1
- package/dist/react-native/operations/storageTaskAssignmentInstancesReport.js +40 -23
- package/dist/react-native/operations/storageTaskAssignmentInstancesReport.js.map +1 -1
- package/dist/react-native/operations/storageTaskAssignments.js +58 -56
- package/dist/react-native/operations/storageTaskAssignments.js.map +1 -1
- package/dist/react-native/operations/storageTaskAssignmentsInstancesReport.js +40 -23
- package/dist/react-native/operations/storageTaskAssignmentsInstancesReport.js.map +1 -1
- package/dist/react-native/operations/tableOperations.js +40 -23
- package/dist/react-native/operations/tableOperations.js.map +1 -1
- package/dist/react-native/operations/tableServices.js +0 -1
- package/dist/react-native/operations/tableServices.js.map +1 -1
- package/dist/react-native/operations/usages.js +27 -10
- package/dist/react-native/operations/usages.js.map +1 -1
- package/dist/react-native/pagingHelper.js +4 -2
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/dist/react-native/storageManagementClient.js +5 -37
- package/dist/react-native/storageManagementClient.js.map +1 -1
- package/package.json +5 -5
|
@@ -5,6 +5,7 @@
|
|
|
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";
|
|
8
9
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
9
10
|
import * as coreClient from "@azure/core-client";
|
|
10
11
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -14,7 +15,6 @@ import { createLroSpec } from "../lroImpl.js";
|
|
|
14
15
|
/// <reference lib="esnext.asynciterable" />
|
|
15
16
|
/** Class containing StorageTaskAssignments operations. */
|
|
16
17
|
export class StorageTaskAssignmentsImpl {
|
|
17
|
-
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class StorageTaskAssignments class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -40,35 +40,52 @@ export class StorageTaskAssignmentsImpl {
|
|
|
40
40
|
return this;
|
|
41
41
|
},
|
|
42
42
|
byPage: (settings) => {
|
|
43
|
-
if (settings
|
|
43
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
44
44
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
45
45
|
}
|
|
46
46
|
return this.listPagingPage(resourceGroupName, accountName, options, settings);
|
|
47
47
|
},
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
50
|
+
listPagingPage(resourceGroupName, accountName, options, settings) {
|
|
51
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
52
|
+
let result;
|
|
53
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
54
|
+
if (!continuationToken) {
|
|
55
|
+
result = yield __await(this._list(resourceGroupName, accountName, options));
|
|
56
|
+
let page = result.value || [];
|
|
57
|
+
continuationToken = result.nextLink;
|
|
58
|
+
setContinuationToken(page, continuationToken);
|
|
59
|
+
yield yield __await(page);
|
|
60
|
+
}
|
|
61
|
+
while (continuationToken) {
|
|
62
|
+
result = yield __await(this._listNext(resourceGroupName, accountName, continuationToken, options));
|
|
63
|
+
continuationToken = result.nextLink;
|
|
64
|
+
let page = result.value || [];
|
|
65
|
+
setContinuationToken(page, continuationToken);
|
|
66
|
+
yield yield __await(page);
|
|
67
|
+
}
|
|
68
|
+
});
|
|
67
69
|
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
70
|
+
listPagingAll(resourceGroupName, accountName, options) {
|
|
71
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
72
|
+
var _a, e_1, _b, _c;
|
|
73
|
+
try {
|
|
74
|
+
for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, accountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
75
|
+
_c = _f.value;
|
|
76
|
+
_d = false;
|
|
77
|
+
const page = _c;
|
|
78
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
82
|
+
finally {
|
|
83
|
+
try {
|
|
84
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
85
|
+
}
|
|
86
|
+
finally { if (e_1) throw e_1.error; }
|
|
87
|
+
}
|
|
88
|
+
});
|
|
72
89
|
}
|
|
73
90
|
/**
|
|
74
91
|
* Asynchronously creates a new storage task assignment sub-resource with the specified parameters. If
|
|
@@ -91,19 +108,14 @@ export class StorageTaskAssignmentsImpl {
|
|
|
91
108
|
return this.client.sendOperationRequest(args, spec);
|
|
92
109
|
};
|
|
93
110
|
const sendOperationFn = async (args, spec) => {
|
|
111
|
+
var _a;
|
|
94
112
|
let currentRawResponse = undefined;
|
|
95
|
-
const providedCallback = args.options
|
|
113
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
96
114
|
const callback = (rawResponse, flatResponse) => {
|
|
97
115
|
currentRawResponse = rawResponse;
|
|
98
|
-
providedCallback
|
|
99
|
-
};
|
|
100
|
-
const updatedArgs = {
|
|
101
|
-
...args,
|
|
102
|
-
options: {
|
|
103
|
-
...args.options,
|
|
104
|
-
onResponse: callback,
|
|
105
|
-
},
|
|
116
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
106
117
|
};
|
|
118
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
107
119
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
108
120
|
return {
|
|
109
121
|
flatResponse,
|
|
@@ -126,8 +138,8 @@ export class StorageTaskAssignmentsImpl {
|
|
|
126
138
|
spec: createOperationSpec,
|
|
127
139
|
});
|
|
128
140
|
const poller = await createHttpPoller(lro, {
|
|
129
|
-
restoreFrom: options
|
|
130
|
-
intervalInMs: options
|
|
141
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
142
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
131
143
|
resourceLocationConfig: "azure-async-operation",
|
|
132
144
|
});
|
|
133
145
|
await poller.poll();
|
|
@@ -170,19 +182,14 @@ export class StorageTaskAssignmentsImpl {
|
|
|
170
182
|
return this.client.sendOperationRequest(args, spec);
|
|
171
183
|
};
|
|
172
184
|
const sendOperationFn = async (args, spec) => {
|
|
185
|
+
var _a;
|
|
173
186
|
let currentRawResponse = undefined;
|
|
174
|
-
const providedCallback = args.options
|
|
187
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
175
188
|
const callback = (rawResponse, flatResponse) => {
|
|
176
189
|
currentRawResponse = rawResponse;
|
|
177
|
-
providedCallback
|
|
178
|
-
};
|
|
179
|
-
const updatedArgs = {
|
|
180
|
-
...args,
|
|
181
|
-
options: {
|
|
182
|
-
...args.options,
|
|
183
|
-
onResponse: callback,
|
|
184
|
-
},
|
|
190
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
185
191
|
};
|
|
192
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
186
193
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
187
194
|
return {
|
|
188
195
|
flatResponse,
|
|
@@ -205,8 +212,8 @@ export class StorageTaskAssignmentsImpl {
|
|
|
205
212
|
spec: updateOperationSpec,
|
|
206
213
|
});
|
|
207
214
|
const poller = await createHttpPoller(lro, {
|
|
208
|
-
restoreFrom: options
|
|
209
|
-
intervalInMs: options
|
|
215
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
216
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
210
217
|
resourceLocationConfig: "azure-async-operation",
|
|
211
218
|
});
|
|
212
219
|
await poller.poll();
|
|
@@ -258,19 +265,14 @@ export class StorageTaskAssignmentsImpl {
|
|
|
258
265
|
return this.client.sendOperationRequest(args, spec);
|
|
259
266
|
};
|
|
260
267
|
const sendOperationFn = async (args, spec) => {
|
|
268
|
+
var _a;
|
|
261
269
|
let currentRawResponse = undefined;
|
|
262
|
-
const providedCallback = args.options
|
|
270
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
263
271
|
const callback = (rawResponse, flatResponse) => {
|
|
264
272
|
currentRawResponse = rawResponse;
|
|
265
|
-
providedCallback
|
|
266
|
-
};
|
|
267
|
-
const updatedArgs = {
|
|
268
|
-
...args,
|
|
269
|
-
options: {
|
|
270
|
-
...args.options,
|
|
271
|
-
onResponse: callback,
|
|
272
|
-
},
|
|
273
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
273
274
|
};
|
|
275
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
274
276
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
275
277
|
return {
|
|
276
278
|
flatResponse,
|
|
@@ -292,8 +294,8 @@ export class StorageTaskAssignmentsImpl {
|
|
|
292
294
|
spec: deleteOperationSpec,
|
|
293
295
|
});
|
|
294
296
|
const poller = await createHttpPoller(lro, {
|
|
295
|
-
restoreFrom: options
|
|
296
|
-
intervalInMs: options
|
|
297
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
298
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
297
299
|
resourceLocationConfig: "azure-async-operation",
|
|
298
300
|
});
|
|
299
301
|
await poller.poll();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storageTaskAssignments.js","sourceRoot":"","sources":["../../../src/operations/storageTaskAssignments.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;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EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,YAAY,CAAC;IACjE,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","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 { StorageTaskAssignments } 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 { StorageManagementClient } from \"../storageManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n StorageTaskAssignment,\n StorageTaskAssignmentsListNextOptionalParams,\n StorageTaskAssignmentsListOptionalParams,\n StorageTaskAssignmentsListResponse,\n StorageTaskAssignmentsCreateOptionalParams,\n StorageTaskAssignmentsCreateResponse,\n StorageTaskAssignmentUpdateParameters,\n StorageTaskAssignmentsUpdateOptionalParams,\n StorageTaskAssignmentsUpdateResponse,\n StorageTaskAssignmentsGetOptionalParams,\n StorageTaskAssignmentsGetResponse,\n StorageTaskAssignmentsDeleteOptionalParams,\n StorageTaskAssignmentsDeleteResponse,\n StorageTaskAssignmentsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing StorageTaskAssignments operations. */\nexport class StorageTaskAssignmentsImpl implements StorageTaskAssignments {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class StorageTaskAssignments class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * List all the storage task assignments in an account\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n accountName: string,\n options?: StorageTaskAssignmentsListOptionalParams,\n ): PagedAsyncIterableIterator<StorageTaskAssignment> {\n const iter = this.listPagingAll(resourceGroupName, accountName, 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(\n resourceGroupName,\n accountName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n accountName: string,\n options?: StorageTaskAssignmentsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<StorageTaskAssignment[]> {\n let result: StorageTaskAssignmentsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, accountName, 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(\n resourceGroupName,\n accountName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n accountName: string,\n options?: StorageTaskAssignmentsListOptionalParams,\n ): AsyncIterableIterator<StorageTaskAssignment> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Asynchronously creates a new storage task assignment sub-resource with the specified parameters. If\n * a storage task assignment is already created and a subsequent create request is issued with\n * different properties, the storage task assignment properties will be updated. If a storage task\n * assignment is already created and a subsequent create or update request is issued with the exact\n * same set of properties, the request will succeed.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param storageTaskAssignmentName The name of the storage task assignment within the specified\n * resource group. Storage task assignment names must be between 3 and 24 characters in length and use\n * numbers and lower-case letters only.\n * @param parameters The parameters to create a Storage Task Assignment.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n accountName: string,\n storageTaskAssignmentName: string,\n parameters: StorageTaskAssignment,\n options?: StorageTaskAssignmentsCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<StorageTaskAssignmentsCreateResponse>,\n StorageTaskAssignmentsCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<StorageTaskAssignmentsCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n accountName,\n storageTaskAssignmentName,\n parameters,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n StorageTaskAssignmentsCreateResponse,\n OperationState<StorageTaskAssignmentsCreateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Asynchronously creates a new storage task assignment sub-resource with the specified parameters. If\n * a storage task assignment is already created and a subsequent create request is issued with\n * different properties, the storage task assignment properties will be updated. If a storage task\n * assignment is already created and a subsequent create or update request is issued with the exact\n * same set of properties, the request will succeed.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param storageTaskAssignmentName The name of the storage task assignment within the specified\n * resource group. Storage task assignment names must be between 3 and 24 characters in length and use\n * numbers and lower-case letters only.\n * @param parameters The parameters to create a Storage Task Assignment.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n accountName: string,\n storageTaskAssignmentName: string,\n parameters: StorageTaskAssignment,\n options?: StorageTaskAssignmentsCreateOptionalParams,\n ): Promise<StorageTaskAssignmentsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n accountName,\n storageTaskAssignmentName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update storage task assignment properties\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param storageTaskAssignmentName The name of the storage task assignment within the specified\n * resource group. Storage task assignment names must be between 3 and 24 characters in length and use\n * numbers and lower-case letters only.\n * @param parameters The parameters to update a Storage Task Assignment.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n accountName: string,\n storageTaskAssignmentName: string,\n parameters: StorageTaskAssignmentUpdateParameters,\n options?: StorageTaskAssignmentsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<StorageTaskAssignmentsUpdateResponse>,\n StorageTaskAssignmentsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<StorageTaskAssignmentsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n accountName,\n storageTaskAssignmentName,\n parameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n StorageTaskAssignmentsUpdateResponse,\n OperationState<StorageTaskAssignmentsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update storage task assignment properties\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param storageTaskAssignmentName The name of the storage task assignment within the specified\n * resource group. Storage task assignment names must be between 3 and 24 characters in length and use\n * numbers and lower-case letters only.\n * @param parameters The parameters to update a Storage Task Assignment.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n accountName: string,\n storageTaskAssignmentName: string,\n parameters: StorageTaskAssignmentUpdateParameters,\n options?: StorageTaskAssignmentsUpdateOptionalParams,\n ): Promise<StorageTaskAssignmentsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n accountName,\n storageTaskAssignmentName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get the storage task assignment properties\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param storageTaskAssignmentName The name of the storage task assignment within the specified\n * resource group. Storage task assignment names must be between 3 and 24 characters in length and use\n * numbers and lower-case letters only.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n storageTaskAssignmentName: string,\n options?: StorageTaskAssignmentsGetOptionalParams,\n ): Promise<StorageTaskAssignmentsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, storageTaskAssignmentName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Delete the storage task assignment sub-resource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param storageTaskAssignmentName The name of the storage task assignment within the specified\n * resource group. Storage task assignment names must be between 3 and 24 characters in length and use\n * numbers and lower-case letters only.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n accountName: string,\n storageTaskAssignmentName: string,\n options?: StorageTaskAssignmentsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<StorageTaskAssignmentsDeleteResponse>,\n StorageTaskAssignmentsDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<StorageTaskAssignmentsDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n accountName,\n storageTaskAssignmentName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n StorageTaskAssignmentsDeleteResponse,\n OperationState<StorageTaskAssignmentsDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete the storage task assignment sub-resource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param storageTaskAssignmentName The name of the storage task assignment within the specified\n * resource group. Storage task assignment names must be between 3 and 24 characters in length and use\n * numbers and lower-case letters only.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n accountName: string,\n storageTaskAssignmentName: string,\n options?: StorageTaskAssignmentsDeleteOptionalParams,\n ): Promise<StorageTaskAssignmentsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n accountName,\n storageTaskAssignmentName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * List all the storage task assignments in an account\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n accountName: string,\n options?: StorageTaskAssignmentsListOptionalParams,\n ): Promise<StorageTaskAssignmentsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\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 resourceGroupName: string,\n accountName: string,\n nextLink: string,\n options?: StorageTaskAssignmentsListNextOptionalParams,\n ): Promise<StorageTaskAssignmentsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments/{storageTaskAssignmentName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageTaskAssignment,\n },\n 201: {\n bodyMapper: Mappers.StorageTaskAssignment,\n },\n 202: {\n bodyMapper: Mappers.StorageTaskAssignment,\n },\n 204: {\n bodyMapper: Mappers.StorageTaskAssignment,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseAutoGenerated,\n },\n },\n requestBody: Parameters.parameters14,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.storageTaskAssignmentName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments/{storageTaskAssignmentName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageTaskAssignment,\n },\n 201: {\n bodyMapper: Mappers.StorageTaskAssignment,\n },\n 202: {\n bodyMapper: Mappers.StorageTaskAssignment,\n },\n 204: {\n bodyMapper: Mappers.StorageTaskAssignment,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseAutoGenerated,\n },\n },\n requestBody: Parameters.parameters15,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.storageTaskAssignmentName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments/{storageTaskAssignmentName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageTaskAssignment,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseAutoGenerated,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.storageTaskAssignmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments/{storageTaskAssignmentName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.StorageTaskAssignmentsDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.StorageTaskAssignmentsDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.StorageTaskAssignmentsDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.StorageTaskAssignmentsDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseAutoGenerated,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.storageTaskAssignmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageTaskAssignmentsList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseAutoGenerated,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.maxpagesize1],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\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.StorageTaskAssignmentsList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseAutoGenerated,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"storageTaskAssignments.js","sourceRoot":"","sources":["../../../src/operations/storageTaskAssignments.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAGL,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAkB9C,4CAA4C;AAC5C,0DAA0D;AAC1D,MAAM,OAAO,0BAA0B;IAGrC;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,OAAkD;QAElD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;QACzE,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CACxB,iBAAi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AAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","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 { StorageTaskAssignments } 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 { StorageManagementClient } from \"../storageManagementClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n StorageTaskAssignment,\n StorageTaskAssignmentsListNextOptionalParams,\n StorageTaskAssignmentsListOptionalParams,\n StorageTaskAssignmentsListResponse,\n StorageTaskAssignmentsCreateOptionalParams,\n StorageTaskAssignmentsCreateResponse,\n StorageTaskAssignmentUpdateParameters,\n StorageTaskAssignmentsUpdateOptionalParams,\n StorageTaskAssignmentsUpdateResponse,\n StorageTaskAssignmentsGetOptionalParams,\n StorageTaskAssignmentsGetResponse,\n StorageTaskAssignmentsDeleteOptionalParams,\n StorageTaskAssignmentsDeleteResponse,\n StorageTaskAssignmentsListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing StorageTaskAssignments operations. */\nexport class StorageTaskAssignmentsImpl implements StorageTaskAssignments {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class StorageTaskAssignments class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * List all the storage task assignments in an account\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n accountName: string,\n options?: StorageTaskAssignmentsListOptionalParams,\n ): PagedAsyncIterableIterator<StorageTaskAssignment> {\n const iter = this.listPagingAll(resourceGroupName, accountName, 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(\n resourceGroupName,\n accountName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n accountName: string,\n options?: StorageTaskAssignmentsListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<StorageTaskAssignment[]> {\n let result: StorageTaskAssignmentsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, accountName, 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(\n resourceGroupName,\n accountName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n accountName: string,\n options?: StorageTaskAssignmentsListOptionalParams,\n ): AsyncIterableIterator<StorageTaskAssignment> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Asynchronously creates a new storage task assignment sub-resource with the specified parameters. If\n * a storage task assignment is already created and a subsequent create request is issued with\n * different properties, the storage task assignment properties will be updated. If a storage task\n * assignment is already created and a subsequent create or update request is issued with the exact\n * same set of properties, the request will succeed.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param storageTaskAssignmentName The name of the storage task assignment within the specified\n * resource group. Storage task assignment names must be between 3 and 24 characters in length and use\n * numbers and lower-case letters only.\n * @param parameters The parameters to create a Storage Task Assignment.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n accountName: string,\n storageTaskAssignmentName: string,\n parameters: StorageTaskAssignment,\n options?: StorageTaskAssignmentsCreateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<StorageTaskAssignmentsCreateResponse>,\n StorageTaskAssignmentsCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<StorageTaskAssignmentsCreateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n accountName,\n storageTaskAssignmentName,\n parameters,\n options,\n },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<\n StorageTaskAssignmentsCreateResponse,\n OperationState<StorageTaskAssignmentsCreateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Asynchronously creates a new storage task assignment sub-resource with the specified parameters. If\n * a storage task assignment is already created and a subsequent create request is issued with\n * different properties, the storage task assignment properties will be updated. If a storage task\n * assignment is already created and a subsequent create or update request is issued with the exact\n * same set of properties, the request will succeed.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param storageTaskAssignmentName The name of the storage task assignment within the specified\n * resource group. Storage task assignment names must be between 3 and 24 characters in length and use\n * numbers and lower-case letters only.\n * @param parameters The parameters to create a Storage Task Assignment.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n accountName: string,\n storageTaskAssignmentName: string,\n parameters: StorageTaskAssignment,\n options?: StorageTaskAssignmentsCreateOptionalParams,\n ): Promise<StorageTaskAssignmentsCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n accountName,\n storageTaskAssignmentName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Update storage task assignment properties\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param storageTaskAssignmentName The name of the storage task assignment within the specified\n * resource group. Storage task assignment names must be between 3 and 24 characters in length and use\n * numbers and lower-case letters only.\n * @param parameters The parameters to update a Storage Task Assignment.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n accountName: string,\n storageTaskAssignmentName: string,\n parameters: StorageTaskAssignmentUpdateParameters,\n options?: StorageTaskAssignmentsUpdateOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<StorageTaskAssignmentsUpdateResponse>,\n StorageTaskAssignmentsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<StorageTaskAssignmentsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n accountName,\n storageTaskAssignmentName,\n parameters,\n options,\n },\n spec: updateOperationSpec,\n });\n const poller = await createHttpPoller<\n StorageTaskAssignmentsUpdateResponse,\n OperationState<StorageTaskAssignmentsUpdateResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update storage task assignment properties\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param storageTaskAssignmentName The name of the storage task assignment within the specified\n * resource group. Storage task assignment names must be between 3 and 24 characters in length and use\n * numbers and lower-case letters only.\n * @param parameters The parameters to update a Storage Task Assignment.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n accountName: string,\n storageTaskAssignmentName: string,\n parameters: StorageTaskAssignmentUpdateParameters,\n options?: StorageTaskAssignmentsUpdateOptionalParams,\n ): Promise<StorageTaskAssignmentsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n accountName,\n storageTaskAssignmentName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Get the storage task assignment properties\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param storageTaskAssignmentName The name of the storage task assignment within the specified\n * resource group. Storage task assignment names must be between 3 and 24 characters in length and use\n * numbers and lower-case letters only.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n storageTaskAssignmentName: string,\n options?: StorageTaskAssignmentsGetOptionalParams,\n ): Promise<StorageTaskAssignmentsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, storageTaskAssignmentName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Delete the storage task assignment sub-resource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param storageTaskAssignmentName The name of the storage task assignment within the specified\n * resource group. Storage task assignment names must be between 3 and 24 characters in length and use\n * numbers and lower-case letters only.\n * @param options The options parameters.\n */\n async beginDelete(\n resourceGroupName: string,\n accountName: string,\n storageTaskAssignmentName: string,\n options?: StorageTaskAssignmentsDeleteOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<StorageTaskAssignmentsDeleteResponse>,\n StorageTaskAssignmentsDeleteResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<StorageTaskAssignmentsDeleteResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown,\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback,\n },\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON(),\n },\n };\n };\n\n const lro = createLroSpec({\n sendOperationFn,\n args: {\n resourceGroupName,\n accountName,\n storageTaskAssignmentName,\n options,\n },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<\n StorageTaskAssignmentsDeleteResponse,\n OperationState<StorageTaskAssignmentsDeleteResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"azure-async-operation\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete the storage task assignment sub-resource\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param storageTaskAssignmentName The name of the storage task assignment within the specified\n * resource group. Storage task assignment names must be between 3 and 24 characters in length and use\n * numbers and lower-case letters only.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n resourceGroupName: string,\n accountName: string,\n storageTaskAssignmentName: string,\n options?: StorageTaskAssignmentsDeleteOptionalParams,\n ): Promise<StorageTaskAssignmentsDeleteResponse> {\n const poller = await this.beginDelete(\n resourceGroupName,\n accountName,\n storageTaskAssignmentName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * List all the storage task assignments in an account\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n accountName: string,\n options?: StorageTaskAssignmentsListOptionalParams,\n ): Promise<StorageTaskAssignmentsListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\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 resourceGroupName: string,\n accountName: string,\n nextLink: string,\n options?: StorageTaskAssignmentsListNextOptionalParams,\n ): Promise<StorageTaskAssignmentsListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments/{storageTaskAssignmentName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageTaskAssignment,\n },\n 201: {\n bodyMapper: Mappers.StorageTaskAssignment,\n },\n 202: {\n bodyMapper: Mappers.StorageTaskAssignment,\n },\n 204: {\n bodyMapper: Mappers.StorageTaskAssignment,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseAutoGenerated,\n },\n },\n requestBody: Parameters.parameters14,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.storageTaskAssignmentName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments/{storageTaskAssignmentName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageTaskAssignment,\n },\n 201: {\n bodyMapper: Mappers.StorageTaskAssignment,\n },\n 202: {\n bodyMapper: Mappers.StorageTaskAssignment,\n },\n 204: {\n bodyMapper: Mappers.StorageTaskAssignment,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseAutoGenerated,\n },\n },\n requestBody: Parameters.parameters15,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.storageTaskAssignmentName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments/{storageTaskAssignmentName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageTaskAssignment,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseAutoGenerated,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.storageTaskAssignmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments/{storageTaskAssignmentName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n headersMapper: Mappers.StorageTaskAssignmentsDeleteHeaders,\n },\n 201: {\n headersMapper: Mappers.StorageTaskAssignmentsDeleteHeaders,\n },\n 202: {\n headersMapper: Mappers.StorageTaskAssignmentsDeleteHeaders,\n },\n 204: {\n headersMapper: Mappers.StorageTaskAssignmentsDeleteHeaders,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseAutoGenerated,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.storageTaskAssignmentName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/storageTaskAssignments\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageTaskAssignmentsList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseAutoGenerated,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.maxpagesize1],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\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.StorageTaskAssignmentsList,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseAutoGenerated,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -5,6 +5,7 @@
|
|
|
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";
|
|
8
9
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
9
10
|
import * as coreClient from "@azure/core-client";
|
|
10
11
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -12,7 +13,6 @@ import * as Parameters from "../models/parameters.js";
|
|
|
12
13
|
/// <reference lib="esnext.asynciterable" />
|
|
13
14
|
/** Class containing StorageTaskAssignmentsInstancesReport operations. */
|
|
14
15
|
export class StorageTaskAssignmentsInstancesReportImpl {
|
|
15
|
-
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class StorageTaskAssignmentsInstancesReport class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -38,35 +38,52 @@ export class StorageTaskAssignmentsInstancesReportImpl {
|
|
|
38
38
|
return this;
|
|
39
39
|
},
|
|
40
40
|
byPage: (settings) => {
|
|
41
|
-
if (settings
|
|
41
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
42
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
43
|
}
|
|
44
44
|
return this.listPagingPage(resourceGroupName, accountName, options, settings);
|
|
45
45
|
},
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
48
|
+
listPagingPage(resourceGroupName, accountName, options, settings) {
|
|
49
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
50
|
+
let result;
|
|
51
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
52
|
+
if (!continuationToken) {
|
|
53
|
+
result = yield __await(this._list(resourceGroupName, accountName, options));
|
|
54
|
+
let page = result.value || [];
|
|
55
|
+
continuationToken = result.nextLink;
|
|
56
|
+
setContinuationToken(page, continuationToken);
|
|
57
|
+
yield yield __await(page);
|
|
58
|
+
}
|
|
59
|
+
while (continuationToken) {
|
|
60
|
+
result = yield __await(this._listNext(resourceGroupName, accountName, continuationToken, options));
|
|
61
|
+
continuationToken = result.nextLink;
|
|
62
|
+
let page = result.value || [];
|
|
63
|
+
setContinuationToken(page, continuationToken);
|
|
64
|
+
yield yield __await(page);
|
|
65
|
+
}
|
|
66
|
+
});
|
|
65
67
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
listPagingAll(resourceGroupName, accountName, options) {
|
|
69
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
70
|
+
var _a, e_1, _b, _c;
|
|
71
|
+
try {
|
|
72
|
+
for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, accountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
73
|
+
_c = _f.value;
|
|
74
|
+
_d = false;
|
|
75
|
+
const page = _c;
|
|
76
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
80
|
+
finally {
|
|
81
|
+
try {
|
|
82
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
83
|
+
}
|
|
84
|
+
finally { if (e_1) throw e_1.error; }
|
|
85
|
+
}
|
|
86
|
+
});
|
|
70
87
|
}
|
|
71
88
|
/**
|
|
72
89
|
* Fetch the report summary of all the storage task assignments and instances in an account
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storageTaskAssignmentsInstancesReport.js","sourceRoot":"","sources":["../../../src/operations/storageTaskAssignmentsInstancesReport.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,yEAAyE;AACzE,MAAM,OAAO,yCAAyC;IAGnC,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;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e,EAAE;QACf,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,YAAY;KACxB;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","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 { StorageTaskAssignmentsInstancesReport } 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 { StorageManagementClient } from \"../storageManagementClient.js\";\nimport {\n StorageTaskReportInstance,\n StorageTaskAssignmentsInstancesReportListNextOptionalParams,\n StorageTaskAssignmentsInstancesReportListOptionalParams,\n StorageTaskAssignmentsInstancesReportListResponse,\n StorageTaskAssignmentsInstancesReportListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing StorageTaskAssignmentsInstancesReport operations. */\nexport class StorageTaskAssignmentsInstancesReportImpl\n implements StorageTaskAssignmentsInstancesReport\n{\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class StorageTaskAssignmentsInstancesReport class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * Fetch the report summary of all the storage task assignments and instances in an account\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n accountName: string,\n options?: StorageTaskAssignmentsInstancesReportListOptionalParams,\n ): PagedAsyncIterableIterator<StorageTaskReportInstance> {\n const iter = this.listPagingAll(resourceGroupName, accountName, 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(\n resourceGroupName,\n accountName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n accountName: string,\n options?: StorageTaskAssignmentsInstancesReportListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<StorageTaskReportInstance[]> {\n let result: StorageTaskAssignmentsInstancesReportListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, accountName, 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(\n resourceGroupName,\n accountName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n accountName: string,\n options?: StorageTaskAssignmentsInstancesReportListOptionalParams,\n ): AsyncIterableIterator<StorageTaskReportInstance> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Fetch the report summary of all the storage task assignments and instances in an account\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n accountName: string,\n options?: StorageTaskAssignmentsInstancesReportListOptionalParams,\n ): Promise<StorageTaskAssignmentsInstancesReportListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\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 resourceGroupName: string,\n accountName: string,\n nextLink: string,\n options?: StorageTaskAssignmentsInstancesReportListNextOptionalParams,\n ): Promise<StorageTaskAssignmentsInstancesReportListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, 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}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/reports\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageTaskReportSummary,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseAutoGenerated,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.maxpagesize1,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\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.StorageTaskReportSummary,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseAutoGenerated,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"storageTaskAssignmentsInstancesReport.js","sourceRoot":"","sources":["../../../src/operations/storageTaskAssignmentsInstancesReport.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,yEAAyE;AACzE,MAAM,OAAO,yCAAyC;IAKpD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,OAAiE;QAEjE,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,WAAW,EAAE,OAAO,CAAC,CAAC;QACzE,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,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,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","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 { StorageTaskAssignmentsInstancesReport } 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 { StorageManagementClient } from \"../storageManagementClient.js\";\nimport {\n StorageTaskReportInstance,\n StorageTaskAssignmentsInstancesReportListNextOptionalParams,\n StorageTaskAssignmentsInstancesReportListOptionalParams,\n StorageTaskAssignmentsInstancesReportListResponse,\n StorageTaskAssignmentsInstancesReportListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing StorageTaskAssignmentsInstancesReport operations. */\nexport class StorageTaskAssignmentsInstancesReportImpl\n implements StorageTaskAssignmentsInstancesReport\n{\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class StorageTaskAssignmentsInstancesReport class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * Fetch the report summary of all the storage task assignments and instances in an account\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n accountName: string,\n options?: StorageTaskAssignmentsInstancesReportListOptionalParams,\n ): PagedAsyncIterableIterator<StorageTaskReportInstance> {\n const iter = this.listPagingAll(resourceGroupName, accountName, 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(\n resourceGroupName,\n accountName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n accountName: string,\n options?: StorageTaskAssignmentsInstancesReportListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<StorageTaskReportInstance[]> {\n let result: StorageTaskAssignmentsInstancesReportListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, accountName, 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(\n resourceGroupName,\n accountName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n accountName: string,\n options?: StorageTaskAssignmentsInstancesReportListOptionalParams,\n ): AsyncIterableIterator<StorageTaskReportInstance> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Fetch the report summary of all the storage task assignments and instances in an account\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n accountName: string,\n options?: StorageTaskAssignmentsInstancesReportListOptionalParams,\n ): Promise<StorageTaskAssignmentsInstancesReportListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param accountName The name of the storage account within the specified resource group. Storage\n * account names must be between 3 and 24 characters in length and use numbers and lower-case letters\n * only.\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 resourceGroupName: string,\n accountName: string,\n nextLink: string,\n options?: StorageTaskAssignmentsInstancesReportListNextOptionalParams,\n ): Promise<StorageTaskAssignmentsInstancesReportListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, 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}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/reports\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.StorageTaskReportSummary,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseAutoGenerated,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.filter,\n Parameters.maxpagesize1,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\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.StorageTaskReportSummary,\n },\n default: {\n bodyMapper: Mappers.ErrorResponseAutoGenerated,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -5,6 +5,7 @@
|
|
|
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";
|
|
8
9
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
9
10
|
import * as coreClient from "@azure/core-client";
|
|
10
11
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -12,7 +13,6 @@ import * as Parameters from "../models/parameters.js";
|
|
|
12
13
|
/// <reference lib="esnext.asynciterable" />
|
|
13
14
|
/** Class containing TableOperations operations. */
|
|
14
15
|
export class TableOperationsImpl {
|
|
15
|
-
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class TableOperations class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -39,35 +39,52 @@ export class TableOperationsImpl {
|
|
|
39
39
|
return this;
|
|
40
40
|
},
|
|
41
41
|
byPage: (settings) => {
|
|
42
|
-
if (settings
|
|
42
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
43
43
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
44
|
}
|
|
45
45
|
return this.listPagingPage(resourceGroupName, accountName, options, settings);
|
|
46
46
|
},
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
49
|
+
listPagingPage(resourceGroupName, accountName, options, settings) {
|
|
50
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
51
|
+
let result;
|
|
52
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
53
|
+
if (!continuationToken) {
|
|
54
|
+
result = yield __await(this._list(resourceGroupName, accountName, options));
|
|
55
|
+
let page = result.value || [];
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
setContinuationToken(page, continuationToken);
|
|
58
|
+
yield yield __await(page);
|
|
59
|
+
}
|
|
60
|
+
while (continuationToken) {
|
|
61
|
+
result = yield __await(this._listNext(resourceGroupName, accountName, continuationToken, options));
|
|
62
|
+
continuationToken = result.nextLink;
|
|
63
|
+
let page = result.value || [];
|
|
64
|
+
setContinuationToken(page, continuationToken);
|
|
65
|
+
yield yield __await(page);
|
|
66
|
+
}
|
|
67
|
+
});
|
|
66
68
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
listPagingAll(resourceGroupName, accountName, options) {
|
|
70
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
71
|
+
var _a, e_1, _b, _c;
|
|
72
|
+
try {
|
|
73
|
+
for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, accountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
74
|
+
_c = _f.value;
|
|
75
|
+
_d = false;
|
|
76
|
+
const page = _c;
|
|
77
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
81
|
+
finally {
|
|
82
|
+
try {
|
|
83
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
84
|
+
}
|
|
85
|
+
finally { if (e_1) throw e_1.error; }
|
|
86
|
+
}
|
|
87
|
+
});
|
|
71
88
|
}
|
|
72
89
|
/**
|
|
73
90
|
* Creates a new table with the specified table name, under the specified account.
|