@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 BlobContainers operations. */
|
|
16
17
|
export class BlobContainersImpl {
|
|
17
|
-
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class BlobContainers class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -42,35 +42,52 @@ export class BlobContainersImpl {
|
|
|
42
42
|
return this;
|
|
43
43
|
},
|
|
44
44
|
byPage: (settings) => {
|
|
45
|
-
if (settings
|
|
45
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
46
46
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
47
47
|
}
|
|
48
48
|
return this.listPagingPage(resourceGroupName, accountName, options, settings);
|
|
49
49
|
},
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
52
|
+
listPagingPage(resourceGroupName, accountName, options, settings) {
|
|
53
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
54
|
+
let result;
|
|
55
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
56
|
+
if (!continuationToken) {
|
|
57
|
+
result = yield __await(this._list(resourceGroupName, accountName, options));
|
|
58
|
+
let page = result.value || [];
|
|
59
|
+
continuationToken = result.nextLink;
|
|
60
|
+
setContinuationToken(page, continuationToken);
|
|
61
|
+
yield yield __await(page);
|
|
62
|
+
}
|
|
63
|
+
while (continuationToken) {
|
|
64
|
+
result = yield __await(this._listNext(resourceGroupName, accountName, continuationToken, options));
|
|
65
|
+
continuationToken = result.nextLink;
|
|
66
|
+
let page = result.value || [];
|
|
67
|
+
setContinuationToken(page, continuationToken);
|
|
68
|
+
yield yield __await(page);
|
|
69
|
+
}
|
|
70
|
+
});
|
|
69
71
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
listPagingAll(resourceGroupName, accountName, options) {
|
|
73
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
74
|
+
var _a, e_1, _b, _c;
|
|
75
|
+
try {
|
|
76
|
+
for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, accountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
77
|
+
_c = _f.value;
|
|
78
|
+
_d = false;
|
|
79
|
+
const page = _c;
|
|
80
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
84
|
+
finally {
|
|
85
|
+
try {
|
|
86
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
87
|
+
}
|
|
88
|
+
finally { if (e_1) throw e_1.error; }
|
|
89
|
+
}
|
|
90
|
+
});
|
|
74
91
|
}
|
|
75
92
|
/**
|
|
76
93
|
* Lists all containers and does not support a prefix like data plane. Also SRP today does not return
|
|
@@ -324,19 +341,14 @@ export class BlobContainersImpl {
|
|
|
324
341
|
return this.client.sendOperationRequest(args, spec);
|
|
325
342
|
};
|
|
326
343
|
const sendOperationFn = async (args, spec) => {
|
|
344
|
+
var _a;
|
|
327
345
|
let currentRawResponse = undefined;
|
|
328
|
-
const providedCallback = args.options
|
|
346
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
329
347
|
const callback = (rawResponse, flatResponse) => {
|
|
330
348
|
currentRawResponse = rawResponse;
|
|
331
|
-
providedCallback
|
|
332
|
-
};
|
|
333
|
-
const updatedArgs = {
|
|
334
|
-
...args,
|
|
335
|
-
options: {
|
|
336
|
-
...args.options,
|
|
337
|
-
onResponse: callback,
|
|
338
|
-
},
|
|
349
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
339
350
|
};
|
|
351
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
340
352
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
341
353
|
return {
|
|
342
354
|
flatResponse,
|
|
@@ -353,8 +365,8 @@ export class BlobContainersImpl {
|
|
|
353
365
|
spec: objectLevelWormOperationSpec,
|
|
354
366
|
});
|
|
355
367
|
const poller = await createHttpPoller(lro, {
|
|
356
|
-
restoreFrom: options
|
|
357
|
-
intervalInMs: options
|
|
368
|
+
restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
369
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
|
|
358
370
|
resourceLocationConfig: "location",
|
|
359
371
|
});
|
|
360
372
|
await poller.poll();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blobContainers.js","sourceRoot":"","sources":["../../../src/operations/blobContainers.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;AAmC9C,4CAA4C;AAC5C,kDAAkD;AAClD,MAAM,OAAO,kBAAkB;IACZ,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;OASG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,OAA0C;QAE1C,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,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CACxB,iBAAiB,EACjB,WAAW,EACX,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC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qB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kBAAkB;SACvC;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 { BlobContainers } 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 ListContainerItem,\n BlobContainersListNextOptionalParams,\n BlobContainersListOptionalParams,\n BlobContainersListResponse,\n BlobContainer,\n BlobContainersCreateOptionalParams,\n BlobContainersCreateResponse,\n BlobContainersUpdateOptionalParams,\n BlobContainersUpdateResponse,\n BlobContainersGetOptionalParams,\n BlobContainersGetResponse,\n BlobContainersDeleteOptionalParams,\n LegalHold,\n BlobContainersSetLegalHoldOptionalParams,\n BlobContainersSetLegalHoldResponse,\n BlobContainersClearLegalHoldOptionalParams,\n BlobContainersClearLegalHoldResponse,\n BlobContainersCreateOrUpdateImmutabilityPolicyOptionalParams,\n BlobContainersCreateOrUpdateImmutabilityPolicyResponse,\n BlobContainersGetImmutabilityPolicyOptionalParams,\n BlobContainersGetImmutabilityPolicyResponse,\n BlobContainersDeleteImmutabilityPolicyOptionalParams,\n BlobContainersDeleteImmutabilityPolicyResponse,\n BlobContainersLockImmutabilityPolicyOptionalParams,\n BlobContainersLockImmutabilityPolicyResponse,\n BlobContainersExtendImmutabilityPolicyOptionalParams,\n BlobContainersExtendImmutabilityPolicyResponse,\n BlobContainersLeaseOptionalParams,\n BlobContainersLeaseResponse,\n BlobContainersObjectLevelWormOptionalParams,\n BlobContainersListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing BlobContainers operations. */\nexport class BlobContainersImpl implements BlobContainers {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class BlobContainers class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all containers and does not support a prefix like data plane. Also SRP today does not return\n * continuation token.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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?: BlobContainersListOptionalParams,\n ): PagedAsyncIterableIterator<ListContainerItem> {\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?: BlobContainersListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ListContainerItem[]> {\n let result: BlobContainersListResponse;\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?: BlobContainersListOptionalParams,\n ): AsyncIterableIterator<ListContainerItem> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all containers and does not support a prefix like data plane. Also SRP today does not return\n * continuation token.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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?: BlobContainersListOptionalParams,\n ): Promise<BlobContainersListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Creates a new container under the specified account as described by request body. The container\n * resource includes metadata and properties for that container. It does not include a list of the\n * blobs contained by the container.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 containerName The name of the blob container within the specified storage account. Blob\n * container names must be between 3 and 63 characters in length and use numbers, lower-case letters\n * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or\n * number.\n * @param blobContainer Properties of the blob container to create.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n accountName: string,\n containerName: string,\n blobContainer: BlobContainer,\n options?: BlobContainersCreateOptionalParams,\n ): Promise<BlobContainersCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, containerName, blobContainer, options },\n createOperationSpec,\n );\n }\n\n /**\n * Updates container properties as specified in request body. Properties not mentioned in the request\n * will be unchanged. Update fails if the specified container doesn't already exist.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 containerName The name of the blob container within the specified storage account. Blob\n * container names must be between 3 and 63 characters in length and use numbers, lower-case letters\n * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or\n * number.\n * @param blobContainer Properties to update for the blob container.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n accountName: string,\n containerName: string,\n blobContainer: BlobContainer,\n options?: BlobContainersUpdateOptionalParams,\n ): Promise<BlobContainersUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, containerName, blobContainer, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Gets properties of a specified container.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 containerName The name of the blob container within the specified storage account. Blob\n * container names must be between 3 and 63 characters in length and use numbers, lower-case letters\n * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or\n * number.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n containerName: string,\n options?: BlobContainersGetOptionalParams,\n ): Promise<BlobContainersGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, containerName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Deletes specified container under its account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 containerName The name of the blob container within the specified storage account. Blob\n * container names must be between 3 and 63 characters in length and use numbers, lower-case letters\n * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or\n * number.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n accountName: string,\n containerName: string,\n options?: BlobContainersDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, containerName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows\n * an append pattern and does not clear out the existing tags that are not specified in the request.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 containerName The name of the blob container within the specified storage account. Blob\n * container names must be between 3 and 63 characters in length and use numbers, lower-case letters\n * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or\n * number.\n * @param legalHold The LegalHold property that will be set to a blob container.\n * @param options The options parameters.\n */\n setLegalHold(\n resourceGroupName: string,\n accountName: string,\n containerName: string,\n legalHold: LegalHold,\n options?: BlobContainersSetLegalHoldOptionalParams,\n ): Promise<BlobContainersSetLegalHoldResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, containerName, legalHold, options },\n setLegalHoldOperationSpec,\n );\n }\n\n /**\n * Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation.\n * ClearLegalHold clears out only the specified tags in the request.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 containerName The name of the blob container within the specified storage account. Blob\n * container names must be between 3 and 63 characters in length and use numbers, lower-case letters\n * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or\n * number.\n * @param legalHold The LegalHold property that will be clear from a blob container.\n * @param options The options parameters.\n */\n clearLegalHold(\n resourceGroupName: string,\n accountName: string,\n containerName: string,\n legalHold: LegalHold,\n options?: BlobContainersClearLegalHoldOptionalParams,\n ): Promise<BlobContainersClearLegalHoldResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, containerName, legalHold, options },\n clearLegalHoldOperationSpec,\n );\n }\n\n /**\n * Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not\n * required for this operation.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 containerName The name of the blob container within the specified storage account. Blob\n * container names must be between 3 and 63 characters in length and use numbers, lower-case letters\n * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or\n * number.\n * @param options The options parameters.\n */\n createOrUpdateImmutabilityPolicy(\n resourceGroupName: string,\n accountName: string,\n containerName: string,\n options?: BlobContainersCreateOrUpdateImmutabilityPolicyOptionalParams,\n ): Promise<BlobContainersCreateOrUpdateImmutabilityPolicyResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, containerName, options },\n createOrUpdateImmutabilityPolicyOperationSpec,\n );\n }\n\n /**\n * Gets the existing immutability policy along with the corresponding ETag in response headers and\n * body.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 containerName The name of the blob container within the specified storage account. Blob\n * container names must be between 3 and 63 characters in length and use numbers, lower-case letters\n * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or\n * number.\n * @param options The options parameters.\n */\n getImmutabilityPolicy(\n resourceGroupName: string,\n accountName: string,\n containerName: string,\n options?: BlobContainersGetImmutabilityPolicyOptionalParams,\n ): Promise<BlobContainersGetImmutabilityPolicyResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, containerName, options },\n getImmutabilityPolicyOperationSpec,\n );\n }\n\n /**\n * Aborts an unlocked immutability policy. The response of delete has\n * immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this operation.\n * Deleting a locked immutability policy is not allowed, the only way is to delete the container after\n * deleting all expired blobs inside the policy locked container.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 containerName The name of the blob container within the specified storage account. Blob\n * container names must be between 3 and 63 characters in length and use numbers, lower-case letters\n * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or\n * number.\n * @param ifMatch The entity state (ETag) version of the immutability policy to update must be returned\n * to the server for all update operations. The ETag value must include the leading and trailing double\n * quotes as returned by the service.\n * @param options The options parameters.\n */\n deleteImmutabilityPolicy(\n resourceGroupName: string,\n accountName: string,\n containerName: string,\n ifMatch: string,\n options?: BlobContainersDeleteImmutabilityPolicyOptionalParams,\n ): Promise<BlobContainersDeleteImmutabilityPolicyResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, containerName, ifMatch, options },\n deleteImmutabilityPolicyOperationSpec,\n );\n }\n\n /**\n * Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is\n * ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 containerName The name of the blob container within the specified storage account. Blob\n * container names must be between 3 and 63 characters in length and use numbers, lower-case letters\n * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or\n * number.\n * @param ifMatch The entity state (ETag) version of the immutability policy to update must be returned\n * to the server for all update operations. The ETag value must include the leading and trailing double\n * quotes as returned by the service.\n * @param options The options parameters.\n */\n lockImmutabilityPolicy(\n resourceGroupName: string,\n accountName: string,\n containerName: string,\n ifMatch: string,\n options?: BlobContainersLockImmutabilityPolicyOptionalParams,\n ): Promise<BlobContainersLockImmutabilityPolicyResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, containerName, ifMatch, options },\n lockImmutabilityPolicyOperationSpec,\n );\n }\n\n /**\n * Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action\n * allowed on a Locked policy will be this action. ETag in If-Match is required for this operation.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 containerName The name of the blob container within the specified storage account. Blob\n * container names must be between 3 and 63 characters in length and use numbers, lower-case letters\n * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or\n * number.\n * @param ifMatch The entity state (ETag) version of the immutability policy to update must be returned\n * to the server for all update operations. The ETag value must include the leading and trailing double\n * quotes as returned by the service.\n * @param options The options parameters.\n */\n extendImmutabilityPolicy(\n resourceGroupName: string,\n accountName: string,\n containerName: string,\n ifMatch: string,\n options?: BlobContainersExtendImmutabilityPolicyOptionalParams,\n ): Promise<BlobContainersExtendImmutabilityPolicyResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, containerName, ifMatch, options },\n extendImmutabilityPolicyOperationSpec,\n );\n }\n\n /**\n * The Lease Container operation establishes and manages a lock on a container for delete operations.\n * The lock duration can be 15 to 60 seconds, or can be infinite.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 containerName The name of the blob container within the specified storage account. Blob\n * container names must be between 3 and 63 characters in length and use numbers, lower-case letters\n * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or\n * number.\n * @param options The options parameters.\n */\n lease(\n resourceGroupName: string,\n accountName: string,\n containerName: string,\n options?: BlobContainersLeaseOptionalParams,\n ): Promise<BlobContainersLeaseResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, containerName, options },\n leaseOperationSpec,\n );\n }\n\n /**\n * This operation migrates a blob container from container level WORM to object level immutability\n * enabled container. Prerequisites require a container level immutability policy either in locked or\n * unlocked state, Account level versioning must be enabled and there should be no Legal hold on the\n * container.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 containerName The name of the blob container within the specified storage account. Blob\n * container names must be between 3 and 63 characters in length and use numbers, lower-case letters\n * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or\n * number.\n * @param options The options parameters.\n */\n async beginObjectLevelWorm(\n resourceGroupName: string,\n accountName: string,\n containerName: string,\n options?: BlobContainersObjectLevelWormOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\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: { resourceGroupName, accountName, containerName, options },\n spec: objectLevelWormOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * This operation migrates a blob container from container level WORM to object level immutability\n * enabled container. Prerequisites require a container level immutability policy either in locked or\n * unlocked state, Account level versioning must be enabled and there should be no Legal hold on the\n * container.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 containerName The name of the blob container within the specified storage account. Blob\n * container names must be between 3 and 63 characters in length and use numbers, lower-case letters\n * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or\n * number.\n * @param options The options parameters.\n */\n async beginObjectLevelWormAndWait(\n resourceGroupName: string,\n accountName: string,\n containerName: string,\n options?: BlobContainersObjectLevelWormOptionalParams,\n ): Promise<void> {\n const poller = await this.beginObjectLevelWorm(\n resourceGroupName,\n accountName,\n containerName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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?: BlobContainersListNextOptionalParams,\n ): Promise<BlobContainersListNextResponse> {\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}/blobServices/default/containers\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListContainerItems,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.maxpagesize,\n Parameters.filter,\n Parameters.include,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.BlobContainer,\n },\n 201: {\n bodyMapper: Mappers.BlobContainer,\n },\n },\n requestBody: Parameters.blobContainer,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.containerName,\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}/blobServices/default/containers/{containerName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.BlobContainer,\n },\n },\n requestBody: Parameters.blobContainer,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.containerName,\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}/blobServices/default/containers/{containerName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BlobContainer,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.containerName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {}, 204: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.containerName,\n ],\n serializer,\n};\nconst setLegalHoldOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/setLegalHold\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.LegalHold,\n },\n },\n requestBody: Parameters.legalHold,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.containerName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst clearLegalHoldOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/clearLegalHold\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.LegalHold,\n },\n },\n requestBody: Parameters.legalHold,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.containerName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst createOrUpdateImmutabilityPolicyOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImmutabilityPolicy,\n headersMapper:\n Mappers.BlobContainersCreateOrUpdateImmutabilityPolicyHeaders,\n },\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.containerName,\n Parameters.immutabilityPolicyName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch,\n ],\n mediaType: \"json\",\n serializer,\n };\nconst getImmutabilityPolicyOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImmutabilityPolicy,\n headersMapper: Mappers.BlobContainersGetImmutabilityPolicyHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.containerName,\n Parameters.immutabilityPolicyName,\n ],\n headerParameters: [Parameters.accept, Parameters.ifMatch],\n serializer,\n};\nconst deleteImmutabilityPolicyOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImmutabilityPolicy,\n headersMapper: Mappers.BlobContainersDeleteImmutabilityPolicyHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.containerName,\n Parameters.immutabilityPolicyName,\n ],\n headerParameters: [Parameters.accept, Parameters.ifMatch1],\n serializer,\n};\nconst lockImmutabilityPolicyOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/lock\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImmutabilityPolicy,\n headersMapper: Mappers.BlobContainersLockImmutabilityPolicyHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.containerName,\n ],\n headerParameters: [Parameters.accept, Parameters.ifMatch1],\n serializer,\n};\nconst extendImmutabilityPolicyOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/extend\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImmutabilityPolicy,\n headersMapper: Mappers.BlobContainersExtendImmutabilityPolicyHeaders,\n },\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.containerName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch1,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst leaseOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/lease\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.LeaseContainerResponse,\n },\n },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.containerName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst objectLevelWormOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/migrate\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.containerName,\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.ListContainerItems,\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":"blobContainers.js","sourceRoot":"","sources":["../../../src/operations/blobContainers.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;AAmC9C,4CAA4C;AAC5C,kDAAkD;AACl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AAC,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 { BlobContainers } 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 ListContainerItem,\n BlobContainersListNextOptionalParams,\n BlobContainersListOptionalParams,\n BlobContainersListResponse,\n BlobContainer,\n BlobContainersCreateOptionalParams,\n BlobContainersCreateResponse,\n BlobContainersUpdateOptionalParams,\n BlobContainersUpdateResponse,\n BlobContainersGetOptionalParams,\n BlobContainersGetResponse,\n BlobContainersDeleteOptionalParams,\n LegalHold,\n BlobContainersSetLegalHoldOptionalParams,\n BlobContainersSetLegalHoldResponse,\n BlobContainersClearLegalHoldOptionalParams,\n BlobContainersClearLegalHoldResponse,\n BlobContainersCreateOrUpdateImmutabilityPolicyOptionalParams,\n BlobContainersCreateOrUpdateImmutabilityPolicyResponse,\n BlobContainersGetImmutabilityPolicyOptionalParams,\n BlobContainersGetImmutabilityPolicyResponse,\n BlobContainersDeleteImmutabilityPolicyOptionalParams,\n BlobContainersDeleteImmutabilityPolicyResponse,\n BlobContainersLockImmutabilityPolicyOptionalParams,\n BlobContainersLockImmutabilityPolicyResponse,\n BlobContainersExtendImmutabilityPolicyOptionalParams,\n BlobContainersExtendImmutabilityPolicyResponse,\n BlobContainersLeaseOptionalParams,\n BlobContainersLeaseResponse,\n BlobContainersObjectLevelWormOptionalParams,\n BlobContainersListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing BlobContainers operations. */\nexport class BlobContainersImpl implements BlobContainers {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class BlobContainers class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all containers and does not support a prefix like data plane. Also SRP today does not return\n * continuation token.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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?: BlobContainersListOptionalParams,\n ): PagedAsyncIterableIterator<ListContainerItem> {\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?: BlobContainersListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ListContainerItem[]> {\n let result: BlobContainersListResponse;\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?: BlobContainersListOptionalParams,\n ): AsyncIterableIterator<ListContainerItem> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all containers and does not support a prefix like data plane. Also SRP today does not return\n * continuation token.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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?: BlobContainersListOptionalParams,\n ): Promise<BlobContainersListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n\n /**\n * Creates a new container under the specified account as described by request body. The container\n * resource includes metadata and properties for that container. It does not include a list of the\n * blobs contained by the container.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 containerName The name of the blob container within the specified storage account. Blob\n * container names must be between 3 and 63 characters in length and use numbers, lower-case letters\n * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or\n * number.\n * @param blobContainer Properties of the blob container to create.\n * @param options The options parameters.\n */\n create(\n resourceGroupName: string,\n accountName: string,\n containerName: string,\n blobContainer: BlobContainer,\n options?: BlobContainersCreateOptionalParams,\n ): Promise<BlobContainersCreateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, containerName, blobContainer, options },\n createOperationSpec,\n );\n }\n\n /**\n * Updates container properties as specified in request body. Properties not mentioned in the request\n * will be unchanged. Update fails if the specified container doesn't already exist.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 containerName The name of the blob container within the specified storage account. Blob\n * container names must be between 3 and 63 characters in length and use numbers, lower-case letters\n * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or\n * number.\n * @param blobContainer Properties to update for the blob container.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n accountName: string,\n containerName: string,\n blobContainer: BlobContainer,\n options?: BlobContainersUpdateOptionalParams,\n ): Promise<BlobContainersUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, containerName, blobContainer, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Gets properties of a specified container.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 containerName The name of the blob container within the specified storage account. Blob\n * container names must be between 3 and 63 characters in length and use numbers, lower-case letters\n * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or\n * number.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n containerName: string,\n options?: BlobContainersGetOptionalParams,\n ): Promise<BlobContainersGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, containerName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Deletes specified container under its account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 containerName The name of the blob container within the specified storage account. Blob\n * container names must be between 3 and 63 characters in length and use numbers, lower-case letters\n * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or\n * number.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n accountName: string,\n containerName: string,\n options?: BlobContainersDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, containerName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Sets legal hold tags. Setting the same tag results in an idempotent operation. SetLegalHold follows\n * an append pattern and does not clear out the existing tags that are not specified in the request.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 containerName The name of the blob container within the specified storage account. Blob\n * container names must be between 3 and 63 characters in length and use numbers, lower-case letters\n * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or\n * number.\n * @param legalHold The LegalHold property that will be set to a blob container.\n * @param options The options parameters.\n */\n setLegalHold(\n resourceGroupName: string,\n accountName: string,\n containerName: string,\n legalHold: LegalHold,\n options?: BlobContainersSetLegalHoldOptionalParams,\n ): Promise<BlobContainersSetLegalHoldResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, containerName, legalHold, options },\n setLegalHoldOperationSpec,\n );\n }\n\n /**\n * Clears legal hold tags. Clearing the same or non-existent tag results in an idempotent operation.\n * ClearLegalHold clears out only the specified tags in the request.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 containerName The name of the blob container within the specified storage account. Blob\n * container names must be between 3 and 63 characters in length and use numbers, lower-case letters\n * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or\n * number.\n * @param legalHold The LegalHold property that will be clear from a blob container.\n * @param options The options parameters.\n */\n clearLegalHold(\n resourceGroupName: string,\n accountName: string,\n containerName: string,\n legalHold: LegalHold,\n options?: BlobContainersClearLegalHoldOptionalParams,\n ): Promise<BlobContainersClearLegalHoldResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, containerName, legalHold, options },\n clearLegalHoldOperationSpec,\n );\n }\n\n /**\n * Creates or updates an unlocked immutability policy. ETag in If-Match is honored if given but not\n * required for this operation.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 containerName The name of the blob container within the specified storage account. Blob\n * container names must be between 3 and 63 characters in length and use numbers, lower-case letters\n * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or\n * number.\n * @param options The options parameters.\n */\n createOrUpdateImmutabilityPolicy(\n resourceGroupName: string,\n accountName: string,\n containerName: string,\n options?: BlobContainersCreateOrUpdateImmutabilityPolicyOptionalParams,\n ): Promise<BlobContainersCreateOrUpdateImmutabilityPolicyResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, containerName, options },\n createOrUpdateImmutabilityPolicyOperationSpec,\n );\n }\n\n /**\n * Gets the existing immutability policy along with the corresponding ETag in response headers and\n * body.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 containerName The name of the blob container within the specified storage account. Blob\n * container names must be between 3 and 63 characters in length and use numbers, lower-case letters\n * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or\n * number.\n * @param options The options parameters.\n */\n getImmutabilityPolicy(\n resourceGroupName: string,\n accountName: string,\n containerName: string,\n options?: BlobContainersGetImmutabilityPolicyOptionalParams,\n ): Promise<BlobContainersGetImmutabilityPolicyResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, containerName, options },\n getImmutabilityPolicyOperationSpec,\n );\n }\n\n /**\n * Aborts an unlocked immutability policy. The response of delete has\n * immutabilityPeriodSinceCreationInDays set to 0. ETag in If-Match is required for this operation.\n * Deleting a locked immutability policy is not allowed, the only way is to delete the container after\n * deleting all expired blobs inside the policy locked container.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 containerName The name of the blob container within the specified storage account. Blob\n * container names must be between 3 and 63 characters in length and use numbers, lower-case letters\n * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or\n * number.\n * @param ifMatch The entity state (ETag) version of the immutability policy to update must be returned\n * to the server for all update operations. The ETag value must include the leading and trailing double\n * quotes as returned by the service.\n * @param options The options parameters.\n */\n deleteImmutabilityPolicy(\n resourceGroupName: string,\n accountName: string,\n containerName: string,\n ifMatch: string,\n options?: BlobContainersDeleteImmutabilityPolicyOptionalParams,\n ): Promise<BlobContainersDeleteImmutabilityPolicyResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, containerName, ifMatch, options },\n deleteImmutabilityPolicyOperationSpec,\n );\n }\n\n /**\n * Sets the ImmutabilityPolicy to Locked state. The only action allowed on a Locked policy is\n * ExtendImmutabilityPolicy action. ETag in If-Match is required for this operation.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 containerName The name of the blob container within the specified storage account. Blob\n * container names must be between 3 and 63 characters in length and use numbers, lower-case letters\n * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or\n * number.\n * @param ifMatch The entity state (ETag) version of the immutability policy to update must be returned\n * to the server for all update operations. The ETag value must include the leading and trailing double\n * quotes as returned by the service.\n * @param options The options parameters.\n */\n lockImmutabilityPolicy(\n resourceGroupName: string,\n accountName: string,\n containerName: string,\n ifMatch: string,\n options?: BlobContainersLockImmutabilityPolicyOptionalParams,\n ): Promise<BlobContainersLockImmutabilityPolicyResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, containerName, ifMatch, options },\n lockImmutabilityPolicyOperationSpec,\n );\n }\n\n /**\n * Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy. The only action\n * allowed on a Locked policy will be this action. ETag in If-Match is required for this operation.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 containerName The name of the blob container within the specified storage account. Blob\n * container names must be between 3 and 63 characters in length and use numbers, lower-case letters\n * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or\n * number.\n * @param ifMatch The entity state (ETag) version of the immutability policy to update must be returned\n * to the server for all update operations. The ETag value must include the leading and trailing double\n * quotes as returned by the service.\n * @param options The options parameters.\n */\n extendImmutabilityPolicy(\n resourceGroupName: string,\n accountName: string,\n containerName: string,\n ifMatch: string,\n options?: BlobContainersExtendImmutabilityPolicyOptionalParams,\n ): Promise<BlobContainersExtendImmutabilityPolicyResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, containerName, ifMatch, options },\n extendImmutabilityPolicyOperationSpec,\n );\n }\n\n /**\n * The Lease Container operation establishes and manages a lock on a container for delete operations.\n * The lock duration can be 15 to 60 seconds, or can be infinite.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 containerName The name of the blob container within the specified storage account. Blob\n * container names must be between 3 and 63 characters in length and use numbers, lower-case letters\n * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or\n * number.\n * @param options The options parameters.\n */\n lease(\n resourceGroupName: string,\n accountName: string,\n containerName: string,\n options?: BlobContainersLeaseOptionalParams,\n ): Promise<BlobContainersLeaseResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, containerName, options },\n leaseOperationSpec,\n );\n }\n\n /**\n * This operation migrates a blob container from container level WORM to object level immutability\n * enabled container. Prerequisites require a container level immutability policy either in locked or\n * unlocked state, Account level versioning must be enabled and there should be no Legal hold on the\n * container.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 containerName The name of the blob container within the specified storage account. Blob\n * container names must be between 3 and 63 characters in length and use numbers, lower-case letters\n * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or\n * number.\n * @param options The options parameters.\n */\n async beginObjectLevelWorm(\n resourceGroupName: string,\n accountName: string,\n containerName: string,\n options?: BlobContainersObjectLevelWormOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\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: { resourceGroupName, accountName, containerName, options },\n spec: objectLevelWormOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n resourceLocationConfig: \"location\",\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * This operation migrates a blob container from container level WORM to object level immutability\n * enabled container. Prerequisites require a container level immutability policy either in locked or\n * unlocked state, Account level versioning must be enabled and there should be no Legal hold on the\n * container.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 containerName The name of the blob container within the specified storage account. Blob\n * container names must be between 3 and 63 characters in length and use numbers, lower-case letters\n * and dash (-) only. Every dash (-) character must be immediately preceded and followed by a letter or\n * number.\n * @param options The options parameters.\n */\n async beginObjectLevelWormAndWait(\n resourceGroupName: string,\n accountName: string,\n containerName: string,\n options?: BlobContainersObjectLevelWormOptionalParams,\n ): Promise<void> {\n const poller = await this.beginObjectLevelWorm(\n resourceGroupName,\n accountName,\n containerName,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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?: BlobContainersListNextOptionalParams,\n ): Promise<BlobContainersListNextResponse> {\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}/blobServices/default/containers\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListContainerItems,\n },\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.maxpagesize,\n Parameters.filter,\n Parameters.include,\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.BlobContainer,\n },\n 201: {\n bodyMapper: Mappers.BlobContainer,\n },\n },\n requestBody: Parameters.blobContainer,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.containerName,\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}/blobServices/default/containers/{containerName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.BlobContainer,\n },\n },\n requestBody: Parameters.blobContainer,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.containerName,\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}/blobServices/default/containers/{containerName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BlobContainer,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.containerName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}\",\n httpMethod: \"DELETE\",\n responses: { 200: {}, 204: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.containerName,\n ],\n serializer,\n};\nconst setLegalHoldOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/setLegalHold\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.LegalHold,\n },\n },\n requestBody: Parameters.legalHold,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.containerName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst clearLegalHoldOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/clearLegalHold\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.LegalHold,\n },\n },\n requestBody: Parameters.legalHold,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.containerName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst createOrUpdateImmutabilityPolicyOperationSpec: coreClient.OperationSpec =\n {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImmutabilityPolicy,\n headersMapper:\n Mappers.BlobContainersCreateOrUpdateImmutabilityPolicyHeaders,\n },\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.containerName,\n Parameters.immutabilityPolicyName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch,\n ],\n mediaType: \"json\",\n serializer,\n };\nconst getImmutabilityPolicyOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImmutabilityPolicy,\n headersMapper: Mappers.BlobContainersGetImmutabilityPolicyHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.containerName,\n Parameters.immutabilityPolicyName,\n ],\n headerParameters: [Parameters.accept, Parameters.ifMatch],\n serializer,\n};\nconst deleteImmutabilityPolicyOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/{immutabilityPolicyName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImmutabilityPolicy,\n headersMapper: Mappers.BlobContainersDeleteImmutabilityPolicyHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.containerName,\n Parameters.immutabilityPolicyName,\n ],\n headerParameters: [Parameters.accept, Parameters.ifMatch1],\n serializer,\n};\nconst lockImmutabilityPolicyOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/lock\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImmutabilityPolicy,\n headersMapper: Mappers.BlobContainersLockImmutabilityPolicyHeaders,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.containerName,\n ],\n headerParameters: [Parameters.accept, Parameters.ifMatch1],\n serializer,\n};\nconst extendImmutabilityPolicyOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/immutabilityPolicies/default/extend\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ImmutabilityPolicy,\n headersMapper: Mappers.BlobContainersExtendImmutabilityPolicyHeaders,\n },\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.containerName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch1,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst leaseOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/lease\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.LeaseContainerResponse,\n },\n },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.containerName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst objectLevelWormOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/blobServices/default/containers/{containerName}/migrate\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.containerName,\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.ListContainerItems,\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,13 +5,13 @@
|
|
|
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 * as coreClient from "@azure/core-client";
|
|
9
10
|
import * as Mappers from "../models/mappers.js";
|
|
10
11
|
import * as Parameters from "../models/parameters.js";
|
|
11
12
|
/// <reference lib="esnext.asynciterable" />
|
|
12
13
|
/** Class containing BlobInventoryPolicies operations. */
|
|
13
14
|
export class BlobInventoryPoliciesImpl {
|
|
14
|
-
client;
|
|
15
15
|
/**
|
|
16
16
|
* Initialize a new instance of the class BlobInventoryPolicies class.
|
|
17
17
|
* @param client Reference to the service client
|
|
@@ -38,22 +38,39 @@ export class BlobInventoryPoliciesImpl {
|
|
|
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
|
-
|
|
48
|
+
listPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
49
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
50
|
+
let result;
|
|
51
|
+
result = yield __await(this._list(resourceGroupName, accountName, options));
|
|
52
|
+
yield yield __await(result.value || []);
|
|
53
|
+
});
|
|
52
54
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
listPagingAll(resourceGroupName, accountName, options) {
|
|
56
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
57
|
+
var _a, e_1, _b, _c;
|
|
58
|
+
try {
|
|
59
|
+
for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, accountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
60
|
+
_c = _f.value;
|
|
61
|
+
_d = false;
|
|
62
|
+
const page = _c;
|
|
63
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
67
|
+
finally {
|
|
68
|
+
try {
|
|
69
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
70
|
+
}
|
|
71
|
+
finally { if (e_1) throw e_1.error; }
|
|
72
|
+
}
|
|
73
|
+
});
|
|
57
74
|
}
|
|
58
75
|
/**
|
|
59
76
|
* Gets the blob inventory policy associated with the specified storage account.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blobInventoryPolicies.js","sourceRoot":"","sources":["../../../src/operations/blobInventoryPolicies.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OA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C,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,uBAAuB;KACnC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,gJAAgJ;IACtJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,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","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 { BlobInventoryPolicies } 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 BlobInventoryPolicy,\n BlobInventoryPoliciesListOptionalParams,\n BlobInventoryPoliciesListResponse,\n BlobInventoryPolicyName,\n BlobInventoryPoliciesGetOptionalParams,\n BlobInventoryPoliciesGetResponse,\n BlobInventoryPoliciesCreateOrUpdateOptionalParams,\n BlobInventoryPoliciesCreateOrUpdateResponse,\n BlobInventoryPoliciesDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing BlobInventoryPolicies operations. */\nexport class BlobInventoryPoliciesImpl implements BlobInventoryPolicies {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class BlobInventoryPolicies class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the blob inventory policy associated with the specified storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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?: BlobInventoryPoliciesListOptionalParams,\n ): PagedAsyncIterableIterator<BlobInventoryPolicy> {\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?: BlobInventoryPoliciesListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<BlobInventoryPolicy[]> {\n let result: BlobInventoryPoliciesListResponse;\n result = await this._list(resourceGroupName, accountName, options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n accountName: string,\n options?: BlobInventoryPoliciesListOptionalParams,\n ): AsyncIterableIterator<BlobInventoryPolicy> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the blob inventory policy associated with the specified storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 blobInventoryPolicyName The name of the storage account blob inventory policy. It should\n * always be 'default'\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n blobInventoryPolicyName: BlobInventoryPolicyName,\n options?: BlobInventoryPoliciesGetOptionalParams,\n ): Promise<BlobInventoryPoliciesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, blobInventoryPolicyName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Sets the blob inventory policy to the specified storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 blobInventoryPolicyName The name of the storage account blob inventory policy. It should\n * always be 'default'\n * @param properties The blob inventory policy set to a storage account.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n accountName: string,\n blobInventoryPolicyName: BlobInventoryPolicyName,\n properties: BlobInventoryPolicy,\n options?: BlobInventoryPoliciesCreateOrUpdateOptionalParams,\n ): Promise<BlobInventoryPoliciesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n blobInventoryPolicyName,\n properties,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes the blob inventory policy associated with the specified storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 blobInventoryPolicyName The name of the storage account blob inventory policy. It should\n * always be 'default'\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n accountName: string,\n blobInventoryPolicyName: BlobInventoryPolicyName,\n options?: BlobInventoryPoliciesDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, blobInventoryPolicyName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Gets the blob inventory policy associated with the specified storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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?: BlobInventoryPoliciesListOptionalParams,\n ): Promise<BlobInventoryPoliciesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies/{blobInventoryPolicyName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BlobInventoryPolicy,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.blobInventoryPolicyName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies/{blobInventoryPolicyName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.BlobInventoryPolicy,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.properties1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.blobInventoryPolicyName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies/{blobInventoryPolicyName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.blobInventoryPolicyName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListBlobInventoryPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"blobInventoryPolicies.js","sourceRoot":"","sources":["../../../src/operations/blobInventoryPolicies.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AActD,4CAA4C;AAC5C,yDAAyD;AACzD,MAAM,OAAO,yBAAyB;IAGpC;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACI,IAAI,CACT,iBAAyB,EACzB,WAAmB,EACnB,OAAiD;QAEjD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AE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,gJAAgJ;IACtJ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,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","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 { BlobInventoryPolicies } 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 BlobInventoryPolicy,\n BlobInventoryPoliciesListOptionalParams,\n BlobInventoryPoliciesListResponse,\n BlobInventoryPolicyName,\n BlobInventoryPoliciesGetOptionalParams,\n BlobInventoryPoliciesGetResponse,\n BlobInventoryPoliciesCreateOrUpdateOptionalParams,\n BlobInventoryPoliciesCreateOrUpdateResponse,\n BlobInventoryPoliciesDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing BlobInventoryPolicies operations. */\nexport class BlobInventoryPoliciesImpl implements BlobInventoryPolicies {\n private readonly client: StorageManagementClient;\n\n /**\n * Initialize a new instance of the class BlobInventoryPolicies class.\n * @param client Reference to the service client\n */\n constructor(client: StorageManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets the blob inventory policy associated with the specified storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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?: BlobInventoryPoliciesListOptionalParams,\n ): PagedAsyncIterableIterator<BlobInventoryPolicy> {\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?: BlobInventoryPoliciesListOptionalParams,\n _settings?: PageSettings,\n ): AsyncIterableIterator<BlobInventoryPolicy[]> {\n let result: BlobInventoryPoliciesListResponse;\n result = await this._list(resourceGroupName, accountName, options);\n yield result.value || [];\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n accountName: string,\n options?: BlobInventoryPoliciesListOptionalParams,\n ): AsyncIterableIterator<BlobInventoryPolicy> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n accountName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Gets the blob inventory policy associated with the specified storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 blobInventoryPolicyName The name of the storage account blob inventory policy. It should\n * always be 'default'\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n accountName: string,\n blobInventoryPolicyName: BlobInventoryPolicyName,\n options?: BlobInventoryPoliciesGetOptionalParams,\n ): Promise<BlobInventoryPoliciesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, blobInventoryPolicyName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Sets the blob inventory policy to the specified storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 blobInventoryPolicyName The name of the storage account blob inventory policy. It should\n * always be 'default'\n * @param properties The blob inventory policy set to a storage account.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n accountName: string,\n blobInventoryPolicyName: BlobInventoryPolicyName,\n properties: BlobInventoryPolicy,\n options?: BlobInventoryPoliciesCreateOrUpdateOptionalParams,\n ): Promise<BlobInventoryPoliciesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n accountName,\n blobInventoryPolicyName,\n properties,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes the blob inventory policy associated with the specified storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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 blobInventoryPolicyName The name of the storage account blob inventory policy. It should\n * always be 'default'\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n accountName: string,\n blobInventoryPolicyName: BlobInventoryPolicyName,\n options?: BlobInventoryPoliciesDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, blobInventoryPolicyName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Gets the blob inventory policy associated with the specified storage account.\n * @param resourceGroupName The name of the resource group within the user's subscription. The name is\n * 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?: BlobInventoryPoliciesListOptionalParams,\n ): Promise<BlobInventoryPoliciesListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, accountName, options },\n listOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies/{blobInventoryPolicyName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BlobInventoryPolicy,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.blobInventoryPolicyName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies/{blobInventoryPolicyName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.BlobInventoryPolicy,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.properties1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.blobInventoryPolicyName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies/{blobInventoryPolicyName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n Parameters.blobInventoryPolicyName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Storage/storageAccounts/{accountName}/inventoryPolicies\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ListBlobInventoryPolicy,\n },\n default: {\n bodyMapper: Mappers.ErrorResponse,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.resourceGroupName,\n Parameters.accountName,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -5,13 +5,13 @@
|
|
|
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 * as coreClient from "@azure/core-client";
|
|
9
10
|
import * as Mappers from "../models/mappers.js";
|
|
10
11
|
import * as Parameters from "../models/parameters.js";
|
|
11
12
|
/// <reference lib="esnext.asynciterable" />
|
|
12
13
|
/** Class containing BlobServices operations. */
|
|
13
14
|
export class BlobServicesImpl {
|
|
14
|
-
client;
|
|
15
15
|
/**
|
|
16
16
|
* Initialize a new instance of the class BlobServices class.
|
|
17
17
|
* @param client Reference to the service client
|
|
@@ -38,22 +38,39 @@ export class BlobServicesImpl {
|
|
|
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
|
-
|
|
48
|
+
listPagingPage(resourceGroupName, accountName, options, _settings) {
|
|
49
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
50
|
+
let result;
|
|
51
|
+
result = yield __await(this._list(resourceGroupName, accountName, options));
|
|
52
|
+
yield yield __await(result.value || []);
|
|
53
|
+
});
|
|
52
54
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
55
|
+
listPagingAll(resourceGroupName, accountName, options) {
|
|
56
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
57
|
+
var _a, e_1, _b, _c;
|
|
58
|
+
try {
|
|
59
|
+
for (var _d = true, _e = __asyncValues(this.listPagingPage(resourceGroupName, accountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
60
|
+
_c = _f.value;
|
|
61
|
+
_d = false;
|
|
62
|
+
const page = _c;
|
|
63
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
67
|
+
finally {
|
|
68
|
+
try {
|
|
69
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
70
|
+
}
|
|
71
|
+
finally { if (e_1) throw e_1.error; }
|
|
72
|
+
}
|
|
73
|
+
});
|
|
57
74
|
}
|
|
58
75
|
/**
|
|
59
76
|
* List blob services of storage account. It returns a collection of one object named default.
|