@azure/arm-hardwaresecuritymodules 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5 -0
- package/LICENSE +21 -0
- package/README.md +109 -0
- package/dist/index.js +1542 -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/dedicatedHsmCreateOrUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/dedicatedHsmCreateOrUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dedicatedHsmCreateOrUpdateSample.js +109 -0
- package/dist-esm/samples-dev/dedicatedHsmCreateOrUpdateSample.js.map +1 -0
- package/dist-esm/samples-dev/dedicatedHsmDeleteSample.d.ts +2 -0
- package/dist-esm/samples-dev/dedicatedHsmDeleteSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dedicatedHsmDeleteSample.js +31 -0
- package/dist-esm/samples-dev/dedicatedHsmDeleteSample.js.map +1 -0
- package/dist-esm/samples-dev/dedicatedHsmGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/dedicatedHsmGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dedicatedHsmGetSample.js +67 -0
- package/dist-esm/samples-dev/dedicatedHsmGetSample.js.map +1 -0
- package/dist-esm/samples-dev/dedicatedHsmListByResourceGroupSample.d.ts +2 -0
- package/dist-esm/samples-dev/dedicatedHsmListByResourceGroupSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dedicatedHsmListByResourceGroupSample.js +75 -0
- package/dist-esm/samples-dev/dedicatedHsmListByResourceGroupSample.js.map +1 -0
- package/dist-esm/samples-dev/dedicatedHsmListBySubscriptionSample.d.ts +2 -0
- package/dist-esm/samples-dev/dedicatedHsmListBySubscriptionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dedicatedHsmListBySubscriptionSample.js +73 -0
- package/dist-esm/samples-dev/dedicatedHsmListBySubscriptionSample.js.map +1 -0
- package/dist-esm/samples-dev/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.d.ts +2 -0
- package/dist-esm/samples-dev/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.js +45 -0
- package/dist-esm/samples-dev/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.js.map +1 -0
- package/dist-esm/samples-dev/dedicatedHsmUpdateSample.d.ts +2 -0
- package/dist-esm/samples-dev/dedicatedHsmUpdateSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/dedicatedHsmUpdateSample.js +53 -0
- package/dist-esm/samples-dev/dedicatedHsmUpdateSample.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 +73 -0
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -0
- package/dist-esm/src/azureDedicatedHSMResourceProvider.d.ts +20 -0
- package/dist-esm/src/azureDedicatedHSMResourceProvider.d.ts.map +1 -0
- package/dist-esm/src/azureDedicatedHSMResourceProvider.js +54 -0
- package/dist-esm/src/azureDedicatedHSMResourceProvider.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +372 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +52 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +21 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/dist-esm/src/models/mappers.js +534 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +14 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +124 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/dedicatedHsmOperations.d.ts +134 -0
- package/dist-esm/src/operations/dedicatedHsmOperations.d.ts.map +1 -0
- package/dist-esm/src/operations/dedicatedHsmOperations.js +624 -0
- package/dist-esm/src/operations/dedicatedHsmOperations.js.map +1 -0
- package/dist-esm/src/operations/index.d.ts +3 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +10 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/operations.d.ts +26 -0
- package/dist-esm/src/operations/operations.d.ts.map +1 -0
- package/dist-esm/src/operations/operations.js +90 -0
- package/dist-esm/src/operations/operations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/dedicatedHsmOperations.d.ts +78 -0
- package/dist-esm/src/operationsInterfaces/dedicatedHsmOperations.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/dedicatedHsmOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/dedicatedHsmOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +3 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +10 -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/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +41 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +118 -0
- package/review/arm-hardwaresecuritymodules.api.md +318 -0
- package/rollup.config.js +122 -0
- package/src/azureDedicatedHSMResourceProvider.ts +79 -0
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +428 -0
- package/src/models/mappers.ts +562 -0
- package/src/models/parameters.ts +144 -0
- package/src/operations/dedicatedHsmOperations.ts +830 -0
- package/src/operations/index.ts +10 -0
- package/src/operations/operations.ts +98 -0
- package/src/operationsInterfaces/dedicatedHsmOperations.ts +149 -0
- package/src/operationsInterfaces/index.ts +10 -0
- package/src/operationsInterfaces/operations.ts +22 -0
- package/tsconfig.json +33 -0
- package/types/arm-hardwaresecuritymodules.d.ts +524 -0
- package/types/tsdoc-metadata.json +11 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dedicatedHsmGetSample.js","sourceRoot":"","sources":["../../samples-dev/dedicatedHsmGetSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,gBAAgB;;QAC7B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,IAAI,GAAG,MAAM,CAAC;QACpB,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,GAAG,CACpD,iBAAiB,EACjB,IAAI,CACL,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,gBAAgB,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAExC;;;;;GAKG;AACH,SAAe,cAAc;;QAC3B,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,IAAI,GAAG,MAAM,CAAC;QACpB,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,GAAG,CACpD,iBAAiB,EACjB,IAAI,CACL,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,cAAc,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAEtC;;;;;GAKG;AACH,SAAe,2CAA2C;;QACxD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,IAAI,GAAG,MAAM,CAAC;QACpB,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,sBAAsB,CAAC,GAAG,CACpD,iBAAiB,EACjB,IAAI,CACL,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,2CAA2C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dedicatedHsmListByResourceGroupSample.d.ts","sourceRoot":"","sources":["../../samples-dev/dedicatedHsmListByResourceGroupSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,75 @@
|
|
|
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 { AzureDedicatedHSMResourceProvider } from "@azure/arm-hardwaresecuritymodules";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
/**
|
|
14
|
+
* This sample demonstrates how to The List operation gets information about the dedicated hsms associated with the subscription and within the specified resource group.
|
|
15
|
+
*
|
|
16
|
+
* @summary The List operation gets information about the dedicated hsms associated with the subscription and within the specified resource group.
|
|
17
|
+
* x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_ListByResourceGroup.json
|
|
18
|
+
*/
|
|
19
|
+
function listDedicatedHsmDevicesInAResourceGroup() {
|
|
20
|
+
var e_1, _a;
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
23
|
+
const resourceGroupName = "hsm-group";
|
|
24
|
+
const credential = new DefaultAzureCredential();
|
|
25
|
+
const client = new AzureDedicatedHSMResourceProvider(credential, subscriptionId);
|
|
26
|
+
const resArray = new Array();
|
|
27
|
+
try {
|
|
28
|
+
for (var _b = __asyncValues(client.dedicatedHsmOperations.listByResourceGroup(resourceGroupName)), _c; _c = yield _b.next(), !_c.done;) {
|
|
29
|
+
let item = _c.value;
|
|
30
|
+
resArray.push(item);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
34
|
+
finally {
|
|
35
|
+
try {
|
|
36
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
37
|
+
}
|
|
38
|
+
finally { if (e_1) throw e_1.error; }
|
|
39
|
+
}
|
|
40
|
+
console.log(resArray);
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
listDedicatedHsmDevicesInAResourceGroup().catch(console.error);
|
|
44
|
+
/**
|
|
45
|
+
* This sample demonstrates how to The List operation gets information about the dedicated hsms associated with the subscription and within the specified resource group.
|
|
46
|
+
*
|
|
47
|
+
* @summary The List operation gets information about the dedicated hsms associated with the subscription and within the specified resource group.
|
|
48
|
+
* x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/PaymentHsm_ListByResourceGroup.json
|
|
49
|
+
*/
|
|
50
|
+
function listDedicatedHsmDevicesInAResourceGroupIncludingPaymentHsm() {
|
|
51
|
+
var e_2, _a;
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
54
|
+
const resourceGroupName = "hsm-group";
|
|
55
|
+
const credential = new DefaultAzureCredential();
|
|
56
|
+
const client = new AzureDedicatedHSMResourceProvider(credential, subscriptionId);
|
|
57
|
+
const resArray = new Array();
|
|
58
|
+
try {
|
|
59
|
+
for (var _b = __asyncValues(client.dedicatedHsmOperations.listByResourceGroup(resourceGroupName)), _c; _c = yield _b.next(), !_c.done;) {
|
|
60
|
+
let item = _c.value;
|
|
61
|
+
resArray.push(item);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
65
|
+
finally {
|
|
66
|
+
try {
|
|
67
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
68
|
+
}
|
|
69
|
+
finally { if (e_2) throw e_2.error; }
|
|
70
|
+
}
|
|
71
|
+
console.log(resArray);
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
listDedicatedHsmDevicesInAResourceGroupIncludingPaymentHsm().catch(console.error);
|
|
75
|
+
//# sourceMappingURL=dedicatedHsmListByResourceGroupSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dedicatedHsmListByResourceGroupSample.js","sourceRoot":"","sources":["../../samples-dev/dedicatedHsmListByResourceGroupSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,uCAAuC;;;QACpD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,sBAAsB,CAAC,mBAAmB,CACtE,iBAAiB,CAClB,CAAA,IAAA;gBAFU,IAAI,IAAI,WAAA,CAAA;gBAGjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,uCAAuC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAE/D;;;;;GAKG;AACH,SAAe,0DAA0D;;;QACvE,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,sBAAsB,CAAC,mBAAmB,CACtE,iBAAiB,CAClB,CAAA,IAAA;gBAFU,IAAI,IAAI,WAAA,CAAA;gBAGjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,0DAA0D,EAAE,CAAC,KAAK,CAChE,OAAO,CAAC,KAAK,CACd,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dedicatedHsmListBySubscriptionSample.d.ts","sourceRoot":"","sources":["../../samples-dev/dedicatedHsmListBySubscriptionSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,73 @@
|
|
|
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 { AzureDedicatedHSMResourceProvider } from "@azure/arm-hardwaresecuritymodules";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
/**
|
|
14
|
+
* This sample demonstrates how to The List operation gets information about the dedicated HSMs associated with the subscription.
|
|
15
|
+
*
|
|
16
|
+
* @summary The List operation gets information about the dedicated HSMs associated with the subscription.
|
|
17
|
+
* x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_ListBySubscription.json
|
|
18
|
+
*/
|
|
19
|
+
function listDedicatedHsmDevicesInASubscription() {
|
|
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 AzureDedicatedHSMResourceProvider(credential, subscriptionId);
|
|
25
|
+
const resArray = new Array();
|
|
26
|
+
try {
|
|
27
|
+
for (var _b = __asyncValues(client.dedicatedHsmOperations.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
|
+
listDedicatedHsmDevicesInASubscription().catch(console.error);
|
|
43
|
+
/**
|
|
44
|
+
* This sample demonstrates how to The List operation gets information about the dedicated HSMs associated with the subscription.
|
|
45
|
+
*
|
|
46
|
+
* @summary The List operation gets information about the dedicated HSMs associated with the subscription.
|
|
47
|
+
* x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/PaymentHsm_ListBySubscription.json
|
|
48
|
+
*/
|
|
49
|
+
function listDedicatedHsmDevicesInASubscriptionIncludingPaymentHsm() {
|
|
50
|
+
var e_2, _a;
|
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
53
|
+
const credential = new DefaultAzureCredential();
|
|
54
|
+
const client = new AzureDedicatedHSMResourceProvider(credential, subscriptionId);
|
|
55
|
+
const resArray = new Array();
|
|
56
|
+
try {
|
|
57
|
+
for (var _b = __asyncValues(client.dedicatedHsmOperations.listBySubscription()), _c; _c = yield _b.next(), !_c.done;) {
|
|
58
|
+
let item = _c.value;
|
|
59
|
+
resArray.push(item);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
63
|
+
finally {
|
|
64
|
+
try {
|
|
65
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
66
|
+
}
|
|
67
|
+
finally { if (e_2) throw e_2.error; }
|
|
68
|
+
}
|
|
69
|
+
console.log(resArray);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
listDedicatedHsmDevicesInASubscriptionIncludingPaymentHsm().catch(console.error);
|
|
73
|
+
//# sourceMappingURL=dedicatedHsmListBySubscriptionSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dedicatedHsmListBySubscriptionSample.js","sourceRoot":"","sources":["../../samples-dev/dedicatedHsmListBySubscriptionSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,sCAAsC;;;QACnD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,sBAAsB,CAAC,kBAAkB,EAAE,CAAA,IAAA;gBAA9D,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,sCAAsC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAE9D;;;;;GAKG;AACH,SAAe,yDAAyD;;;QACtE,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,sBAAsB,CAAC,kBAAkB,EAAE,CAAA,IAAA;gBAA9D,IAAI,IAAI,WAAA,CAAA;gBACjB,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;aACrB;;;;;;;;;QACD,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;;CACvB;AAED,yDAAyD,EAAE,CAAC,KAAK,CAC/D,OAAO,CAAC,KAAK,CACd,CAAC"}
|
package/dist-esm/samples-dev/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.d.ts","sourceRoot":"","sources":["../../samples-dev/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.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 { AzureDedicatedHSMResourceProvider } from "@azure/arm-hardwaresecuritymodules";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
/**
|
|
14
|
+
* This sample demonstrates how to Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified dedicated hsm resource. The operation returns properties of each egress endpoint.
|
|
15
|
+
*
|
|
16
|
+
* @summary Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified dedicated hsm resource. The operation returns properties of each egress endpoint.
|
|
17
|
+
* x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/GetOutboundNetworkDependenciesEndpointsList.json
|
|
18
|
+
*/
|
|
19
|
+
function listOutboundNetworkDependenciesEndpointsByManagedCluster() {
|
|
20
|
+
var e_1, _a;
|
|
21
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
23
|
+
const resourceGroupName = "hsm-group";
|
|
24
|
+
const name = "hsm1";
|
|
25
|
+
const credential = new DefaultAzureCredential();
|
|
26
|
+
const client = new AzureDedicatedHSMResourceProvider(credential, subscriptionId);
|
|
27
|
+
const resArray = new Array();
|
|
28
|
+
try {
|
|
29
|
+
for (var _b = __asyncValues(client.dedicatedHsmOperations.listOutboundNetworkDependenciesEndpoints(resourceGroupName, name)), _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
|
+
listOutboundNetworkDependenciesEndpointsByManagedCluster().catch(console.error);
|
|
45
|
+
//# sourceMappingURL=dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.js.map
|
package/dist-esm/samples-dev/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.js","sourceRoot":"","sources":["../../samples-dev/dedicatedHsmListOutboundNetworkDependenciesEndpointsSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,iCAAiC,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,wDAAwD;;;QACrE,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,IAAI,GAAG,MAAM,CAAC;QACpB,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,iCAAiC,CAClD,UAAU,EACV,cAAc,CACf,CAAC;QACF,MAAM,QAAQ,GAAG,IAAI,KAAK,EAAE,CAAC;;YAC7B,KAAuB,IAAA,KAAA,cAAA,MAAM,CAAC,sBAAsB,CAAC,wCAAwC,CAC3F,iBAAiB,EACjB,IAAI,CACL,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,wDAAwD,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dedicatedHsmUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/dedicatedHsmUpdateSample.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 { __awaiter } from "tslib";
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT License.
|
|
11
|
+
import { AzureDedicatedHSMResourceProvider } from "@azure/arm-hardwaresecuritymodules";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
/**
|
|
14
|
+
* This sample demonstrates how to Update a dedicated HSM in the specified subscription.
|
|
15
|
+
*
|
|
16
|
+
* @summary Update a dedicated HSM in the specified subscription.
|
|
17
|
+
* x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_Update.json
|
|
18
|
+
*/
|
|
19
|
+
function updateAnExistingDedicatedHsm() {
|
|
20
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
22
|
+
const resourceGroupName = "hsm-group";
|
|
23
|
+
const name = "hsm1";
|
|
24
|
+
const tags = { dept: "hsm", environment: "dogfood", slice: "A" };
|
|
25
|
+
const options = { tags };
|
|
26
|
+
const credential = new DefaultAzureCredential();
|
|
27
|
+
const client = new AzureDedicatedHSMResourceProvider(credential, subscriptionId);
|
|
28
|
+
const result = yield client.dedicatedHsmOperations.beginUpdateAndWait(resourceGroupName, name, options);
|
|
29
|
+
console.log(result);
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
updateAnExistingDedicatedHsm().catch(console.error);
|
|
33
|
+
/**
|
|
34
|
+
* This sample demonstrates how to Update a dedicated HSM in the specified subscription.
|
|
35
|
+
*
|
|
36
|
+
* @summary Update a dedicated HSM in the specified subscription.
|
|
37
|
+
* x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/PaymentHsm_Update.json
|
|
38
|
+
*/
|
|
39
|
+
function updateAnExistingPaymentHsm() {
|
|
40
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
41
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
42
|
+
const resourceGroupName = "hsm-group";
|
|
43
|
+
const name = "hsm1";
|
|
44
|
+
const tags = { dept: "hsm", environment: "dogfood", slice: "A" };
|
|
45
|
+
const options = { tags };
|
|
46
|
+
const credential = new DefaultAzureCredential();
|
|
47
|
+
const client = new AzureDedicatedHSMResourceProvider(credential, subscriptionId);
|
|
48
|
+
const result = yield client.dedicatedHsmOperations.beginUpdateAndWait(resourceGroupName, name, options);
|
|
49
|
+
console.log(result);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
updateAnExistingPaymentHsm().catch(console.error);
|
|
53
|
+
//# sourceMappingURL=dedicatedHsmUpdateSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dedicatedHsmUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/dedicatedHsmUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,iCAAiC,EAClC,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,4BAA4B;;QACzC,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,iBAAiB,GAAG,WAAW,CAAC;QACtC,MAAM,IAAI,GAAG,MAAM,CAAC;QACpB,MAAM,IAAI,GAAG,EAAE,IAAI,EAAE,KAAK,EA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sources":["../../samples-dev/operationsListSample.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,73 @@
|
|
|
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 { AzureDedicatedHSMResourceProvider } from "@azure/arm-hardwaresecuritymodules";
|
|
12
|
+
import { DefaultAzureCredential } from "@azure/identity";
|
|
13
|
+
/**
|
|
14
|
+
* This sample demonstrates how to Get a list of Dedicated HSM operations.
|
|
15
|
+
*
|
|
16
|
+
* @summary Get a list of Dedicated HSM operations.
|
|
17
|
+
* x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/DedicatedHsm_OperationsList.json
|
|
18
|
+
*/
|
|
19
|
+
function getAListOfDedicatedHsmOperations() {
|
|
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 AzureDedicatedHSMResourceProvider(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
|
+
getAListOfDedicatedHsmOperations().catch(console.error);
|
|
43
|
+
/**
|
|
44
|
+
* This sample demonstrates how to Get a list of Dedicated HSM operations.
|
|
45
|
+
*
|
|
46
|
+
* @summary Get a list of Dedicated HSM operations.
|
|
47
|
+
* x-ms-original-file: specification/hardwaresecuritymodules/resource-manager/Microsoft.HardwareSecurityModules/stable/2021-11-30/examples/PaymentHsm_OperationsList.json
|
|
48
|
+
*/
|
|
49
|
+
function getAListOfPaymentHsmOperations() {
|
|
50
|
+
var e_2, _a;
|
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
|
|
53
|
+
const credential = new DefaultAzureCredential();
|
|
54
|
+
const client = new AzureDedicatedHSMResourceProvider(credential, subscriptionId);
|
|
55
|
+
const resArray = new Array();
|
|
56
|
+
try {
|
|
57
|
+
for (var _b = __asyncValues(client.operations.list()), _c; _c = yield _b.next(), !_c.done;) {
|
|
58
|
+
let item = _c.value;
|
|
59
|
+
resArray.push(item);
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
63
|
+
finally {
|
|
64
|
+
try {
|
|
65
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
66
|
+
}
|
|
67
|
+
finally { if (e_2) throw e_2.error; }
|
|
68
|
+
}
|
|
69
|
+
console.log(resArray);
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
getAListOfPaymentHsmOperations().catch(console.error);
|
|
73
|
+
//# sourceMappingURL=operationsListSample.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operationsListSample.js","sourceRoot":"","sources":["../../samples-dev/operationsListSample.ts"],"names":[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CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as coreClient from "@azure/core-client";
|
|
2
|
+
import * as coreAuth from "@azure/core-auth";
|
|
3
|
+
import { Operations, DedicatedHsmOperations } from "./operationsInterfaces";
|
|
4
|
+
import { AzureDedicatedHSMResourceProviderOptionalParams } from "./models";
|
|
5
|
+
export declare class AzureDedicatedHSMResourceProvider extends coreClient.ServiceClient {
|
|
6
|
+
$host: string;
|
|
7
|
+
apiVersion: string;
|
|
8
|
+
subscriptionId: string;
|
|
9
|
+
/**
|
|
10
|
+
* Initializes a new instance of the AzureDedicatedHSMResourceProvider class.
|
|
11
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
12
|
+
* @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription.
|
|
13
|
+
* The subscription ID forms part of the URI for every service call.
|
|
14
|
+
* @param options The parameter options
|
|
15
|
+
*/
|
|
16
|
+
constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: AzureDedicatedHSMResourceProviderOptionalParams);
|
|
17
|
+
operations: Operations;
|
|
18
|
+
dedicatedHsmOperations: DedicatedHsmOperations;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=azureDedicatedHSMResourceProvider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"azureDedicatedHSMResourceProvider.d.ts","sourceRoot":"","sources":["../../src/azureDedicatedHSMResourceProvider.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,UAAU,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAE,+CAA+C,EAAE,MAAM,UAAU,CAAC;AAE3E,qBAAa,iCAAkC,SAAQ,UAAU,CAAC,aAAa;IAC7E,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,cAAc,EAAE,MAAM,CAAC;IAEvB;;;;;;OAMG;gBAED,WAAW,EAAE,QAAQ,CAAC,eAAe,EACrC,cAAc,EAAE,MAAM,EACtB,OAAO,CAAC,EAAE,+CAA+C;IA+C3D,UAAU,EAAE,UAAU,CAAC;IACvB,sBAAsB,EAAE,sBAAsB,CAAC;CAChD"}
|
|
@@ -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 * as coreClient from "@azure/core-client";
|
|
9
|
+
import { OperationsImpl, DedicatedHsmOperationsImpl } from "./operations";
|
|
10
|
+
export class AzureDedicatedHSMResourceProvider extends coreClient.ServiceClient {
|
|
11
|
+
/**
|
|
12
|
+
* Initializes a new instance of the AzureDedicatedHSMResourceProvider class.
|
|
13
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
14
|
+
* @param subscriptionId Subscription credentials which uniquely identify Microsoft Azure subscription.
|
|
15
|
+
* The subscription ID forms part of the URI for every service call.
|
|
16
|
+
* @param options The parameter options
|
|
17
|
+
*/
|
|
18
|
+
constructor(credentials, subscriptionId, options) {
|
|
19
|
+
var _a, _b;
|
|
20
|
+
if (credentials === undefined) {
|
|
21
|
+
throw new Error("'credentials' cannot be null");
|
|
22
|
+
}
|
|
23
|
+
if (subscriptionId === undefined) {
|
|
24
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
25
|
+
}
|
|
26
|
+
// Initializing default values for options
|
|
27
|
+
if (!options) {
|
|
28
|
+
options = {};
|
|
29
|
+
}
|
|
30
|
+
const defaults = {
|
|
31
|
+
requestContentType: "application/json; charset=utf-8",
|
|
32
|
+
credential: credentials
|
|
33
|
+
};
|
|
34
|
+
const packageDetails = `azsdk-js-arm-hardwaresecuritymodules/1.0.0`;
|
|
35
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
36
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
37
|
+
: `${packageDetails}`;
|
|
38
|
+
if (!options.credentialScopes) {
|
|
39
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
40
|
+
}
|
|
41
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
42
|
+
userAgentPrefix
|
|
43
|
+
}, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
44
|
+
super(optionsWithDefaults);
|
|
45
|
+
// Parameter assignments
|
|
46
|
+
this.subscriptionId = subscriptionId;
|
|
47
|
+
// Assigning values to Constant parameters
|
|
48
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
49
|
+
this.apiVersion = options.apiVersion || "2021-11-30";
|
|
50
|
+
this.operations = new OperationsImpl(this);
|
|
51
|
+
this.dedicatedHsmOperations = new DedicatedHsmOperationsImpl(this);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=azureDedicatedHSMResourceProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"azureDedicatedHSMResourceProvider.js","sourceRoot":"","sources":["../../src/azureDedicatedHSMResourceProvider.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,EAAE,cAAc,EAAE,0BAA0B,EAAE,MAAM,cAAc,CAAC;AAI1E,MAAM,OAAO,iCAAkC,SAAQ,UAAU,CAAC,aAAa;IAK7E;;;;;;OAMG;IACH,YACE,WAAqC,EACrC,cAAsB,EACtB,OAAyD;;QAEzD,IAAI,WAAW,KAAK,SAAS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CAAC,CAAC;IACrE,CAAC;CAIF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AASA,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AACxF,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
/// <reference lib="esnext.asynciterable" />
|
|
9
|
+
export * from "./models";
|
|
10
|
+
export { AzureDedicatedHSMResourceProvider } from "./azureDedicatedHSMResourceProvider";
|
|
11
|
+
export * from "./operationsInterfaces";
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,iCAAiC,EAAE,MAAM,qCAAqC,CAAC;AACxF,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
|
2
|
+
export declare class LroImpl<T> implements LongRunningOperation<T> {
|
|
3
|
+
private sendOperationFn;
|
|
4
|
+
private args;
|
|
5
|
+
private spec;
|
|
6
|
+
requestPath: string;
|
|
7
|
+
requestMethod: string;
|
|
8
|
+
constructor(sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>, args: Record<string, unknown>, spec: {
|
|
9
|
+
readonly requestBody?: unknown;
|
|
10
|
+
readonly path?: string;
|
|
11
|
+
readonly httpMethod: string;
|
|
12
|
+
} & Record<string, any>, requestPath?: string, requestMethod?: string);
|
|
13
|
+
sendInitialRequest(): Promise<LroResponse<T>>;
|
|
14
|
+
sendPollRequest(path: string): Promise<LroResponse<T>>;
|
|
15
|
+
}
|
|
16
|
+
//# sourceMappingURL=lroImpl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lroImpl.d.ts","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,oBAAoB,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAEpE,qBAAa,OAAO,CAAC,CAAC,CAAE,YAAW,oBAAoB,CAAC,CAAC,CAAC;IAEtD,OAAO,CAAC,eAAe;IACvB,OAAO,CAAC,IAAI;IACZ,OAAO,CAAC,IAAI;IAKL,WAAW,EAAE,MAAM;IACnB,aAAa,EAAE,MAAM;gBARpB,eAAe,EAAE,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,EAClE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,IAAI,EAAE;QACZ,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAC;QAC/B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;QACvB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;KAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAChB,WAAW,GAAE,MAAmB,EAChC,aAAa,GAAE,MAAwB;IAEnC,kBAAkB,IAAI,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IAG7C,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;CAQpE"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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, __rest } from "tslib";
|
|
9
|
+
export class LroImpl {
|
|
10
|
+
constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
|
|
11
|
+
this.sendOperationFn = sendOperationFn;
|
|
12
|
+
this.args = args;
|
|
13
|
+
this.spec = spec;
|
|
14
|
+
this.requestPath = requestPath;
|
|
15
|
+
this.requestMethod = requestMethod;
|
|
16
|
+
}
|
|
17
|
+
sendInitialRequest() {
|
|
18
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
19
|
+
return this.sendOperationFn(this.args, this.spec);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
sendPollRequest(path) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
const _a = this.spec, { requestBody } = _a, restSpec = __rest(_a, ["requestBody"]);
|
|
25
|
+
return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=lroImpl.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,MAAM,OAAO,OAAO;IAClB,YACU,eAAkE,EAClE,IAA6B,EAC7B,IAIe,EAChB,cAAsB,IAAI,CAAC,IAAK,EAChC,gBAAwB,IAAI,CAAC,UAAU;QARtC,oBAAe,GAAf,eAAe,CAAmD;QAClE,SAAI,GAAJ,IAAI,CAAyB;QAC7B,SAAI,GAAJ,IAAI,CAIW;QAChB,gBAAW,GAAX,WAAW,CAAqB;QAChC,kBAAa,GAAb,aAAa,CAA0B;IAC7C,CAAC;IACS,kBAAkB;;YAC7B,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QACpD,CAAC;KAAA;IACY,eAAe,CAAC,IAAY;;YACvC,MAAM,KAA+B,IAAI,CAAC,IAAI,EAAxC,EAAE,WAAW,OAA2B,EAAtB,QAAQ,cAA1B,eAA4B,CAAY,CAAC;YAC/C,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,kCAChC,QAAQ,KACX,IAAI,EACJ,UAAU,EAAE,KAAK,IACjB,CAAC;QACL,CAAC;KAAA;CACF"}
|