@azure/arm-standbypool 1.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 +5 -0
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/index.js +2605 -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/standbyContainerGroupPoolsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsCreateOrUpdateSample.js +57 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsDeleteSample.js +39 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsGetSample.js +39 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsListByResourceGroupSample.js +54 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsListBySubscriptionSample.js +53 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsUpdateSample.js +56 -0
- package/dist-esm/samples-dev/standbyContainerGroupPoolsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsCreateOrUpdateSample.js +48 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsDeleteSample.js +39 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsGetSample.js +39 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsGetSample.js.map +1 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsListByResourceGroupSample.js +54 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsListBySubscriptionSample.js +53 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsUpdateSample.js +47 -0
- package/dist-esm/samples-dev/standbyVirtualMachinePoolsUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/standbyVirtualMachinesGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/standbyVirtualMachinesGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/standbyVirtualMachinesGetSample.js +40 -0
- package/dist-esm/samples-dev/standbyVirtualMachinesGetSample.js.map +1 -0
- package/dist-esm/samples-dev/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.d.ts +2 -0
- package/dist-esm/samples-dev/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.js +55 -0
- package/dist-esm/samples-dev/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.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 +581 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +62 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +38 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +877 -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/standbyContainerGroupPools.d.ts +99 -0
- package/dist-esm/src/operations/standbyContainerGroupPools.d.ts.map +1 -0
- package/dist-esm/src/operations/standbyContainerGroupPools.js +502 -0
- package/dist-esm/src/operations/standbyContainerGroupPools.js.map +1 -0
- package/dist-esm/src/operations/standbyVirtualMachinePools.d.ts +99 -0
- package/dist-esm/src/operations/standbyVirtualMachinePools.d.ts.map +1 -0
- package/dist-esm/src/operations/standbyVirtualMachinePools.js +502 -0
- package/dist-esm/src/operations/standbyVirtualMachinePools.js.map +1 -0
- package/dist-esm/src/operations/standbyVirtualMachines.d.ts +47 -0
- package/dist-esm/src/operations/standbyVirtualMachines.d.ts.map +1 -0
- package/dist-esm/src/operations/standbyVirtualMachines.js +188 -0
- package/dist-esm/src/operations/standbyVirtualMachines.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/standbyContainerGroupPools.d.ts +63 -0
- package/dist-esm/src/operationsInterfaces/standbyContainerGroupPools.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/standbyContainerGroupPools.js +9 -0
- package/dist-esm/src/operationsInterfaces/standbyContainerGroupPools.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/standbyVirtualMachinePools.d.ts +63 -0
- package/dist-esm/src/operationsInterfaces/standbyVirtualMachinePools.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/standbyVirtualMachinePools.js +9 -0
- package/dist-esm/src/operationsInterfaces/standbyVirtualMachinePools.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/standbyVirtualMachines.d.ts +21 -0
- package/dist-esm/src/operationsInterfaces/standbyVirtualMachines.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/standbyVirtualMachines.js +9 -0
- package/dist-esm/src/operationsInterfaces/standbyVirtualMachines.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/standbyPoolManagementClient.d.ts +23 -0
- package/dist-esm/src/standbyPoolManagementClient.d.ts.map +1 -0
- package/dist-esm/src/standbyPoolManagementClient.js +103 -0
- package/dist-esm/src/standbyPoolManagementClient.js.map +1 -0
- package/dist-esm/test/standbypool_operations_test.spec.d.ts +4 -0
- package/dist-esm/test/standbypool_operations_test.spec.d.ts.map +1 -0
- package/dist-esm/test/standbypool_operations_test.spec.js +73 -0
- package/dist-esm/test/standbypool_operations_test.spec.js.map +1 -0
- package/package.json +118 -0
- package/review/arm-standbypool.api.md +520 -0
- package/src/index.ts +13 -0
- package/src/lroImpl.ts +42 -0
- package/src/models/index.ts +695 -0
- package/src/models/mappers.ts +947 -0
- package/src/models/parameters.ts +167 -0
- package/src/operations/index.ts +12 -0
- package/src/operations/operations.ts +149 -0
- package/src/operations/standbyContainerGroupPools.ts +650 -0
- package/src/operations/standbyVirtualMachinePools.ts +650 -0
- package/src/operations/standbyVirtualMachines.ts +252 -0
- package/src/operationsInterfaces/index.ts +12 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/src/operationsInterfaces/standbyContainerGroupPools.ts +127 -0
- package/src/operationsInterfaces/standbyVirtualMachinePools.ts +127 -0
- package/src/operationsInterfaces/standbyVirtualMachines.ts +44 -0
- package/src/pagingHelper.ts +39 -0
- package/src/standbyPoolManagementClient.ts +157 -0
- package/tsconfig.json +33 -0
- package/types/arm-standbypool.d.ts +853 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -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 { StandbyPoolManagementClient } from "@azure/arm-standbypool";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to List StandbyContainerGroupPoolResource resources by resource group
|
|
17
|
+
*
|
|
18
|
+
* @summary List StandbyContainerGroupPoolResource resources by resource group
|
|
19
|
+
* x-ms-original-file: specification/standbypool/resource-manager/Microsoft.StandbyPool/preview/2023-12-01-preview/examples/StandbyContainerGroupPools_ListByResourceGroup.json
|
|
20
|
+
*/
|
|
21
|
+
function standbyContainerGroupPoolsListByResourceGroup() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
var _a, e_1, _b, _c;
|
|
24
|
+
const subscriptionId = process.env["STANDBYPOOL_SUBSCRIPTION_ID"] ||
|
|
25
|
+
"8CC31D61-82D7-4B2B-B9DC-6B924DE7D229";
|
|
26
|
+
const resourceGroupName = process.env["STANDBYPOOL_RESOURCE_GROUP"] || "rgstandbypool";
|
|
27
|
+
const credential = new DefaultAzureCredential();
|
|
28
|
+
const client = new StandbyPoolManagementClient(credential, subscriptionId);
|
|
29
|
+
const resArray = new Array();
|
|
30
|
+
try {
|
|
31
|
+
for (var _d = true, _e = __asyncValues(client.standbyContainerGroupPools.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
|
+
standbyContainerGroupPoolsListByResourceGroup();
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
main().catch(console.error);
|
|
54
|
+
//# sourceMappingURL=standbyContainerGroupPoolsListByResourceGroupSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standbyContainerGroupPoolsListByResourceGroupSample.js","sourceRoot":"","sources":["../../samples-dev/standbyContainerGroupPoolsListByResourceGroupSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,6CAA6C;;;QAC1D,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC;YAC1C,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,IAAI,eAAe,CAAC;QAC/D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,2BAA2B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC3E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,0BAA0B,CAAC,mBAAmB,CAC1E,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;IACxB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,6CAA6C,EAAE,CAAC;IAClD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standbyContainerGroupPoolsListBySubscriptionSample.d.ts","sourceRoot":"","sources":["../../samples-dev/standbyContainerGroupPoolsListBySubscriptionSample.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 { StandbyPoolManagementClient } from "@azure/arm-standbypool";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to List StandbyContainerGroupPoolResource resources by subscription ID
|
|
17
|
+
*
|
|
18
|
+
* @summary List StandbyContainerGroupPoolResource resources by subscription ID
|
|
19
|
+
* x-ms-original-file: specification/standbypool/resource-manager/Microsoft.StandbyPool/preview/2023-12-01-preview/examples/StandbyContainerGroupPools_ListBySubscription.json
|
|
20
|
+
*/
|
|
21
|
+
function standbyContainerGroupPoolsListBySubscription() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
var _a, e_1, _b, _c;
|
|
24
|
+
const subscriptionId = process.env["STANDBYPOOL_SUBSCRIPTION_ID"] ||
|
|
25
|
+
"8CC31D61-82D7-4B2B-B9DC-6B924DE7D229";
|
|
26
|
+
const credential = new DefaultAzureCredential();
|
|
27
|
+
const client = new StandbyPoolManagementClient(credential, subscriptionId);
|
|
28
|
+
const resArray = new Array();
|
|
29
|
+
try {
|
|
30
|
+
for (var _d = true, _e = __asyncValues(client.standbyContainerGroupPools.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
|
+
standbyContainerGroupPoolsListBySubscription();
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
main().catch(console.error);
|
|
53
|
+
//# sourceMappingURL=standbyContainerGroupPoolsListBySubscriptionSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standbyContainerGroupPoolsListBySubscriptionSample.js","sourceRoot":"","sources":["../../samples-dev/standbyContainerGroupPoolsListBySubscriptionSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,4CAA4C;;;QACzD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC;YAC1C,sCAAsC,CAAC;QACzC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,2BAA2B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC3E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,0BAA0B,CAAC,kBAAkB,EAAE,CAAA,IAAA,sDAAE,CAAC;gBAAzD,cAAsD;gBAAtD,WAAsD;gBAAlE,IAAI,IAAI,KAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,4CAA4C,EAAE,CAAC;IACjD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standbyContainerGroupPoolsUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/standbyContainerGroupPoolsUpdateSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,56 @@
|
|
|
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 { StandbyPoolManagementClient, } from "@azure/arm-standbypool";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to Update a StandbyContainerGroupPoolResource
|
|
17
|
+
*
|
|
18
|
+
* @summary Update a StandbyContainerGroupPoolResource
|
|
19
|
+
* x-ms-original-file: specification/standbypool/resource-manager/Microsoft.StandbyPool/preview/2023-12-01-preview/examples/StandbyContainerGroupPools_Update.json
|
|
20
|
+
*/
|
|
21
|
+
function standbyContainerGroupPoolsUpdate() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const subscriptionId = process.env["STANDBYPOOL_SUBSCRIPTION_ID"] ||
|
|
24
|
+
"8CC31D61-82D7-4B2B-B9DC-6B924DE7D229";
|
|
25
|
+
const resourceGroupName = process.env["STANDBYPOOL_RESOURCE_GROUP"] || "rgstandbypool";
|
|
26
|
+
const standbyContainerGroupPoolName = "pool";
|
|
27
|
+
const properties = {
|
|
28
|
+
properties: {
|
|
29
|
+
containerGroupProperties: {
|
|
30
|
+
containerGroupProfile: {
|
|
31
|
+
id: "/subscriptions/8CC31D61-82D7-4B2B-B9DC-6B924DE7D229/resourceGroups/rgstandbypool/providers/Microsoft.ContainerInstance/containerGroupProfiles/cgProfile",
|
|
32
|
+
revision: 2,
|
|
33
|
+
},
|
|
34
|
+
subnetIds: [
|
|
35
|
+
{
|
|
36
|
+
id: "/subscriptions/8cf6c1b6-c80f-437c-87ad-45fbaff54f73/resourceGroups/rgstandbypool/providers/Microsoft.Network/virtualNetworks/cgSubnet/subnets/cgSubnet",
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
},
|
|
40
|
+
elasticityProfile: { maxReadyCapacity: 1743, refillPolicy: "always" },
|
|
41
|
+
},
|
|
42
|
+
tags: {},
|
|
43
|
+
};
|
|
44
|
+
const credential = new DefaultAzureCredential();
|
|
45
|
+
const client = new StandbyPoolManagementClient(credential, subscriptionId);
|
|
46
|
+
const result = yield client.standbyContainerGroupPools.update(resourceGroupName, standbyContainerGroupPoolName, properties);
|
|
47
|
+
console.log(result);
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
function main() {
|
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
standbyContainerGroupPoolsUpdate();
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
main().catch(console.error);
|
|
56
|
+
//# sourceMappingURL=standbyContainerGroupPoolsUpdateSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standbyContainerGroupPoolsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/standbyContainerGroupPoolsUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,2BAA2B,GAC5B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,gCAAgC;;QAC7C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC;YAC1C,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,IAAI,eAAe,CAAC;QAC/D,MAAM,6BAA6B,GAAG,MAAM,CAAC;QAC7C,MAAM,UAAU,GAA4C;YAC1D,UAAU,EAAE;gBACV,wBAAwB,EAAE;oBACxB,qBAAqB,EAAE;wBACrB,EAAE,EAAE,yJAAyJ;wBAC7J,QAAQ,EAAE,CAAC;qBACZ;oBACD,SAAS,EAAE;wBACT;4BACE,EAAE,EAAE,wJAAwJ;yBAC7J;qBACF;iBACF;gBACD,iBAAiB,EAAE,EAAE,gBAAgB,EAAE,IAAI,EAAE,YAAY,EAAE,QAAQ,EAAE;aACtE;YACD,IAAI,EAAE,EAAE;SACT,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,2BAA2B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC3E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,MAAM,CAC3D,iBAAiB,EACjB,6BAA6B,EAC7B,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,gCAAgC,EAAE,CAAC;IACrC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standbyVirtualMachinePoolsCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/standbyVirtualMachinePoolsCreateOrUpdateSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,48 @@
|
|
|
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 { StandbyPoolManagementClient, } from "@azure/arm-standbypool";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to Create a StandbyVirtualMachinePoolResource
|
|
17
|
+
*
|
|
18
|
+
* @summary Create a StandbyVirtualMachinePoolResource
|
|
19
|
+
* x-ms-original-file: specification/standbypool/resource-manager/Microsoft.StandbyPool/preview/2023-12-01-preview/examples/StandbyVirtualMachinePools_CreateOrUpdate.json
|
|
20
|
+
*/
|
|
21
|
+
function standbyVirtualMachinePoolsCreateOrUpdate() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const subscriptionId = process.env["STANDBYPOOL_SUBSCRIPTION_ID"] ||
|
|
24
|
+
"8CC31D61-82D7-4B2B-B9DC-6B924DE7D229";
|
|
25
|
+
const resourceGroupName = process.env["STANDBYPOOL_RESOURCE_GROUP"] || "rgstandbypool";
|
|
26
|
+
const standbyVirtualMachinePoolName = "pool";
|
|
27
|
+
const resource = {
|
|
28
|
+
location: "West US",
|
|
29
|
+
properties: {
|
|
30
|
+
attachedVirtualMachineScaleSetId: "/subscriptions/8CC31D61-82D7-4B2B-B9DC-6B924DE7D229/resourceGroups/rgstandbypool/providers/Microsoft.Compute/virtualMachineScaleSets/myVmss",
|
|
31
|
+
elasticityProfile: { maxReadyCapacity: 304 },
|
|
32
|
+
virtualMachineState: "Running",
|
|
33
|
+
},
|
|
34
|
+
tags: {},
|
|
35
|
+
};
|
|
36
|
+
const credential = new DefaultAzureCredential();
|
|
37
|
+
const client = new StandbyPoolManagementClient(credential, subscriptionId);
|
|
38
|
+
const result = yield client.standbyVirtualMachinePools.beginCreateOrUpdateAndWait(resourceGroupName, standbyVirtualMachinePoolName, resource);
|
|
39
|
+
console.log(result);
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
function main() {
|
|
43
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
44
|
+
standbyVirtualMachinePoolsCreateOrUpdate();
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
main().catch(console.error);
|
|
48
|
+
//# sourceMappingURL=standbyVirtualMachinePoolsCreateOrUpdateSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standbyVirtualMachinePoolsCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/standbyVirtualMachinePoolsCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,2BAA2B,GAC5B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,wCAAwC;;QACrD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC;YAC1C,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,IAAI,eAAe,CAAC;QAC/D,MAAM,6BAA6B,GAAG,MAAM,CAAC;QAC7C,MAAM,QAAQ,GAAsC;YAClD,QAAQ,EAAE,SAAS;YACnB,UAAU,EAAE;gBACV,gCAAgC,EAC9B,6IAA6I;gBAC/I,iBAAiB,EAAE,EAAE,gBAAgB,EAAE,GAAG,EAAE;gBAC5C,mBAAmB,EAAE,SAAS;aAC/B;YACD,IAAI,EAAE,EAAE;SACT,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,2BAA2B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC3E,MAAM,MAAM,GACV,MAAM,MAAM,CAAC,0BAA0B,CAAC,0BAA0B,CAChE,iBAAiB,EACjB,6BAA6B,EAC7B,QAAQ,CACT,CAAC;QACJ,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,wCAAwC,EAAE,CAAC;IAC7C,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standbyVirtualMachinePoolsDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/standbyVirtualMachinePoolsDeleteSample.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 { StandbyPoolManagementClient } from "@azure/arm-standbypool";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to Delete a StandbyVirtualMachinePoolResource
|
|
17
|
+
*
|
|
18
|
+
* @summary Delete a StandbyVirtualMachinePoolResource
|
|
19
|
+
* x-ms-original-file: specification/standbypool/resource-manager/Microsoft.StandbyPool/preview/2023-12-01-preview/examples/StandbyVirtualMachinePools_Delete.json
|
|
20
|
+
*/
|
|
21
|
+
function standbyVirtualMachinePoolsDelete() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const subscriptionId = process.env["STANDBYPOOL_SUBSCRIPTION_ID"] ||
|
|
24
|
+
"8CC31D61-82D7-4B2B-B9DC-6B924DE7D229";
|
|
25
|
+
const resourceGroupName = process.env["STANDBYPOOL_RESOURCE_GROUP"] || "rgstandbypool";
|
|
26
|
+
const standbyVirtualMachinePoolName = "pool";
|
|
27
|
+
const credential = new DefaultAzureCredential();
|
|
28
|
+
const client = new StandbyPoolManagementClient(credential, subscriptionId);
|
|
29
|
+
const result = yield client.standbyVirtualMachinePools.beginDeleteAndWait(resourceGroupName, standbyVirtualMachinePoolName);
|
|
30
|
+
console.log(result);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function main() {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
standbyVirtualMachinePoolsDelete();
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
main().catch(console.error);
|
|
39
|
+
//# sourceMappingURL=standbyVirtualMachinePoolsDeleteSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standbyVirtualMachinePoolsDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/standbyVirtualMachinePoolsDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,gCAAgC;;QAC7C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC;YAC1C,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,IAAI,eAAe,CAAC;QAC/D,MAAM,6BAA6B,GAAG,MAAM,CAAC;QAC7C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,2BAA2B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC3E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,kBAAkB,CACvE,iBAAiB,EACjB,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,gCAAgC,EAAE,CAAC;IACrC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standbyVirtualMachinePoolsGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/standbyVirtualMachinePoolsGetSample.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 { StandbyPoolManagementClient } from "@azure/arm-standbypool";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to Get a StandbyVirtualMachinePoolResource
|
|
17
|
+
*
|
|
18
|
+
* @summary Get a StandbyVirtualMachinePoolResource
|
|
19
|
+
* x-ms-original-file: specification/standbypool/resource-manager/Microsoft.StandbyPool/preview/2023-12-01-preview/examples/StandbyVirtualMachinePools_Get.json
|
|
20
|
+
*/
|
|
21
|
+
function standbyVirtualMachinePoolsGet() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const subscriptionId = process.env["STANDBYPOOL_SUBSCRIPTION_ID"] ||
|
|
24
|
+
"8CC31D61-82D7-4B2B-B9DC-6B924DE7D229";
|
|
25
|
+
const resourceGroupName = process.env["STANDBYPOOL_RESOURCE_GROUP"] || "rgstandbypool";
|
|
26
|
+
const standbyVirtualMachinePoolName = "pool";
|
|
27
|
+
const credential = new DefaultAzureCredential();
|
|
28
|
+
const client = new StandbyPoolManagementClient(credential, subscriptionId);
|
|
29
|
+
const result = yield client.standbyVirtualMachinePools.get(resourceGroupName, standbyVirtualMachinePoolName);
|
|
30
|
+
console.log(result);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
function main() {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
standbyVirtualMachinePoolsGet();
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
main().catch(console.error);
|
|
39
|
+
//# sourceMappingURL=standbyVirtualMachinePoolsGetSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standbyVirtualMachinePoolsGetSample.js","sourceRoot":"","sources":["../../samples-dev/standbyVirtualMachinePoolsGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,6BAA6B;;QAC1C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC;YAC1C,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,IAAI,eAAe,CAAC;QAC/D,MAAM,6BAA6B,GAAG,MAAM,CAAC;QAC7C,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,2BAA2B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC3E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,GAAG,CACxD,iBAAiB,EACjB,6BAA6B,CAC9B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,6BAA6B,EAAE,CAAC;IAClC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standbyVirtualMachinePoolsListByResourceGroupSample.d.ts","sourceRoot":"","sources":["../../samples-dev/standbyVirtualMachinePoolsListByResourceGroupSample.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 { StandbyPoolManagementClient } from "@azure/arm-standbypool";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to List StandbyVirtualMachinePoolResource resources by resource group
|
|
17
|
+
*
|
|
18
|
+
* @summary List StandbyVirtualMachinePoolResource resources by resource group
|
|
19
|
+
* x-ms-original-file: specification/standbypool/resource-manager/Microsoft.StandbyPool/preview/2023-12-01-preview/examples/StandbyVirtualMachinePools_ListByResourceGroup.json
|
|
20
|
+
*/
|
|
21
|
+
function standbyVirtualMachinePoolsListByResourceGroup() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
var _a, e_1, _b, _c;
|
|
24
|
+
const subscriptionId = process.env["STANDBYPOOL_SUBSCRIPTION_ID"] ||
|
|
25
|
+
"8CC31D61-82D7-4B2B-B9DC-6B924DE7D229";
|
|
26
|
+
const resourceGroupName = process.env["STANDBYPOOL_RESOURCE_GROUP"] || "rgstandbypool";
|
|
27
|
+
const credential = new DefaultAzureCredential();
|
|
28
|
+
const client = new StandbyPoolManagementClient(credential, subscriptionId);
|
|
29
|
+
const resArray = new Array();
|
|
30
|
+
try {
|
|
31
|
+
for (var _d = true, _e = __asyncValues(client.standbyVirtualMachinePools.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
|
+
standbyVirtualMachinePoolsListByResourceGroup();
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
main().catch(console.error);
|
|
54
|
+
//# sourceMappingURL=standbyVirtualMachinePoolsListByResourceGroupSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standbyVirtualMachinePoolsListByResourceGroupSample.js","sourceRoot":"","sources":["../../samples-dev/standbyVirtualMachinePoolsListByResourceGroupSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,6CAA6C;;;QAC1D,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC;YAC1C,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,IAAI,eAAe,CAAC;QAC/D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,2BAA2B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC3E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,0BAA0B,CAAC,mBAAmB,CAC1E,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;IACxB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,6CAA6C,EAAE,CAAC;IAClD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standbyVirtualMachinePoolsListBySubscriptionSample.d.ts","sourceRoot":"","sources":["../../samples-dev/standbyVirtualMachinePoolsListBySubscriptionSample.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 { StandbyPoolManagementClient } from "@azure/arm-standbypool";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to List StandbyVirtualMachinePoolResource resources by subscription ID
|
|
17
|
+
*
|
|
18
|
+
* @summary List StandbyVirtualMachinePoolResource resources by subscription ID
|
|
19
|
+
* x-ms-original-file: specification/standbypool/resource-manager/Microsoft.StandbyPool/preview/2023-12-01-preview/examples/StandbyVirtualMachinePools_ListBySubscription.json
|
|
20
|
+
*/
|
|
21
|
+
function standbyVirtualMachinePoolsListBySubscription() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
var _a, e_1, _b, _c;
|
|
24
|
+
const subscriptionId = process.env["STANDBYPOOL_SUBSCRIPTION_ID"] ||
|
|
25
|
+
"8CC31D61-82D7-4B2B-B9DC-6B924DE7D229";
|
|
26
|
+
const credential = new DefaultAzureCredential();
|
|
27
|
+
const client = new StandbyPoolManagementClient(credential, subscriptionId);
|
|
28
|
+
const resArray = new Array();
|
|
29
|
+
try {
|
|
30
|
+
for (var _d = true, _e = __asyncValues(client.standbyVirtualMachinePools.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
|
+
standbyVirtualMachinePoolsListBySubscription();
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
main().catch(console.error);
|
|
53
|
+
//# sourceMappingURL=standbyVirtualMachinePoolsListBySubscriptionSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standbyVirtualMachinePoolsListBySubscriptionSample.js","sourceRoot":"","sources":["../../samples-dev/standbyVirtualMachinePoolsListBySubscriptionSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,4CAA4C;;;QACzD,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC;YAC1C,sCAAsC,CAAC;QACzC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,2BAA2B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC3E,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,eAAA,KAAA,cAAA,MAAM,CAAC,0BAA0B,CAAC,kBAAkB,EAAE,CAAA,IAAA,sDAAE,CAAC;gBAAzD,cAAsD;gBAAtD,WAAsD;gBAAlE,IAAI,IAAI,KAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YACtB,CAAC;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IACxB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,4CAA4C,EAAE,CAAC;IACjD,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standbyVirtualMachinePoolsUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/standbyVirtualMachinePoolsUpdateSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,47 @@
|
|
|
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 { StandbyPoolManagementClient, } from "@azure/arm-standbypool";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to Update a StandbyVirtualMachinePoolResource
|
|
17
|
+
*
|
|
18
|
+
* @summary Update a StandbyVirtualMachinePoolResource
|
|
19
|
+
* x-ms-original-file: specification/standbypool/resource-manager/Microsoft.StandbyPool/preview/2023-12-01-preview/examples/StandbyVirtualMachinePools_Update.json
|
|
20
|
+
*/
|
|
21
|
+
function standbyVirtualMachinePoolsUpdate() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const subscriptionId = process.env["STANDBYPOOL_SUBSCRIPTION_ID"] ||
|
|
24
|
+
"8CC31D61-82D7-4B2B-B9DC-6B924DE7D229";
|
|
25
|
+
const resourceGroupName = process.env["STANDBYPOOL_RESOURCE_GROUP"] || "rgstandbypool";
|
|
26
|
+
const standbyVirtualMachinePoolName = "pool";
|
|
27
|
+
const properties = {
|
|
28
|
+
properties: {
|
|
29
|
+
attachedVirtualMachineScaleSetId: "/subscriptions/8CC31D61-82D7-4B2B-B9DC-6B924DE7D229/resourceGroups/rgstandbypool/providers/Microsoft.Compute/virtualMachineScaleSets/myVmss",
|
|
30
|
+
elasticityProfile: { maxReadyCapacity: 304 },
|
|
31
|
+
virtualMachineState: "Running",
|
|
32
|
+
},
|
|
33
|
+
tags: {},
|
|
34
|
+
};
|
|
35
|
+
const credential = new DefaultAzureCredential();
|
|
36
|
+
const client = new StandbyPoolManagementClient(credential, subscriptionId);
|
|
37
|
+
const result = yield client.standbyVirtualMachinePools.update(resourceGroupName, standbyVirtualMachinePoolName, properties);
|
|
38
|
+
console.log(result);
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
function main() {
|
|
42
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
43
|
+
standbyVirtualMachinePoolsUpdate();
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
main().catch(console.error);
|
|
47
|
+
//# sourceMappingURL=standbyVirtualMachinePoolsUpdateSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standbyVirtualMachinePoolsUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/standbyVirtualMachinePoolsUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,2BAA2B,GAC5B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,gCAAgC;;QAC7C,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC;YAC1C,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,IAAI,eAAe,CAAC;QAC/D,MAAM,6BAA6B,GAAG,MAAM,CAAC;QAC7C,MAAM,UAAU,GAA4C;YAC1D,UAAU,EAAE;gBACV,gCAAgC,EAC9B,6IAA6I;gBAC/I,iBAAiB,EAAE,EAAE,gBAAgB,EAAE,GAAG,EAAE;gBAC5C,mBAAmB,EAAE,SAAS;aAC/B;YACD,IAAI,EAAE,EAAE;SACT,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,2BAA2B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC3E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,0BAA0B,CAAC,MAAM,CAC3D,iBAAiB,EACjB,6BAA6B,EAC7B,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,gCAAgC,EAAE,CAAC;IACrC,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standbyVirtualMachinesGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/standbyVirtualMachinesGetSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { StandbyPoolManagementClient } from "@azure/arm-standbypool";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
import * as dotenv from "dotenv";
|
|
14
|
+
dotenv.config();
|
|
15
|
+
/**
|
|
16
|
+
* This sample demonstrates how to Get a StandbyVirtualMachineResource
|
|
17
|
+
*
|
|
18
|
+
* @summary Get a StandbyVirtualMachineResource
|
|
19
|
+
* x-ms-original-file: specification/standbypool/resource-manager/Microsoft.StandbyPool/preview/2023-12-01-preview/examples/StandbyVirtualMachines_Get.json
|
|
20
|
+
*/
|
|
21
|
+
function standbyVirtualMachinesGet() {
|
|
22
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23
|
+
const subscriptionId = process.env["STANDBYPOOL_SUBSCRIPTION_ID"] ||
|
|
24
|
+
"8CC31D61-82D7-4B2B-B9DC-6B924DE7D229";
|
|
25
|
+
const resourceGroupName = process.env["STANDBYPOOL_RESOURCE_GROUP"] || "rgstandbypool";
|
|
26
|
+
const standbyVirtualMachinePoolName = "pool";
|
|
27
|
+
const standbyVirtualMachineName = "virtualMachine";
|
|
28
|
+
const credential = new DefaultAzureCredential();
|
|
29
|
+
const client = new StandbyPoolManagementClient(credential, subscriptionId);
|
|
30
|
+
const result = yield client.standbyVirtualMachines.get(resourceGroupName, standbyVirtualMachinePoolName, standbyVirtualMachineName);
|
|
31
|
+
console.log(result);
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
function main() {
|
|
35
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
36
|
+
standbyVirtualMachinesGet();
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
main().catch(console.error);
|
|
40
|
+
//# sourceMappingURL=standbyVirtualMachinesGetSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standbyVirtualMachinesGetSample.js","sourceRoot":"","sources":["../../samples-dev/standbyVirtualMachinesGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB;;;;;GAKG;AACH,SAAe,yBAAyB;;QACtC,MAAM,cAAc,GAClB,OAAO,CAAC,GAAG,CAAC,6BAA6B,CAAC;YAC1C,sCAAsC,CAAC;QACzC,MAAM,iBAAiB,GACrB,OAAO,CAAC,GAAG,CAAC,4BAA4B,CAAC,IAAI,eAAe,CAAC;QAC/D,MAAM,6BAA6B,GAAG,MAAM,CAAC;QAC7C,MAAM,yBAAyB,GAAG,gBAAgB,CAAC;QACnD,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,2BAA2B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC3E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,GAAG,CACpD,iBAAiB,EACjB,6BAA6B,EAC7B,yBAAyB,CAC1B,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,SAAe,IAAI;;QACjB,yBAAyB,EAAE,CAAC;IAC9B,CAAC;CAAA;AAED,IAAI,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.d.ts","sourceRoot":"","sources":["../../samples-dev/standbyVirtualMachinesListByStandbyVirtualMachinePoolResourceSample.ts"],"names":[],"mappings":""}
|