@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,26 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { Operations } from "../operationsInterfaces";
|
|
3
|
+
import { AzureDedicatedHSMResourceProvider } from "../azureDedicatedHSMResourceProvider";
|
|
4
|
+
import { DedicatedHsmOperation, OperationsListOptionalParams } from "../models";
|
|
5
|
+
/** Class containing Operations operations. */
|
|
6
|
+
export declare class OperationsImpl implements Operations {
|
|
7
|
+
private readonly client;
|
|
8
|
+
/**
|
|
9
|
+
* Initialize a new instance of the class Operations class.
|
|
10
|
+
* @param client Reference to the service client
|
|
11
|
+
*/
|
|
12
|
+
constructor(client: AzureDedicatedHSMResourceProvider);
|
|
13
|
+
/**
|
|
14
|
+
* Get a list of Dedicated HSM operations.
|
|
15
|
+
* @param options The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<DedicatedHsmOperation>;
|
|
18
|
+
private listPagingPage;
|
|
19
|
+
private listPagingAll;
|
|
20
|
+
/**
|
|
21
|
+
* Get a list of Dedicated HSM operations.
|
|
22
|
+
* @param options The options parameters.
|
|
23
|
+
*/
|
|
24
|
+
private _list;
|
|
25
|
+
}
|
|
26
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAIrD,OAAO,EAAE,iCAAiC,EAAE,MAAM,sCAAsC,CAAC;AACzF,OAAO,EACL,qBAAqB,EACrB,4BAA4B,EAE7B,MAAM,WAAW,CAAC;AAGnB,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAoC;IAE3D;;;OAGG;gBACS,MAAM,EAAE,iCAAiC;IAIrD;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,qBAAqB,CAAC;YAerC,cAAc;YAOd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;CAKd"}
|
|
@@ -0,0 +1,90 @@
|
|
|
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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as Mappers from "../models/mappers";
|
|
11
|
+
import * as Parameters from "../models/parameters";
|
|
12
|
+
/// <reference lib="esnext.asynciterable" />
|
|
13
|
+
/** Class containing Operations operations. */
|
|
14
|
+
export class OperationsImpl {
|
|
15
|
+
/**
|
|
16
|
+
* Initialize a new instance of the class Operations class.
|
|
17
|
+
* @param client Reference to the service client
|
|
18
|
+
*/
|
|
19
|
+
constructor(client) {
|
|
20
|
+
this.client = client;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Get a list of Dedicated HSM operations.
|
|
24
|
+
* @param options The options parameters.
|
|
25
|
+
*/
|
|
26
|
+
list(options) {
|
|
27
|
+
const iter = this.listPagingAll(options);
|
|
28
|
+
return {
|
|
29
|
+
next() {
|
|
30
|
+
return iter.next();
|
|
31
|
+
},
|
|
32
|
+
[Symbol.asyncIterator]() {
|
|
33
|
+
return this;
|
|
34
|
+
},
|
|
35
|
+
byPage: () => {
|
|
36
|
+
return this.listPagingPage(options);
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
listPagingPage(options) {
|
|
41
|
+
return __asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
42
|
+
let result = yield __await(this._list(options));
|
|
43
|
+
yield yield __await(result.value || []);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
listPagingAll(options) {
|
|
47
|
+
return __asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
48
|
+
var e_1, _a;
|
|
49
|
+
try {
|
|
50
|
+
for (var _b = __asyncValues(this.listPagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
51
|
+
const page = _c.value;
|
|
52
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
56
|
+
finally {
|
|
57
|
+
try {
|
|
58
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
59
|
+
}
|
|
60
|
+
finally { if (e_1) throw e_1.error; }
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Get a list of Dedicated HSM operations.
|
|
66
|
+
* @param options The options parameters.
|
|
67
|
+
*/
|
|
68
|
+
_list(options) {
|
|
69
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
// Operation Specifications
|
|
73
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
74
|
+
const listOperationSpec = {
|
|
75
|
+
path: "/providers/Microsoft.HardwareSecurityModules/operations",
|
|
76
|
+
httpMethod: "GET",
|
|
77
|
+
responses: {
|
|
78
|
+
200: {
|
|
79
|
+
bodyMapper: Mappers.DedicatedHsmOperationListResult
|
|
80
|
+
},
|
|
81
|
+
default: {
|
|
82
|
+
bodyMapper: Mappers.DedicatedHsmError
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
queryParameters: [Parameters.apiVersion],
|
|
86
|
+
urlParameters: [Parameters.$host],
|
|
87
|
+
headerParameters: [Parameters.accept],
|
|
88
|
+
serializer
|
|
89
|
+
};
|
|
90
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAQnD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IAGzB;;;OAGG;IACH,YAAY,MAAyC;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAsC;QAEtC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,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/core-paging";
|
|
2
|
+
import { PollerLike, PollOperationState } from "@azure/core-lro";
|
|
3
|
+
import { DedicatedHsm, DedicatedHsmListByResourceGroupOptionalParams, DedicatedHsmListBySubscriptionOptionalParams, OutboundEnvironmentEndpoint, DedicatedHsmListOutboundNetworkDependenciesEndpointsOptionalParams, DedicatedHsmCreateOrUpdateOptionalParams, DedicatedHsmCreateOrUpdateResponse, DedicatedHsmUpdateOptionalParams, DedicatedHsmUpdateResponse, DedicatedHsmDeleteOptionalParams, DedicatedHsmGetOptionalParams, DedicatedHsmGetResponse } from "../models";
|
|
4
|
+
/** Interface representing a DedicatedHsmOperations. */
|
|
5
|
+
export interface DedicatedHsmOperations {
|
|
6
|
+
/**
|
|
7
|
+
* The List operation gets information about the dedicated hsms associated with the subscription and
|
|
8
|
+
* within the specified resource group.
|
|
9
|
+
* @param resourceGroupName The name of the Resource Group to which the dedicated HSM belongs.
|
|
10
|
+
* @param options The options parameters.
|
|
11
|
+
*/
|
|
12
|
+
listByResourceGroup(resourceGroupName: string, options?: DedicatedHsmListByResourceGroupOptionalParams): PagedAsyncIterableIterator<DedicatedHsm>;
|
|
13
|
+
/**
|
|
14
|
+
* The List operation gets information about the dedicated HSMs associated with the subscription.
|
|
15
|
+
* @param options The options parameters.
|
|
16
|
+
*/
|
|
17
|
+
listBySubscription(options?: DedicatedHsmListBySubscriptionOptionalParams): PagedAsyncIterableIterator<DedicatedHsm>;
|
|
18
|
+
/**
|
|
19
|
+
* Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified
|
|
20
|
+
* dedicated hsm resource. The operation returns properties of each egress endpoint.
|
|
21
|
+
* @param resourceGroupName The name of the Resource Group to which the dedicated hsm belongs.
|
|
22
|
+
* @param name The name of the dedicated HSM.
|
|
23
|
+
* @param options The options parameters.
|
|
24
|
+
*/
|
|
25
|
+
listOutboundNetworkDependenciesEndpoints(resourceGroupName: string, name: string, options?: DedicatedHsmListOutboundNetworkDependenciesEndpointsOptionalParams): PagedAsyncIterableIterator<OutboundEnvironmentEndpoint>;
|
|
26
|
+
/**
|
|
27
|
+
* Create or Update a dedicated HSM in the specified subscription.
|
|
28
|
+
* @param resourceGroupName The name of the Resource Group to which the resource belongs.
|
|
29
|
+
* @param name Name of the dedicated Hsm
|
|
30
|
+
* @param parameters Parameters to create or update the dedicated hsm
|
|
31
|
+
* @param options The options parameters.
|
|
32
|
+
*/
|
|
33
|
+
beginCreateOrUpdate(resourceGroupName: string, name: string, parameters: DedicatedHsm, options?: DedicatedHsmCreateOrUpdateOptionalParams): Promise<PollerLike<PollOperationState<DedicatedHsmCreateOrUpdateResponse>, DedicatedHsmCreateOrUpdateResponse>>;
|
|
34
|
+
/**
|
|
35
|
+
* Create or Update a dedicated HSM in the specified subscription.
|
|
36
|
+
* @param resourceGroupName The name of the Resource Group to which the resource belongs.
|
|
37
|
+
* @param name Name of the dedicated Hsm
|
|
38
|
+
* @param parameters Parameters to create or update the dedicated hsm
|
|
39
|
+
* @param options The options parameters.
|
|
40
|
+
*/
|
|
41
|
+
beginCreateOrUpdateAndWait(resourceGroupName: string, name: string, parameters: DedicatedHsm, options?: DedicatedHsmCreateOrUpdateOptionalParams): Promise<DedicatedHsmCreateOrUpdateResponse>;
|
|
42
|
+
/**
|
|
43
|
+
* Update a dedicated HSM in the specified subscription.
|
|
44
|
+
* @param resourceGroupName The name of the Resource Group to which the server belongs.
|
|
45
|
+
* @param name Name of the dedicated HSM
|
|
46
|
+
* @param options The options parameters.
|
|
47
|
+
*/
|
|
48
|
+
beginUpdate(resourceGroupName: string, name: string, options?: DedicatedHsmUpdateOptionalParams): Promise<PollerLike<PollOperationState<DedicatedHsmUpdateResponse>, DedicatedHsmUpdateResponse>>;
|
|
49
|
+
/**
|
|
50
|
+
* Update a dedicated HSM in the specified subscription.
|
|
51
|
+
* @param resourceGroupName The name of the Resource Group to which the server belongs.
|
|
52
|
+
* @param name Name of the dedicated HSM
|
|
53
|
+
* @param options The options parameters.
|
|
54
|
+
*/
|
|
55
|
+
beginUpdateAndWait(resourceGroupName: string, name: string, options?: DedicatedHsmUpdateOptionalParams): Promise<DedicatedHsmUpdateResponse>;
|
|
56
|
+
/**
|
|
57
|
+
* Deletes the specified Azure Dedicated HSM.
|
|
58
|
+
* @param resourceGroupName The name of the Resource Group to which the dedicated HSM belongs.
|
|
59
|
+
* @param name The name of the dedicated HSM to delete
|
|
60
|
+
* @param options The options parameters.
|
|
61
|
+
*/
|
|
62
|
+
beginDelete(resourceGroupName: string, name: string, options?: DedicatedHsmDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
|
|
63
|
+
/**
|
|
64
|
+
* Deletes the specified Azure Dedicated HSM.
|
|
65
|
+
* @param resourceGroupName The name of the Resource Group to which the dedicated HSM belongs.
|
|
66
|
+
* @param name The name of the dedicated HSM to delete
|
|
67
|
+
* @param options The options parameters.
|
|
68
|
+
*/
|
|
69
|
+
beginDeleteAndWait(resourceGroupName: string, name: string, options?: DedicatedHsmDeleteOptionalParams): Promise<void>;
|
|
70
|
+
/**
|
|
71
|
+
* Gets the specified Azure dedicated HSM.
|
|
72
|
+
* @param resourceGroupName The name of the Resource Group to which the dedicated hsm belongs.
|
|
73
|
+
* @param name The name of the dedicated HSM.
|
|
74
|
+
* @param options The options parameters.
|
|
75
|
+
*/
|
|
76
|
+
get(resourceGroupName: string, name: string, options?: DedicatedHsmGetOptionalParams): Promise<DedicatedHsmGetResponse>;
|
|
77
|
+
}
|
|
78
|
+
//# sourceMappingURL=dedicatedHsmOperations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dedicatedHsmOperations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/dedicatedHsmOperations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACjE,OAAO,EACL,YAAY,EACZ,6CAA6C,EAC7C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B,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,0BAA0B,CAAC,CAAC;IACvC;;;;;OAKG;IACH,WAAW,CACT,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,UAAU,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,CAAC,CAAC;IACvD;;;;;OAKG;IACH,kBAAkB,CAChB,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,gCAAgC,GACzC,OAAO,CAAC,IAAI,CAAC,CAAC;IACjB;;;;;OAKG;IACH,GAAG,CACD,iBAAiB,EAAE,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,OAAO,CAAC,EAAE,6BAA6B,GACtC,OAAO,CAAC,uBAAuB,CAAC,CAAC;CACrC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=dedicatedHsmOperations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dedicatedHsmOperations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/dedicatedHsmOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAQA,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
export * from "./operations";
|
|
9
|
+
export * from "./dedicatedHsmOperations";
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import { DedicatedHsmOperation, OperationsListOptionalParams } from "../models";
|
|
3
|
+
/** Interface representing a Operations. */
|
|
4
|
+
export interface Operations {
|
|
5
|
+
/**
|
|
6
|
+
* Get a list of Dedicated HSM operations.
|
|
7
|
+
* @param options The options parameters.
|
|
8
|
+
*/
|
|
9
|
+
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<DedicatedHsmOperation>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=operations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAE,MAAM,oBAAoB,CAAC;AAChE,OAAO,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,MAAM,WAAW,CAAC;AAGhF,2CAA2C;AAC3C,MAAM,WAAW,UAAU;IACzB;;;OAGG;IACH,IAAI,CACF,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,qBAAqB,CAAC,CAAC;CACtD"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operationsInterfaces/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sampleTest.d.ts","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
+
*/
|
|
9
|
+
import { __awaiter } from "tslib";
|
|
10
|
+
import { record } from "@azure-tools/test-recorder";
|
|
11
|
+
const recorderEnvSetup = {
|
|
12
|
+
replaceableVariables: {
|
|
13
|
+
AZURE_CLIENT_ID: "azure_client_id",
|
|
14
|
+
AZURE_CLIENT_SECRET: "azure_client_secret",
|
|
15
|
+
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
|
16
|
+
SUBSCRIPTION_ID: "azure_subscription_id"
|
|
17
|
+
},
|
|
18
|
+
customizationsOnRecordings: [
|
|
19
|
+
(recording) => recording.replace(/"access_token":"[^"]*"/g, `"access_token":"access_token"`)
|
|
20
|
+
],
|
|
21
|
+
queryParametersToSkip: []
|
|
22
|
+
};
|
|
23
|
+
describe("My test", () => {
|
|
24
|
+
let recorder;
|
|
25
|
+
beforeEach(function () {
|
|
26
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
27
|
+
recorder = record(this, recorderEnvSetup);
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
afterEach(function () {
|
|
31
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
32
|
+
yield recorder.stop();
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
it("sample test", function () {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
console.log("Hi, I'm a test!");
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
//# sourceMappingURL=sampleTest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../../test/sampleTest.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;;AAEH,OAAO,EAEL,MAAM,EAGP,MAAM,4BAA4B,CAAC;AAGpC,MAAM,gBAAgB,GAA6B;IACjD,oBAAoB,EAAE;QACpB,eAAe,EAAE,iBAAiB;QAClC,mBAAmB,EAAE,qBAAqB;QAC1C,eAAe,EAAE,sCAAsC;QACvD,eAAe,EAAE,uBAAuB;KACzC;IACD,0BAA0B,EAAE;QAC1B,CAAC,SAAc,EAAO,EAAE,CACtB,SAAS,CAAC,OAAO,CACf,yBAAyB,EACzB,+BAA+B,CAChC;KACJ;IACD,qBAAqB,EAAE,EAAE;CAC1B,CAAC;AAEF,QAAQ,CAAC,SAAS,EAAE,GAAG,EAAE;IACvB,IAAI,QAAkB,CAAC;IAEvB,UAAU,CAAC;;YACT,QAAQ,GAAG,MAAM,CAAC,IAAI,EAAE,gBAAgB,CAAC,CAAC;QAC5C,CAAC;KAAA,CAAC,CAAC;IAEH,SAAS,CAAC;;YACR,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxB,CAAC;KAAA,CAAC,CAAC;IAEH,EAAE,CAAC,aAAa,EAAE;;YAChB,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;QACjC,CAAC;KAAA,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@azure/arm-hardwaresecuritymodules",
|
|
3
|
+
"sdk-type": "mgmt",
|
|
4
|
+
"author": "Microsoft Corporation",
|
|
5
|
+
"description": "A generated SDK for AzureDedicatedHSMResourceProvider.",
|
|
6
|
+
"version": "1.0.0",
|
|
7
|
+
"engines": {
|
|
8
|
+
"node": ">=12.0.0"
|
|
9
|
+
},
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@azure/core-lro": "^2.2.0",
|
|
12
|
+
"@azure/abort-controller": "^1.0.0",
|
|
13
|
+
"@azure/core-paging": "^1.2.0",
|
|
14
|
+
"@azure/core-client": "^1.0.0",
|
|
15
|
+
"@azure/core-auth": "^1.3.0",
|
|
16
|
+
"@azure/core-rest-pipeline": "^1.1.0",
|
|
17
|
+
"tslib": "^2.2.0"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"node",
|
|
21
|
+
"azure",
|
|
22
|
+
"typescript",
|
|
23
|
+
"browser",
|
|
24
|
+
"isomorphic"
|
|
25
|
+
],
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"main": "./dist/index.js",
|
|
28
|
+
"module": "./dist-esm/src/index.js",
|
|
29
|
+
"types": "./types/arm-hardwaresecuritymodules.d.ts",
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@microsoft/api-extractor": "^7.18.11",
|
|
32
|
+
"@rollup/plugin-commonjs": "^21.0.1",
|
|
33
|
+
"@rollup/plugin-json": "^4.1.0",
|
|
34
|
+
"@rollup/plugin-multi-entry": "^4.1.0",
|
|
35
|
+
"@rollup/plugin-node-resolve": "^13.1.3",
|
|
36
|
+
"mkdirp": "^1.0.4",
|
|
37
|
+
"rollup": "^2.66.1",
|
|
38
|
+
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
39
|
+
"typescript": "~4.2.0",
|
|
40
|
+
"uglify-js": "^3.4.9",
|
|
41
|
+
"rimraf": "^3.0.0",
|
|
42
|
+
"@azure/identity": "^2.0.1",
|
|
43
|
+
"@azure-tools/test-recorder": "^1.0.0",
|
|
44
|
+
"mocha": "^7.1.1",
|
|
45
|
+
"cross-env": "^7.0.2"
|
|
46
|
+
},
|
|
47
|
+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/hardwaresecuritymodules/arm-hardwaresecuritymodules",
|
|
48
|
+
"repository": {
|
|
49
|
+
"type": "git",
|
|
50
|
+
"url": "https://github.com/Azure/azure-sdk-for-js.git"
|
|
51
|
+
},
|
|
52
|
+
"bugs": {
|
|
53
|
+
"url": "https://github.com/Azure/azure-sdk-for-js/issues"
|
|
54
|
+
},
|
|
55
|
+
"files": [
|
|
56
|
+
"dist/**/*.js",
|
|
57
|
+
"dist/**/*.js.map",
|
|
58
|
+
"dist/**/*.d.ts",
|
|
59
|
+
"dist/**/*.d.ts.map",
|
|
60
|
+
"dist-esm/**/*.js",
|
|
61
|
+
"dist-esm/**/*.js.map",
|
|
62
|
+
"dist-esm/**/*.d.ts",
|
|
63
|
+
"dist-esm/**/*.d.ts.map",
|
|
64
|
+
"src/**/*.ts",
|
|
65
|
+
"README.md",
|
|
66
|
+
"LICENSE",
|
|
67
|
+
"rollup.config.js",
|
|
68
|
+
"tsconfig.json",
|
|
69
|
+
"review/*",
|
|
70
|
+
"CHANGELOG.md",
|
|
71
|
+
"types/*"
|
|
72
|
+
],
|
|
73
|
+
"scripts": {
|
|
74
|
+
"build": "npm run clean && tsc && rollup -c 2>&1 && npm run minify && mkdirp ./review && npm run extract-api",
|
|
75
|
+
"minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
|
|
76
|
+
"prepack": "npm run build",
|
|
77
|
+
"pack": "npm pack 2>&1",
|
|
78
|
+
"extract-api": "api-extractor run --local",
|
|
79
|
+
"lint": "echo skipped",
|
|
80
|
+
"audit": "echo skipped",
|
|
81
|
+
"clean": "rimraf dist dist-browser dist-esm test-dist temp types *.tgz *.log",
|
|
82
|
+
"build:node": "echo skipped",
|
|
83
|
+
"build:browser": "echo skipped",
|
|
84
|
+
"build:test": "echo skipped",
|
|
85
|
+
"build:samples": "echo skipped.",
|
|
86
|
+
"check-format": "echo skipped",
|
|
87
|
+
"execute:samples": "echo skipped",
|
|
88
|
+
"format": "echo skipped",
|
|
89
|
+
"test": "npm run integration-test",
|
|
90
|
+
"test:node": "echo skipped",
|
|
91
|
+
"test:browser": "echo skipped",
|
|
92
|
+
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
|
|
93
|
+
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
|
|
94
|
+
"unit-test:browser": "echo skipped",
|
|
95
|
+
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
96
|
+
"integration-test:node": "mocha -r esm --require ts-node/register --timeout 1200000 --full-trace test/*.ts --reporter ../../../common/tools/mocha-multi-reporter.js",
|
|
97
|
+
"integration-test:browser": "echo skipped",
|
|
98
|
+
"docs": "echo skipped"
|
|
99
|
+
},
|
|
100
|
+
"sideEffects": false,
|
|
101
|
+
"//metadata": {
|
|
102
|
+
"constantPaths": [
|
|
103
|
+
{
|
|
104
|
+
"path": "src/azureDedicatedHSMResourceProvider.ts",
|
|
105
|
+
"prefix": "packageDetails"
|
|
106
|
+
}
|
|
107
|
+
]
|
|
108
|
+
},
|
|
109
|
+
"autoPublish": true,
|
|
110
|
+
"//sampleConfiguration": {
|
|
111
|
+
"productName": "",
|
|
112
|
+
"productSlugs": [
|
|
113
|
+
"azure"
|
|
114
|
+
],
|
|
115
|
+
"disableDocsMs": true,
|
|
116
|
+
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-hardwaresecuritymodules?view=azure-node-preview"
|
|
117
|
+
}
|
|
118
|
+
}
|