@azure/arm-labservices 3.0.0-alpha.20220414.1 → 3.0.0-beta.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 +2 -2
- package/README.md +11 -0
- package/dist/index.js +245 -152
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/imagesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/imagesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/imagesCreateOrUpdateSample.js +33 -0
- package/dist-esm/samples-dev/imagesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/imagesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/imagesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/imagesGetSample.js +32 -0
- package/dist-esm/samples-dev/imagesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/imagesListByLabPlanSample.d.ts +2 -0
- package/dist-esm/samples-dev/imagesListByLabPlanSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/imagesListByLabPlanSample.js +45 -0
- package/dist-esm/samples-dev/imagesListByLabPlanSample.js.map +1 -0
- package/dist-esm/samples-dev/imagesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/imagesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/imagesUpdateSample.js +33 -0
- package/dist-esm/samples-dev/imagesUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/labPlansCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/labPlansCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/labPlansCreateOrUpdateSample.js +58 -0
- package/dist-esm/samples-dev/labPlansCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/labPlansDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/labPlansDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/labPlansDeleteSample.js +31 -0
- package/dist-esm/samples-dev/labPlansDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/labPlansGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/labPlansGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/labPlansGetSample.js +31 -0
- package/dist-esm/samples-dev/labPlansGetSample.js.map +1 -0
- package/dist-esm/samples-dev/labPlansListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/labPlansListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/labPlansListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/labPlansListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/labPlansListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/labPlansListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/labPlansListBySubscriptionSample.js +43 -0
- package/dist-esm/samples-dev/labPlansListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/labPlansSaveImageSample.d.ts +2 -0
- package/dist-esm/samples-dev/labPlansSaveImageSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/labPlansSaveImageSample.js +35 -0
- package/dist-esm/samples-dev/labPlansSaveImageSample.js.map +1 -0
- package/dist-esm/samples-dev/labPlansUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/labPlansUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/labPlansUpdateSample.js +39 -0
- package/dist-esm/samples-dev/labPlansUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/labsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/labsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/labsCreateOrUpdateSample.js +70 -0
- package/dist-esm/samples-dev/labsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/labsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/labsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/labsDeleteSample.js +31 -0
- package/dist-esm/samples-dev/labsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/labsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/labsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/labsGetSample.js +31 -0
- package/dist-esm/samples-dev/labsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/labsListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/labsListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/labsListByResourceGroupSample.js +44 -0
- package/dist-esm/samples-dev/labsListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/labsListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/labsListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/labsListBySubscriptionSample.js +43 -0
- package/dist-esm/samples-dev/labsListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/labsPublishSample.d.ts +2 -0
- package/dist-esm/samples-dev/labsPublishSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/labsPublishSample.js +31 -0
- package/dist-esm/samples-dev/labsPublishSample.js.map +1 -0
- package/dist-esm/samples-dev/labsSyncGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/labsSyncGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/labsSyncGroupSample.js +31 -0
- package/dist-esm/samples-dev/labsSyncGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/labsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/labsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/labsUpdateSample.js +32 -0
- package/dist-esm/samples-dev/labsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/operationResultsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/operationResultsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/operationResultsGetSample.js +30 -0
- package/dist-esm/samples-dev/operationResultsGetSample.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 +43 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/samples-dev/schedulesCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/schedulesCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/schedulesCreateOrUpdateSample.js +43 -0
- package/dist-esm/samples-dev/schedulesCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/schedulesDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/schedulesDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/schedulesDeleteSample.js +32 -0
- package/dist-esm/samples-dev/schedulesDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/schedulesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/schedulesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/schedulesGetSample.js +32 -0
- package/dist-esm/samples-dev/schedulesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/schedulesListByLabSample.d.ts +2 -0
- package/dist-esm/samples-dev/schedulesListByLabSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/schedulesListByLabSample.js +45 -0
- package/dist-esm/samples-dev/schedulesListByLabSample.js.map +1 -0
- package/dist-esm/samples-dev/schedulesUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/schedulesUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/schedulesUpdateSample.js +39 -0
- package/dist-esm/samples-dev/schedulesUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/skusListSample.d.ts +2 -0
- package/dist-esm/samples-dev/skusListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/skusListSample.js +43 -0
- package/dist-esm/samples-dev/skusListSample.js.map +1 -0
- package/dist-esm/samples-dev/usagesListByLocationSample.d.ts +2 -0
- package/dist-esm/samples-dev/usagesListByLocationSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/usagesListByLocationSample.js +44 -0
- package/dist-esm/samples-dev/usagesListByLocationSample.js.map +1 -0
- package/dist-esm/samples-dev/usersCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/usersCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/usersCreateOrUpdateSample.js +36 -0
- package/dist-esm/samples-dev/usersCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/usersDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/usersDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/usersDeleteSample.js +32 -0
- package/dist-esm/samples-dev/usersDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/usersGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/usersGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/usersGetSample.js +32 -0
- package/dist-esm/samples-dev/usersGetSample.js.map +1 -0
- package/dist-esm/samples-dev/usersInviteSample.d.ts +2 -0
- package/dist-esm/samples-dev/usersInviteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/usersInviteSample.js +33 -0
- package/dist-esm/samples-dev/usersInviteSample.js.map +1 -0
- package/dist-esm/samples-dev/usersListByLabSample.d.ts +2 -0
- package/dist-esm/samples-dev/usersListByLabSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/usersListByLabSample.js +45 -0
- package/dist-esm/samples-dev/usersListByLabSample.js.map +1 -0
- package/dist-esm/samples-dev/usersUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/usersUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/usersUpdateSample.js +33 -0
- package/dist-esm/samples-dev/usersUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachinesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesGetSample.js +32 -0
- package/dist-esm/samples-dev/virtualMachinesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesListByLabSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachinesListByLabSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesListByLabSample.js +45 -0
- package/dist-esm/samples-dev/virtualMachinesListByLabSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesRedeploySample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachinesRedeploySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesRedeploySample.js +32 -0
- package/dist-esm/samples-dev/virtualMachinesRedeploySample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesReimageSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachinesReimageSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesReimageSample.js +32 -0
- package/dist-esm/samples-dev/virtualMachinesReimageSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesResetPasswordSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachinesResetPasswordSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesResetPasswordSample.js +36 -0
- package/dist-esm/samples-dev/virtualMachinesResetPasswordSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesStartSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachinesStartSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesStartSample.js +32 -0
- package/dist-esm/samples-dev/virtualMachinesStartSample.js.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesStopSample.d.ts +2 -0
- package/dist-esm/samples-dev/virtualMachinesStopSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/virtualMachinesStopSample.js +32 -0
- package/dist-esm/samples-dev/virtualMachinesStopSample.js.map +1 -0
- package/dist-esm/src/labServicesClient.d.ts.map +1 -1
- package/dist-esm/src/labServicesClient.js +20 -2
- package/dist-esm/src/labServicesClient.js.map +1 -1
- package/dist-esm/src/operations/labPlans.d.ts.map +1 -1
- package/dist-esm/src/operations/labPlans.js +12 -4
- package/dist-esm/src/operations/labPlans.js.map +1 -1
- package/dist-esm/src/operations/labs.d.ts.map +1 -1
- package/dist-esm/src/operations/labs.js +15 -5
- package/dist-esm/src/operations/labs.js.map +1 -1
- package/dist-esm/src/operations/schedules.d.ts.map +1 -1
- package/dist-esm/src/operations/schedules.js +3 -1
- package/dist-esm/src/operations/schedules.js.map +1 -1
- package/dist-esm/src/operations/users.d.ts.map +1 -1
- package/dist-esm/src/operations/users.js +12 -4
- package/dist-esm/src/operations/users.js.map +1 -1
- package/dist-esm/src/operations/virtualMachines.d.ts.map +1 -1
- package/dist-esm/src/operations/virtualMachines.js +15 -5
- package/dist-esm/src/operations/virtualMachines.js.map +1 -1
- package/package.json +11 -11
- package/rollup.config.js +6 -72
- package/src/labServicesClient.ts +27 -2
- package/src/operations/labPlans.ts +12 -4
- package/src/operations/labs.ts +15 -5
- package/src/operations/schedules.ts +3 -1
- package/src/operations/users.ts +12 -4
- package/src/operations/virtualMachines.ts +15 -5
- package/tsconfig.json +18 -5
- package/types/tsdoc-metadata.json +1 -1
- package/LICENSE.txt +0 -21
|
@@ -0,0 +1,43 @@
|
|
|
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 { LabServicesClient } from "@azure/arm-labservices";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
/**
|
|
14
|
+
* This sample demonstrates how to Returns a list of all labs for a subscription.
|
|
15
|
+
*
|
|
16
|
+
* @summary Returns a list of all labs for a subscription.
|
|
17
|
+
* x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Labs/listLabs.json
|
|
18
|
+
*/
|
|
19
|
+
function listLabs() {
|
|
20
|
+
var e_1, _a;
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
|
|
23
|
+
const credential = new DefaultAzureCredential();
|
|
24
|
+
const client = new LabServicesClient(credential, subscriptionId);
|
|
25
|
+
const resArray = new Array();
|
|
26
|
+
try {
|
|
27
|
+
for (var _b = __asyncValues(client.labs.listBySubscription()), _c; _c = yield _b.next(), !_c.done;) {
|
|
28
|
+
let item = _c.value;
|
|
29
|
+
resArray.push(item);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
33
|
+
finally {
|
|
34
|
+
try {
|
|
35
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
36
|
+
}
|
|
37
|
+
finally { if (e_1) throw e_1.error; }
|
|
38
|
+
}
|
|
39
|
+
console.log(resArray);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
listLabs().catch(console.error);
|
|
43
|
+
//# sourceMappingURL=labsListBySubscriptionSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"labsListBySubscriptionSample.js","sourceRoot":"","sources":["../../samples-dev/labsListBySubscriptionSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,QAAQ;;;QACrB,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACjE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,IAAI,CAAC,kBAAkB,EAAE,CAAA,IAAA;gBAA5C,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,QAAQ,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"labsPublishSample.d.ts","sourceRoot":"","sources":["../../samples-dev/labsPublishSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { LabServicesClient } from "@azure/arm-labservices";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
/**
|
|
14
|
+
* This sample demonstrates how to Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines.
|
|
15
|
+
*
|
|
16
|
+
* @summary Publish or re-publish a lab. This will create or update all lab resources, such as virtual machines.
|
|
17
|
+
* x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Labs/publishLab.json
|
|
18
|
+
*/
|
|
19
|
+
function publishLab() {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
|
|
22
|
+
const resourceGroupName = "testrg123";
|
|
23
|
+
const labName = "testlab";
|
|
24
|
+
const credential = new DefaultAzureCredential();
|
|
25
|
+
const client = new LabServicesClient(credential, subscriptionId);
|
|
26
|
+
const result = yield client.labs.beginPublishAndWait(resourceGroupName, labName);
|
|
27
|
+
console.log(result);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
publishLab().catch(console.error);
|
|
31
|
+
//# sourceMappingURL=labsPublishSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"labsPublishSample.js","sourceRoot":"","sources":["../../samples-dev/labsPublishSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,UAAU;;QACvB,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,OAAO,GAAG,SAAS,CAAC;QAC1B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACjE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,mBAAmB,CAClD,iBAAiB,EACjB,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,UAAU,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"labsSyncGroupSample.d.ts","sourceRoot":"","sources":["../../samples-dev/labsSyncGroupSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 { LabServicesClient } from "@azure/arm-labservices";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
/**
|
|
14
|
+
* This sample demonstrates how to Action used to manually kick off an AAD group sync job.
|
|
15
|
+
*
|
|
16
|
+
* @summary Action used to manually kick off an AAD group sync job.
|
|
17
|
+
* x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Labs/syncLab.json
|
|
18
|
+
*/
|
|
19
|
+
function syncLab() {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
|
|
22
|
+
const resourceGroupName = "testrg123";
|
|
23
|
+
const labName = "testlab";
|
|
24
|
+
const credential = new DefaultAzureCredential();
|
|
25
|
+
const client = new LabServicesClient(credential, subscriptionId);
|
|
26
|
+
const result = yield client.labs.beginSyncGroupAndWait(resourceGroupName, labName);
|
|
27
|
+
console.log(result);
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
syncLab().catch(console.error);
|
|
31
|
+
//# sourceMappingURL=labsSyncGroupSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"labsSyncGroupSample.js","sourceRoot":"","sources":["../../samples-dev/labsSyncGroupSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,OAAO;;QACpB,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,OAAO,GAAG,SAAS,CAAC;QAC1B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACjE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,qBAAqB,CACpD,iBAAiB,EACjB,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,OAAO,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"labsUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/labsUpdateSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 { LabServicesClient } from "@azure/arm-labservices";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
/**
|
|
14
|
+
* This sample demonstrates how to Operation to update a lab resource.
|
|
15
|
+
*
|
|
16
|
+
* @summary Operation to update a lab resource.
|
|
17
|
+
* x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Labs/patchLab.json
|
|
18
|
+
*/
|
|
19
|
+
function patchLab() {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
|
|
22
|
+
const resourceGroupName = "testrg123";
|
|
23
|
+
const labName = "testlab";
|
|
24
|
+
const body = { securityProfile: { openAccess: "Enabled" } };
|
|
25
|
+
const credential = new DefaultAzureCredential();
|
|
26
|
+
const client = new LabServicesClient(credential, subscriptionId);
|
|
27
|
+
const result = yield client.labs.beginUpdateAndWait(resourceGroupName, labName, body);
|
|
28
|
+
console.log(result);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
patchLab().catch(console.error);
|
|
32
|
+
//# sourceMappingURL=labsUpdateSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"labsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/labsUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAa,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACtE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,QAAQ;;QACrB,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,OAAO,GAAG,SAAS,CAAC;QAC1B,MAAM,IAAI,GAAc,EAAE,eAAe,EAAE,EAAE,UAAU,EAAE,SAAS,EAAE,EAAE,CAAC;QACvE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACjE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,kBAAkB,CACjD,iBAAiB,EACjB,OAAO,EACP,IAAI,CACL,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,QAAQ,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operationResultsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/operationResultsGetSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 { LabServicesClient } from "@azure/arm-labservices";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
/**
|
|
14
|
+
* This sample demonstrates how to Returns an azure operation result.
|
|
15
|
+
*
|
|
16
|
+
* @summary Returns an azure operation result.
|
|
17
|
+
* x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/OperationResults/getOperationResult.json
|
|
18
|
+
*/
|
|
19
|
+
function getOperationResult() {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
|
|
22
|
+
const operationResultId = "a64149d8-84cb-4566-ab8e-b4ee1a074174";
|
|
23
|
+
const credential = new DefaultAzureCredential();
|
|
24
|
+
const client = new LabServicesClient(credential, subscriptionId);
|
|
25
|
+
const result = yield client.operationResults.get(operationResultId);
|
|
26
|
+
console.log(result);
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
getOperationResult().catch(console.error);
|
|
30
|
+
//# sourceMappingURL=operationResultsGetSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operationResultsGetSample.js","sourceRoot":"","sources":["../../samples-dev/operationResultsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,kBAAkB;;QAC/B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,sCAAsC,CAAC;QACjE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACjE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,gBAAgB,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACpE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,kBAAkB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operationsListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,43 @@
|
|
|
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 { LabServicesClient } from "@azure/arm-labservices";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
/**
|
|
14
|
+
* This sample demonstrates how to Returns a list of all operations.
|
|
15
|
+
*
|
|
16
|
+
* @summary Returns a list of all operations.
|
|
17
|
+
* x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/LabServices/listOperations.json
|
|
18
|
+
*/
|
|
19
|
+
function listOperations() {
|
|
20
|
+
var e_1, _a;
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
23
|
+
const credential = new DefaultAzureCredential();
|
|
24
|
+
const client = new LabServicesClient(credential, subscriptionId);
|
|
25
|
+
const resArray = new Array();
|
|
26
|
+
try {
|
|
27
|
+
for (var _b = __asyncValues(client.operations.list()), _c; _c = yield _b.next(), !_c.done;) {
|
|
28
|
+
let item = _c.value;
|
|
29
|
+
resArray.push(item);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
33
|
+
finally {
|
|
34
|
+
try {
|
|
35
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
36
|
+
}
|
|
37
|
+
finally { if (e_1) throw e_1.error; }
|
|
38
|
+
}
|
|
39
|
+
console.log(resArray);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
listOperations().catch(console.error);
|
|
43
|
+
//# sourceMappingURL=operationsListSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operationsListSample.js","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,cAAc;;;QAC3B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACjE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,CAAA,IAAA;gBAApC,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,cAAc,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedulesCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/schedulesCreateOrUpdateSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,43 @@
|
|
|
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 { LabServicesClient } from "@azure/arm-labservices";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
/**
|
|
14
|
+
* This sample demonstrates how to Operation to create or update a lab schedule.
|
|
15
|
+
*
|
|
16
|
+
* @summary Operation to create or update a lab schedule.
|
|
17
|
+
* x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Schedules/putSchedule.json
|
|
18
|
+
*/
|
|
19
|
+
function putSchedule() {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
|
|
22
|
+
const resourceGroupName = "testrg123";
|
|
23
|
+
const labName = "testlab";
|
|
24
|
+
const scheduleName = "schedule1";
|
|
25
|
+
const body = {
|
|
26
|
+
notes: "Schedule 1 for students",
|
|
27
|
+
recurrencePattern: {
|
|
28
|
+
expirationDate: new Date("2020-08-14"),
|
|
29
|
+
frequency: "Daily",
|
|
30
|
+
interval: 2
|
|
31
|
+
},
|
|
32
|
+
startAt: new Date("2020-05-26T12:00:00Z"),
|
|
33
|
+
stopAt: new Date("2020-05-26T18:00:00Z"),
|
|
34
|
+
timeZoneId: "America/Los_Angeles"
|
|
35
|
+
};
|
|
36
|
+
const credential = new DefaultAzureCredential();
|
|
37
|
+
const client = new LabServicesClient(credential, subscriptionId);
|
|
38
|
+
const result = yield client.schedules.createOrUpdate(resourceGroupName, labName, scheduleName, body);
|
|
39
|
+
console.log(result);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
putSchedule().catch(console.error);
|
|
43
|
+
//# sourceMappingURL=schedulesCreateOrUpdateSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedulesCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/schedulesCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAY,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,WAAW;;QACxB,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,OAAO,GAAG,SAAS,CAAC;QAC1B,MAAM,YAAY,GAAG,WAAW,CAAC;QACjC,MAAM,IAAI,GAAa;YACrB,KAAK,EAAE,yBAAyB;YAChC,iBAAiB,EAAE;gBACjB,cAAc,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;gBACtC,SAAS,EAAE,OAAO;gBAClB,QAAQ,EAAE,CAAC;aACZ;YACD,OAAO,EAAE,IAAI,IAAI,CAAC,sBAAsB,CAAC;YACzC,MAAM,EAAE,IAAI,IAAI,CAAC,sBAAsB,CAAC;YACxC,UAAU,EAAE,qBAAqB;SAClC,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACjE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,cAAc,CAClD,iBAAiB,EACjB,OAAO,EACP,YAAY,EACZ,IAAI,CACL,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,WAAW,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedulesDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/schedulesDeleteSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 { LabServicesClient } from "@azure/arm-labservices";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
/**
|
|
14
|
+
* This sample demonstrates how to Operation to delete a schedule resource.
|
|
15
|
+
*
|
|
16
|
+
* @summary Operation to delete a schedule resource.
|
|
17
|
+
* x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Schedules/deleteSchedule.json
|
|
18
|
+
*/
|
|
19
|
+
function deleteSchedule() {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
|
|
22
|
+
const resourceGroupName = "testrg123";
|
|
23
|
+
const labName = "testlab";
|
|
24
|
+
const scheduleName = "schedule1";
|
|
25
|
+
const credential = new DefaultAzureCredential();
|
|
26
|
+
const client = new LabServicesClient(credential, subscriptionId);
|
|
27
|
+
const result = yield client.schedules.beginDeleteAndWait(resourceGroupName, labName, scheduleName);
|
|
28
|
+
console.log(result);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
deleteSchedule().catch(console.error);
|
|
32
|
+
//# sourceMappingURL=schedulesDeleteSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedulesDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/schedulesDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,cAAc;;QAC3B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,OAAO,GAAG,SAAS,CAAC;QAC1B,MAAM,YAAY,GAAG,WAAW,CAAC;QACjC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACjE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,kBAAkB,CACtD,iBAAiB,EACjB,OAAO,EACP,YAAY,CACb,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,cAAc,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedulesGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/schedulesGetSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,32 @@
|
|
|
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 { LabServicesClient } from "@azure/arm-labservices";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
/**
|
|
14
|
+
* This sample demonstrates how to Returns the properties of a lab Schedule.
|
|
15
|
+
*
|
|
16
|
+
* @summary Returns the properties of a lab Schedule.
|
|
17
|
+
* x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Schedules/getSchedule.json
|
|
18
|
+
*/
|
|
19
|
+
function getSchedule() {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
|
|
22
|
+
const resourceGroupName = "testrg123";
|
|
23
|
+
const labName = "testlab";
|
|
24
|
+
const scheduleName = "schedule1";
|
|
25
|
+
const credential = new DefaultAzureCredential();
|
|
26
|
+
const client = new LabServicesClient(credential, subscriptionId);
|
|
27
|
+
const result = yield client.schedules.get(resourceGroupName, labName, scheduleName);
|
|
28
|
+
console.log(result);
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
getSchedule().catch(console.error);
|
|
32
|
+
//# sourceMappingURL=schedulesGetSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedulesGetSample.js","sourceRoot":"","sources":["../../samples-dev/schedulesGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,WAAW;;QACxB,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,OAAO,GAAG,SAAS,CAAC;QAC1B,MAAM,YAAY,GAAG,WAAW,CAAC;QACjC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACjE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,GAAG,CACvC,iBAAiB,EACjB,OAAO,EACP,YAAY,CACb,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,WAAW,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedulesListByLabSample.d.ts","sourceRoot":"","sources":["../../samples-dev/schedulesListByLabSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,45 @@
|
|
|
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 { LabServicesClient } from "@azure/arm-labservices";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
/**
|
|
14
|
+
* This sample demonstrates how to Returns a list of all schedules for a lab.
|
|
15
|
+
*
|
|
16
|
+
* @summary Returns a list of all schedules for a lab.
|
|
17
|
+
* x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Schedules/listSchedule.json
|
|
18
|
+
*/
|
|
19
|
+
function getListSchedule() {
|
|
20
|
+
var e_1, _a;
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
|
|
23
|
+
const resourceGroupName = "testrg123";
|
|
24
|
+
const labName = "testlab";
|
|
25
|
+
const credential = new DefaultAzureCredential();
|
|
26
|
+
const client = new LabServicesClient(credential, subscriptionId);
|
|
27
|
+
const resArray = new Array();
|
|
28
|
+
try {
|
|
29
|
+
for (var _b = __asyncValues(client.schedules.listByLab(resourceGroupName, labName)), _c; _c = yield _b.next(), !_c.done;) {
|
|
30
|
+
let item = _c.value;
|
|
31
|
+
resArray.push(item);
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
35
|
+
finally {
|
|
36
|
+
try {
|
|
37
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
38
|
+
}
|
|
39
|
+
finally { if (e_1) throw e_1.error; }
|
|
40
|
+
}
|
|
41
|
+
console.log(resArray);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
getListSchedule().catch(console.error);
|
|
45
|
+
//# sourceMappingURL=schedulesListByLabSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedulesListByLabSample.js","sourceRoot":"","sources":["../../samples-dev/schedulesListByLabSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,eAAe;;;QAC5B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,OAAO,GAAG,SAAS,CAAC;QAC1B,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACjE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,SAAS,CAAC,SAAS,CAC/C,iBAAiB,EACjB,OAAO,CACR,CAAA,IAAA;gBAHU,IAAI,IAAI,WAAA,CAAA;gBAIjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,eAAe,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedulesUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/schedulesUpdateSample.ts"],"names":[],"mappings":""}
|
|
@@ -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 { LabServicesClient } from "@azure/arm-labservices";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
/**
|
|
14
|
+
* This sample demonstrates how to Operation to update a lab schedule.
|
|
15
|
+
*
|
|
16
|
+
* @summary Operation to update a lab schedule.
|
|
17
|
+
* x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Schedules/patchSchedule.json
|
|
18
|
+
*/
|
|
19
|
+
function patchSchedule() {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
|
|
22
|
+
const resourceGroupName = "testrg123";
|
|
23
|
+
const labName = "testlab";
|
|
24
|
+
const scheduleName = "schedule1";
|
|
25
|
+
const body = {
|
|
26
|
+
recurrencePattern: {
|
|
27
|
+
expirationDate: new Date("2020-08-14"),
|
|
28
|
+
frequency: "Daily",
|
|
29
|
+
interval: 2
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
const credential = new DefaultAzureCredential();
|
|
33
|
+
const client = new LabServicesClient(credential, subscriptionId);
|
|
34
|
+
const result = yield client.schedules.update(resourceGroupName, labName, scheduleName, body);
|
|
35
|
+
console.log(result);
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
patchSchedule().catch(console.error);
|
|
39
|
+
//# sourceMappingURL=schedulesUpdateSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedulesUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/schedulesUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAkB,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,aAAa;;QAC1B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,OAAO,GAAG,SAAS,CAAC;QAC1B,MAAM,YAAY,GAAG,WAAW,CAAC;QACjC,MAAM,IAAI,GAAmB;YAC3B,iBAAiB,EAAE;gBACjB,cAAc,EAAE,IAAI,IAAI,CAAC,YAAY,CAAC;gBACtC,SAAS,EAAE,OAAO;gBAClB,QAAQ,EAAE,CAAC;aACZ;SACF,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACjE,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,CAAC,MAAM,CAC1C,iBAAiB,EACjB,OAAO,EACP,YAAY,EACZ,IAAI,CACL,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,aAAa,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skusListSample.d.ts","sourceRoot":"","sources":["../../samples-dev/skusListSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,43 @@
|
|
|
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 { LabServicesClient } from "@azure/arm-labservices";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
/**
|
|
14
|
+
* This sample demonstrates how to Returns a list of all the Azure Lab Services resource SKUs.
|
|
15
|
+
*
|
|
16
|
+
* @summary Returns a list of all the Azure Lab Services resource SKUs.
|
|
17
|
+
* x-ms-original-file: specification/labservices/resource-manager/Microsoft.LabServices/preview/2021-11-15-preview/examples/Skus/listSkus.json
|
|
18
|
+
*/
|
|
19
|
+
function listSkus() {
|
|
20
|
+
var e_1, _a;
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
const subscriptionId = "34adfa4f-cedf-4dc0-ba29-b6d1a69ab345";
|
|
23
|
+
const credential = new DefaultAzureCredential();
|
|
24
|
+
const client = new LabServicesClient(credential, subscriptionId);
|
|
25
|
+
const resArray = new Array();
|
|
26
|
+
try {
|
|
27
|
+
for (var _b = __asyncValues(client.skus.list()), _c; _c = yield _b.next(), !_c.done;) {
|
|
28
|
+
let item = _c.value;
|
|
29
|
+
resArray.push(item);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
33
|
+
finally {
|
|
34
|
+
try {
|
|
35
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
36
|
+
}
|
|
37
|
+
finally { if (e_1) throw e_1.error; }
|
|
38
|
+
}
|
|
39
|
+
console.log(resArray);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
listSkus().catch(console.error);
|
|
43
|
+
//# sourceMappingURL=skusListSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skusListSample.js","sourceRoot":"","sources":["../../samples-dev/skusListSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,QAAQ;;;QACrB,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iBAAiB,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QACjE,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,CAAA,IAAA;gBAA9B,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,QAAQ,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usagesListByLocationSample.d.ts","sourceRoot":"","sources":["../../samples-dev/usagesListByLocationSample.ts"],"names":[],"mappings":""}
|