@azure/arm-storageactions 1.0.0-alpha.20240322.2
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/CHANGELOG.md +5 -0
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/index.js +2533 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationsListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +53 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/storageTaskAssignmentListSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTaskAssignmentListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTaskAssignmentListSample.js +55 -0
- package/dist-esm/samples-dev/storageTaskAssignmentListSample.js.map +1 -0
- package/dist-esm/samples-dev/storageTasksCreateSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTasksCreateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTasksCreateSample.js +64 -0
- package/dist-esm/samples-dev/storageTasksCreateSample.js.map +1 -0
- package/dist-esm/samples-dev/storageTasksDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTasksDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTasksDeleteSample.js +39 -0
- package/dist-esm/samples-dev/storageTasksDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/storageTasksGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTasksGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTasksGetSample.js +39 -0
- package/dist-esm/samples-dev/storageTasksGetSample.js.map +1 -0
- package/dist-esm/samples-dev/storageTasksListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTasksListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTasksListByResourceGroupSample.js +54 -0
- package/dist-esm/samples-dev/storageTasksListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/storageTasksListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTasksListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTasksListBySubscriptionSample.js +53 -0
- package/dist-esm/samples-dev/storageTasksListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/storageTasksPreviewActionsSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTasksPreviewActionsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTasksPreviewActionsSample.js +87 -0
- package/dist-esm/samples-dev/storageTasksPreviewActionsSample.js.map +1 -0
- package/dist-esm/samples-dev/storageTasksReportListSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTasksReportListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTasksReportListSample.js +55 -0
- package/dist-esm/samples-dev/storageTasksReportListSample.js.map +1 -0
- package/dist-esm/samples-dev/storageTasksUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/storageTasksUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/storageTasksUpdateSample.js +63 -0
- package/dist-esm/samples-dev/storageTasksUpdateSample.js.map +1 -0
- package/dist-esm/src/index.d.ts +6 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +13 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +11 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +21 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +720 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +92 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +37 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +1043 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +16 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +143 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +5 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +12 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +32 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +133 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/storageTaskAssignmentOperations.d.ts +44 -0
- package/dist-esm/src/operations/storageTaskAssignmentOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/storageTaskAssignmentOperations.js +156 -0
- package/dist-esm/src/operations/storageTaskAssignmentOperations.js.map +1 -0
- package/dist-esm/src/operations/storageTasks.d.ts +135 -0
- package/dist-esm/src/operations/storageTasks.d.ts.map +1 -0
- package/dist-esm/src/operations/storageTasks.js +606 -0
- package/dist-esm/src/operations/storageTasks.js.map +1 -0
- package/dist-esm/src/operations/storageTasksReport.d.ts +44 -0
- package/dist-esm/src/operations/storageTasksReport.d.ts.map +1 -0
- package/dist-esm/src/operations/storageTasksReport.js +160 -0
- package/dist-esm/src/operations/storageTasksReport.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +5 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +12 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/operations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/operations.js +9 -0
- package/dist-esm/src/operationsInterfaces/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/storageTaskAssignmentOperations.d.ts +15 -0
- package/dist-esm/src/operationsInterfaces/storageTaskAssignmentOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/storageTaskAssignmentOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/storageTaskAssignmentOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/storageTasks.d.ts +99 -0
- package/dist-esm/src/operationsInterfaces/storageTasks.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/storageTasks.js +9 -0
- package/dist-esm/src/operationsInterfaces/storageTasks.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/storageTasksReport.d.ts +15 -0
- package/dist-esm/src/operationsInterfaces/storageTasksReport.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/storageTasksReport.js +9 -0
- package/dist-esm/src/operationsInterfaces/storageTasksReport.js.map +1 -0
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/src/storageActionsManagementClient.d.ts +23 -0
- package/dist-esm/src/storageActionsManagementClient.d.ts.map +1 -0
- package/dist-esm/src/storageActionsManagementClient.js +104 -0
- package/dist-esm/src/storageActionsManagementClient.js.map +1 -0
- package/dist-esm/test/storageactions_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/storageactions_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/storageactions_operations_test.spec.js +135 -0
- package/dist-esm/test/storageactions_operations_test.spec.js.map +1 -0
- package/package.json +118 -0
- package/review/arm-storageactions.api.md +521 -0
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +42 -0
- package/src/models/index.ts +818 -0
- package/src/models/mappers.ts +1094 -0
- package/src/models/parameters.ts +166 -0
- package/src/operations/index.ts +12 -0
- package/src/operations/operations.ts +149 -0
- package/src/operations/storageTaskAssignmentOperations.ts +205 -0
- package/src/operations/storageTasks.ts +791 -0
- package/src/operations/storageTasksReport.ts +207 -0
- package/src/operationsInterfaces/index.ts +12 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/storageTaskAssignmentOperations.ts +31 -0
- package/src/operationsInterfaces/storageTasks.ts +180 -0
- package/src/operationsInterfaces/storageTasksReport.ts +31 -0
- package/src/pagingHelper.ts +39 -0
- package/src/storageActionsManagementClient.ts +158 -0
- package/tsconfig.json +33 -0
- package/types/arm-storageactions.d.ts +967 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { StorageActionsManagementClient } from "@azure/arm-storageactions";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to Get the storage task properties
|
|
17
|
+
*
|
|
18
|
+
* @summary Get the storage task properties
|
|
19
|
+
* x-ms-original-file: specification/storageactions/resource-manager/Microsoft.StorageActions/stable/2023-01-01/examples/storageTasksCrud/GetStorageTask.json
|
|
20
|
+
*/
|
|
21
|
+
function getStorageTask() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const subscriptionId = process.env["STORAGEACTIONS_SUBSCRIPTION_ID"] ||
|
|
24
|
+
"1f31ba14-ce16-4281-b9b4-3e78da6e1616";
|
|
25
|
+
const resourceGroupName = process.env["STORAGEACTIONS_RESOURCE_GROUP"] || "res4228";
|
|
26
|
+
const storageTaskName = "mytask1";
|
|
27
|
+
const credential = new DefaultAzureCredential();
|
|
28
|
+
const client = new StorageActionsManagementClient(credential, subscriptionId);
|
|
29
|
+
const result = yield client.storageTasks.get(resourceGroupName, storageTaskName);
|
|
30
|
+
console.log(result);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function main() {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
getStorageTask();
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
main().catch(console.error);
|
|
39
|
+
//# sourceMappingURL=storageTasksGetSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storageTasksGetSample.js","sourceRoot":"","sources":["../../samples-dev/storageTasksGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,cAAc;;QAC3B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC;YAC7C,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,IAAI,SAAS,CAAC;QAC5D,MAAM,eAAe,GAAG,SAAS,CAAC;QAClC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,GAAG,CAC1C,iBAAiB,EACjB,eAAe,CAChB,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,cAAc,EAAE,CAAC;IACnB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storageTasksListByResourceGroupSample.d.ts","sourceRoot":"","sources":["../../samples-dev/storageTasksListByResourceGroupSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { StorageActionsManagementClient } from "@azure/arm-storageactions";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to Lists all the storage tasks available under the given resource group.
|
|
17
|
+
*
|
|
18
|
+
* @summary Lists all the storage tasks available under the given resource group.
|
|
19
|
+
* x-ms-original-file: specification/storageactions/resource-manager/Microsoft.StorageActions/stable/2023-01-01/examples/storageTasksList/ListStorageTasksByResourceGroup.json
|
|
20
|
+
*/
|
|
21
|
+
function listStorageTasksByResourceGroup() {
|
|
22
|
+
var _a, e_1, _b, _c;
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
const subscriptionId = process.env["STORAGEACTIONS_SUBSCRIPTION_ID"] ||
|
|
25
|
+
"1f31ba14-ce16-4281-b9b4-3e78da6e1616";
|
|
26
|
+
const resourceGroupName = process.env["STORAGEACTIONS_RESOURCE_GROUP"] || "res6117";
|
|
27
|
+
const credential = new DefaultAzureCredential();
|
|
28
|
+
const client = new StorageActionsManagementClient(credential, subscriptionId);
|
|
29
|
+
const resArray = new Array();
|
|
30
|
+
try {
|
|
31
|
+
for (var _d = true, _e = __asyncValues(client.storageTasks.listByResourceGroup(resourceGroupName)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
|
|
32
|
+
_c = _f.value;
|
|
33
|
+
_d = false;
|
|
34
|
+
let item = _c;
|
|
35
|
+
resArray.push(item);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
39
|
+
finally {
|
|
40
|
+
try {
|
|
41
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
42
|
+
}
|
|
43
|
+
finally { if (e_1) throw e_1.error; }
|
|
44
|
+
}
|
|
45
|
+
console.log(resArray);
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
function main() {
|
|
49
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
50
|
+
listStorageTasksByResourceGroup();
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
main().catch(console.error);
|
|
54
|
+
//# sourceMappingURL=storageTasksListByResourceGroupSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storageTasksListByResourceGroupSample.js","sourceRoot":"","sources":["../../samples-dev/storageTasksListByResourceGroupSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,+BAA+B;;;QAC5C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC;YAC7C,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,IAAI,SAAS,CAAC;QAC5D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,YAAY,CAAC,mBAAmB,CAC5D,iBAAiB,CAClB,CAAA,IAAA,sDAAE,CAAC;gBAFmB,cAEtB;gBAFsB,WAEtB;gBAFU,IAAI,IAAI,KAAA,CAAA;gBAGjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,+BAA+B,EAAE,CAAC;IACpC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storageTasksListBySubscriptionSample.d.ts","sourceRoot":"","sources":["../../samples-dev/storageTasksListBySubscriptionSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { StorageActionsManagementClient } from "@azure/arm-storageactions";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to Lists all the storage tasks available under the subscription.
|
|
17
|
+
*
|
|
18
|
+
* @summary Lists all the storage tasks available under the subscription.
|
|
19
|
+
* x-ms-original-file: specification/storageactions/resource-manager/Microsoft.StorageActions/stable/2023-01-01/examples/storageTasksList/ListStorageTasksBySubscription.json
|
|
20
|
+
*/
|
|
21
|
+
function listStorageTasksBySubscription() {
|
|
22
|
+
var _a, e_1, _b, _c;
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
const subscriptionId = process.env["STORAGEACTIONS_SUBSCRIPTION_ID"] ||
|
|
25
|
+
"1f31ba14-ce16-4281-b9b4-3e78da6e1616";
|
|
26
|
+
const credential = new DefaultAzureCredential();
|
|
27
|
+
const client = new StorageActionsManagementClient(credential, subscriptionId);
|
|
28
|
+
const resArray = new Array();
|
|
29
|
+
try {
|
|
30
|
+
for (var _d = true, _e = __asyncValues(client.storageTasks.listBySubscription()), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
|
|
31
|
+
_c = _f.value;
|
|
32
|
+
_d = false;
|
|
33
|
+
let item = _c;
|
|
34
|
+
resArray.push(item);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
38
|
+
finally {
|
|
39
|
+
try {
|
|
40
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
41
|
+
}
|
|
42
|
+
finally { if (e_1) throw e_1.error; }
|
|
43
|
+
}
|
|
44
|
+
console.log(resArray);
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
function main() {
|
|
48
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
49
|
+
listStorageTasksBySubscription();
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
main().catch(console.error);
|
|
53
|
+
//# sourceMappingURL=storageTasksListBySubscriptionSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storageTasksListBySubscriptionSample.js","sourceRoot":"","sources":["../../samples-dev/storageTasksListBySubscriptionSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,8BAA8B;;;QAC3C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC;YAC7C,sCAAsC,CAAC;QACzC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,YAAY,CAAC,kBAAkB,EAAE,CAAA,IAAA,sDAAE,CAAC;gBAA3C,cAAwC;gBAAxC,WAAwC;gBAApD,IAAI,IAAI,KAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,8BAA8B,EAAE,CAAC;IACnC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storageTasksPreviewActionsSample.d.ts","sourceRoot":"","sources":["../../samples-dev/storageTasksPreviewActionsSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { StorageActionsManagementClient, } from "@azure/arm-storageactions";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to Runs the input conditions against input object metadata properties and designates matched objects in response.
|
|
17
|
+
*
|
|
18
|
+
* @summary Runs the input conditions against input object metadata properties and designates matched objects in response.
|
|
19
|
+
* x-ms-original-file: specification/storageactions/resource-manager/Microsoft.StorageActions/stable/2023-01-01/examples/misc/PerformStorageTaskActionsPreview.json
|
|
20
|
+
*/
|
|
21
|
+
function performStorageTaskActionsPreview() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const subscriptionId = process.env["STORAGEACTIONS_SUBSCRIPTION_ID"] ||
|
|
24
|
+
"1f31ba14-ce16-4281-b9b4-3e78da6e1616";
|
|
25
|
+
const location = "eastus";
|
|
26
|
+
const parameters = {
|
|
27
|
+
properties: {
|
|
28
|
+
action: {
|
|
29
|
+
elseBlockExists: true,
|
|
30
|
+
if: { condition: "[[equals(AccessTier, 'Hot')]]" },
|
|
31
|
+
},
|
|
32
|
+
blobs: [
|
|
33
|
+
{
|
|
34
|
+
name: "folder1/file1.txt",
|
|
35
|
+
metadata: [{ key: "mKey1", value: "mValue1" }],
|
|
36
|
+
properties: [
|
|
37
|
+
{ key: "Creation-Time", value: "Wed, 07 Jun 2023 05:23:29 GMT" },
|
|
38
|
+
{ key: "Last-Modified", value: "Wed, 07 Jun 2023 05:23:29 GMT" },
|
|
39
|
+
{ key: "Etag", value: "0x8DB67175454D36D" },
|
|
40
|
+
{ key: "Content-Length", value: "38619" },
|
|
41
|
+
{ key: "Content-Type", value: "text/xml" },
|
|
42
|
+
{ key: "Content-Encoding", value: "" },
|
|
43
|
+
{ key: "Content-Language", value: "" },
|
|
44
|
+
{ key: "Content-CRC64", value: "" },
|
|
45
|
+
{ key: "Content-MD5", value: "njr6iDrmU9+FC89WMK22EA==" },
|
|
46
|
+
{ key: "Cache-Control", value: "" },
|
|
47
|
+
{ key: "Content-Disposition", value: "" },
|
|
48
|
+
{ key: "BlobType", value: "BlockBlob" },
|
|
49
|
+
{ key: "AccessTier", value: "Hot" },
|
|
50
|
+
{ key: "AccessTierInferred", value: "true" },
|
|
51
|
+
{ key: "LeaseStatus", value: "unlocked" },
|
|
52
|
+
{ key: "LeaseState", value: "available" },
|
|
53
|
+
{ key: "ServerEncrypted", value: "true" },
|
|
54
|
+
{ key: "TagCount", value: "1" },
|
|
55
|
+
],
|
|
56
|
+
tags: [{ key: "tKey1", value: "tValue1" }],
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
name: "folder2/file1.txt",
|
|
60
|
+
metadata: [{ key: "mKey2", value: "mValue2" }],
|
|
61
|
+
properties: [
|
|
62
|
+
{ key: "Creation-Time", value: "Wed, 06 Jun 2023 05:23:29 GMT" },
|
|
63
|
+
{ key: "Last-Modified", value: "Wed, 06 Jun 2023 05:23:29 GMT" },
|
|
64
|
+
{ key: "Etag", value: "0x6FB67175454D36D" },
|
|
65
|
+
],
|
|
66
|
+
tags: [{ key: "tKey2", value: "tValue2" }],
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
container: {
|
|
70
|
+
name: "firstContainer",
|
|
71
|
+
metadata: [{ key: "mContainerKey1", value: "mContainerValue1" }],
|
|
72
|
+
},
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
const credential = new DefaultAzureCredential();
|
|
76
|
+
const client = new StorageActionsManagementClient(credential, subscriptionId);
|
|
77
|
+
const result = yield client.storageTasks.previewActions(location, parameters);
|
|
78
|
+
console.log(result);
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
function main() {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
+
performStorageTaskActionsPreview();
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
main().catch(console.error);
|
|
87
|
+
//# sourceMappingURL=storageTasksPreviewActionsSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storageTasksPreviewActionsSample.js","sourceRoot":"","sources":["../../samples-dev/storageTasksPreviewActionsSample.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storageTasksReportListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/storageTasksReportListSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { StorageActionsManagementClient } from "@azure/arm-storageactions";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to Fetch the storage tasks run report summary for each assignment.
|
|
17
|
+
*
|
|
18
|
+
* @summary Fetch the storage tasks run report summary for each assignment.
|
|
19
|
+
* x-ms-original-file: specification/storageactions/resource-manager/Microsoft.StorageActions/stable/2023-01-01/examples/storageTasksList/ListStorageTasksRunReportSummary.json
|
|
20
|
+
*/
|
|
21
|
+
function listStorageTasksByResourceGroup() {
|
|
22
|
+
var _a, e_1, _b, _c;
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
const subscriptionId = process.env["STORAGEACTIONS_SUBSCRIPTION_ID"] ||
|
|
25
|
+
"1f31ba14-ce16-4281-b9b4-3e78da6e1616";
|
|
26
|
+
const resourceGroupName = process.env["STORAGEACTIONS_RESOURCE_GROUP"] || "rgroup1";
|
|
27
|
+
const storageTaskName = "mytask1";
|
|
28
|
+
const credential = new DefaultAzureCredential();
|
|
29
|
+
const client = new StorageActionsManagementClient(credential, subscriptionId);
|
|
30
|
+
const resArray = new Array();
|
|
31
|
+
try {
|
|
32
|
+
for (var _d = true, _e = __asyncValues(client.storageTasksReport.list(resourceGroupName, storageTaskName)), _f; _f = yield _e.next(), _a = _f.done, !_a; _d = true) {
|
|
33
|
+
_c = _f.value;
|
|
34
|
+
_d = false;
|
|
35
|
+
let item = _c;
|
|
36
|
+
resArray.push(item);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
40
|
+
finally {
|
|
41
|
+
try {
|
|
42
|
+
if (!_d && !_a && (_b = _e.return)) yield _b.call(_e);
|
|
43
|
+
}
|
|
44
|
+
finally { if (e_1) throw e_1.error; }
|
|
45
|
+
}
|
|
46
|
+
console.log(resArray);
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
function main() {
|
|
50
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
51
|
+
listStorageTasksByResourceGroup();
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
main().catch(console.error);
|
|
55
|
+
//# sourceMappingURL=storageTasksReportListSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storageTasksReportListSample.js","sourceRoot":"","sources":["../../samples-dev/storageTasksReportListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,+BAA+B;;;QAC5C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC;YAC7C,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,IAAI,SAAS,CAAC;QAC5D,MAAM,eAAe,GAAG,SAAS,CAAC;QAClC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,kBAAkB,CAAC,IAAI,CACnD,iBAAiB,EACjB,eAAe,CAChB,CAAA,IAAA,sDAAE,CAAC;gBAHmB,cAGtB;gBAHsB,WAGtB;gBAHU,IAAI,IAAI,KAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,SAAe,IAAI;;QACjB,+BAA+B,EAAE,CAAC;IACpC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storageTasksUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/storageTasksUpdateSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { StorageActionsManagementClient, } from "@azure/arm-storageactions";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to Update storage task properties
|
|
17
|
+
*
|
|
18
|
+
* @summary Update storage task properties
|
|
19
|
+
* x-ms-original-file: specification/storageactions/resource-manager/Microsoft.StorageActions/stable/2023-01-01/examples/storageTasksCrud/PatchStorageTask.json
|
|
20
|
+
*/
|
|
21
|
+
function patchStorageTask() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const subscriptionId = process.env["STORAGEACTIONS_SUBSCRIPTION_ID"] ||
|
|
24
|
+
"1f31ba14-ce16-4281-b9b4-3e78da6e1616";
|
|
25
|
+
const resourceGroupName = process.env["STORAGEACTIONS_RESOURCE_GROUP"] || "res4228";
|
|
26
|
+
const storageTaskName = "mytask1";
|
|
27
|
+
const parameters = {
|
|
28
|
+
properties: {
|
|
29
|
+
description: "My Storage task",
|
|
30
|
+
action: {
|
|
31
|
+
else: {
|
|
32
|
+
operations: [
|
|
33
|
+
{ name: "DeleteBlob", onFailure: "break", onSuccess: "continue" },
|
|
34
|
+
],
|
|
35
|
+
},
|
|
36
|
+
if: {
|
|
37
|
+
condition: "[[equals(AccessTier, 'Cool')]]",
|
|
38
|
+
operations: [
|
|
39
|
+
{
|
|
40
|
+
name: "SetBlobTier",
|
|
41
|
+
onFailure: "break",
|
|
42
|
+
onSuccess: "continue",
|
|
43
|
+
parameters: { tier: "Hot" },
|
|
44
|
+
},
|
|
45
|
+
],
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
enabled: true,
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
const credential = new DefaultAzureCredential();
|
|
52
|
+
const client = new StorageActionsManagementClient(credential, subscriptionId);
|
|
53
|
+
const result = yield client.storageTasks.beginUpdateAndWait(resourceGroupName, storageTaskName, parameters);
|
|
54
|
+
console.log(result);
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
function main() {
|
|
58
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
59
|
+
patchStorageTask();
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
main().catch(console.error);
|
|
63
|
+
//# sourceMappingURL=storageTasksUpdateSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"storageTasksUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/storageTasksUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,8BAA8B,GAC/B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,gBAAgB;;QAC7B,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC;YAC7C,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,+BAA+B,CAAC,IAAI,SAAS,CAAC;QAC5D,MAAM,eAAe,GAAG,SAAS,CAAC;QAClC,MAAM,UAAU,GAAgC;YAC9C,UAAU,EAAE;gBACV,WAAW,EAAE,iBAAiB;gBAC9B,MAAM,EAAE;oBACN,IAAI,EAAE;wBACJ,UAAU,EAAE;4BACV,EAAE,IAAI,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE;yBAClE;qBACF;oBACD,EAAE,EAAE;wBACF,SAAS,EAAE,gCAAgC;wBAC3C,UAAU,EAAE;4BACV;gCACE,IAAI,EAAE,aAAa;gCACnB,SAAS,EAAE,OAAO;gCAClB,SAAS,EAAE,UAAU;gCACrB,UAAU,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE;6BAC5B;yBACF;qBACF;iBACF;gBACD,OAAO,EAAE,IAAI;aACd;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,YAAY,CAAC,kBAAkB,CACzD,iBAAiB,EACjB,eAAe,EACf,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,gBAAgB,EAAE,CAAC;IACrB,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/// <reference lib="esnext.asynciterable" />
|
|
2
|
+
export { getContinuationToken } from "./pagingHelper";
|
|
3
|
+
export * from "./models";
|
|
4
|
+
export { StorageActionsManagementClient } from "./storageActionsManagementClient";
|
|
5
|
+
export * from "./operationsInterfaces";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AASA,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAClF,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
/// <reference lib="esnext.asynciterable" />
|
|
9
|
+
export { getContinuationToken } from "./pagingHelper";
|
|
10
|
+
export * from "./models";
|
|
11
|
+
export { StorageActionsManagementClient } from "./storageActionsManagementClient";
|
|
12
|
+
export * from "./operationsInterfaces";
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACtD,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,8BAA8B,EAAE,MAAM,kCAAkC,CAAC;AAClF,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
|
2
|
+
export declare function createLroSpec<T>(inputs: {
|
|
3
|
+
sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
|
|
4
|
+
args: Record<string, unknown>;
|
|
5
|
+
spec: {
|
|
6
|
+
readonly requestBody?: unknown;
|
|
7
|
+
readonly path?: string;
|
|
8
|
+
readonly httpMethod: string;
|
|
9
|
+
} & Record<string, any>;
|
|
10
|
+
}): LongRunningOperation<T>;
|
|
11
|
+
//# sourceMappingURL=lroImpl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAYA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,EAAE;IACvC,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IACnE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE;QACJ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;CACzB,GAAG,oBAAoB,CAAC,CAAC,CAAC,CAmB1B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __rest } from "tslib";
|
|
9
|
+
export function createLroSpec(inputs) {
|
|
10
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
11
|
+
return {
|
|
12
|
+
requestMethod: spec.httpMethod,
|
|
13
|
+
requestPath: spec.path,
|
|
14
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
15
|
+
sendPollRequest: (path, options) => {
|
|
16
|
+
const { requestBody } = spec, restSpec = __rest(spec, ["requestBody"]);
|
|
17
|
+
return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
|
|
18
|
+
},
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=lroImpl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAQH,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CACf,IAAY,EACZ,OAA2C,EAC3C,EAAE;YACF,MAAM,EAAE,WAAW,KAAkB,IAAI,EAAjB,QAAQ,UAAK,IAAI,EAAnC,eAA4B,CAAO,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,kCACtB,QAAQ,KACX,UAAU,EAAE,KAAK,EACjB,IAAI,EACJ,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,IACjC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC"}
|