@azure/arm-batch 6.0.0 → 7.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/{LICENSE.txt → LICENSE} +1 -1
- package/README.md +70 -82
- package/dist/index.js +6873 -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/src/batchManagementClient.d.ts +24 -0
- package/dist-esm/src/batchManagementClient.d.ts.map +1 -0
- package/dist-esm/src/batchManagementClient.js +31 -0
- package/dist-esm/src/batchManagementClient.js.map +1 -0
- package/dist-esm/src/batchManagementClientContext.d.ts +17 -0
- package/dist-esm/src/batchManagementClientContext.d.ts.map +1 -0
- package/dist-esm/src/batchManagementClientContext.js +50 -0
- package/dist-esm/src/batchManagementClientContext.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 +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +1780 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/index.js +1 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +112 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +1723 -1885
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +34 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +303 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/applicationOperations.d.ts +71 -0
- package/dist-esm/src/operations/applicationOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/applicationOperations.js +269 -0
- package/dist-esm/src/operations/applicationOperations.js.map +1 -0
- package/dist-esm/src/operations/applicationPackageOperations.d.ts +83 -0
- package/dist-esm/src/operations/applicationPackageOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/applicationPackageOperations.js +294 -0
- package/dist-esm/src/operations/applicationPackageOperations.js.map +1 -0
- package/dist-esm/src/operations/batchAccountOperations.d.ts +171 -0
- package/dist-esm/src/operations/batchAccountOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/batchAccountOperations.js +681 -0
- package/dist-esm/src/operations/batchAccountOperations.js.map +1 -0
- package/dist-esm/src/operations/certificateOperations.d.ts +106 -0
- package/dist-esm/src/operations/certificateOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/certificateOperations.js +388 -0
- package/dist-esm/src/operations/certificateOperations.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +1 -2
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/location.d.ts +71 -0
- package/dist-esm/src/operations/location.d.ts.map +1 -0
- package/dist-esm/src/operations/location.js +316 -0
- package/dist-esm/src/operations/location.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 +120 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operations/poolOperations.d.ts +103 -0
- package/dist-esm/src/operations/poolOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/poolOperations.js +410 -0
- package/dist-esm/src/operations/poolOperations.js.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts +70 -0
- package/dist-esm/src/operations/privateEndpointConnectionOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/privateEndpointConnectionOperations.js +278 -0
- package/dist-esm/src/operations/privateEndpointConnectionOperations.js.map +1 -0
- package/dist-esm/src/operations/privateLinkResourceOperations.d.ts +47 -0
- package/dist-esm/src/operations/privateLinkResourceOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/privateLinkResourceOperations.js +170 -0
- package/dist-esm/src/operations/privateLinkResourceOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/applicationOperations.d.ts +46 -0
- package/dist-esm/src/operationsInterfaces/applicationOperations.d.ts.map +1 -0
- package/{src/models/operationsMappers.ts → dist-esm/src/operationsInterfaces/applicationOperations.js} +2 -7
- package/dist-esm/src/operationsInterfaces/applicationOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/applicationPackageOperations.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/applicationPackageOperations.d.ts.map +1 -0
- package/{esm/models/operationsMappers.js → dist-esm/src/operationsInterfaces/applicationPackageOperations.js} +2 -2
- package/dist-esm/src/operationsInterfaces/applicationPackageOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts +112 -0
- package/dist-esm/src/operationsInterfaces/batchAccountOperations.d.ts.map +1 -0
- package/{src/models/locationMappers.ts → dist-esm/src/operationsInterfaces/batchAccountOperations.js} +2 -10
- package/dist-esm/src/operationsInterfaces/batchAccountOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/certificateOperations.d.ts +81 -0
- package/dist-esm/src/operationsInterfaces/certificateOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/certificateOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/certificateOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +10 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +17 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/location.d.ts +31 -0
- package/dist-esm/src/operationsInterfaces/location.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/location.js +9 -0
- package/dist-esm/src/operationsInterfaces/location.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/poolOperations.d.ts +78 -0
- package/dist-esm/src/operationsInterfaces/poolOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/poolOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/poolOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts +45 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnectionOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResourceOperations.d.ts +22 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResourceOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResourceOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/privateLinkResourceOperations.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +4 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +479 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +66 -32
- package/review/arm-batch.api.md +1459 -0
- package/rollup.config.js +181 -30
- package/src/batchManagementClient.ts +59 -48
- package/src/batchManagementClientContext.ts +46 -43
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +1460 -3635
- package/src/models/mappers.ts +1705 -1851
- package/src/models/parameters.ts +216 -117
- package/src/operations/applicationOperations.ts +215 -263
- package/src/operations/applicationPackageOperations.ts +252 -279
- package/src/operations/batchAccountOperations.ts +660 -572
- package/src/operations/certificateOperations.ts +360 -359
- package/src/operations/index.ts +1 -2
- package/src/operations/location.ts +285 -234
- package/src/operations/operations.ts +82 -70
- package/src/operations/poolOperations.ts +373 -378
- package/src/operations/privateEndpointConnectionOperations.ts +269 -169
- package/src/operations/privateLinkResourceOperations.ts +156 -126
- package/src/operationsInterfaces/applicationOperations.ts +90 -0
- package/src/operationsInterfaces/applicationPackageOperations.ts +106 -0
- package/src/operationsInterfaces/batchAccountOperations.ts +196 -0
- package/src/operationsInterfaces/certificateOperations.ts +139 -0
- package/src/operationsInterfaces/index.ts +17 -0
- package/src/operationsInterfaces/location.ts +62 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/poolOperations.ts +142 -0
- package/src/operationsInterfaces/privateEndpointConnectionOperations.ts +87 -0
- package/src/operationsInterfaces/privateLinkResourceOperations.ts +45 -0
- package/tsconfig.json +3 -3
- package/types/arm-batch.d.ts +2528 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-batch.js +0 -6972
- package/dist/arm-batch.js.map +0 -1
- package/dist/arm-batch.min.js +0 -1
- package/dist/arm-batch.min.js.map +0 -1
- package/esm/batchManagementClient.d.ts +0 -33
- package/esm/batchManagementClient.d.ts.map +0 -1
- package/esm/batchManagementClient.js +0 -46
- package/esm/batchManagementClient.js.map +0 -1
- package/esm/batchManagementClientContext.d.ts +0 -23
- package/esm/batchManagementClientContext.d.ts.map +0 -1
- package/esm/batchManagementClientContext.js +0 -61
- package/esm/batchManagementClientContext.js.map +0 -1
- package/esm/models/applicationOperationsMappers.d.ts +0 -2
- package/esm/models/applicationOperationsMappers.d.ts.map +0 -1
- package/esm/models/applicationOperationsMappers.js +0 -9
- package/esm/models/applicationOperationsMappers.js.map +0 -1
- package/esm/models/applicationPackageOperationsMappers.d.ts +0 -2
- package/esm/models/applicationPackageOperationsMappers.d.ts.map +0 -1
- package/esm/models/applicationPackageOperationsMappers.js +0 -9
- package/esm/models/applicationPackageOperationsMappers.js.map +0 -1
- package/esm/models/batchAccountOperationsMappers.d.ts +0 -2
- package/esm/models/batchAccountOperationsMappers.d.ts.map +0 -1
- package/esm/models/batchAccountOperationsMappers.js +0 -9
- package/esm/models/batchAccountOperationsMappers.js.map +0 -1
- package/esm/models/certificateOperationsMappers.d.ts +0 -2
- package/esm/models/certificateOperationsMappers.d.ts.map +0 -1
- package/esm/models/certificateOperationsMappers.js +0 -9
- package/esm/models/certificateOperationsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -3946
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js.map +0 -1
- package/esm/models/locationMappers.d.ts +0 -2
- package/esm/models/locationMappers.d.ts.map +0 -1
- package/esm/models/locationMappers.js +0 -9
- package/esm/models/locationMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -110
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/operationsMappers.d.ts +0 -2
- package/esm/models/operationsMappers.d.ts.map +0 -1
- package/esm/models/operationsMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -21
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -250
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/poolOperationsMappers.d.ts +0 -2
- package/esm/models/poolOperationsMappers.d.ts.map +0 -1
- package/esm/models/poolOperationsMappers.js +0 -9
- package/esm/models/poolOperationsMappers.js.map +0 -1
- package/esm/models/privateEndpointConnectionOperationsMappers.d.ts +0 -2
- package/esm/models/privateEndpointConnectionOperationsMappers.d.ts.map +0 -1
- package/esm/models/privateEndpointConnectionOperationsMappers.js +0 -9
- package/esm/models/privateEndpointConnectionOperationsMappers.js.map +0 -1
- package/esm/models/privateLinkResourceOperationsMappers.d.ts +0 -2
- package/esm/models/privateLinkResourceOperationsMappers.d.ts.map +0 -1
- package/esm/models/privateLinkResourceOperationsMappers.js +0 -9
- package/esm/models/privateLinkResourceOperationsMappers.js.map +0 -1
- package/esm/operations/applicationOperations.d.ts +0 -151
- package/esm/operations/applicationOperations.d.ts.map +0 -1
- package/esm/operations/applicationOperations.js +0 -232
- package/esm/operations/applicationOperations.js.map +0 -1
- package/esm/operations/applicationPackageOperations.d.ts +0 -171
- package/esm/operations/applicationPackageOperations.d.ts.map +0 -1
- package/esm/operations/applicationPackageOperations.js +0 -244
- package/esm/operations/applicationPackageOperations.js.map +0 -1
- package/esm/operations/batchAccountOperations.d.ts +0 -299
- package/esm/operations/batchAccountOperations.d.ts.map +0 -1
- package/esm/operations/batchAccountOperations.js +0 -493
- package/esm/operations/batchAccountOperations.js.map +0 -1
- package/esm/operations/certificateOperations.d.ts +0 -207
- package/esm/operations/certificateOperations.d.ts.map +0 -1
- package/esm/operations/certificateOperations.js +0 -310
- package/esm/operations/certificateOperations.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/location.d.ts +0 -124
- package/esm/operations/location.d.ts.map +0 -1
- package/esm/operations/location.js +0 -216
- package/esm/operations/location.js.map +0 -1
- package/esm/operations/operations.d.ts +0 -46
- package/esm/operations/operations.d.ts.map +0 -1
- package/esm/operations/operations.js +0 -79
- package/esm/operations/operations.js.map +0 -1
- package/esm/operations/poolOperations.d.ts +0 -206
- package/esm/operations/poolOperations.d.ts.map +0 -1
- package/esm/operations/poolOperations.js +0 -341
- package/esm/operations/poolOperations.js.map +0 -1
- package/esm/operations/privateEndpointConnectionOperations.d.ts +0 -104
- package/esm/operations/privateEndpointConnectionOperations.d.ts.map +0 -1
- package/esm/operations/privateEndpointConnectionOperations.js +0 -195
- package/esm/operations/privateEndpointConnectionOperations.js.map +0 -1
- package/esm/operations/privateLinkResourceOperations.d.ts +0 -79
- package/esm/operations/privateLinkResourceOperations.d.ts.map +0 -1
- package/esm/operations/privateLinkResourceOperations.js +0 -121
- package/esm/operations/privateLinkResourceOperations.js.map +0 -1
- package/src/models/applicationOperationsMappers.ts +0 -79
- package/src/models/applicationPackageOperationsMappers.ts +0 -80
- package/src/models/batchAccountOperationsMappers.ts +0 -89
- package/src/models/certificateOperationsMappers.ts +0 -84
- package/src/models/poolOperationsMappers.ts +0 -85
- package/src/models/privateEndpointConnectionOperationsMappers.ts +0 -80
- package/src/models/privateLinkResourceOperationsMappers.ts +0 -79
|
@@ -0,0 +1,479 @@
|
|
|
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
|
+
import { env, record, isPlaybackMode } from "@azure-tools/test-recorder";
|
|
10
|
+
import * as assert from "assert";
|
|
11
|
+
import { ClientSecretCredential } from "@azure/identity";
|
|
12
|
+
import { BatchManagementClient } from "../src/batchManagementClient";
|
|
13
|
+
import { StorageManagementClient } from "@azure/arm-storage";
|
|
14
|
+
const recorderEnvSetup = {
|
|
15
|
+
replaceableVariables: {
|
|
16
|
+
AZURE_CLIENT_ID: "azure_client_id",
|
|
17
|
+
AZURE_CLIENT_SECRET: "azure_client_secret",
|
|
18
|
+
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
|
19
|
+
SUBSCRIPTION_ID: "azure_subscription_id"
|
|
20
|
+
},
|
|
21
|
+
customizationsOnRecordings: [
|
|
22
|
+
(recording) => recording.replace(/"access_token":"[^"]*"/g, `"access_token":"access_token"`)
|
|
23
|
+
],
|
|
24
|
+
queryParametersToSkip: []
|
|
25
|
+
};
|
|
26
|
+
export const testPollingOptions = {
|
|
27
|
+
updateIntervalInMs: isPlaybackMode() ? 0 : undefined,
|
|
28
|
+
};
|
|
29
|
+
describe("Batch test", () => {
|
|
30
|
+
let recorder;
|
|
31
|
+
let subscriptionId;
|
|
32
|
+
let client;
|
|
33
|
+
let storage_client;
|
|
34
|
+
let location;
|
|
35
|
+
let resourceGroup;
|
|
36
|
+
let accountName;
|
|
37
|
+
let applicationName;
|
|
38
|
+
let storageaccountName;
|
|
39
|
+
let certificateName;
|
|
40
|
+
let poolName;
|
|
41
|
+
beforeEach(function () {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
recorder = record(this, recorderEnvSetup);
|
|
44
|
+
subscriptionId = env.SUBSCRIPTION_ID;
|
|
45
|
+
// This is an example of how the environment variables are used
|
|
46
|
+
const credential = new ClientSecretCredential(env.AZURE_TENANT_ID, env.AZURE_CLIENT_ID, env.AZURE_CLIENT_SECRET);
|
|
47
|
+
client = new BatchManagementClient(credential, subscriptionId);
|
|
48
|
+
storage_client = new StorageManagementClient(credential, subscriptionId);
|
|
49
|
+
location = "eastus";
|
|
50
|
+
resourceGroup = "myjstest";
|
|
51
|
+
accountName = "myaccountxxx";
|
|
52
|
+
applicationName = "myapplicationxxx";
|
|
53
|
+
storageaccountName = "mystorageaccountxxx";
|
|
54
|
+
certificateName = "sha1-cff2ab63c8c955aaf71989efa641b906558d9fb7";
|
|
55
|
+
poolName = "mypoolxxx";
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
afterEach(function () {
|
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
yield recorder.stop();
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
function storageAccounts_beginCreateAndWait() {
|
|
64
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
65
|
+
const parameter = {
|
|
66
|
+
sku: {
|
|
67
|
+
name: "Standard_GRS",
|
|
68
|
+
},
|
|
69
|
+
kind: "StorageV2",
|
|
70
|
+
location: "westeurope",
|
|
71
|
+
encryption: {
|
|
72
|
+
services: {
|
|
73
|
+
file: {
|
|
74
|
+
keyType: "Account",
|
|
75
|
+
enabled: true
|
|
76
|
+
},
|
|
77
|
+
blob: {
|
|
78
|
+
keyType: "Account",
|
|
79
|
+
enabled: true
|
|
80
|
+
},
|
|
81
|
+
},
|
|
82
|
+
keySource: "Microsoft.Storage",
|
|
83
|
+
},
|
|
84
|
+
tags: {
|
|
85
|
+
key1: "value1",
|
|
86
|
+
key2: "value2",
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
const res = yield storage_client.storageAccounts.beginCreateAndWait(resourceGroup, storageaccountName, parameter, testPollingOptions);
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
;
|
|
93
|
+
it("batchAccountOperations create test", function () {
|
|
94
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
95
|
+
// await storageAccounts_beginCreateAndWait();
|
|
96
|
+
const res = yield client.batchAccountOperations.beginCreateAndWait(resourceGroup, accountName, {
|
|
97
|
+
location: location,
|
|
98
|
+
autoStorage: {
|
|
99
|
+
storageAccountId: "/subscriptions/" + subscriptionId + "/resourceGroups/" + resourceGroup + "/providers/Microsoft.Storage/storageAccounts/" + storageaccountName
|
|
100
|
+
}
|
|
101
|
+
}, testPollingOptions);
|
|
102
|
+
assert.equal(res.name, accountName);
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
it("batchAccountOperations get test", function () {
|
|
106
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
+
const res = yield client.batchAccountOperations.get(resourceGroup, accountName);
|
|
108
|
+
assert.equal(res.name, accountName);
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
it("batchAccountOperations getkeys test", function () {
|
|
112
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
113
|
+
const res = yield client.batchAccountOperations.getKeys(resourceGroup, accountName);
|
|
114
|
+
assert.equal(res.accountName, accountName);
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
it("batchAccountOperations regenerateKey test", function () {
|
|
118
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
119
|
+
const res = yield client.batchAccountOperations.regenerateKey(resourceGroup, accountName, { keyName: "Primary" });
|
|
120
|
+
assert.equal(res.accountName, accountName);
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
it("batchAccountOperations list test", function () {
|
|
124
|
+
var e_1, _a;
|
|
125
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
126
|
+
const resArray = new Array();
|
|
127
|
+
try {
|
|
128
|
+
for (var _b = __asyncValues(client.batchAccountOperations.list()), _c; _c = yield _b.next(), !_c.done;) {
|
|
129
|
+
let item = _c.value;
|
|
130
|
+
resArray.push(item);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
134
|
+
finally {
|
|
135
|
+
try {
|
|
136
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
137
|
+
}
|
|
138
|
+
finally { if (e_1) throw e_1.error; }
|
|
139
|
+
}
|
|
140
|
+
assert.equal(resArray.length, 1);
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
it("batchAccountOperations update test", function () {
|
|
144
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
145
|
+
const res = yield client.batchAccountOperations.update(resourceGroup, accountName, { tags: { key1: "value1" } });
|
|
146
|
+
assert.equal(res.type, "Microsoft.Batch/batchAccounts");
|
|
147
|
+
});
|
|
148
|
+
});
|
|
149
|
+
it("applicationOperations create test", function () {
|
|
150
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
151
|
+
const res = yield client.applicationOperations.create(resourceGroup, accountName, applicationName, { parameters: { allowUpdates: false } });
|
|
152
|
+
assert.equal(res.name, applicationName);
|
|
153
|
+
});
|
|
154
|
+
});
|
|
155
|
+
it("applicationOperations get test", function () {
|
|
156
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
157
|
+
const res = yield client.applicationOperations.get(resourceGroup, accountName, applicationName);
|
|
158
|
+
assert.equal(res.name, applicationName);
|
|
159
|
+
});
|
|
160
|
+
});
|
|
161
|
+
it("applicationOperations list test", function () {
|
|
162
|
+
var e_2, _a;
|
|
163
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
164
|
+
const resArray = new Array();
|
|
165
|
+
try {
|
|
166
|
+
for (var _b = __asyncValues(client.applicationOperations.list(resourceGroup, accountName)), _c; _c = yield _b.next(), !_c.done;) {
|
|
167
|
+
let item = _c.value;
|
|
168
|
+
resArray.push(item);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
172
|
+
finally {
|
|
173
|
+
try {
|
|
174
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
175
|
+
}
|
|
176
|
+
finally { if (e_2) throw e_2.error; }
|
|
177
|
+
}
|
|
178
|
+
assert.equal(resArray.length, 1);
|
|
179
|
+
});
|
|
180
|
+
});
|
|
181
|
+
it("certificateOperations create test", function () {
|
|
182
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
183
|
+
const res = yield client.certificateOperations.create(resourceGroup, accountName, certificateName, {
|
|
184
|
+
thumbprint: 'cff2ab63c8c955aaf71989efa641b906558d9fb7',
|
|
185
|
+
thumbprintAlgorithm: 'sha1',
|
|
186
|
+
data: 'MIIGMQIBAzCCBe0GCSqGSIb3DQEHAaCCBd4EggXaMIIF1jCCA8AGCSqGSIb3DQEHAaCCA7EEggOtMIIDqTCCA6UGCyqGSIb3DQEMCgECoIICtjCCArIwHAYKKoZIhvcNAQwBAzAOBAhyd3xCtln3iQICB9AEggKQhe5P10V9iV1BsDlwWT561Yu2hVq3JT8ae/ebx1ZR/gMApVereDKkS9Zg4vFyssusHebbK5pDpU8vfAqle0TM4m7wGsRj453ZorSPUfMpHvQnAOn+2pEpWdMThU7xvZ6DVpwhDOQk9166z+KnKdHGuJKh4haMT7Rw/6xZ1rsBt2423cwTrQVMQyACrEkianpuujubKltN99qRoFAxhQcnYE2KlYKw7lRcExq6mDSYAyk5xJZ1ZFdLj6MAryZroQit/0g5eyhoNEKwWbi8px5j71pRTf7yjN+deMGQKwbGl+3OgaL1UZ5fCjypbVL60kpIBxLZwIJ7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rlc2RrMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC5fhcxbJHxxBEIDzVOMc56s04U6k4GPY7yMR1m+rBGVRiAyV4RjY6U936dqXHCVD36ps2Q0Z+OeEgyCInkIyVeB1EwXcToOcyeS2YcUb0vRWZDouC3tuFdHwiK1Ed5iW/LksmXDotyV7kpqzaPhOFiMtBuMEwNJcPge9k17hRgRQIDAQABo0swSTBHBgNVHQEEQDA+gBAS5AktBh0dTwCNYSHcFmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAHl2M97QbpzdnwO5HoRBsiEExOcLTNg+GKCr7HUsbzfvrUivw+JLL7qjHAIc5phnK+F5bQ8HKe0L9YXBSKl+fvwxFTATBgkqhkiG9w0BCRUxBgQEAQAAADA7MB8wBwYFKw4DAhoEFGVtyGMqiBd32fGpzlGZQoRM6UQwBBTI0YHFFqTS4Go8CoLgswn29EiuUQICB9A=',
|
|
187
|
+
format: "Pfx",
|
|
188
|
+
password: "nodesdk"
|
|
189
|
+
});
|
|
190
|
+
assert.equal(res.name, certificateName);
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
it("certificateOperations get test", function () {
|
|
194
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
195
|
+
const res = yield client.certificateOperations.get(resourceGroup, accountName, certificateName);
|
|
196
|
+
assert.equal(res.name, certificateName);
|
|
197
|
+
});
|
|
198
|
+
});
|
|
199
|
+
it("certificateOperations list test", function () {
|
|
200
|
+
var e_3, _a;
|
|
201
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
202
|
+
const resArray = new Array();
|
|
203
|
+
try {
|
|
204
|
+
for (var _b = __asyncValues(client.certificateOperations.listByBatchAccount(resourceGroup, accountName)), _c; _c = yield _b.next(), !_c.done;) {
|
|
205
|
+
let item = _c.value;
|
|
206
|
+
resArray.push(item);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
210
|
+
finally {
|
|
211
|
+
try {
|
|
212
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
213
|
+
}
|
|
214
|
+
finally { if (e_3) throw e_3.error; }
|
|
215
|
+
}
|
|
216
|
+
assert.equal(resArray.length, 1);
|
|
217
|
+
});
|
|
218
|
+
});
|
|
219
|
+
it("certificateOperations update test", function () {
|
|
220
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
221
|
+
const res = yield client.certificateOperations.update(resourceGroup, accountName, certificateName, {
|
|
222
|
+
data: 'MIIGMQIBAzCCBe0GCSqGSIb3DQEHAaCCBd4EggXaMIIF1jCCA8AGCSqGSIb3DQEHAaCCA7EEggOtMIIDqTCCA6UGCyqGSIb3DQEMCgECoIICtjCCArIwHAYKKoZIhvcNAQwBAzAOBAhyd3xCtln3iQICB9AEggKQhe5P10V9iV1BsDlwWT561Yu2hVq3JT8ae/ebx1ZR/gMApVereDKkS9Zg4vFyssusHebbK5pDpU8vfAqle0TM4m7wGsRj453ZorSPUfMpHvQnAOn+2pEpWdMThU7xvZ6DVpwhDOQk9166z+KnKdHGuJKh4haMT7Rw/6xZ1rsBt2423cwTrQVMQyACrEkianpuujubKltN99qRoFAxhQcnYE2KlYKw7lRcExq6mDSYAyk5xJZ1ZFdLj6MAryZroQit/0g5eyhoNEKwWbi8px5j71pRTf7yjN+deMGQKwbGl+3OgaL1UZ5fCjypbVL60kpIBxLZwIJ7p3jJ+q9pbq9zSdzshPYor5lxyUfXqaso/0/91ayNoBzg4hQGh618PhFI6RMGjwkzhB9xk74iweJ9HQyIHf8yx2RCSI22JuCMitPMWSGvOszhbNx3AEDLuiiAOHg391mprEtKZguOIr9LrJwem/YmcHbwyz5YAbZmiseKPkllfC7dafFfCFEkj6R2oegIsZo0pEKYisAXBqT0g+6/jGwuhlZcBo0f7UIZm88iA3MrJCjlXEgV5OcQdoWj+hq0lKEdnhtCKr03AIfukN6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FmRjoRgwFjEUMBIGA1UEAxMLUm9vdCBBZ2VuY3mCEAY3bACqAGSKEc+41KpcNfQwCQYFKw4DAh0FAANBAHl2M97QbpzdnwO5HoRBsiEExOcLTNg+GKCr7HUsbzfvrUivw+JLL7qjHAIc5phnK+F5bQ8HKe0L9YXBSKl+fvwxFTATBgkqhkiG9w0BCRUxBgQEAQAAADA7MB8wBwYFKw4DAhoEFGVtyGMqiBd32fGpzlGZQoRM6UQwBBTI0YHFFqTS4Go8CoLgswn29EiuUQICB9A=',
|
|
223
|
+
password: "nodesdk"
|
|
224
|
+
});
|
|
225
|
+
assert.equal(res.type, "Microsoft.Batch/batchAccounts/certificates");
|
|
226
|
+
});
|
|
227
|
+
});
|
|
228
|
+
it("certificateOperations cancelDeletion test", function () {
|
|
229
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
230
|
+
const res = yield client.certificateOperations.cancelDeletion(resourceGroup, accountName, certificateName);
|
|
231
|
+
assert.equal(res.name, certificateName);
|
|
232
|
+
});
|
|
233
|
+
});
|
|
234
|
+
it("location checkNameAvailability test", function () {
|
|
235
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
236
|
+
const res = yield client.location.checkNameAvailability(location, { name: accountName, type: "Microsoft.Batch/batchAccounts" });
|
|
237
|
+
assert.equal(res.reason, "AlreadyExists");
|
|
238
|
+
});
|
|
239
|
+
});
|
|
240
|
+
it("location getQuotas test", function () {
|
|
241
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
242
|
+
const res = yield client.location.getQuotas(location);
|
|
243
|
+
assert.equal(res.accountQuota, 3);
|
|
244
|
+
});
|
|
245
|
+
});
|
|
246
|
+
it("location listSupportedCloudServiceSkus test", function () {
|
|
247
|
+
var e_4, _a;
|
|
248
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
249
|
+
const resArray = new Array();
|
|
250
|
+
try {
|
|
251
|
+
for (var _b = __asyncValues(client.location.listSupportedCloudServiceSkus(location)), _c; _c = yield _b.next(), !_c.done;) {
|
|
252
|
+
let item = _c.value;
|
|
253
|
+
resArray.push(item);
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
257
|
+
finally {
|
|
258
|
+
try {
|
|
259
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
260
|
+
}
|
|
261
|
+
finally { if (e_4) throw e_4.error; }
|
|
262
|
+
}
|
|
263
|
+
assert.notEqual(resArray.length, 0);
|
|
264
|
+
});
|
|
265
|
+
});
|
|
266
|
+
it("location listSupportedVirtualMachineSkus test", function () {
|
|
267
|
+
var e_5, _a;
|
|
268
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
269
|
+
const resArray = new Array();
|
|
270
|
+
try {
|
|
271
|
+
for (var _b = __asyncValues(client.location.listSupportedVirtualMachineSkus(location)), _c; _c = yield _b.next(), !_c.done;) {
|
|
272
|
+
let item = _c.value;
|
|
273
|
+
resArray.push(item);
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
277
|
+
finally {
|
|
278
|
+
try {
|
|
279
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
280
|
+
}
|
|
281
|
+
finally { if (e_5) throw e_5.error; }
|
|
282
|
+
}
|
|
283
|
+
assert.notEqual(resArray.length, 0);
|
|
284
|
+
});
|
|
285
|
+
});
|
|
286
|
+
it("poolOperations create test", function () {
|
|
287
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
288
|
+
const res = yield client.poolOperations.create(resourceGroup, accountName, poolName, {
|
|
289
|
+
vmSize: "STANDARD_D4",
|
|
290
|
+
deploymentConfiguration: {
|
|
291
|
+
cloudServiceConfiguration: {
|
|
292
|
+
osFamily: "5"
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
scaleSettings: {
|
|
296
|
+
fixedScale: {
|
|
297
|
+
targetDedicatedNodes: 3
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
});
|
|
301
|
+
assert.equal(res.name, poolName);
|
|
302
|
+
});
|
|
303
|
+
});
|
|
304
|
+
it("poolOperations get test", function () {
|
|
305
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
306
|
+
const res = yield client.poolOperations.get(resourceGroup, accountName, poolName);
|
|
307
|
+
console.log(res);
|
|
308
|
+
});
|
|
309
|
+
});
|
|
310
|
+
it("poolOperations listByBatchAccount test", function () {
|
|
311
|
+
var e_6, _a;
|
|
312
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
313
|
+
const resArray = new Array();
|
|
314
|
+
try {
|
|
315
|
+
for (var _b = __asyncValues(client.poolOperations.listByBatchAccount(resourceGroup, accountName)), _c; _c = yield _b.next(), !_c.done;) {
|
|
316
|
+
let item = _c.value;
|
|
317
|
+
resArray.push(item);
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
321
|
+
finally {
|
|
322
|
+
try {
|
|
323
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
324
|
+
}
|
|
325
|
+
finally { if (e_6) throw e_6.error; }
|
|
326
|
+
}
|
|
327
|
+
assert.equal(resArray.length, 1);
|
|
328
|
+
});
|
|
329
|
+
});
|
|
330
|
+
it("poolOperations update test", function () {
|
|
331
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
332
|
+
const res = yield client.poolOperations.update(resourceGroup, accountName, poolName, {
|
|
333
|
+
scaleSettings: {
|
|
334
|
+
autoScale: {
|
|
335
|
+
formula: "$TargetDedicatedNodes=34"
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
});
|
|
339
|
+
assert.equal(res.type, "Microsoft.Batch/batchAccounts/pools");
|
|
340
|
+
});
|
|
341
|
+
});
|
|
342
|
+
it("poolOperations disableAutoScale test", function () {
|
|
343
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
344
|
+
const res = yield client.poolOperations.disableAutoScale(resourceGroup, accountName, poolName);
|
|
345
|
+
assert.equal(res.name, poolName);
|
|
346
|
+
});
|
|
347
|
+
});
|
|
348
|
+
it("poolOperations stopResize test", function () {
|
|
349
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
350
|
+
const res = yield client.poolOperations.stopResize(resourceGroup, accountName, poolName);
|
|
351
|
+
assert.equal(res.name, poolName);
|
|
352
|
+
});
|
|
353
|
+
});
|
|
354
|
+
it("privateEndpointConnectionOperations listByBatchAccount test", function () {
|
|
355
|
+
var e_7, _a;
|
|
356
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
357
|
+
const resArray = new Array();
|
|
358
|
+
try {
|
|
359
|
+
for (var _b = __asyncValues(client.privateEndpointConnectionOperations.listByBatchAccount(resourceGroup, accountName)), _c; _c = yield _b.next(), !_c.done;) {
|
|
360
|
+
let item = _c.value;
|
|
361
|
+
resArray.push(item);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
catch (e_7_1) { e_7 = { error: e_7_1 }; }
|
|
365
|
+
finally {
|
|
366
|
+
try {
|
|
367
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
368
|
+
}
|
|
369
|
+
finally { if (e_7) throw e_7.error; }
|
|
370
|
+
}
|
|
371
|
+
assert.equal(resArray.length, 0);
|
|
372
|
+
});
|
|
373
|
+
});
|
|
374
|
+
it("privateLinkResourceOperations listByBatchAccount test", function () {
|
|
375
|
+
var e_8, _a;
|
|
376
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
377
|
+
const resArray = new Array();
|
|
378
|
+
try {
|
|
379
|
+
for (var _b = __asyncValues(client.privateLinkResourceOperations.listByBatchAccount(resourceGroup, accountName)), _c; _c = yield _b.next(), !_c.done;) {
|
|
380
|
+
let item = _c.value;
|
|
381
|
+
resArray.push(item);
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
catch (e_8_1) { e_8 = { error: e_8_1 }; }
|
|
385
|
+
finally {
|
|
386
|
+
try {
|
|
387
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
388
|
+
}
|
|
389
|
+
finally { if (e_8) throw e_8.error; }
|
|
390
|
+
}
|
|
391
|
+
assert.equal(resArray.length, 0);
|
|
392
|
+
});
|
|
393
|
+
});
|
|
394
|
+
it("poolOperations delete test", function () {
|
|
395
|
+
var e_9, _a;
|
|
396
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
397
|
+
const res = yield client.poolOperations.beginDeleteAndWait(resourceGroup, accountName, poolName, testPollingOptions);
|
|
398
|
+
const resArray = new Array();
|
|
399
|
+
try {
|
|
400
|
+
for (var _b = __asyncValues(client.poolOperations.listByBatchAccount(resourceGroup, accountName)), _c; _c = yield _b.next(), !_c.done;) {
|
|
401
|
+
let item = _c.value;
|
|
402
|
+
resArray.push(item);
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
catch (e_9_1) { e_9 = { error: e_9_1 }; }
|
|
406
|
+
finally {
|
|
407
|
+
try {
|
|
408
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
409
|
+
}
|
|
410
|
+
finally { if (e_9) throw e_9.error; }
|
|
411
|
+
}
|
|
412
|
+
assert.equal(resArray.length, 0);
|
|
413
|
+
});
|
|
414
|
+
});
|
|
415
|
+
it("certificateOperations delete test", function () {
|
|
416
|
+
var e_10, _a;
|
|
417
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
418
|
+
const res = yield client.certificateOperations.beginDeleteAndWait(resourceGroup, accountName, certificateName, testPollingOptions);
|
|
419
|
+
const resArray = new Array();
|
|
420
|
+
try {
|
|
421
|
+
for (var _b = __asyncValues(client.certificateOperations.listByBatchAccount(resourceGroup, accountName)), _c; _c = yield _b.next(), !_c.done;) {
|
|
422
|
+
let item = _c.value;
|
|
423
|
+
resArray.push(item);
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
catch (e_10_1) { e_10 = { error: e_10_1 }; }
|
|
427
|
+
finally {
|
|
428
|
+
try {
|
|
429
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
430
|
+
}
|
|
431
|
+
finally { if (e_10) throw e_10.error; }
|
|
432
|
+
}
|
|
433
|
+
assert.equal(resArray.length, 0);
|
|
434
|
+
});
|
|
435
|
+
});
|
|
436
|
+
it("applicationOperations delete test", function () {
|
|
437
|
+
var e_11, _a;
|
|
438
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
439
|
+
const res = yield client.applicationOperations.delete(resourceGroup, accountName, applicationName);
|
|
440
|
+
const resArray = new Array();
|
|
441
|
+
try {
|
|
442
|
+
for (var _b = __asyncValues(client.applicationOperations.list(resourceGroup, accountName)), _c; _c = yield _b.next(), !_c.done;) {
|
|
443
|
+
let item = _c.value;
|
|
444
|
+
resArray.push(item);
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
catch (e_11_1) { e_11 = { error: e_11_1 }; }
|
|
448
|
+
finally {
|
|
449
|
+
try {
|
|
450
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
451
|
+
}
|
|
452
|
+
finally { if (e_11) throw e_11.error; }
|
|
453
|
+
}
|
|
454
|
+
assert.equal(resArray.length, 0);
|
|
455
|
+
});
|
|
456
|
+
});
|
|
457
|
+
it("batchAccountOperations delete test", function () {
|
|
458
|
+
var e_12, _a;
|
|
459
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
460
|
+
const res = yield client.batchAccountOperations.beginDeleteAndWait(resourceGroup, accountName, testPollingOptions);
|
|
461
|
+
const resArray = new Array();
|
|
462
|
+
try {
|
|
463
|
+
for (var _b = __asyncValues(client.batchAccountOperations.list()), _c; _c = yield _b.next(), !_c.done;) {
|
|
464
|
+
let item = _c.value;
|
|
465
|
+
resArray.push(item);
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
catch (e_12_1) { e_12 = { error: e_12_1 }; }
|
|
469
|
+
finally {
|
|
470
|
+
try {
|
|
471
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
472
|
+
}
|
|
473
|
+
finally { if (e_12) throw e_12.error; }
|
|
474
|
+
}
|
|
475
|
+
assert.equal(resArray.length, 0);
|
|
476
|
+
});
|
|
477
|
+
});
|
|
478
|
+
});
|
|
479
|
+
//# sourceMappingURL=sampleTest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,GAAG,EACH,MAAM,EAIN,cAAc,EACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,uBAAuB,EAAiC,MAAM,oBAAoB,CAAC;AAE5F,MAAM,gBAAgB,GAA6B;IACjD,oBAAoB,EAAE;QACpB,eAAe,EAAE,iBAAiB;QAClC,mBAAmB,EAAE,qBAAqB;QAC1C,eAAe,EAAE,sCAAsC;QACvD,eAAe,EAAE,uBAAuB;KACzC;IACD,0BAA0B,EAAE;QAC1B,CAAC,SAAc,EAAO,EAAE,CACtB,SAAS,CAAC,OAAO,CACf,yBAAyB,EACzB,+BAA+B,CAChC;KACJ;IACD,qBAAqB,EAAE,EAAE;CAC1B,CAAC;AAEF,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,kBAAkB,EAAE,cAAc,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS;CACrD,CAAC;AAEF,QAAQ,CAAC,YAAY,EAAE,GAAG,EAAE;IAC1B,IAAI,QAAkB,CAAC;IACvB,IAAI,cAAsB,CAAC;IAC3B,IAAI,MAA6B,CAAC;IAClC,IAAI,cAAuC,CAAC;IAC5C,IAAI,QAAgB,CAAC;IAC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AM,CAAC,qBAAqB,CAAC,IAAI,CAAC,aAAa,EAAC,WAAW,CAAC,CAAA,IAAA;oBAAxE,IAAI,IAAI,WAAA,CAAA;oBACf,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;iBACvB;;;;;;;;;YACD,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAC,CAAC,CAAC,CAAC;;KACjC,CAAC,CAAC;IAEH,EAAE,CAAC,oCAAoC,EAAE;;;YACvC,MAAM,GAAG,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,kBAAkB,CAAC,aAAa,EAAC,WAAW,EAAC,kBAAkB,CAAC,CAAC;YACjH,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;gBAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,sBAAsB,CAAC,IAAI,EAAE,CAAA,IAAA;oBAAhD,IAAI,IAAI,WAAA,CAAA;oBACf,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;iBACvB;;;;;;;;;YACD,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAC,CAAC,CAAC,CAAC;;KACjC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,58 +1,92 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure/arm-batch",
|
|
3
|
+
"sdk-type": "mgmt",
|
|
3
4
|
"author": "Microsoft Corporation",
|
|
4
|
-
"description": "
|
|
5
|
-
"version": "
|
|
5
|
+
"description": "A generated SDK for BatchManagementClient.",
|
|
6
|
+
"version": "7.0.0-beta.1",
|
|
7
|
+
"engines": { "node": ">=12.0.0" },
|
|
6
8
|
"dependencies": {
|
|
7
|
-
"@azure/
|
|
8
|
-
"@azure/
|
|
9
|
-
"@azure/core-
|
|
10
|
-
"
|
|
9
|
+
"@azure/core-lro": "^2.2.0",
|
|
10
|
+
"@azure/abort-controller": "^1.0.0",
|
|
11
|
+
"@azure/core-paging": "^1.2.0",
|
|
12
|
+
"@azure/core-client": "^1.0.0",
|
|
13
|
+
"@azure/core-auth": "^1.3.0",
|
|
14
|
+
"@azure/core-rest-pipeline": "^1.1.0",
|
|
15
|
+
"tslib": "^2.2.0",
|
|
16
|
+
"@azure/arm-storage": "^17.0.0-beta.1"
|
|
11
17
|
},
|
|
12
|
-
"keywords": [
|
|
13
|
-
"node",
|
|
14
|
-
"azure",
|
|
15
|
-
"typescript",
|
|
16
|
-
"browser",
|
|
17
|
-
"isomorphic"
|
|
18
|
-
],
|
|
18
|
+
"keywords": ["node", "azure", "typescript", "browser", "isomorphic"],
|
|
19
19
|
"license": "MIT",
|
|
20
|
-
"main": "./dist/
|
|
21
|
-
"module": "./esm/
|
|
22
|
-
"types": "./
|
|
20
|
+
"main": "./dist/index.js",
|
|
21
|
+
"module": "./dist-esm/src/index.js",
|
|
22
|
+
"types": "./types/arm-batch.d.ts",
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"
|
|
25
|
-
"rollup": "
|
|
26
|
-
"rollup
|
|
24
|
+
"@microsoft/api-extractor": "^7.18.11",
|
|
25
|
+
"@rollup/plugin-commonjs": "11.0.2",
|
|
26
|
+
"@rollup/plugin-json": "^4.0.0",
|
|
27
|
+
"@rollup/plugin-multi-entry": "^3.0.0",
|
|
28
|
+
"@rollup/plugin-node-resolve": "^8.0.0",
|
|
29
|
+
"mkdirp": "^1.0.4",
|
|
30
|
+
"rollup": "^1.16.3",
|
|
27
31
|
"rollup-plugin-sourcemaps": "^0.4.2",
|
|
28
|
-
"
|
|
32
|
+
"typescript": "~4.2.0",
|
|
33
|
+
"uglify-js": "^3.4.9",
|
|
34
|
+
"rimraf": "^3.0.0",
|
|
35
|
+
"@azure/identity": "^2.0.1",
|
|
36
|
+
"@azure-tools/test-recorder": "^1.0.0",
|
|
37
|
+
"mocha": "^7.1.1",
|
|
38
|
+
"cross-env": "^7.0.2"
|
|
29
39
|
},
|
|
30
|
-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/
|
|
40
|
+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/batch/arm-batch",
|
|
31
41
|
"repository": {
|
|
32
42
|
"type": "git",
|
|
33
43
|
"url": "https://github.com/Azure/azure-sdk-for-js.git"
|
|
34
44
|
},
|
|
35
|
-
"bugs": {
|
|
36
|
-
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
|
|
37
|
-
},
|
|
45
|
+
"bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" },
|
|
38
46
|
"files": [
|
|
39
47
|
"dist/**/*.js",
|
|
40
48
|
"dist/**/*.js.map",
|
|
41
49
|
"dist/**/*.d.ts",
|
|
42
50
|
"dist/**/*.d.ts.map",
|
|
43
|
-
"esm/**/*.js",
|
|
44
|
-
"esm/**/*.js.map",
|
|
45
|
-
"esm/**/*.d.ts",
|
|
46
|
-
"esm/**/*.d.ts.map",
|
|
51
|
+
"dist-esm/**/*.js",
|
|
52
|
+
"dist-esm/**/*.js.map",
|
|
53
|
+
"dist-esm/**/*.d.ts",
|
|
54
|
+
"dist-esm/**/*.d.ts.map",
|
|
47
55
|
"src/**/*.ts",
|
|
48
56
|
"README.md",
|
|
57
|
+
"LICENSE",
|
|
49
58
|
"rollup.config.js",
|
|
50
|
-
"tsconfig.json"
|
|
59
|
+
"tsconfig.json",
|
|
60
|
+
"review/*",
|
|
61
|
+
"CHANGELOG.md",
|
|
62
|
+
"types/*"
|
|
51
63
|
],
|
|
52
64
|
"scripts": {
|
|
53
|
-
"build": "tsc && rollup -c
|
|
54
|
-
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/
|
|
55
|
-
"prepack": "npm
|
|
65
|
+
"build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
|
|
66
|
+
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
|
|
67
|
+
"prepack": "npm run build",
|
|
68
|
+
"pack": "npm pack 2>&1",
|
|
69
|
+
"extract-api": "api-extractor run --local",
|
|
70
|
+
"lint": "echo skipped",
|
|
71
|
+
"audit": "echo skipped",
|
|
72
|
+
"clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
|
|
73
|
+
"build:node": "echo skipped",
|
|
74
|
+
"build:browser": "echo skipped",
|
|
75
|
+
"build:test": "echo skipped",
|
|
76
|
+
"build:samples": "echo skipped.",
|
|
77
|
+
"check-format": "echo skipped",
|
|
78
|
+
"execute:samples": "echo skipped",
|
|
79
|
+
"format": "echo skipped",
|
|
80
|
+
"test": "npm run integration-test",
|
|
81
|
+
"test:node": "echo skipped",
|
|
82
|
+
"test:browser": "echo skipped",
|
|
83
|
+
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
|
84
|
+
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
|
|
85
|
+
"unit-test:browser": "echo skipped",
|
|
86
|
+
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
87
|
+
"integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
|
|
88
|
+
"integration-test:browser": "echo skipped",
|
|
89
|
+
"docs": "echo skipped"
|
|
56
90
|
},
|
|
57
91
|
"sideEffects": false,
|
|
58
92
|
"autoPublish": true
|