@azure/arm-hardwaresecuritymodules 2.0.0-alpha.20250717.3 → 2.0.0-alpha.20250722.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/api/azureDedicatedHSMResourceProviderContext.js +16 -10
- package/dist/browser/api/azureDedicatedHSMResourceProviderContext.js.map +1 -1
- package/dist/browser/api/cloudHsmClusterBackupStatus/operations.js +10 -5
- package/dist/browser/api/cloudHsmClusterBackupStatus/operations.js.map +1 -1
- package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/operations.js +28 -11
- package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/operations.js.map +1 -1
- package/dist/browser/api/cloudHsmClusterPrivateLinkResources/operations.js +8 -3
- package/dist/browser/api/cloudHsmClusterPrivateLinkResources/operations.js.map +1 -1
- package/dist/browser/api/cloudHsmClusterRestoreStatus/operations.js +10 -5
- package/dist/browser/api/cloudHsmClusterRestoreStatus/operations.js.map +1 -1
- package/dist/browser/api/cloudHsmClusters/operations.js +111 -49
- package/dist/browser/api/cloudHsmClusters/operations.js.map +1 -1
- package/dist/browser/api/dedicatedHsm/operations.js +68 -29
- package/dist/browser/api/dedicatedHsm/operations.js.map +1 -1
- package/dist/browser/api/operations/operations.js +8 -3
- package/dist/browser/api/operations/operations.js.map +1 -1
- package/dist/browser/api/privateEndpointConnections/operations.js +8 -3
- package/dist/browser/api/privateEndpointConnections/operations.js.map +1 -1
- package/dist/browser/azureDedicatedHSMResourceProvider.js +24 -3
- package/dist/browser/azureDedicatedHSMResourceProvider.js.map +1 -1
- package/dist/browser/classic/cloudHsmClusterBackupStatus/index.js +3 -1
- package/dist/browser/classic/cloudHsmClusterBackupStatus/index.js.map +1 -1
- package/dist/browser/classic/cloudHsmClusterPrivateEndpointConnections/index.js +3 -1
- package/dist/browser/classic/cloudHsmClusterPrivateEndpointConnections/index.js.map +1 -1
- package/dist/browser/classic/cloudHsmClusterPrivateLinkResources/index.js +3 -1
- package/dist/browser/classic/cloudHsmClusterPrivateLinkResources/index.js.map +1 -1
- package/dist/browser/classic/cloudHsmClusterRestoreStatus/index.js +3 -1
- package/dist/browser/classic/cloudHsmClusterRestoreStatus/index.js.map +1 -1
- package/dist/browser/classic/cloudHsmClusters/index.js +3 -1
- package/dist/browser/classic/cloudHsmClusters/index.js.map +1 -1
- package/dist/browser/classic/dedicatedHsm/index.js +3 -1
- package/dist/browser/classic/dedicatedHsm/index.js.map +1 -1
- package/dist/browser/classic/operations/index.js +3 -1
- package/dist/browser/classic/operations/index.js.map +1 -1
- package/dist/browser/classic/privateEndpointConnections/index.js +3 -1
- package/dist/browser/classic/privateEndpointConnections/index.js.map +1 -1
- package/dist/browser/restorePollerHelpers.js +11 -13
- package/dist/browser/restorePollerHelpers.js.map +1 -1
- package/dist/browser/static-helpers/pagingHelpers.js +31 -50
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/pollingHelpers.js +14 -11
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/urlTemplate.js +2 -2
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -1
- package/dist/commonjs/api/azureDedicatedHSMResourceProviderContext.js +16 -10
- package/dist/commonjs/api/azureDedicatedHSMResourceProviderContext.js.map +1 -1
- package/dist/commonjs/api/cloudHsmClusterBackupStatus/operations.js +10 -5
- package/dist/commonjs/api/cloudHsmClusterBackupStatus/operations.js.map +1 -1
- package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/operations.js +28 -11
- package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/operations.js.map +1 -1
- package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/operations.js +8 -3
- package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/operations.js.map +1 -1
- package/dist/commonjs/api/cloudHsmClusterRestoreStatus/operations.js +10 -5
- package/dist/commonjs/api/cloudHsmClusterRestoreStatus/operations.js.map +1 -1
- package/dist/commonjs/api/cloudHsmClusters/operations.js +111 -49
- package/dist/commonjs/api/cloudHsmClusters/operations.js.map +1 -1
- package/dist/commonjs/api/dedicatedHsm/operations.js +68 -29
- package/dist/commonjs/api/dedicatedHsm/operations.js.map +1 -1
- package/dist/commonjs/api/operations/operations.js +8 -3
- package/dist/commonjs/api/operations/operations.js.map +1 -1
- package/dist/commonjs/api/privateEndpointConnections/operations.js +8 -3
- package/dist/commonjs/api/privateEndpointConnections/operations.js.map +1 -1
- package/dist/commonjs/azureDedicatedHSMResourceProvider.js +24 -3
- package/dist/commonjs/azureDedicatedHSMResourceProvider.js.map +1 -1
- package/dist/commonjs/classic/cloudHsmClusterBackupStatus/index.js +3 -1
- package/dist/commonjs/classic/cloudHsmClusterBackupStatus/index.js.map +1 -1
- package/dist/commonjs/classic/cloudHsmClusterPrivateEndpointConnections/index.js +3 -1
- package/dist/commonjs/classic/cloudHsmClusterPrivateEndpointConnections/index.js.map +1 -1
- package/dist/commonjs/classic/cloudHsmClusterPrivateLinkResources/index.js +3 -1
- package/dist/commonjs/classic/cloudHsmClusterPrivateLinkResources/index.js.map +1 -1
- package/dist/commonjs/classic/cloudHsmClusterRestoreStatus/index.js +3 -1
- package/dist/commonjs/classic/cloudHsmClusterRestoreStatus/index.js.map +1 -1
- package/dist/commonjs/classic/cloudHsmClusters/index.js +3 -1
- package/dist/commonjs/classic/cloudHsmClusters/index.js.map +1 -1
- package/dist/commonjs/classic/dedicatedHsm/index.js +3 -1
- package/dist/commonjs/classic/dedicatedHsm/index.js.map +1 -1
- package/dist/commonjs/classic/operations/index.js +3 -1
- package/dist/commonjs/classic/operations/index.js.map +1 -1
- package/dist/commonjs/classic/privateEndpointConnections/index.js +3 -1
- package/dist/commonjs/classic/privateEndpointConnections/index.js.map +1 -1
- package/dist/commonjs/restorePollerHelpers.js +11 -13
- package/dist/commonjs/restorePollerHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/pagingHelpers.js +31 -50
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/pollingHelpers.js +14 -11
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/commonjs/static-helpers/urlTemplate.js +2 -2
- package/dist/commonjs/static-helpers/urlTemplate.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/api/azureDedicatedHSMResourceProviderContext.js +16 -10
- package/dist/esm/api/azureDedicatedHSMResourceProviderContext.js.map +1 -1
- package/dist/esm/api/cloudHsmClusterBackupStatus/operations.js +10 -5
- package/dist/esm/api/cloudHsmClusterBackupStatus/operations.js.map +1 -1
- package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/operations.js +28 -11
- package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/operations.js.map +1 -1
- package/dist/esm/api/cloudHsmClusterPrivateLinkResources/operations.js +8 -3
- package/dist/esm/api/cloudHsmClusterPrivateLinkResources/operations.js.map +1 -1
- package/dist/esm/api/cloudHsmClusterRestoreStatus/operations.js +10 -5
- package/dist/esm/api/cloudHsmClusterRestoreStatus/operations.js.map +1 -1
- package/dist/esm/api/cloudHsmClusters/operations.js +111 -49
- package/dist/esm/api/cloudHsmClusters/operations.js.map +1 -1
- package/dist/esm/api/dedicatedHsm/operations.js +68 -29
- package/dist/esm/api/dedicatedHsm/operations.js.map +1 -1
- package/dist/esm/api/operations/operations.js +8 -3
- package/dist/esm/api/operations/operations.js.map +1 -1
- package/dist/esm/api/privateEndpointConnections/operations.js +8 -3
- package/dist/esm/api/privateEndpointConnections/operations.js.map +1 -1
- package/dist/esm/azureDedicatedHSMResourceProvider.js +24 -3
- package/dist/esm/azureDedicatedHSMResourceProvider.js.map +1 -1
- package/dist/esm/classic/cloudHsmClusterBackupStatus/index.js +3 -1
- package/dist/esm/classic/cloudHsmClusterBackupStatus/index.js.map +1 -1
- package/dist/esm/classic/cloudHsmClusterPrivateEndpointConnections/index.js +3 -1
- package/dist/esm/classic/cloudHsmClusterPrivateEndpointConnections/index.js.map +1 -1
- package/dist/esm/classic/cloudHsmClusterPrivateLinkResources/index.js +3 -1
- package/dist/esm/classic/cloudHsmClusterPrivateLinkResources/index.js.map +1 -1
- package/dist/esm/classic/cloudHsmClusterRestoreStatus/index.js +3 -1
- package/dist/esm/classic/cloudHsmClusterRestoreStatus/index.js.map +1 -1
- package/dist/esm/classic/cloudHsmClusters/index.js +3 -1
- package/dist/esm/classic/cloudHsmClusters/index.js.map +1 -1
- package/dist/esm/classic/dedicatedHsm/index.js +3 -1
- package/dist/esm/classic/dedicatedHsm/index.js.map +1 -1
- package/dist/esm/classic/operations/index.js +3 -1
- package/dist/esm/classic/operations/index.js.map +1 -1
- package/dist/esm/classic/privateEndpointConnections/index.js +3 -1
- package/dist/esm/classic/privateEndpointConnections/index.js.map +1 -1
- package/dist/esm/restorePollerHelpers.js +11 -13
- package/dist/esm/restorePollerHelpers.js.map +1 -1
- package/dist/esm/static-helpers/pagingHelpers.js +31 -50
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/esm/static-helpers/pollingHelpers.js +14 -11
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/esm/static-helpers/urlTemplate.js +2 -2
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -1
- package/dist/react-native/api/azureDedicatedHSMResourceProviderContext.js +16 -10
- package/dist/react-native/api/azureDedicatedHSMResourceProviderContext.js.map +1 -1
- package/dist/react-native/api/cloudHsmClusterBackupStatus/operations.js +10 -5
- package/dist/react-native/api/cloudHsmClusterBackupStatus/operations.js.map +1 -1
- package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/operations.js +28 -11
- package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/operations.js.map +1 -1
- package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/operations.js +8 -3
- package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/operations.js.map +1 -1
- package/dist/react-native/api/cloudHsmClusterRestoreStatus/operations.js +10 -5
- package/dist/react-native/api/cloudHsmClusterRestoreStatus/operations.js.map +1 -1
- package/dist/react-native/api/cloudHsmClusters/operations.js +111 -49
- package/dist/react-native/api/cloudHsmClusters/operations.js.map +1 -1
- package/dist/react-native/api/dedicatedHsm/operations.js +68 -29
- package/dist/react-native/api/dedicatedHsm/operations.js.map +1 -1
- package/dist/react-native/api/operations/operations.js +8 -3
- package/dist/react-native/api/operations/operations.js.map +1 -1
- package/dist/react-native/api/privateEndpointConnections/operations.js +8 -3
- package/dist/react-native/api/privateEndpointConnections/operations.js.map +1 -1
- package/dist/react-native/azureDedicatedHSMResourceProvider.js +24 -3
- package/dist/react-native/azureDedicatedHSMResourceProvider.js.map +1 -1
- package/dist/react-native/classic/cloudHsmClusterBackupStatus/index.js +3 -1
- package/dist/react-native/classic/cloudHsmClusterBackupStatus/index.js.map +1 -1
- package/dist/react-native/classic/cloudHsmClusterPrivateEndpointConnections/index.js +3 -1
- package/dist/react-native/classic/cloudHsmClusterPrivateEndpointConnections/index.js.map +1 -1
- package/dist/react-native/classic/cloudHsmClusterPrivateLinkResources/index.js +3 -1
- package/dist/react-native/classic/cloudHsmClusterPrivateLinkResources/index.js.map +1 -1
- package/dist/react-native/classic/cloudHsmClusterRestoreStatus/index.js +3 -1
- package/dist/react-native/classic/cloudHsmClusterRestoreStatus/index.js.map +1 -1
- package/dist/react-native/classic/cloudHsmClusters/index.js +3 -1
- package/dist/react-native/classic/cloudHsmClusters/index.js.map +1 -1
- package/dist/react-native/classic/dedicatedHsm/index.js +3 -1
- package/dist/react-native/classic/dedicatedHsm/index.js.map +1 -1
- package/dist/react-native/classic/operations/index.js +3 -1
- package/dist/react-native/classic/operations/index.js.map +1 -1
- package/dist/react-native/classic/privateEndpointConnections/index.js +3 -1
- package/dist/react-native/classic/privateEndpointConnections/index.js.map +1 -1
- package/dist/react-native/restorePollerHelpers.js +11 -13
- package/dist/react-native/restorePollerHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/pagingHelpers.js +31 -50
- package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/pollingHelpers.js +14 -11
- package/dist/react-native/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/react-native/static-helpers/urlTemplate.js +2 -2
- package/dist/react-native/static-helpers/urlTemplate.js.map +1 -1
- package/package.json +2 -2
- package/review/arm-hardwaresecuritymodules-api-cloudHsmClusterBackupStatus-node.api.md +22 -22
- package/review/arm-hardwaresecuritymodules-api-cloudHsmClusterPrivateEndpointConnections-node.api.md +36 -36
- package/review/arm-hardwaresecuritymodules-api-cloudHsmClusterPrivateLinkResources-node.api.md +19 -19
- package/review/arm-hardwaresecuritymodules-api-cloudHsmClusterRestoreStatus-node.api.md +22 -22
- package/review/arm-hardwaresecuritymodules-api-cloudHsmClusters-node.api.md +96 -96
- package/review/arm-hardwaresecuritymodules-api-dedicatedHsm-node.api.md +68 -68
- package/review/arm-hardwaresecuritymodules-api-node.api.md +27 -27
- package/review/arm-hardwaresecuritymodules-api-operations-node.api.md +19 -19
- package/review/arm-hardwaresecuritymodules-api-privateEndpointConnections-node.api.md +19 -19
- package/review/arm-hardwaresecuritymodules-models-node.api.md +471 -471
- package/review/arm-hardwaresecuritymodules-node.api.md +703 -703
|
@@ -1,23 +1,26 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
|
-
import { __rest } from "tslib";
|
|
4
3
|
import { logger } from "../logger.js";
|
|
5
4
|
import { getClient } from "@azure-rest/core-client";
|
|
6
5
|
/** The Azure management API provides a RESTful set of web services that interact with Hardware Security Modules. */
|
|
7
6
|
export function createAzureDedicatedHSMResourceProvider(credential, subscriptionId, options = {}) {
|
|
8
|
-
|
|
9
|
-
const
|
|
10
|
-
const prefixFromOptions = (_c = options === null || options === void 0 ? void 0 : options.userAgentOptions) === null || _c === void 0 ? void 0 : _c.userAgentPrefix;
|
|
7
|
+
const endpointUrl = options.endpoint ?? options.baseUrl ?? "https://management.azure.com";
|
|
8
|
+
const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;
|
|
11
9
|
const userAgentInfo = `azsdk-js-arm-hardwaresecuritymodules/1.0.0-beta.1`;
|
|
12
10
|
const userAgentPrefix = prefixFromOptions
|
|
13
11
|
? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`
|
|
14
12
|
: `azsdk-js-api ${userAgentInfo}`;
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
const { apiVersion: _, ...updatedOptions } = {
|
|
14
|
+
...options,
|
|
15
|
+
userAgentOptions: { userAgentPrefix },
|
|
16
|
+
loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },
|
|
17
|
+
credentials: {
|
|
18
|
+
scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],
|
|
19
|
+
},
|
|
20
|
+
};
|
|
18
21
|
const clientContext = getClient(endpointUrl, credential, updatedOptions);
|
|
19
22
|
clientContext.pipeline.removePolicy({ name: "ApiVersionPolicy" });
|
|
20
|
-
const apiVersion =
|
|
23
|
+
const apiVersion = options.apiVersion ?? "2025-03-31";
|
|
21
24
|
clientContext.pipeline.addPolicy({
|
|
22
25
|
name: "ClientApiVersionPolicy",
|
|
23
26
|
sendRequest: (req, next) => {
|
|
@@ -30,7 +33,10 @@ export function createAzureDedicatedHSMResourceProvider(credential, subscription
|
|
|
30
33
|
return next(req);
|
|
31
34
|
},
|
|
32
35
|
});
|
|
33
|
-
return
|
|
34
|
-
|
|
36
|
+
return {
|
|
37
|
+
...clientContext,
|
|
38
|
+
apiVersion,
|
|
39
|
+
subscriptionId,
|
|
40
|
+
};
|
|
35
41
|
}
|
|
36
42
|
//# sourceMappingURL=azureDedicatedHSMResourceProviderContext.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"azureDedicatedHSMResourceProviderContext.js","sourceRoot":"","sources":["../../../src/api/azureDedicatedHSMResourceProviderContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC
|
|
1
|
+
{"version":3,"file":"azureDedicatedHSMResourceProviderContext.js","sourceRoot":"","sources":["../../../src/api/azureDedicatedHSMResourceProviderContext.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAEtC,OAAO,EAAyB,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAmB3E,oHAAoH;AACpH,MAAM,UAAU,uCAAuC,CACrD,UAA2B,EAC3B,cAAsB,EACtB,UAA2D,EAAE;IAE7D,MAAM,WAAW,GAAG,OAAO,CAAC,QAAQ,IAAI,OAAO,CAAC,OAAO,IAAI,8BAA8B,CAAC;IAC1F,MAAM,iBAAiB,GAAG,OAAO,EAAE,gBAAgB,EAAE,eAAe,CAAC;IACrE,MAAM,aAAa,GAAG,mDAAmD,CAAC;IAC1E,MAAM,eAAe,GAAG,iBAAiB;QACvC,CAAC,CAAC,GAAG,iBAAiB,iBAAiB,aAAa,EAAE;QACtD,CAAC,CAAC,gBAAgB,aAAa,EAAE,CAAC;IACpC,MAAM,EAAE,UAAU,EAAE,CAAC,EAAE,GAAG,cAAc,EAAE,GAAG;QAC3C,GAAG,OAAO;QACV,gBAAgB,EAAE,EAAE,eAAe,EAAE;QACrC,cAAc,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,cAAc,EAAE,MAAM,IAAI,MAAM,CAAC,IAAI,EAAE;QACzE,WAAW,EAAE;YACX,MAAM,EAAE,OAAO,CAAC,WAAW,EAAE,MAAM,IAAI,CAAC,GAAG,WAAW,WAAW,CAAC;SACnE;KACF,CAAC;IACF,MAAM,aAAa,GAAG,SAAS,CAAC,WAAW,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;IACzE,aAAa,CAAC,QAAQ,CAAC,YAAY,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC,CAAC;IAClE,MAAM,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,YAAY,CAAC;IACtD,aAAa,CAAC,QAAQ,CAAC,SAAS,CAAC;QAC/B,IAAI,EAAE,wBAAwB;QAC9B,WAAW,EAAE,CAAC,GAAG,EAAE,IAAI,EAAE,EAAE;YACzB,qDAAqD;YACrD,yEAAyE;YACzE,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC7B,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC;gBACzC,GAAG,CAAC,GAAG,GAAG,GAAG,GAAG,CAAC,GAAG,GAClB,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GACzD,eAAe,UAAU,EAAE,CAAC;YAC9B,CAAC;YAED,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC;QACnB,CAAC;KACF,CAAC,CAAC;IACH,OAAO;QACL,GAAG,aAAa;QAChB,UAAU;QACV,cAAc;KAC6B,CAAC;AAChD,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { logger } from \"../logger.js\";\nimport { KnownVersions } from \"../models/models.js\";\nimport { Client, ClientOptions, getClient } from \"@azure-rest/core-client\";\nimport { TokenCredential } from \"@azure/core-auth\";\n\n/** The Azure management API provides a RESTful set of web services that interact with Hardware Security Modules. */\nexport interface AzureDedicatedHSMResourceProviderContext extends Client {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion: string;\n /** The ID of the target subscription. The value must be an UUID. */\n subscriptionId: string;\n}\n\n/** Optional parameters for the client. */\nexport interface AzureDedicatedHSMResourceProviderOptionalParams extends ClientOptions {\n /** The API version to use for this operation. */\n /** Known values of {@link KnownVersions} that the service accepts. */\n apiVersion?: string;\n}\n\n/** The Azure management API provides a RESTful set of web services that interact with Hardware Security Modules. */\nexport function createAzureDedicatedHSMResourceProvider(\n credential: TokenCredential,\n subscriptionId: string,\n options: AzureDedicatedHSMResourceProviderOptionalParams = {},\n): AzureDedicatedHSMResourceProviderContext {\n const endpointUrl = options.endpoint ?? options.baseUrl ?? \"https://management.azure.com\";\n const prefixFromOptions = options?.userAgentOptions?.userAgentPrefix;\n const userAgentInfo = `azsdk-js-arm-hardwaresecuritymodules/1.0.0-beta.1`;\n const userAgentPrefix = prefixFromOptions\n ? `${prefixFromOptions} azsdk-js-api ${userAgentInfo}`\n : `azsdk-js-api ${userAgentInfo}`;\n const { apiVersion: _, ...updatedOptions } = {\n ...options,\n userAgentOptions: { userAgentPrefix },\n loggingOptions: { logger: options.loggingOptions?.logger ?? logger.info },\n credentials: {\n scopes: options.credentials?.scopes ?? [`${endpointUrl}/.default`],\n },\n };\n const clientContext = getClient(endpointUrl, credential, updatedOptions);\n clientContext.pipeline.removePolicy({ name: \"ApiVersionPolicy\" });\n const apiVersion = options.apiVersion ?? \"2025-03-31\";\n clientContext.pipeline.addPolicy({\n name: \"ClientApiVersionPolicy\",\n sendRequest: (req, next) => {\n // Use the apiVersion defined in request url directly\n // Append one if there is no apiVersion and we have one at client options\n const url = new URL(req.url);\n if (!url.searchParams.get(\"api-version\")) {\n req.url = `${req.url}${\n Array.from(url.searchParams.keys()).length > 0 ? \"&\" : \"?\"\n }api-version=${apiVersion}`;\n }\n\n return next(req);\n },\n });\n return {\n ...clientContext,\n apiVersion,\n subscriptionId,\n } as AzureDedicatedHSMResourceProviderContext;\n}\n"]}
|
|
@@ -7,7 +7,6 @@ import { createRestError, operationOptionsToRequestParameters, } from "@azure-re
|
|
|
7
7
|
export function _getSend(context, resourceGroupName, cloudHsmClusterName, jobId, options = {
|
|
8
8
|
requestOptions: {},
|
|
9
9
|
}) {
|
|
10
|
-
var _a, _b;
|
|
11
10
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/backupOperationStatus/{jobId}{?api%2Dversion}", {
|
|
12
11
|
subscriptionId: context.subscriptionId,
|
|
13
12
|
resourceGroupName: resourceGroupName,
|
|
@@ -15,9 +14,15 @@ export function _getSend(context, resourceGroupName, cloudHsmClusterName, jobId,
|
|
|
15
14
|
jobId: jobId,
|
|
16
15
|
"api%2Dversion": context.apiVersion,
|
|
17
16
|
}, {
|
|
18
|
-
allowReserved:
|
|
17
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
18
|
+
});
|
|
19
|
+
return context.path(path).get({
|
|
20
|
+
...operationOptionsToRequestParameters(options),
|
|
21
|
+
headers: {
|
|
22
|
+
accept: "application/json",
|
|
23
|
+
...options.requestOptions?.headers,
|
|
24
|
+
},
|
|
19
25
|
});
|
|
20
|
-
return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
21
26
|
}
|
|
22
27
|
export async function _getDeserialize(result) {
|
|
23
28
|
const expectedStatuses = ["200", "202"];
|
|
@@ -33,8 +38,8 @@ export function get(context, resourceGroupName, cloudHsmClusterName, jobId, opti
|
|
|
33
38
|
requestOptions: {},
|
|
34
39
|
}) {
|
|
35
40
|
return getLongRunningPoller(context, _getDeserialize, ["200", "202"], {
|
|
36
|
-
updateIntervalInMs: options
|
|
37
|
-
abortSignal: options
|
|
41
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
42
|
+
abortSignal: options?.abortSignal,
|
|
38
43
|
getInitialResponse: () => _getSend(context, resourceGroupName, cloudHsmClusterName, jobId, options),
|
|
39
44
|
resourceLocationConfig: "location",
|
|
40
45
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/cloudHsmClusterBackupStatus/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAEnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAGjC,MAAM,UAAU,QAAQ,CACtB,OAAe,EACf,iBAAyB,EACzB,mBAA2B,EAC3B,KAAa,EACb,UAAwD;IACtD,cAAc,EAAE,EAAE;CACnB
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/cloudHsmClusterBackupStatus/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAEnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAGjC,MAAM,UAAU,QAAQ,CACtB,OAAe,EACf,iBAAyB,EACzB,mBAA2B,EAC3B,KAAa,EACb,UAAwD;IACtD,cAAc,EAAE,EAAE;CACnB;IAED,MAAM,IAAI,GAAG,iBAAiB,CAC5B,qMAAqM,EACrM;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,iBAAiB,EAAE,iBAAiB;QACpC,mBAAmB,EAAE,mBAAmB;QACxC,KAAK,EAAE,KAAK;QACZ,eAAe,EAAE,OAAO,CAAC,UAAU;KACpC,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC;QAC5B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE;YACP,MAAM,EAAE,kBAAkB;YAC1B,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO;SACnC;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,MAA6B;IACjE,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IACxC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO;AACT,CAAC;AAED,0EAA0E;AAC1E,MAAM,UAAU,GAAG,CACjB,OAAe,EACf,iBAAyB,EACzB,mBAA2B,EAC3B,KAAa,EACb,UAAwD;IACtD,cAAc,EAAE,EAAE;CACnB;IAED,OAAO,oBAAoB,CAAC,OAAO,EAAE,eAAe,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE;QACpE,kBAAkB,EAAE,OAAO,EAAE,kBAAkB;QAC/C,WAAW,EAAE,OAAO,EAAE,WAAW;QACjC,kBAAkB,EAAE,GAAG,EAAE,CACvB,QAAQ,CAAC,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,KAAK,EAAE,OAAO,CAAC;QAC3E,sBAAsB,EAAE,UAAU;KACnC,CAA2C,CAAC;AAC/C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AzureDedicatedHSMResourceProviderContext as Client } from \"../index.js\";\nimport { errorResponseDeserializer } from \"../../models/models.js\";\nimport { CloudHsmClusterBackupStatusGetOptionalParams } from \"./options.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n jobId: string,\n options: CloudHsmClusterBackupStatusGetOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/backupOperationStatus/{jobId}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n cloudHsmClusterName: cloudHsmClusterName,\n jobId: jobId,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"200\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return;\n}\n\n/** Gets the backup operation status of the specified Cloud HSM Cluster */\nexport function get(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n jobId: string,\n options: CloudHsmClusterBackupStatusGetOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _getDeserialize, [\"200\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _getSend(context, resourceGroupName, cloudHsmClusterName, jobId, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n"]}
|
|
@@ -7,7 +7,6 @@ import { createRestError, operationOptionsToRequestParameters, } from "@azure-re
|
|
|
7
7
|
export function _$deleteSend(context, resourceGroupName, cloudHsmClusterName, peConnectionName, options = {
|
|
8
8
|
requestOptions: {},
|
|
9
9
|
}) {
|
|
10
|
-
var _a, _b;
|
|
11
10
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateEndpointConnections/{peConnectionName}{?api%2Dversion}", {
|
|
12
11
|
subscriptionId: context.subscriptionId,
|
|
13
12
|
resourceGroupName: resourceGroupName,
|
|
@@ -15,9 +14,15 @@ export function _$deleteSend(context, resourceGroupName, cloudHsmClusterName, pe
|
|
|
15
14
|
peConnectionName: peConnectionName,
|
|
16
15
|
"api%2Dversion": context.apiVersion,
|
|
17
16
|
}, {
|
|
18
|
-
allowReserved:
|
|
17
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
18
|
+
});
|
|
19
|
+
return context.path(path).delete({
|
|
20
|
+
...operationOptionsToRequestParameters(options),
|
|
21
|
+
headers: {
|
|
22
|
+
accept: "application/json",
|
|
23
|
+
...options.requestOptions?.headers,
|
|
24
|
+
},
|
|
19
25
|
});
|
|
20
|
-
return context.path(path).delete(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
21
26
|
}
|
|
22
27
|
export async function _$deleteDeserialize(result) {
|
|
23
28
|
const expectedStatuses = ["202", "204", "200"];
|
|
@@ -38,8 +43,8 @@ export function $delete(context, resourceGroupName, cloudHsmClusterName, peConne
|
|
|
38
43
|
requestOptions: {},
|
|
39
44
|
}) {
|
|
40
45
|
return getLongRunningPoller(context, _$deleteDeserialize, ["202", "204", "200"], {
|
|
41
|
-
updateIntervalInMs: options
|
|
42
|
-
abortSignal: options
|
|
46
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
47
|
+
abortSignal: options?.abortSignal,
|
|
43
48
|
getInitialResponse: () => _$deleteSend(context, resourceGroupName, cloudHsmClusterName, peConnectionName, options),
|
|
44
49
|
resourceLocationConfig: "location",
|
|
45
50
|
});
|
|
@@ -47,7 +52,6 @@ export function $delete(context, resourceGroupName, cloudHsmClusterName, peConne
|
|
|
47
52
|
export function _createSend(context, resourceGroupName, cloudHsmClusterName, peConnectionName, properties, options = {
|
|
48
53
|
requestOptions: {},
|
|
49
54
|
}) {
|
|
50
|
-
var _a, _b;
|
|
51
55
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateEndpointConnections/{peConnectionName}{?api%2Dversion}", {
|
|
52
56
|
subscriptionId: context.subscriptionId,
|
|
53
57
|
resourceGroupName: resourceGroupName,
|
|
@@ -55,9 +59,17 @@ export function _createSend(context, resourceGroupName, cloudHsmClusterName, peC
|
|
|
55
59
|
peConnectionName: peConnectionName,
|
|
56
60
|
"api%2Dversion": context.apiVersion,
|
|
57
61
|
}, {
|
|
58
|
-
allowReserved:
|
|
62
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
63
|
+
});
|
|
64
|
+
return context.path(path).put({
|
|
65
|
+
...operationOptionsToRequestParameters(options),
|
|
66
|
+
contentType: "application/json",
|
|
67
|
+
headers: {
|
|
68
|
+
accept: "application/json",
|
|
69
|
+
...options.requestOptions?.headers,
|
|
70
|
+
},
|
|
71
|
+
body: privateEndpointConnectionSerializer(properties),
|
|
59
72
|
});
|
|
60
|
-
return context.path(path).put(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { contentType: "application/json", headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers), body: privateEndpointConnectionSerializer(properties) }));
|
|
61
73
|
}
|
|
62
74
|
export async function _createDeserialize(result) {
|
|
63
75
|
const expectedStatuses = ["200"];
|
|
@@ -78,7 +90,6 @@ export async function create(context, resourceGroupName, cloudHsmClusterName, pe
|
|
|
78
90
|
export function _getSend(context, resourceGroupName, cloudHsmClusterName, peConnectionName, options = {
|
|
79
91
|
requestOptions: {},
|
|
80
92
|
}) {
|
|
81
|
-
var _a, _b;
|
|
82
93
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateEndpointConnections/{peConnectionName}{?api%2Dversion}", {
|
|
83
94
|
subscriptionId: context.subscriptionId,
|
|
84
95
|
resourceGroupName: resourceGroupName,
|
|
@@ -86,9 +97,15 @@ export function _getSend(context, resourceGroupName, cloudHsmClusterName, peConn
|
|
|
86
97
|
peConnectionName: peConnectionName,
|
|
87
98
|
"api%2Dversion": context.apiVersion,
|
|
88
99
|
}, {
|
|
89
|
-
allowReserved:
|
|
100
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
101
|
+
});
|
|
102
|
+
return context.path(path).get({
|
|
103
|
+
...operationOptionsToRequestParameters(options),
|
|
104
|
+
headers: {
|
|
105
|
+
accept: "application/json",
|
|
106
|
+
...options.requestOptions?.headers,
|
|
107
|
+
},
|
|
90
108
|
});
|
|
91
|
-
return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
92
109
|
}
|
|
93
110
|
export async function _getDeserialize(result) {
|
|
94
111
|
const expectedStatuses = ["200"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/cloudHsmClusterPrivateEndpointConnections/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,yBAAyB,EAEzB,mCAAmC,EACnC,qCAAqC,GACtC,MAAM,wBAAwB,CAAC;AAMhC,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAA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C,CAAC,GAAG,iCACxB,mCAAmC,CAAC,OAAO,CAAC,KAC/C,OAAO,kBACL,MAAM,EAAE,kBAAkB,IACvB,MAAA,OAAO,CAAC,cAAc,0CAAE,OAAO,KAEpC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,qCAAqC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC5D,CAAC;AAED,sEAAsE;AACtE,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,iBAAyB,EACzB,mBAA2B,EAC3B,gBAAwB,EACxB,UAAsE;IACpE,cAAc,EAAE,EAAE;CACnB;IAED,MAAM,MAAM,GAAG,MAAM,QAAQ,CAC3B,OAAO,EACP,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,OAAO,CACR,CAAC;IACF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AzureDedicatedHSMResourceProviderContext as Client } from \"../index.js\";\nimport {\n errorResponseDeserializer,\n PrivateEndpointConnection,\n privateEndpointConnectionSerializer,\n privateEndpointConnectionDeserializer,\n} from \"../../models/models.js\";\nimport {\n CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams,\n CloudHsmClusterPrivateEndpointConnectionsCreateOptionalParams,\n CloudHsmClusterPrivateEndpointConnectionsGetOptionalParams,\n} from \"./options.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n peConnectionName: string,\n options: CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateEndpointConnections/{peConnectionName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n cloudHsmClusterName: cloudHsmClusterName,\n peConnectionName: peConnectionName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return;\n}\n\n/** Deletes the private endpoint connection for the Cloud Hsm Cluster. */\n/**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\nexport function $delete(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n peConnectionName: string,\n options: CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _$deleteSend(context, resourceGroupName, cloudHsmClusterName, peConnectionName, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _createSend(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n peConnectionName: string,\n properties: PrivateEndpointConnection,\n options: CloudHsmClusterPrivateEndpointConnectionsCreateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateEndpointConnections/{peConnectionName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n cloudHsmClusterName: cloudHsmClusterName,\n peConnectionName: peConnectionName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: privateEndpointConnectionSerializer(properties),\n });\n}\n\nexport async function _createDeserialize(\n result: PathUncheckedResponse,\n): Promise<PrivateEndpointConnection> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return privateEndpointConnectionDeserializer(result.body);\n}\n\n/** Creates or updates the private endpoint connection for the Cloud Hsm Cluster. */\nexport async function create(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n peConnectionName: string,\n properties: PrivateEndpointConnection,\n options: CloudHsmClusterPrivateEndpointConnectionsCreateOptionalParams = {\n requestOptions: {},\n },\n): Promise<PrivateEndpointConnection> {\n const result = await _createSend(\n context,\n resourceGroupName,\n cloudHsmClusterName,\n peConnectionName,\n properties,\n options,\n );\n return _createDeserialize(result);\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n peConnectionName: string,\n options: CloudHsmClusterPrivateEndpointConnectionsGetOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateEndpointConnections/{peConnectionName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n cloudHsmClusterName: cloudHsmClusterName,\n peConnectionName: peConnectionName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(\n result: PathUncheckedResponse,\n): Promise<PrivateEndpointConnection> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return privateEndpointConnectionDeserializer(result.body);\n}\n\n/** Gets the private endpoint connection for the Cloud Hsm Cluster. */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n peConnectionName: string,\n options: CloudHsmClusterPrivateEndpointConnectionsGetOptionalParams = {\n requestOptions: {},\n },\n): Promise<PrivateEndpointConnection> {\n const result = await _getSend(\n context,\n resourceGroupName,\n cloudHsmClusterName,\n peConnectionName,\n options,\n );\n return _getDeserialize(result);\n}\n"]}
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/cloudHsmClusterPrivateEndpointConnections/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kC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OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC;QAC5B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE;YACP,MAAM,EAAE,kBAAkB;YAC1B,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO;SACnC;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CACnC,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,qCAAqC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC5D,CAAC;AAED,sEAAsE;AACtE,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,iBAAyB,EACzB,mBAA2B,EAC3B,gBAAwB,EACxB,UAAsE;IACpE,cAAc,EAAE,EAAE;CACnB;IAED,MAAM,MAAM,GAAG,MAAM,QAAQ,CAC3B,OAAO,EACP,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,OAAO,CACR,CAAC;IACF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AzureDedicatedHSMResourceProviderContext as Client } from \"../index.js\";\nimport {\n errorResponseDeserializer,\n PrivateEndpointConnection,\n privateEndpointConnectionSerializer,\n privateEndpointConnectionDeserializer,\n} from \"../../models/models.js\";\nimport {\n CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams,\n CloudHsmClusterPrivateEndpointConnectionsCreateOptionalParams,\n CloudHsmClusterPrivateEndpointConnectionsGetOptionalParams,\n} from \"./options.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n peConnectionName: string,\n options: CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateEndpointConnections/{peConnectionName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n cloudHsmClusterName: cloudHsmClusterName,\n peConnectionName: peConnectionName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"202\", \"204\", \"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return;\n}\n\n/** Deletes the private endpoint connection for the Cloud Hsm Cluster. */\n/**\n * @fixme delete is a reserved word that cannot be used as an operation name.\n * Please add @clientName(\"clientName\") or @clientName(\"<JS-Specific-Name>\", \"javascript\")\n * to the operation to override the generated name.\n */\nexport function $delete(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n peConnectionName: string,\n options: CloudHsmClusterPrivateEndpointConnectionsDeleteOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _$deleteDeserialize, [\"202\", \"204\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _$deleteSend(context, resourceGroupName, cloudHsmClusterName, peConnectionName, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _createSend(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n peConnectionName: string,\n properties: PrivateEndpointConnection,\n options: CloudHsmClusterPrivateEndpointConnectionsCreateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateEndpointConnections/{peConnectionName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n cloudHsmClusterName: cloudHsmClusterName,\n peConnectionName: peConnectionName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: privateEndpointConnectionSerializer(properties),\n });\n}\n\nexport async function _createDeserialize(\n result: PathUncheckedResponse,\n): Promise<PrivateEndpointConnection> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return privateEndpointConnectionDeserializer(result.body);\n}\n\n/** Creates or updates the private endpoint connection for the Cloud Hsm Cluster. */\nexport async function create(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n peConnectionName: string,\n properties: PrivateEndpointConnection,\n options: CloudHsmClusterPrivateEndpointConnectionsCreateOptionalParams = {\n requestOptions: {},\n },\n): Promise<PrivateEndpointConnection> {\n const result = await _createSend(\n context,\n resourceGroupName,\n cloudHsmClusterName,\n peConnectionName,\n properties,\n options,\n );\n return _createDeserialize(result);\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n peConnectionName: string,\n options: CloudHsmClusterPrivateEndpointConnectionsGetOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateEndpointConnections/{peConnectionName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n cloudHsmClusterName: cloudHsmClusterName,\n peConnectionName: peConnectionName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(\n result: PathUncheckedResponse,\n): Promise<PrivateEndpointConnection> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return privateEndpointConnectionDeserializer(result.body);\n}\n\n/** Gets the private endpoint connection for the Cloud Hsm Cluster. */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n peConnectionName: string,\n options: CloudHsmClusterPrivateEndpointConnectionsGetOptionalParams = {\n requestOptions: {},\n },\n): Promise<PrivateEndpointConnection> {\n const result = await _getSend(\n context,\n resourceGroupName,\n cloudHsmClusterName,\n peConnectionName,\n options,\n );\n return _getDeserialize(result);\n}\n"]}
|
|
@@ -7,16 +7,21 @@ import { createRestError, operationOptionsToRequestParameters, } from "@azure-re
|
|
|
7
7
|
export function _listByCloudHsmClusterSend(context, resourceGroupName, cloudHsmClusterName, options = {
|
|
8
8
|
requestOptions: {},
|
|
9
9
|
}) {
|
|
10
|
-
var _a, _b;
|
|
11
10
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateLinkResources{?api%2Dversion}", {
|
|
12
11
|
subscriptionId: context.subscriptionId,
|
|
13
12
|
resourceGroupName: resourceGroupName,
|
|
14
13
|
cloudHsmClusterName: cloudHsmClusterName,
|
|
15
14
|
"api%2Dversion": context.apiVersion,
|
|
16
15
|
}, {
|
|
17
|
-
allowReserved:
|
|
16
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
17
|
+
});
|
|
18
|
+
return context.path(path).get({
|
|
19
|
+
...operationOptionsToRequestParameters(options),
|
|
20
|
+
headers: {
|
|
21
|
+
accept: "application/json",
|
|
22
|
+
...options.requestOptions?.headers,
|
|
23
|
+
},
|
|
18
24
|
});
|
|
19
|
-
return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
20
25
|
}
|
|
21
26
|
export async function _listByCloudHsmClusterDeserialize(result) {
|
|
22
27
|
const expectedStatuses = ["200"];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/cloudHsmClusterPrivateLinkResources/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,yBAAyB,EAEzB,0CAA0C,GAE3C,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,0BAA0B,CACxC,OAAe,EACf,iBAAyB,EACzB,mBAA2B,EAC3B,UAAkF;IAChF,cAAc,EAAE,EAAE;CACnB
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/cloudHsmClusterPrivateLinkResources/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,yBAAyB,EAEzB,0CAA0C,GAE3C,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAEjC,MAAM,UAAU,0BAA0B,CACxC,OAAe,EACf,iBAAyB,EACzB,mBAA2B,EAC3B,UAAkF;IAChF,cAAc,EAAE,EAAE;CACnB;IAED,MAAM,IAAI,GAAG,iBAAiB,CAC5B,4LAA4L,EAC5L;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,iBAAiB,EAAE,iBAAiB;QACpC,mBAAmB,EAAE,mBAAmB;QACxC,eAAe,EAAE,OAAO,CAAC,UAAU;KACpC,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC;QAC5B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE;YACP,MAAM,EAAE,kBAAkB;YAC1B,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO;SACnC;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,iCAAiC,CACrD,MAA6B;IAE7B,MAAM,gBAAgB,GAAG,CAAC,KAAK,CAAC,CAAC;IACjC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,0CAA0C,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AACjE,CAAC;AAED,2EAA2E;AAC3E,MAAM,UAAU,qBAAqB,CACnC,OAAe,EACf,iBAAyB,EACzB,mBAA2B,EAC3B,UAAkF;IAChF,cAAc,EAAE,EAAE;CACnB;IAED,OAAO,uBAAuB,CAC5B,OAAO,EACP,GAAG,EAAE,CAAC,0BAA0B,CAAC,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAC1F,iCAAiC,EACjC,CAAC,KAAK,CAAC,EACP,EAAE,QAAQ,EAAE,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAChD,CAAC;AACJ,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AzureDedicatedHSMResourceProviderContext as Client } from \"../index.js\";\nimport {\n errorResponseDeserializer,\n _PrivateLinkResourceListResult,\n _privateLinkResourceListResultDeserializer,\n PrivateLinkResource,\n} from \"../../models/models.js\";\nimport { CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterOptionalParams } from \"./options.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\n\nexport function _listByCloudHsmClusterSend(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n options: CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/privateLinkResources{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n cloudHsmClusterName: cloudHsmClusterName,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _listByCloudHsmClusterDeserialize(\n result: PathUncheckedResponse,\n): Promise<_PrivateLinkResourceListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return _privateLinkResourceListResultDeserializer(result.body);\n}\n\n/** Gets the private link resources supported for the Cloud Hsm Cluster. */\nexport function listByCloudHsmCluster(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n options: CloudHsmClusterPrivateLinkResourcesListByCloudHsmClusterOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<PrivateLinkResource> {\n return buildPagedAsyncIterator(\n context,\n () => _listByCloudHsmClusterSend(context, resourceGroupName, cloudHsmClusterName, options),\n _listByCloudHsmClusterDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n"]}
|
|
@@ -7,7 +7,6 @@ import { createRestError, operationOptionsToRequestParameters, } from "@azure-re
|
|
|
7
7
|
export function _getSend(context, resourceGroupName, cloudHsmClusterName, jobId, options = {
|
|
8
8
|
requestOptions: {},
|
|
9
9
|
}) {
|
|
10
|
-
var _a, _b;
|
|
11
10
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/restoreOperationStatus/{jobId}{?api%2Dversion}", {
|
|
12
11
|
subscriptionId: context.subscriptionId,
|
|
13
12
|
resourceGroupName: resourceGroupName,
|
|
@@ -15,9 +14,15 @@ export function _getSend(context, resourceGroupName, cloudHsmClusterName, jobId,
|
|
|
15
14
|
jobId: jobId,
|
|
16
15
|
"api%2Dversion": context.apiVersion,
|
|
17
16
|
}, {
|
|
18
|
-
allowReserved:
|
|
17
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
18
|
+
});
|
|
19
|
+
return context.path(path).get({
|
|
20
|
+
...operationOptionsToRequestParameters(options),
|
|
21
|
+
headers: {
|
|
22
|
+
accept: "application/json",
|
|
23
|
+
...options.requestOptions?.headers,
|
|
24
|
+
},
|
|
19
25
|
});
|
|
20
|
-
return context.path(path).get(Object.assign(Object.assign({}, operationOptionsToRequestParameters(options)), { headers: Object.assign({ accept: "application/json" }, (_b = options.requestOptions) === null || _b === void 0 ? void 0 : _b.headers) }));
|
|
21
26
|
}
|
|
22
27
|
export async function _getDeserialize(result) {
|
|
23
28
|
const expectedStatuses = ["200", "202"];
|
|
@@ -33,8 +38,8 @@ export function get(context, resourceGroupName, cloudHsmClusterName, jobId, opti
|
|
|
33
38
|
requestOptions: {},
|
|
34
39
|
}) {
|
|
35
40
|
return getLongRunningPoller(context, _getDeserialize, ["200", "202"], {
|
|
36
|
-
updateIntervalInMs: options
|
|
37
|
-
abortSignal: options
|
|
41
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
42
|
+
abortSignal: options?.abortSignal,
|
|
38
43
|
getInitialResponse: () => _getSend(context, resourceGroupName, cloudHsmClusterName, jobId, options),
|
|
39
44
|
resourceLocationConfig: "location",
|
|
40
45
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/cloudHsmClusterRestoreStatus/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAEnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAGjC,MAAM,UAAU,QAAQ,CACtB,OAAe,EACf,iBAAyB,EACzB,mBAA2B,EAC3B,KAAa,EACb,UAAyD;IACvD,cAAc,EAAE,EAAE;CACnB
|
|
1
|
+
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/cloudHsmClusterRestoreStatus/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AAEnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAGL,eAAe,EACf,mCAAmC,GACpC,MAAM,yBAAyB,CAAC;AAGjC,MAAM,UAAU,QAAQ,CACtB,OAAe,EACf,iBAAyB,EACzB,mBAA2B,EAC3B,KAAa,EACb,UAAyD;IACvD,cAAc,EAAE,EAAE;CACnB;IAED,MAAM,IAAI,GAAG,iBAAiB,CAC5B,sMAAsM,EACtM;QACE,cAAc,EAAE,OAAO,CAAC,cAAc;QACtC,iBAAiB,EAAE,iBAAiB;QACpC,mBAAmB,EAAE,mBAAmB;QACxC,KAAK,EAAE,KAAK;QACZ,eAAe,EAAE,OAAO,CAAC,UAAU;KACpC,EACD;QACE,aAAa,EAAE,OAAO,EAAE,cAAc,EAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC;QAC5B,GAAG,mCAAmC,CAAC,OAAO,CAAC;QAC/C,OAAO,EAAE;YACP,MAAM,EAAE,kBAAkB;YAC1B,GAAG,OAAO,CAAC,cAAc,EAAE,OAAO;SACnC;KACF,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,MAA6B;IACjE,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IACxC,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;QAC9C,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC;QACtC,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACvD,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO;AACT,CAAC;AAED,2EAA2E;AAC3E,MAAM,UAAU,GAAG,CACjB,OAAe,EACf,iBAAyB,EACzB,mBAA2B,EAC3B,KAAa,EACb,UAAyD;IACvD,cAAc,EAAE,EAAE;CACnB;IAED,OAAO,oBAAoB,CAAC,OAAO,EAAE,eAAe,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,EAAE;QACpE,kBAAkB,EAAE,OAAO,EAAE,kBAAkB;QAC/C,WAAW,EAAE,OAAO,EAAE,WAAW;QACjC,kBAAkB,EAAE,GAAG,EAAE,CACvB,QAAQ,CAAC,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,KAAK,EAAE,OAAO,CAAC;QAC3E,sBAAsB,EAAE,UAAU;KACnC,CAA2C,CAAC;AAC/C,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { AzureDedicatedHSMResourceProviderContext as Client } from \"../index.js\";\nimport { errorResponseDeserializer } from \"../../models/models.js\";\nimport { CloudHsmClusterRestoreStatusGetOptionalParams } from \"./options.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport {\n StreamableMethod,\n PathUncheckedResponse,\n createRestError,\n operationOptionsToRequestParameters,\n} from \"@azure-rest/core-client\";\nimport { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n jobId: string,\n options: CloudHsmClusterRestoreStatusGetOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/restoreOperationStatus/{jobId}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n cloudHsmClusterName: cloudHsmClusterName,\n jobId: jobId,\n \"api%2Dversion\": context.apiVersion,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<void> {\n const expectedStatuses = [\"200\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return;\n}\n\n/** Gets the restore operation status of the specified Cloud HSM Cluster */\nexport function get(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n jobId: string,\n options: CloudHsmClusterRestoreStatusGetOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<void>, void> {\n return getLongRunningPoller(context, _getDeserialize, [\"200\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _getSend(context, resourceGroupName, cloudHsmClusterName, jobId, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n"]}
|