@azure/arm-hardwaresecuritymodules 2.0.0 → 3.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +46 -0
- package/README.md +14 -14
- package/dist/browser/api/azureDedicatedHSMResourceProviderContext.d.ts +8 -5
- package/dist/browser/api/azureDedicatedHSMResourceProviderContext.js +20 -26
- package/dist/browser/api/azureDedicatedHSMResourceProviderContext.js.map +1 -1
- package/dist/browser/api/cloudHsmClusterBackupStatus/index.d.ts +1 -1
- package/dist/browser/api/cloudHsmClusterBackupStatus/index.js.map +1 -1
- package/dist/browser/api/cloudHsmClusterBackupStatus/operations.d.ts +6 -6
- package/dist/browser/api/cloudHsmClusterBackupStatus/operations.js +19 -21
- package/dist/browser/api/cloudHsmClusterBackupStatus/operations.js.map +1 -1
- package/dist/browser/api/cloudHsmClusterBackupStatus/options.d.ts +1 -3
- package/dist/browser/api/cloudHsmClusterBackupStatus/options.js.map +1 -1
- package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/index.d.ts +1 -1
- package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/index.js.map +1 -1
- package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/operations.d.ts +5 -10
- package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/operations.js +36 -41
- package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/operations.js.map +1 -1
- package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/options.d.ts +1 -1
- package/dist/browser/api/cloudHsmClusterPrivateEndpointConnections/options.js.map +1 -1
- package/dist/browser/api/cloudHsmClusterPrivateLinkResources/index.d.ts +1 -1
- package/dist/browser/api/cloudHsmClusterPrivateLinkResources/index.js.map +1 -1
- package/dist/browser/api/cloudHsmClusterPrivateLinkResources/operations.d.ts +5 -5
- package/dist/browser/api/cloudHsmClusterPrivateLinkResources/operations.js +16 -8
- package/dist/browser/api/cloudHsmClusterPrivateLinkResources/operations.js.map +1 -1
- package/dist/browser/api/cloudHsmClusterPrivateLinkResources/options.d.ts +1 -1
- package/dist/browser/api/cloudHsmClusterPrivateLinkResources/options.js.map +1 -1
- package/dist/browser/api/cloudHsmClusterRestoreStatus/index.d.ts +1 -1
- package/dist/browser/api/cloudHsmClusterRestoreStatus/index.js.map +1 -1
- package/dist/browser/api/cloudHsmClusterRestoreStatus/operations.d.ts +6 -6
- package/dist/browser/api/cloudHsmClusterRestoreStatus/operations.js +19 -21
- package/dist/browser/api/cloudHsmClusterRestoreStatus/operations.js.map +1 -1
- package/dist/browser/api/cloudHsmClusterRestoreStatus/options.d.ts +1 -3
- package/dist/browser/api/cloudHsmClusterRestoreStatus/options.js.map +1 -1
- package/dist/browser/api/cloudHsmClusters/index.d.ts +1 -1
- package/dist/browser/api/cloudHsmClusters/index.js.map +1 -1
- package/dist/browser/api/cloudHsmClusters/operations.d.ts +6 -11
- package/dist/browser/api/cloudHsmClusters/operations.js +162 -123
- package/dist/browser/api/cloudHsmClusters/operations.js.map +1 -1
- package/dist/browser/api/cloudHsmClusters/options.d.ts +2 -2
- package/dist/browser/api/cloudHsmClusters/options.js.map +1 -1
- package/dist/browser/api/dedicatedHsm/index.d.ts +1 -1
- package/dist/browser/api/dedicatedHsm/index.js.map +1 -1
- package/dist/browser/api/dedicatedHsm/operations.d.ts +6 -11
- package/dist/browser/api/dedicatedHsm/operations.js +100 -69
- package/dist/browser/api/dedicatedHsm/operations.js.map +1 -1
- package/dist/browser/api/dedicatedHsm/options.d.ts +1 -1
- package/dist/browser/api/dedicatedHsm/options.js.map +1 -1
- package/dist/browser/api/index.d.ts +2 -1
- package/dist/browser/api/index.js +1 -1
- package/dist/browser/api/index.js.map +1 -1
- package/dist/browser/api/operations/index.d.ts +1 -1
- package/dist/browser/api/operations/index.js.map +1 -1
- package/dist/browser/api/operations/operations.d.ts +5 -5
- package/dist/browser/api/operations/operations.js +16 -8
- package/dist/browser/api/operations/operations.js.map +1 -1
- package/dist/browser/api/operations/options.d.ts +1 -1
- package/dist/browser/api/operations/options.js.map +1 -1
- package/dist/browser/api/paymentHsmClusterPrivateEndpointConnections/index.d.ts +3 -0
- package/dist/browser/api/paymentHsmClusterPrivateEndpointConnections/index.js +4 -0
- package/dist/browser/api/paymentHsmClusterPrivateEndpointConnections/index.js.map +1 -0
- package/dist/browser/api/paymentHsmClusterPrivateEndpointConnections/operations.d.ts +23 -0
- package/dist/browser/api/paymentHsmClusterPrivateEndpointConnections/operations.js +142 -0
- package/dist/browser/api/paymentHsmClusterPrivateEndpointConnections/operations.js.map +1 -0
- package/dist/browser/api/paymentHsmClusterPrivateEndpointConnections/options.d.ts +16 -0
- package/dist/browser/api/paymentHsmClusterPrivateEndpointConnections/options.js.map +1 -0
- package/dist/browser/api/paymentHsmClusterPrivateLinkResources/index.d.ts +3 -0
- package/dist/browser/api/paymentHsmClusterPrivateLinkResources/index.js +4 -0
- package/dist/browser/api/paymentHsmClusterPrivateLinkResources/index.js.map +1 -0
- package/dist/browser/api/paymentHsmClusterPrivateLinkResources/operations.d.ts +10 -0
- package/dist/browser/api/paymentHsmClusterPrivateLinkResources/operations.js +44 -0
- package/dist/browser/api/paymentHsmClusterPrivateLinkResources/operations.js.map +1 -0
- package/dist/browser/api/paymentHsmClusterPrivateLinkResources/options.d.ts +5 -0
- package/dist/browser/api/paymentHsmClusterPrivateLinkResources/options.js.map +1 -0
- package/dist/browser/api/paymentHsmClusters/index.d.ts +3 -0
- package/dist/browser/api/paymentHsmClusters/index.js +4 -0
- package/dist/browser/api/paymentHsmClusters/index.js.map +1 -0
- package/dist/browser/api/paymentHsmClusters/operations.d.ts +31 -0
- package/dist/browser/api/paymentHsmClusters/operations.js +209 -0
- package/dist/browser/api/paymentHsmClusters/operations.js.map +1 -0
- package/dist/browser/api/paymentHsmClusters/options.d.ts +30 -0
- package/dist/browser/api/paymentHsmClusters/options.js.map +1 -0
- package/dist/browser/api/privateEndpointConnections/index.d.ts +1 -1
- package/dist/browser/api/privateEndpointConnections/index.js.map +1 -1
- package/dist/browser/api/privateEndpointConnections/operations.d.ts +5 -5
- package/dist/browser/api/privateEndpointConnections/operations.js +18 -14
- package/dist/browser/api/privateEndpointConnections/operations.js.map +1 -1
- package/dist/browser/api/privateEndpointConnections/options.d.ts +1 -1
- package/dist/browser/api/privateEndpointConnections/options.js.map +1 -1
- package/dist/browser/azureDedicatedHSMResourceProvider.d.ts +21 -12
- package/dist/browser/azureDedicatedHSMResourceProvider.js +42 -14
- package/dist/browser/azureDedicatedHSMResourceProvider.js.map +1 -1
- package/dist/browser/classic/cloudHsmClusterBackupStatus/index.d.ts +4 -4
- 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.d.ts +4 -9
- 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.d.ts +4 -4
- 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.d.ts +4 -4
- 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.d.ts +5 -10
- 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.d.ts +5 -10
- package/dist/browser/classic/dedicatedHsm/index.js +3 -1
- package/dist/browser/classic/dedicatedHsm/index.js.map +1 -1
- package/dist/browser/classic/index.d.ts +11 -8
- package/dist/browser/classic/index.js.map +1 -1
- package/dist/browser/classic/operations/index.d.ts +4 -4
- package/dist/browser/classic/operations/index.js +3 -1
- package/dist/browser/classic/operations/index.js.map +1 -1
- package/dist/browser/classic/paymentHsmClusterPrivateEndpointConnections/index.d.ts +18 -0
- package/dist/browser/classic/paymentHsmClusterPrivateEndpointConnections/index.js +17 -0
- package/dist/browser/classic/paymentHsmClusterPrivateEndpointConnections/index.js.map +1 -0
- package/dist/browser/classic/paymentHsmClusterPrivateLinkResources/index.d.ts +11 -0
- package/dist/browser/classic/paymentHsmClusterPrivateLinkResources/index.js +14 -0
- package/dist/browser/classic/paymentHsmClusterPrivateLinkResources/index.js.map +1 -0
- package/dist/browser/classic/paymentHsmClusters/index.d.ts +22 -0
- package/dist/browser/classic/paymentHsmClusters/index.js +19 -0
- package/dist/browser/classic/paymentHsmClusters/index.js.map +1 -0
- package/dist/browser/classic/privateEndpointConnections/index.d.ts +4 -4
- package/dist/browser/classic/privateEndpointConnections/index.js +3 -1
- package/dist/browser/classic/privateEndpointConnections/index.js.map +1 -1
- package/dist/browser/index.d.ts +24 -14
- package/dist/browser/index.js +4 -1
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/models/index.d.ts +2 -1
- package/dist/browser/models/index.js +1 -1
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/models.d.ts +273 -48
- package/dist/browser/models/models.js +274 -49
- package/dist/browser/models/models.js.map +1 -1
- package/dist/browser/restorePollerHelpers.d.ts +4 -4
- package/dist/browser/restorePollerHelpers.js +41 -44
- package/dist/browser/restorePollerHelpers.js.map +1 -1
- package/dist/browser/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js +38 -0
- package/dist/browser/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/browser/static-helpers/pagingHelpers.d.ts +3 -1
- package/dist/browser/static-helpers/pagingHelpers.js +59 -53
- package/dist/browser/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/pollingHelpers.d.ts +7 -3
- package/dist/browser/static-helpers/pollingHelpers.js +33 -14
- package/dist/browser/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/browser/static-helpers/urlTemplate.js +43 -12
- package/dist/browser/static-helpers/urlTemplate.js.map +1 -1
- package/dist/commonjs/api/azureDedicatedHSMResourceProviderContext.d.ts +8 -5
- package/dist/commonjs/api/azureDedicatedHSMResourceProviderContext.js +49 -37
- package/dist/commonjs/api/azureDedicatedHSMResourceProviderContext.js.map +7 -1
- package/dist/commonjs/api/cloudHsmClusterBackupStatus/index.d.ts +1 -1
- package/dist/commonjs/api/cloudHsmClusterBackupStatus/index.js +28 -8
- package/dist/commonjs/api/cloudHsmClusterBackupStatus/index.js.map +7 -1
- package/dist/commonjs/api/cloudHsmClusterBackupStatus/operations.d.ts +6 -6
- package/dist/commonjs/api/cloudHsmClusterBackupStatus/operations.js +65 -41
- package/dist/commonjs/api/cloudHsmClusterBackupStatus/operations.js.map +7 -1
- package/dist/commonjs/api/cloudHsmClusterBackupStatus/options.d.ts +1 -3
- package/dist/commonjs/api/cloudHsmClusterBackupStatus/options.js +16 -5
- package/dist/commonjs/api/cloudHsmClusterBackupStatus/options.js.map +7 -1
- package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/index.d.ts +1 -1
- package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/index.js +32 -10
- package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/index.js.map +7 -1
- package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/operations.d.ts +5 -10
- package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/operations.js +151 -105
- package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/operations.js.map +7 -1
- package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/options.d.ts +1 -1
- package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/options.js +16 -5
- package/dist/commonjs/api/cloudHsmClusterPrivateEndpointConnections/options.js.map +7 -1
- package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/index.d.ts +1 -1
- package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/index.js +28 -8
- package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/index.js.map +7 -1
- package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/operations.d.ts +5 -5
- package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/operations.js +72 -32
- package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/operations.js.map +7 -1
- package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/options.d.ts +1 -1
- package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/options.js +16 -5
- package/dist/commonjs/api/cloudHsmClusterPrivateLinkResources/options.js.map +7 -1
- package/dist/commonjs/api/cloudHsmClusterRestoreStatus/index.d.ts +1 -1
- package/dist/commonjs/api/cloudHsmClusterRestoreStatus/index.js +28 -8
- package/dist/commonjs/api/cloudHsmClusterRestoreStatus/index.js.map +7 -1
- package/dist/commonjs/api/cloudHsmClusterRestoreStatus/operations.d.ts +6 -6
- package/dist/commonjs/api/cloudHsmClusterRestoreStatus/operations.js +65 -41
- package/dist/commonjs/api/cloudHsmClusterRestoreStatus/operations.js.map +7 -1
- package/dist/commonjs/api/cloudHsmClusterRestoreStatus/options.d.ts +1 -3
- package/dist/commonjs/api/cloudHsmClusterRestoreStatus/options.js +16 -5
- package/dist/commonjs/api/cloudHsmClusterRestoreStatus/options.js.map +7 -1
- package/dist/commonjs/api/cloudHsmClusters/index.d.ts +1 -1
- package/dist/commonjs/api/cloudHsmClusters/index.js +46 -17
- package/dist/commonjs/api/cloudHsmClusters/index.js.map +7 -1
- package/dist/commonjs/api/cloudHsmClusters/operations.d.ts +6 -11
- package/dist/commonjs/api/cloudHsmClusters/operations.js +437 -296
- package/dist/commonjs/api/cloudHsmClusters/operations.js.map +7 -1
- package/dist/commonjs/api/cloudHsmClusters/options.d.ts +2 -2
- package/dist/commonjs/api/cloudHsmClusters/options.js +16 -5
- package/dist/commonjs/api/cloudHsmClusters/options.js.map +7 -1
- package/dist/commonjs/api/dedicatedHsm/index.d.ts +1 -1
- package/dist/commonjs/api/dedicatedHsm/index.js +40 -14
- package/dist/commonjs/api/dedicatedHsm/index.js.map +7 -1
- package/dist/commonjs/api/dedicatedHsm/operations.d.ts +6 -11
- package/dist/commonjs/api/dedicatedHsm/operations.js +304 -193
- package/dist/commonjs/api/dedicatedHsm/operations.js.map +7 -1
- package/dist/commonjs/api/dedicatedHsm/options.d.ts +1 -1
- package/dist/commonjs/api/dedicatedHsm/options.js +16 -5
- package/dist/commonjs/api/dedicatedHsm/options.js.map +7 -1
- package/dist/commonjs/api/index.d.ts +2 -1
- package/dist/commonjs/api/index.js +28 -8
- package/dist/commonjs/api/index.js.map +7 -1
- package/dist/commonjs/api/operations/index.d.ts +1 -1
- package/dist/commonjs/api/operations/index.js +28 -8
- package/dist/commonjs/api/operations/index.js.map +7 -1
- package/dist/commonjs/api/operations/operations.d.ts +5 -5
- package/dist/commonjs/api/operations/operations.js +67 -27
- package/dist/commonjs/api/operations/operations.js.map +7 -1
- package/dist/commonjs/api/operations/options.d.ts +1 -1
- package/dist/commonjs/api/operations/options.js +16 -5
- package/dist/commonjs/api/operations/options.js.map +7 -1
- package/dist/commonjs/api/paymentHsmClusterPrivateEndpointConnections/index.d.ts +3 -0
- package/dist/commonjs/api/paymentHsmClusterPrivateEndpointConnections/index.js +34 -0
- package/dist/commonjs/api/paymentHsmClusterPrivateEndpointConnections/index.js.map +7 -0
- package/dist/commonjs/api/paymentHsmClusterPrivateEndpointConnections/operations.d.ts +23 -0
- package/dist/commonjs/api/paymentHsmClusterPrivateEndpointConnections/operations.js +219 -0
- package/dist/commonjs/api/paymentHsmClusterPrivateEndpointConnections/operations.js.map +7 -0
- package/dist/commonjs/api/paymentHsmClusterPrivateEndpointConnections/options.d.ts +16 -0
- package/dist/commonjs/api/paymentHsmClusterPrivateEndpointConnections/options.js +16 -0
- package/dist/commonjs/api/paymentHsmClusterPrivateEndpointConnections/options.js.map +7 -0
- package/dist/commonjs/api/paymentHsmClusterPrivateLinkResources/index.d.ts +3 -0
- package/dist/commonjs/api/paymentHsmClusterPrivateLinkResources/index.js +28 -0
- package/dist/commonjs/api/paymentHsmClusterPrivateLinkResources/index.js.map +7 -0
- package/dist/commonjs/api/paymentHsmClusterPrivateLinkResources/operations.d.ts +10 -0
- package/dist/commonjs/api/paymentHsmClusterPrivateLinkResources/operations.js +81 -0
- package/dist/commonjs/api/paymentHsmClusterPrivateLinkResources/operations.js.map +7 -0
- package/dist/commonjs/api/paymentHsmClusterPrivateLinkResources/options.d.ts +5 -0
- package/dist/commonjs/api/paymentHsmClusterPrivateLinkResources/options.js +16 -0
- package/dist/commonjs/api/paymentHsmClusterPrivateLinkResources/options.js.map +7 -0
- package/dist/commonjs/api/paymentHsmClusters/index.d.ts +3 -0
- package/dist/commonjs/api/paymentHsmClusters/index.js +38 -0
- package/dist/commonjs/api/paymentHsmClusters/index.js.map +7 -0
- package/dist/commonjs/api/paymentHsmClusters/operations.d.ts +31 -0
- package/dist/commonjs/api/paymentHsmClusters/operations.js +297 -0
- package/dist/commonjs/api/paymentHsmClusters/operations.js.map +7 -0
- package/dist/commonjs/api/paymentHsmClusters/options.d.ts +30 -0
- package/dist/commonjs/api/paymentHsmClusters/options.js +16 -0
- package/dist/commonjs/api/paymentHsmClusters/options.js.map +7 -0
- package/dist/commonjs/api/privateEndpointConnections/index.d.ts +1 -1
- package/dist/commonjs/api/privateEndpointConnections/index.js +28 -8
- package/dist/commonjs/api/privateEndpointConnections/index.js.map +7 -1
- package/dist/commonjs/api/privateEndpointConnections/operations.d.ts +5 -5
- package/dist/commonjs/api/privateEndpointConnections/operations.js +72 -36
- package/dist/commonjs/api/privateEndpointConnections/operations.js.map +7 -1
- package/dist/commonjs/api/privateEndpointConnections/options.d.ts +1 -1
- package/dist/commonjs/api/privateEndpointConnections/options.js +16 -5
- package/dist/commonjs/api/privateEndpointConnections/options.js.map +7 -1
- package/dist/commonjs/azureDedicatedHSMResourceProvider.d.ts +21 -12
- package/dist/commonjs/azureDedicatedHSMResourceProvider.js +82 -35
- package/dist/commonjs/azureDedicatedHSMResourceProvider.js.map +7 -1
- package/dist/commonjs/classic/cloudHsmClusterBackupStatus/index.d.ts +4 -4
- package/dist/commonjs/classic/cloudHsmClusterBackupStatus/index.js +34 -11
- package/dist/commonjs/classic/cloudHsmClusterBackupStatus/index.js.map +7 -1
- package/dist/commonjs/classic/cloudHsmClusterPrivateEndpointConnections/index.d.ts +4 -9
- package/dist/commonjs/classic/cloudHsmClusterPrivateEndpointConnections/index.js +43 -13
- package/dist/commonjs/classic/cloudHsmClusterPrivateEndpointConnections/index.js.map +7 -1
- package/dist/commonjs/classic/cloudHsmClusterPrivateLinkResources/index.d.ts +4 -4
- package/dist/commonjs/classic/cloudHsmClusterPrivateLinkResources/index.js +34 -11
- package/dist/commonjs/classic/cloudHsmClusterPrivateLinkResources/index.js.map +7 -1
- package/dist/commonjs/classic/cloudHsmClusterRestoreStatus/index.d.ts +4 -4
- package/dist/commonjs/classic/cloudHsmClusterRestoreStatus/index.js +34 -11
- package/dist/commonjs/classic/cloudHsmClusterRestoreStatus/index.js.map +7 -1
- package/dist/commonjs/classic/cloudHsmClusters/index.d.ts +5 -10
- package/dist/commonjs/classic/cloudHsmClusters/index.js +43 -20
- package/dist/commonjs/classic/cloudHsmClusters/index.js.map +7 -1
- package/dist/commonjs/classic/dedicatedHsm/index.d.ts +5 -10
- package/dist/commonjs/classic/dedicatedHsm/index.js +40 -17
- package/dist/commonjs/classic/dedicatedHsm/index.js.map +7 -1
- package/dist/commonjs/classic/index.d.ts +11 -8
- package/dist/commonjs/classic/index.js +16 -5
- package/dist/commonjs/classic/index.js.map +7 -1
- package/dist/commonjs/classic/operations/index.d.ts +4 -4
- package/dist/commonjs/classic/operations/index.js +34 -11
- package/dist/commonjs/classic/operations/index.js.map +7 -1
- package/dist/commonjs/classic/paymentHsmClusterPrivateEndpointConnections/index.d.ts +18 -0
- package/dist/commonjs/classic/paymentHsmClusterPrivateEndpointConnections/index.js +48 -0
- package/dist/commonjs/classic/paymentHsmClusterPrivateEndpointConnections/index.js.map +7 -0
- package/dist/commonjs/classic/paymentHsmClusterPrivateLinkResources/index.d.ts +11 -0
- package/dist/commonjs/classic/paymentHsmClusterPrivateLinkResources/index.js +38 -0
- package/dist/commonjs/classic/paymentHsmClusterPrivateLinkResources/index.js.map +7 -0
- package/dist/commonjs/classic/paymentHsmClusters/index.d.ts +22 -0
- package/dist/commonjs/classic/paymentHsmClusters/index.js +43 -0
- package/dist/commonjs/classic/paymentHsmClusters/index.js.map +7 -0
- package/dist/commonjs/classic/privateEndpointConnections/index.d.ts +4 -4
- package/dist/commonjs/classic/privateEndpointConnections/index.js +34 -11
- package/dist/commonjs/classic/privateEndpointConnections/index.js.map +7 -1
- package/dist/commonjs/index.d.ts +24 -14
- package/dist/commonjs/index.js +78 -26
- package/dist/commonjs/index.js.map +7 -1
- package/dist/commonjs/logger.js +29 -8
- package/dist/commonjs/logger.js.map +7 -1
- package/dist/commonjs/models/index.d.ts +2 -1
- package/dist/commonjs/models/index.js +64 -22
- package/dist/commonjs/models/index.js.map +7 -1
- package/dist/commonjs/models/models.d.ts +273 -48
- package/dist/commonjs/models/models.js +899 -688
- package/dist/commonjs/models/models.js.map +7 -1
- package/dist/commonjs/restorePollerHelpers.d.ts +4 -4
- package/dist/commonjs/restorePollerHelpers.js +132 -125
- package/dist/commonjs/restorePollerHelpers.js.map +7 -1
- package/dist/commonjs/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js +52 -0
- package/dist/commonjs/static-helpers/cloudSettingHelpers.js.map +7 -0
- package/dist/commonjs/static-helpers/pagingHelpers.d.ts +3 -1
- package/dist/commonjs/static-helpers/pagingHelpers.js +131 -128
- package/dist/commonjs/static-helpers/pagingHelpers.js.map +7 -1
- package/dist/commonjs/static-helpers/pollingHelpers.d.ts +7 -3
- package/dist/commonjs/static-helpers/pollingHelpers.js +95 -73
- package/dist/commonjs/static-helpers/pollingHelpers.js.map +7 -1
- package/dist/commonjs/static-helpers/urlTemplate.js +167 -142
- package/dist/commonjs/static-helpers/urlTemplate.js.map +7 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/api/azureDedicatedHSMResourceProviderContext.d.ts +8 -5
- package/dist/esm/api/azureDedicatedHSMResourceProviderContext.js +20 -26
- package/dist/esm/api/azureDedicatedHSMResourceProviderContext.js.map +1 -1
- package/dist/esm/api/cloudHsmClusterBackupStatus/index.d.ts +1 -1
- package/dist/esm/api/cloudHsmClusterBackupStatus/index.js.map +1 -1
- package/dist/esm/api/cloudHsmClusterBackupStatus/operations.d.ts +6 -6
- package/dist/esm/api/cloudHsmClusterBackupStatus/operations.js +19 -21
- package/dist/esm/api/cloudHsmClusterBackupStatus/operations.js.map +1 -1
- package/dist/esm/api/cloudHsmClusterBackupStatus/options.d.ts +1 -3
- package/dist/esm/api/cloudHsmClusterBackupStatus/options.js.map +1 -1
- package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/index.d.ts +1 -1
- package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/index.js.map +1 -1
- package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/operations.d.ts +5 -10
- package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/operations.js +36 -41
- package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/operations.js.map +1 -1
- package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/options.d.ts +1 -1
- package/dist/esm/api/cloudHsmClusterPrivateEndpointConnections/options.js.map +1 -1
- package/dist/esm/api/cloudHsmClusterPrivateLinkResources/index.d.ts +1 -1
- package/dist/esm/api/cloudHsmClusterPrivateLinkResources/index.js.map +1 -1
- package/dist/esm/api/cloudHsmClusterPrivateLinkResources/operations.d.ts +5 -5
- package/dist/esm/api/cloudHsmClusterPrivateLinkResources/operations.js +16 -8
- package/dist/esm/api/cloudHsmClusterPrivateLinkResources/operations.js.map +1 -1
- package/dist/esm/api/cloudHsmClusterPrivateLinkResources/options.d.ts +1 -1
- package/dist/esm/api/cloudHsmClusterPrivateLinkResources/options.js.map +1 -1
- package/dist/esm/api/cloudHsmClusterRestoreStatus/index.d.ts +1 -1
- package/dist/esm/api/cloudHsmClusterRestoreStatus/index.js.map +1 -1
- package/dist/esm/api/cloudHsmClusterRestoreStatus/operations.d.ts +6 -6
- package/dist/esm/api/cloudHsmClusterRestoreStatus/operations.js +19 -21
- package/dist/esm/api/cloudHsmClusterRestoreStatus/operations.js.map +1 -1
- package/dist/esm/api/cloudHsmClusterRestoreStatus/options.d.ts +1 -3
- package/dist/esm/api/cloudHsmClusterRestoreStatus/options.js.map +1 -1
- package/dist/esm/api/cloudHsmClusters/index.d.ts +1 -1
- package/dist/esm/api/cloudHsmClusters/index.js.map +1 -1
- package/dist/esm/api/cloudHsmClusters/operations.d.ts +6 -11
- package/dist/esm/api/cloudHsmClusters/operations.js +162 -123
- package/dist/esm/api/cloudHsmClusters/operations.js.map +1 -1
- package/dist/esm/api/cloudHsmClusters/options.d.ts +2 -2
- package/dist/esm/api/cloudHsmClusters/options.js.map +1 -1
- package/dist/esm/api/dedicatedHsm/index.d.ts +1 -1
- package/dist/esm/api/dedicatedHsm/index.js.map +1 -1
- package/dist/esm/api/dedicatedHsm/operations.d.ts +6 -11
- package/dist/esm/api/dedicatedHsm/operations.js +100 -69
- package/dist/esm/api/dedicatedHsm/operations.js.map +1 -1
- package/dist/esm/api/dedicatedHsm/options.d.ts +1 -1
- package/dist/esm/api/dedicatedHsm/options.js.map +1 -1
- package/dist/esm/api/index.d.ts +2 -1
- package/dist/esm/api/index.js +1 -1
- package/dist/esm/api/index.js.map +1 -1
- package/dist/esm/api/operations/index.d.ts +1 -1
- package/dist/esm/api/operations/index.js.map +1 -1
- package/dist/esm/api/operations/operations.d.ts +5 -5
- package/dist/esm/api/operations/operations.js +16 -8
- package/dist/esm/api/operations/operations.js.map +1 -1
- package/dist/esm/api/operations/options.d.ts +1 -1
- package/dist/esm/api/operations/options.js.map +1 -1
- package/dist/esm/api/paymentHsmClusterPrivateEndpointConnections/index.d.ts +3 -0
- package/dist/esm/api/paymentHsmClusterPrivateEndpointConnections/index.js +4 -0
- package/dist/esm/api/paymentHsmClusterPrivateEndpointConnections/index.js.map +1 -0
- package/dist/esm/api/paymentHsmClusterPrivateEndpointConnections/operations.d.ts +23 -0
- package/dist/esm/api/paymentHsmClusterPrivateEndpointConnections/operations.js +142 -0
- package/dist/esm/api/paymentHsmClusterPrivateEndpointConnections/operations.js.map +1 -0
- package/dist/esm/api/paymentHsmClusterPrivateEndpointConnections/options.d.ts +16 -0
- package/dist/esm/api/paymentHsmClusterPrivateEndpointConnections/options.js.map +1 -0
- package/dist/esm/api/paymentHsmClusterPrivateLinkResources/index.d.ts +3 -0
- package/dist/esm/api/paymentHsmClusterPrivateLinkResources/index.js +4 -0
- package/dist/esm/api/paymentHsmClusterPrivateLinkResources/index.js.map +1 -0
- package/dist/esm/api/paymentHsmClusterPrivateLinkResources/operations.d.ts +10 -0
- package/dist/esm/api/paymentHsmClusterPrivateLinkResources/operations.js +44 -0
- package/dist/esm/api/paymentHsmClusterPrivateLinkResources/operations.js.map +1 -0
- package/dist/esm/api/paymentHsmClusterPrivateLinkResources/options.d.ts +5 -0
- package/dist/esm/api/paymentHsmClusterPrivateLinkResources/options.js.map +1 -0
- package/dist/esm/api/paymentHsmClusters/index.d.ts +3 -0
- package/dist/esm/api/paymentHsmClusters/index.js +4 -0
- package/dist/esm/api/paymentHsmClusters/index.js.map +1 -0
- package/dist/esm/api/paymentHsmClusters/operations.d.ts +31 -0
- package/dist/esm/api/paymentHsmClusters/operations.js +209 -0
- package/dist/esm/api/paymentHsmClusters/operations.js.map +1 -0
- package/dist/esm/api/paymentHsmClusters/options.d.ts +30 -0
- package/dist/esm/api/paymentHsmClusters/options.js.map +1 -0
- package/dist/esm/api/privateEndpointConnections/index.d.ts +1 -1
- package/dist/esm/api/privateEndpointConnections/index.js.map +1 -1
- package/dist/esm/api/privateEndpointConnections/operations.d.ts +5 -5
- package/dist/esm/api/privateEndpointConnections/operations.js +18 -14
- package/dist/esm/api/privateEndpointConnections/operations.js.map +1 -1
- package/dist/esm/api/privateEndpointConnections/options.d.ts +1 -1
- package/dist/esm/api/privateEndpointConnections/options.js.map +1 -1
- package/dist/esm/azureDedicatedHSMResourceProvider.d.ts +21 -12
- package/dist/esm/azureDedicatedHSMResourceProvider.js +42 -14
- package/dist/esm/azureDedicatedHSMResourceProvider.js.map +1 -1
- package/dist/esm/classic/cloudHsmClusterBackupStatus/index.d.ts +4 -4
- 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.d.ts +4 -9
- 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.d.ts +4 -4
- 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.d.ts +4 -4
- 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.d.ts +5 -10
- 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.d.ts +5 -10
- package/dist/esm/classic/dedicatedHsm/index.js +3 -1
- package/dist/esm/classic/dedicatedHsm/index.js.map +1 -1
- package/dist/esm/classic/index.d.ts +11 -8
- package/dist/esm/classic/index.js.map +1 -1
- package/dist/esm/classic/operations/index.d.ts +4 -4
- package/dist/esm/classic/operations/index.js +3 -1
- package/dist/esm/classic/operations/index.js.map +1 -1
- package/dist/esm/classic/paymentHsmClusterPrivateEndpointConnections/index.d.ts +18 -0
- package/dist/esm/classic/paymentHsmClusterPrivateEndpointConnections/index.js +17 -0
- package/dist/esm/classic/paymentHsmClusterPrivateEndpointConnections/index.js.map +1 -0
- package/dist/esm/classic/paymentHsmClusterPrivateLinkResources/index.d.ts +11 -0
- package/dist/esm/classic/paymentHsmClusterPrivateLinkResources/index.js +14 -0
- package/dist/esm/classic/paymentHsmClusterPrivateLinkResources/index.js.map +1 -0
- package/dist/esm/classic/paymentHsmClusters/index.d.ts +22 -0
- package/dist/esm/classic/paymentHsmClusters/index.js +19 -0
- package/dist/esm/classic/paymentHsmClusters/index.js.map +1 -0
- package/dist/esm/classic/privateEndpointConnections/index.d.ts +4 -4
- package/dist/esm/classic/privateEndpointConnections/index.js +3 -1
- package/dist/esm/classic/privateEndpointConnections/index.js.map +1 -1
- package/dist/esm/index.d.ts +24 -14
- package/dist/esm/index.js +4 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/models/index.d.ts +2 -1
- package/dist/esm/models/index.js +1 -1
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/models.d.ts +273 -48
- package/dist/esm/models/models.js +274 -49
- package/dist/esm/models/models.js.map +1 -1
- package/dist/esm/restorePollerHelpers.d.ts +4 -4
- package/dist/esm/restorePollerHelpers.js +41 -44
- package/dist/esm/restorePollerHelpers.js.map +1 -1
- package/dist/esm/static-helpers/cloudSettingHelpers.d.ts +22 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js +38 -0
- package/dist/esm/static-helpers/cloudSettingHelpers.js.map +1 -0
- package/dist/esm/static-helpers/pagingHelpers.d.ts +3 -1
- package/dist/esm/static-helpers/pagingHelpers.js +59 -53
- package/dist/esm/static-helpers/pagingHelpers.js.map +1 -1
- package/dist/esm/static-helpers/pollingHelpers.d.ts +7 -3
- package/dist/esm/static-helpers/pollingHelpers.js +33 -14
- package/dist/esm/static-helpers/pollingHelpers.js.map +1 -1
- package/dist/esm/static-helpers/urlTemplate.js +43 -12
- package/dist/esm/static-helpers/urlTemplate.js.map +1 -1
- package/package.json +91 -108
- package/review/{arm-hardwaresecuritymodules.api.md → arm-hardwaresecuritymodules-node.api.md} +198 -41
- package/dist/react-native/api/azureDedicatedHSMResourceProviderContext.d.ts +0 -19
- package/dist/react-native/api/azureDedicatedHSMResourceProviderContext.js +0 -36
- package/dist/react-native/api/azureDedicatedHSMResourceProviderContext.js.map +0 -1
- package/dist/react-native/api/cloudHsmClusterBackupStatus/index.d.ts +0 -3
- package/dist/react-native/api/cloudHsmClusterBackupStatus/index.js +0 -4
- package/dist/react-native/api/cloudHsmClusterBackupStatus/index.js.map +0 -1
- package/dist/react-native/api/cloudHsmClusterBackupStatus/operations.d.ts +0 -9
- package/dist/react-native/api/cloudHsmClusterBackupStatus/operations.js +0 -42
- package/dist/react-native/api/cloudHsmClusterBackupStatus/operations.js.map +0 -1
- package/dist/react-native/api/cloudHsmClusterBackupStatus/options.d.ts +0 -7
- package/dist/react-native/api/cloudHsmClusterBackupStatus/options.js.map +0 -1
- package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/index.d.ts +0 -3
- package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/index.js +0 -4
- package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/index.js.map +0 -1
- package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/operations.d.ts +0 -23
- package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/operations.js +0 -109
- package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/operations.js.map +0 -1
- package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/options.d.ts +0 -13
- package/dist/react-native/api/cloudHsmClusterPrivateEndpointConnections/options.js.map +0 -1
- package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/index.d.ts +0 -3
- package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/index.js +0 -4
- package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/index.js.map +0 -1
- package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/operations.d.ts +0 -10
- package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/operations.js +0 -36
- package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/operations.js.map +0 -1
- package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/options.d.ts +0 -5
- package/dist/react-native/api/cloudHsmClusterPrivateLinkResources/options.js.map +0 -1
- package/dist/react-native/api/cloudHsmClusterRestoreStatus/index.d.ts +0 -3
- package/dist/react-native/api/cloudHsmClusterRestoreStatus/index.js +0 -4
- package/dist/react-native/api/cloudHsmClusterRestoreStatus/index.js.map +0 -1
- package/dist/react-native/api/cloudHsmClusterRestoreStatus/operations.d.ts +0 -9
- package/dist/react-native/api/cloudHsmClusterRestoreStatus/operations.js +0 -42
- package/dist/react-native/api/cloudHsmClusterRestoreStatus/operations.js.map +0 -1
- package/dist/react-native/api/cloudHsmClusterRestoreStatus/options.d.ts +0 -7
- package/dist/react-native/api/cloudHsmClusterRestoreStatus/options.js.map +0 -1
- package/dist/react-native/api/cloudHsmClusters/index.d.ts +0 -3
- package/dist/react-native/api/cloudHsmClusters/index.js +0 -4
- package/dist/react-native/api/cloudHsmClusters/index.js.map +0 -1
- package/dist/react-native/api/cloudHsmClusters/operations.d.ts +0 -52
- package/dist/react-native/api/cloudHsmClusters/operations.js +0 -324
- package/dist/react-native/api/cloudHsmClusters/operations.js.map +0 -1
- package/dist/react-native/api/cloudHsmClusters/options.d.ts +0 -57
- package/dist/react-native/api/cloudHsmClusters/options.js.map +0 -1
- package/dist/react-native/api/dedicatedHsm/index.d.ts +0 -3
- package/dist/react-native/api/dedicatedHsm/index.js +0 -4
- package/dist/react-native/api/dedicatedHsm/index.js.map +0 -1
- package/dist/react-native/api/dedicatedHsm/operations.d.ts +0 -40
- package/dist/react-native/api/dedicatedHsm/operations.js +0 -215
- package/dist/react-native/api/dedicatedHsm/operations.js.map +0 -1
- package/dist/react-native/api/dedicatedHsm/options.d.ts +0 -33
- package/dist/react-native/api/dedicatedHsm/options.js.map +0 -1
- package/dist/react-native/api/index.d.ts +0 -2
- package/dist/react-native/api/index.js +0 -4
- package/dist/react-native/api/index.js.map +0 -1
- package/dist/react-native/api/operations/index.d.ts +0 -3
- package/dist/react-native/api/operations/index.js +0 -4
- package/dist/react-native/api/operations/index.js.map +0 -1
- package/dist/react-native/api/operations/operations.d.ts +0 -10
- package/dist/react-native/api/operations/operations.js +0 -29
- package/dist/react-native/api/operations/operations.js.map +0 -1
- package/dist/react-native/api/operations/options.d.ts +0 -5
- package/dist/react-native/api/operations/options.js +0 -4
- package/dist/react-native/api/operations/options.js.map +0 -1
- package/dist/react-native/api/privateEndpointConnections/index.d.ts +0 -3
- package/dist/react-native/api/privateEndpointConnections/index.js +0 -4
- package/dist/react-native/api/privateEndpointConnections/index.js.map +0 -1
- package/dist/react-native/api/privateEndpointConnections/operations.d.ts +0 -10
- package/dist/react-native/api/privateEndpointConnections/operations.js +0 -36
- package/dist/react-native/api/privateEndpointConnections/operations.js.map +0 -1
- package/dist/react-native/api/privateEndpointConnections/options.d.ts +0 -5
- package/dist/react-native/api/privateEndpointConnections/options.js +0 -4
- package/dist/react-native/api/privateEndpointConnections/options.js.map +0 -1
- package/dist/react-native/azureDedicatedHSMResourceProvider.d.ts +0 -36
- package/dist/react-native/azureDedicatedHSMResourceProvider.js +0 -33
- package/dist/react-native/azureDedicatedHSMResourceProvider.js.map +0 -1
- package/dist/react-native/classic/cloudHsmClusterBackupStatus/index.d.ts +0 -10
- package/dist/react-native/classic/cloudHsmClusterBackupStatus/index.js +0 -12
- package/dist/react-native/classic/cloudHsmClusterBackupStatus/index.js.map +0 -1
- package/dist/react-native/classic/cloudHsmClusterPrivateEndpointConnections/index.d.ts +0 -20
- package/dist/react-native/classic/cloudHsmClusterPrivateEndpointConnections/index.js +0 -14
- package/dist/react-native/classic/cloudHsmClusterPrivateEndpointConnections/index.js.map +0 -1
- package/dist/react-native/classic/cloudHsmClusterPrivateLinkResources/index.d.ts +0 -11
- package/dist/react-native/classic/cloudHsmClusterPrivateLinkResources/index.js +0 -12
- package/dist/react-native/classic/cloudHsmClusterPrivateLinkResources/index.js.map +0 -1
- package/dist/react-native/classic/cloudHsmClusterRestoreStatus/index.d.ts +0 -10
- package/dist/react-native/classic/cloudHsmClusterRestoreStatus/index.js +0 -12
- package/dist/react-native/classic/cloudHsmClusterRestoreStatus/index.js.map +0 -1
- package/dist/react-native/classic/cloudHsmClusters/index.d.ts +0 -35
- package/dist/react-native/classic/cloudHsmClusters/index.js +0 -21
- package/dist/react-native/classic/cloudHsmClusters/index.js.map +0 -1
- package/dist/react-native/classic/dedicatedHsm/index.d.ts +0 -29
- package/dist/react-native/classic/dedicatedHsm/index.js +0 -18
- package/dist/react-native/classic/dedicatedHsm/index.js.map +0 -1
- package/dist/react-native/classic/index.d.ts +0 -9
- package/dist/react-native/classic/index.js +0 -4
- package/dist/react-native/classic/index.js.map +0 -1
- package/dist/react-native/classic/operations/index.d.ts +0 -11
- package/dist/react-native/classic/operations/index.js +0 -12
- package/dist/react-native/classic/operations/index.js.map +0 -1
- package/dist/react-native/classic/privateEndpointConnections/index.d.ts +0 -11
- package/dist/react-native/classic/privateEndpointConnections/index.js +0 -12
- package/dist/react-native/classic/privateEndpointConnections/index.js.map +0 -1
- package/dist/react-native/index.d.ts +0 -16
- package/dist/react-native/index.js +0 -6
- package/dist/react-native/index.js.map +0 -1
- package/dist/react-native/logger.d.ts +0 -2
- package/dist/react-native/logger.js +0 -5
- package/dist/react-native/logger.js.map +0 -1
- package/dist/react-native/models/index.d.ts +0 -2
- package/dist/react-native/models/index.js +0 -4
- package/dist/react-native/models/index.js.map +0 -1
- package/dist/react-native/models/models.d.ts +0 -751
- package/dist/react-native/models/models.js +0 -747
- package/dist/react-native/models/models.js.map +0 -1
- package/dist/react-native/package.json +0 -3
- package/dist/react-native/restorePollerHelpers.d.ts +0 -21
- package/dist/react-native/restorePollerHelpers.js +0 -133
- package/dist/react-native/restorePollerHelpers.js.map +0 -1
- package/dist/react-native/static-helpers/pagingHelpers.d.ts +0 -72
- package/dist/react-native/static-helpers/pagingHelpers.js +0 -137
- package/dist/react-native/static-helpers/pagingHelpers.js.map +0 -1
- package/dist/react-native/static-helpers/pollingHelpers.d.ts +0 -30
- package/dist/react-native/static-helpers/pollingHelpers.js +0 -76
- package/dist/react-native/static-helpers/pollingHelpers.js.map +0 -1
- package/dist/react-native/static-helpers/urlTemplate.d.ts +0 -5
- package/dist/react-native/static-helpers/urlTemplate.js +0 -169
- package/dist/react-native/static-helpers/urlTemplate.js.map +0 -1
- package/review/arm-hardwaresecuritymodules-api-cloudHsmClusterBackupStatus.api.md +0 -22
- package/review/arm-hardwaresecuritymodules-api-cloudHsmClusterPrivateEndpointConnections.api.md +0 -36
- package/review/arm-hardwaresecuritymodules-api-cloudHsmClusterPrivateLinkResources.api.md +0 -19
- package/review/arm-hardwaresecuritymodules-api-cloudHsmClusterRestoreStatus.api.md +0 -22
- package/review/arm-hardwaresecuritymodules-api-cloudHsmClusters.api.md +0 -96
- package/review/arm-hardwaresecuritymodules-api-dedicatedHsm.api.md +0 -68
- package/review/arm-hardwaresecuritymodules-api-operations.api.md +0 -19
- package/review/arm-hardwaresecuritymodules-api-privateEndpointConnections.api.md +0 -19
- package/review/arm-hardwaresecuritymodules-api.api.md +0 -27
- package/review/arm-hardwaresecuritymodules-models.api.md +0 -471
- /package/dist/{react-native/api/cloudHsmClusterBackupStatus → browser/api/paymentHsmClusterPrivateEndpointConnections}/options.js +0 -0
- /package/dist/{react-native/api/cloudHsmClusterPrivateEndpointConnections → browser/api/paymentHsmClusterPrivateLinkResources}/options.js +0 -0
- /package/dist/{react-native/api/cloudHsmClusterPrivateLinkResources → browser/api/paymentHsmClusters}/options.js +0 -0
- /package/dist/{react-native/api/cloudHsmClusterRestoreStatus → esm/api/paymentHsmClusterPrivateEndpointConnections}/options.js +0 -0
- /package/dist/{react-native/api/cloudHsmClusters → esm/api/paymentHsmClusterPrivateLinkResources}/options.js +0 -0
- /package/dist/{react-native/api/dedicatedHsm → esm/api/paymentHsmClusters}/options.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../../src/api/cloudHsmClusters/operations.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAGlC,OAAO,EACL,yBAAyB,EAEzB,yBAAyB,EACzB,2BAA2B,EAE3B,wCAAwC,EAExC,sCAAsC,EACtC,iCAAiC,EAEjC,wBAAwB,EAExB,kCAAkC,EAElC,yBAAyB,GAC1B,MAAM,wBAAwB,CAAC;AAahC,OAAO,EAEL,uBAAuB,GACxB,MAAM,uCAAuC,CAAC;AAC/C,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,YAAY,CAC1B,OAAe,EACf,iBAAyB,EACzB,mBAA2B,EAC3B,wBAAkD,EAClD,UAAiD,EAAE,cAAc,EAAE,EAAE,EAAE;;IAEvE,MAAM,IAAI,GAAG,iBAAiB,CAC5B,+KAA+K,EAC/K;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,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,cAAc,0CAAE,eAAe;KACxD,CACF,CAAC;IACF,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,iCACzB,mCAAmC,CAAC,OAAO,CAAC,KAC/C,W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,CAAC,IAAI,CAAC,CAAC;AAClD,CAAC;AAED,2CAA2C;AAC3C,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,iBAAyB,EACzB,mBAA2B,EAC3B,UAA6C,EAAE,cAAc,EAAE,EAAE,EAAE;IAEnE,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACxF,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 CloudHsmCluster,\n cloudHsmClusterSerializer,\n cloudHsmClusterDeserializer,\n CloudHsmClusterPatchParameters,\n cloudHsmClusterPatchParametersSerializer,\n _CloudHsmClusterListResult,\n _cloudHsmClusterListResultDeserializer,\n backupRequestPropertiesSerializer,\n BackupResult,\n backupResultDeserializer,\n RestoreRequestProperties,\n restoreRequestPropertiesSerializer,\n RestoreResult,\n restoreResultDeserializer,\n} from \"../../models/models.js\";\nimport {\n CloudHsmClustersRestoreOptionalParams,\n CloudHsmClustersValidateRestorePropertiesOptionalParams,\n CloudHsmClustersBackupOptionalParams,\n CloudHsmClustersValidateBackupPropertiesOptionalParams,\n CloudHsmClustersListBySubscriptionOptionalParams,\n CloudHsmClustersListByResourceGroupOptionalParams,\n CloudHsmClustersDeleteOptionalParams,\n CloudHsmClustersUpdateOptionalParams,\n CloudHsmClustersCreateOrUpdateOptionalParams,\n CloudHsmClustersGetOptionalParams,\n} from \"./options.js\";\nimport {\n PagedAsyncIterableIterator,\n buildPagedAsyncIterator,\n} from \"../../static-helpers/pagingHelpers.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 _restoreSend(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n restoreRequestProperties: RestoreRequestProperties,\n options: CloudHsmClustersRestoreOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/restore{?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).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: restoreRequestPropertiesSerializer(restoreRequestProperties),\n });\n}\n\nexport async function _restoreDeserialize(result: PathUncheckedResponse): Promise<RestoreResult> {\n const expectedStatuses = [\"202\", \"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 restoreResultDeserializer(result.body);\n}\n\n/** Restores all key materials of a specified Cloud HSM Cluster */\nexport function restore(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n restoreRequestProperties: RestoreRequestProperties,\n options: CloudHsmClustersRestoreOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<RestoreResult>, RestoreResult> {\n return getLongRunningPoller(context, _restoreDeserialize, [\"202\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _restoreSend(\n context,\n resourceGroupName,\n cloudHsmClusterName,\n restoreRequestProperties,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<RestoreResult>, RestoreResult>;\n}\n\nexport function _validateRestorePropertiesSend(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n options: CloudHsmClustersValidateRestorePropertiesOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/validateRestoreProperties{?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).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: !options[\"restoreRequestProperties\"]\n ? options[\"restoreRequestProperties\"]\n : restoreRequestPropertiesSerializer(options[\"restoreRequestProperties\"]),\n });\n}\n\nexport async function _validateRestorePropertiesDeserialize(\n result: PathUncheckedResponse,\n): Promise<RestoreResult> {\n const expectedStatuses = [\"202\", \"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 restoreResultDeserializer(result.body);\n}\n\n/** Queued validating pre restore operation */\nexport function validateRestoreProperties(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n options: CloudHsmClustersValidateRestorePropertiesOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<RestoreResult>, RestoreResult> {\n return getLongRunningPoller(context, _validateRestorePropertiesDeserialize, [\"202\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _validateRestorePropertiesSend(context, resourceGroupName, cloudHsmClusterName, options),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<RestoreResult>, RestoreResult>;\n}\n\nexport function _backupSend(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n options: CloudHsmClustersBackupOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/backup{?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).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: !options[\"backupRequestProperties\"]\n ? options[\"backupRequestProperties\"]\n : backupRequestPropertiesSerializer(options[\"backupRequestProperties\"]),\n });\n}\n\nexport async function _backupDeserialize(result: PathUncheckedResponse): Promise<BackupResult> {\n const expectedStatuses = [\"202\", \"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 backupResultDeserializer(result.body);\n}\n\n/** Create a backup of the Cloud HSM Cluster in the specified subscription */\nexport function backup(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n options: CloudHsmClustersBackupOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<BackupResult>, BackupResult> {\n return getLongRunningPoller(context, _backupDeserialize, [\"202\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _backupSend(context, resourceGroupName, cloudHsmClusterName, options),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<BackupResult>, BackupResult>;\n}\n\nexport function _validateBackupPropertiesSend(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n options: CloudHsmClustersValidateBackupPropertiesOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/validateBackupProperties{?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).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: !options[\"backupRequestProperties\"]\n ? options[\"backupRequestProperties\"]\n : backupRequestPropertiesSerializer(options[\"backupRequestProperties\"]),\n });\n}\n\nexport async function _validateBackupPropertiesDeserialize(\n result: PathUncheckedResponse,\n): Promise<BackupResult> {\n const expectedStatuses = [\"202\", \"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 backupResultDeserializer(result.body);\n}\n\n/** Pre Backup operation to validate whether the customer can perform a backup on the Cloud HSM Cluster resource in the specified subscription. */\nexport function validateBackupProperties(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n options: CloudHsmClustersValidateBackupPropertiesOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<BackupResult>, BackupResult> {\n return getLongRunningPoller(context, _validateBackupPropertiesDeserialize, [\"202\", \"200\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _validateBackupPropertiesSend(context, resourceGroupName, cloudHsmClusterName, options),\n resourceLocationConfig: \"azure-async-operation\",\n }) as PollerLike<OperationState<BackupResult>, BackupResult>;\n}\n\nexport function _listBySubscriptionSend(\n context: Client,\n options: CloudHsmClustersListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters{?api%2Dversion,%24skiptoken}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion,\n \"%24skiptoken\": options?.skiptoken,\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 _listBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_CloudHsmClusterListResult> {\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 _cloudHsmClusterListResultDeserializer(result.body);\n}\n\n/** The List operation gets information about the Cloud HSM Clusters associated with the subscription. */\nexport function listBySubscription(\n context: Client,\n options: CloudHsmClustersListBySubscriptionOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<CloudHsmCluster> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionSend(context, options),\n _listBySubscriptionDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _listByResourceGroupSend(\n context: Client,\n resourceGroupName: string,\n options: CloudHsmClustersListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters{?api%2Dversion,%24skiptoken}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n \"api%2Dversion\": context.apiVersion,\n \"%24skiptoken\": options?.skiptoken,\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 _listByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_CloudHsmClusterListResult> {\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 _cloudHsmClusterListResultDeserializer(result.body);\n}\n\n/** The List operation gets information about the Cloud HSM Clusters associated with the subscription and within the specified resource group. */\nexport function listByResourceGroup(\n context: Client,\n resourceGroupName: string,\n options: CloudHsmClustersListByResourceGroupOptionalParams = {\n requestOptions: {},\n },\n): PagedAsyncIterableIterator<CloudHsmCluster> {\n return buildPagedAsyncIterator(\n context,\n () => _listByResourceGroupSend(context, resourceGroupName, options),\n _listByResourceGroupDeserialize,\n [\"200\"],\n { itemName: \"value\", nextLinkName: \"nextLink\" },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n options: CloudHsmClustersDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}{?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).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 specified 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 options: CloudHsmClustersDeleteOptionalParams = { requestOptions: {} },\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, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n body: CloudHsmClusterPatchParameters,\n options: CloudHsmClustersUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}{?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).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: cloudHsmClusterPatchParametersSerializer(body),\n });\n}\n\nexport async function _updateDeserialize(result: PathUncheckedResponse): Promise<CloudHsmCluster> {\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 cloudHsmClusterDeserializer(result.body);\n}\n\n/** Update a Cloud HSM Cluster in the specified subscription. */\nexport function update(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n body: CloudHsmClusterPatchParameters,\n options: CloudHsmClustersUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<CloudHsmCluster>, CloudHsmCluster> {\n return getLongRunningPoller(context, _updateDeserialize, [\"200\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _updateSend(context, resourceGroupName, cloudHsmClusterName, body, options),\n resourceLocationConfig: \"location\",\n }) as PollerLike<OperationState<CloudHsmCluster>, CloudHsmCluster>;\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n body: CloudHsmCluster,\n options: CloudHsmClustersCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}{?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).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: {\n accept: \"application/json\",\n ...options.requestOptions?.headers,\n },\n body: cloudHsmClusterSerializer(body),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<CloudHsmCluster> {\n const expectedStatuses = [\"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n error.details = errorResponseDeserializer(result.body);\n throw error;\n }\n\n return cloudHsmClusterDeserializer(result.body);\n}\n\n/** Create or Update a Cloud HSM Cluster in the specified subscription. */\nexport function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n body: CloudHsmCluster,\n options: CloudHsmClustersCreateOrUpdateOptionalParams = {\n requestOptions: {},\n },\n): PollerLike<OperationState<CloudHsmCluster>, CloudHsmCluster> {\n return getLongRunningPoller(context, _createOrUpdateDeserialize, [\"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createOrUpdateSend(context, resourceGroupName, cloudHsmClusterName, body, options),\n resourceLocationConfig: \"original-uri\",\n }) as PollerLike<OperationState<CloudHsmCluster>, CloudHsmCluster>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n options: CloudHsmClustersGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}{?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 _getDeserialize(result: PathUncheckedResponse): Promise<CloudHsmCluster> {\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 cloudHsmClusterDeserializer(result.body);\n}\n\n/** Gets the specified Cloud HSM Cluster */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n options: CloudHsmClustersGetOptionalParams = { requestOptions: {} },\n): Promise<CloudHsmCluster> {\n const result = await _getSend(context, resourceGroupName, cloudHsmClusterName, options);\n return _getDeserialize(result);\n}\n"]}
|
|
1
|
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,EAAE,OAAO,EAAE;KAC5E,CAAC,CAAC;AACL,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,MAA6B;IACjE,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,IAAI,MAAM,CAAC,IAAI,EAAE,CAAC;YAChB,KAAK,CAAC,OAAO,GAAG,yBAAyB,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACzD,CAAC;QAED,MAAM,KAAK,CAAC;IACd,CAAC;IAED,OAAO,2BAA2B,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAClD,CAAC;AACD,2CAA2C;AAC3C,MAAM,CAAC,KAAK,UAAU,GAAG,CACvB,OAAe,EACf,iBAAyB,EACzB,mBAA2B,EAC3B,UAA6C,EAAE,cAAc,EAAE,EAAE,EAAE;IAEnE,MAAM,MAAM,GAAG,MAAM,QAAQ,CAAC,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,OAAO,CAAC,CAAC;IACxF,OAAO,eAAe,CAAC,MAAM,CAAC,CAAC;AACjC,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { AzureDedicatedHSMResourceProviderContext as Client } from \"../index.js\";\nimport type {\n CloudHsmCluster,\n CloudHsmClusterPatchParameters,\n _CloudHsmClusterListResult,\n BackupResult,\n RestoreRequestProperties,\n RestoreResult,\n} from \"../../models/models.js\";\nimport {\n errorResponseDeserializer,\n cloudHsmClusterSerializer,\n cloudHsmClusterDeserializer,\n cloudHsmClusterPatchParametersSerializer,\n _cloudHsmClusterListResultDeserializer,\n backupRequestPropertiesSerializer,\n backupResultDeserializer,\n restoreRequestPropertiesSerializer,\n restoreResultDeserializer,\n} from \"../../models/models.js\";\nimport type { PagedAsyncIterableIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { buildPagedAsyncIterator } from \"../../static-helpers/pagingHelpers.js\";\nimport { getLongRunningPoller } from \"../../static-helpers/pollingHelpers.js\";\nimport { expandUrlTemplate } from \"../../static-helpers/urlTemplate.js\";\nimport type {\n CloudHsmClustersRestoreOptionalParams,\n CloudHsmClustersValidateRestorePropertiesOptionalParams,\n CloudHsmClustersBackupOptionalParams,\n CloudHsmClustersValidateBackupPropertiesOptionalParams,\n CloudHsmClustersListBySubscriptionOptionalParams,\n CloudHsmClustersListByResourceGroupOptionalParams,\n CloudHsmClustersDeleteOptionalParams,\n CloudHsmClustersUpdateOptionalParams,\n CloudHsmClustersCreateOrUpdateOptionalParams,\n CloudHsmClustersGetOptionalParams,\n} from \"./options.js\";\nimport type { StreamableMethod, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { createRestError, operationOptionsToRequestParameters } from \"@azure-rest/core-client\";\nimport type { PollerLike, OperationState } from \"@azure/core-lro\";\n\nexport function _restoreSend(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n restoreRequestProperties: RestoreRequestProperties,\n options: CloudHsmClustersRestoreOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/restore{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n cloudHsmClusterName: cloudHsmClusterName,\n \"api%2Dversion\": context.apiVersion ?? \"2025-12-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: restoreRequestPropertiesSerializer(restoreRequestProperties),\n });\n}\n\nexport async function _restoreDeserialize(result: PathUncheckedResponse): Promise<RestoreResult> {\n const expectedStatuses = [\"202\", \"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return restoreResultDeserializer(result.body);\n}\n/** Restores all key materials of a specified Cloud HSM Cluster */\nexport function restore(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n restoreRequestProperties: RestoreRequestProperties,\n options: CloudHsmClustersRestoreOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<RestoreResult>, RestoreResult> {\n return getLongRunningPoller(context, _restoreDeserialize, [\"202\", \"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _restoreSend(\n context,\n resourceGroupName,\n cloudHsmClusterName,\n restoreRequestProperties,\n options,\n ),\n resourceLocationConfig: \"azure-async-operation\",\n apiVersion: context.apiVersion ?? \"2025-12-01-preview\",\n }) as PollerLike<OperationState<RestoreResult>, RestoreResult>;\n}\n\nexport function _validateRestorePropertiesSend(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n options: CloudHsmClustersValidateRestorePropertiesOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/validateRestoreProperties{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n cloudHsmClusterName: cloudHsmClusterName,\n \"api%2Dversion\": context.apiVersion ?? \"2025-12-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: !options?.restoreRequestProperties\n ? options?.restoreRequestProperties\n : restoreRequestPropertiesSerializer(options?.restoreRequestProperties),\n });\n}\n\nexport async function _validateRestorePropertiesDeserialize(\n result: PathUncheckedResponse,\n): Promise<RestoreResult> {\n const expectedStatuses = [\"202\", \"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return restoreResultDeserializer(result.body);\n}\n/** Queued validating pre restore operation */\nexport function validateRestoreProperties(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n options: CloudHsmClustersValidateRestorePropertiesOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<RestoreResult>, RestoreResult> {\n return getLongRunningPoller(\n context,\n _validateRestorePropertiesDeserialize,\n [\"202\", \"200\", \"201\"],\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _validateRestorePropertiesSend(context, resourceGroupName, cloudHsmClusterName, options),\n resourceLocationConfig: \"azure-async-operation\",\n apiVersion: context.apiVersion ?? \"2025-12-01-preview\",\n },\n ) as PollerLike<OperationState<RestoreResult>, RestoreResult>;\n}\n\nexport function _backupSend(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n options: CloudHsmClustersBackupOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/backup{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n cloudHsmClusterName: cloudHsmClusterName,\n \"api%2Dversion\": context.apiVersion ?? \"2025-12-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: !options?.backupRequestProperties\n ? options?.backupRequestProperties\n : backupRequestPropertiesSerializer(options?.backupRequestProperties),\n });\n}\n\nexport async function _backupDeserialize(result: PathUncheckedResponse): Promise<BackupResult> {\n const expectedStatuses = [\"202\", \"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return backupResultDeserializer(result.body);\n}\n/** Create a backup of the Cloud HSM Cluster in the specified subscription */\nexport function backup(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n options: CloudHsmClustersBackupOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<BackupResult>, BackupResult> {\n return getLongRunningPoller(context, _backupDeserialize, [\"202\", \"200\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () => _backupSend(context, resourceGroupName, cloudHsmClusterName, options),\n resourceLocationConfig: \"azure-async-operation\",\n apiVersion: context.apiVersion ?? \"2025-12-01-preview\",\n }) as PollerLike<OperationState<BackupResult>, BackupResult>;\n}\n\nexport function _validateBackupPropertiesSend(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n options: CloudHsmClustersValidateBackupPropertiesOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}/validateBackupProperties{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n cloudHsmClusterName: cloudHsmClusterName,\n \"api%2Dversion\": context.apiVersion ?? \"2025-12-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).post({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: !options?.backupRequestProperties\n ? options?.backupRequestProperties\n : backupRequestPropertiesSerializer(options?.backupRequestProperties),\n });\n}\n\nexport async function _validateBackupPropertiesDeserialize(\n result: PathUncheckedResponse,\n): Promise<BackupResult> {\n const expectedStatuses = [\"202\", \"200\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return backupResultDeserializer(result.body);\n}\n/** Pre Backup operation to validate whether the customer can perform a backup on the Cloud HSM Cluster resource in the specified subscription. */\nexport function validateBackupProperties(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n options: CloudHsmClustersValidateBackupPropertiesOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<BackupResult>, BackupResult> {\n return getLongRunningPoller(\n context,\n _validateBackupPropertiesDeserialize,\n [\"202\", \"200\", \"201\"],\n {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _validateBackupPropertiesSend(context, resourceGroupName, cloudHsmClusterName, options),\n resourceLocationConfig: \"azure-async-operation\",\n apiVersion: context.apiVersion ?? \"2025-12-01-preview\",\n },\n ) as PollerLike<OperationState<BackupResult>, BackupResult>;\n}\n\nexport function _listBySubscriptionSend(\n context: Client,\n options: CloudHsmClustersListBySubscriptionOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters{?api%2Dversion,%24skiptoken}\",\n {\n subscriptionId: context.subscriptionId,\n \"api%2Dversion\": context.apiVersion ?? \"2025-12-01-preview\",\n \"%24skiptoken\": options?.skiptoken,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listBySubscriptionDeserialize(\n result: PathUncheckedResponse,\n): Promise<_CloudHsmClusterListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _cloudHsmClusterListResultDeserializer(result.body);\n}\n/** The List operation gets information about the Cloud HSM Clusters associated with the subscription. */\nexport function listBySubscription(\n context: Client,\n options: CloudHsmClustersListBySubscriptionOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<CloudHsmCluster> {\n return buildPagedAsyncIterator(\n context,\n () => _listBySubscriptionSend(context, options),\n _listBySubscriptionDeserialize,\n [\"200\"],\n {\n itemName: \"value\",\n nextLinkName: \"nextLink\",\n apiVersion: context.apiVersion ?? \"2025-12-01-preview\",\n },\n );\n}\n\nexport function _listByResourceGroupSend(\n context: Client,\n resourceGroupName: string,\n options: CloudHsmClustersListByResourceGroupOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters{?api%2Dversion,%24skiptoken}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n \"api%2Dversion\": context.apiVersion ?? \"2025-12-01-preview\",\n \"%24skiptoken\": options?.skiptoken,\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _listByResourceGroupDeserialize(\n result: PathUncheckedResponse,\n): Promise<_CloudHsmClusterListResult> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return _cloudHsmClusterListResultDeserializer(result.body);\n}\n/** The List operation gets information about the Cloud HSM Clusters associated with the subscription and within the specified resource group. */\nexport function listByResourceGroup(\n context: Client,\n resourceGroupName: string,\n options: CloudHsmClustersListByResourceGroupOptionalParams = { requestOptions: {} },\n): PagedAsyncIterableIterator<CloudHsmCluster> {\n return buildPagedAsyncIterator(\n context,\n () => _listByResourceGroupSend(context, resourceGroupName, options),\n _listByResourceGroupDeserialize,\n [\"200\"],\n {\n itemName: \"value\",\n nextLinkName: \"nextLink\",\n apiVersion: context.apiVersion ?? \"2025-12-01-preview\",\n },\n );\n}\n\nexport function _$deleteSend(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n options: CloudHsmClustersDeleteOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n cloudHsmClusterName: cloudHsmClusterName,\n \"api%2Dversion\": context.apiVersion ?? \"2025-12-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });\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 if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return;\n}\n/** Deletes the specified Cloud HSM Cluster */\nexport function $delete(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n options: CloudHsmClustersDeleteOptionalParams = { requestOptions: {} },\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, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2025-12-01-preview\",\n }) as PollerLike<OperationState<void>, void>;\n}\n\nexport function _updateSend(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n body: CloudHsmClusterPatchParameters,\n options: CloudHsmClustersUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n cloudHsmClusterName: cloudHsmClusterName,\n \"api%2Dversion\": context.apiVersion ?? \"2025-12-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).patch({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: cloudHsmClusterPatchParametersSerializer(body),\n });\n}\n\nexport async function _updateDeserialize(result: PathUncheckedResponse): Promise<CloudHsmCluster> {\n const expectedStatuses = [\"200\", \"202\", \"201\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return cloudHsmClusterDeserializer(result.body);\n}\n/** Update a Cloud HSM Cluster in the specified subscription. */\nexport function update(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n body: CloudHsmClusterPatchParameters,\n options: CloudHsmClustersUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<CloudHsmCluster>, CloudHsmCluster> {\n return getLongRunningPoller(context, _updateDeserialize, [\"200\", \"202\", \"201\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _updateSend(context, resourceGroupName, cloudHsmClusterName, body, options),\n resourceLocationConfig: \"location\",\n apiVersion: context.apiVersion ?? \"2025-12-01-preview\",\n }) as PollerLike<OperationState<CloudHsmCluster>, CloudHsmCluster>;\n}\n\nexport function _createOrUpdateSend(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n body: CloudHsmCluster,\n options: CloudHsmClustersCreateOrUpdateOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n cloudHsmClusterName: cloudHsmClusterName,\n \"api%2Dversion\": context.apiVersion ?? \"2025-12-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).put({\n ...operationOptionsToRequestParameters(options),\n contentType: \"application/json\",\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n body: cloudHsmClusterSerializer(body),\n });\n}\n\nexport async function _createOrUpdateDeserialize(\n result: PathUncheckedResponse,\n): Promise<CloudHsmCluster> {\n const expectedStatuses = [\"200\", \"201\", \"202\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return cloudHsmClusterDeserializer(result.body);\n}\n/** Create or Update a Cloud HSM Cluster in the specified subscription. */\nexport function createOrUpdate(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n body: CloudHsmCluster,\n options: CloudHsmClustersCreateOrUpdateOptionalParams = { requestOptions: {} },\n): PollerLike<OperationState<CloudHsmCluster>, CloudHsmCluster> {\n return getLongRunningPoller(context, _createOrUpdateDeserialize, [\"200\", \"201\", \"202\"], {\n updateIntervalInMs: options?.updateIntervalInMs,\n abortSignal: options?.abortSignal,\n getInitialResponse: () =>\n _createOrUpdateSend(context, resourceGroupName, cloudHsmClusterName, body, options),\n resourceLocationConfig: \"original-uri\",\n apiVersion: context.apiVersion ?? \"2025-12-01-preview\",\n }) as PollerLike<OperationState<CloudHsmCluster>, CloudHsmCluster>;\n}\n\nexport function _getSend(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n options: CloudHsmClustersGetOptionalParams = { requestOptions: {} },\n): StreamableMethod {\n const path = expandUrlTemplate(\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/cloudHsmClusters/{cloudHsmClusterName}{?api%2Dversion}\",\n {\n subscriptionId: context.subscriptionId,\n resourceGroupName: resourceGroupName,\n cloudHsmClusterName: cloudHsmClusterName,\n \"api%2Dversion\": context.apiVersion ?? \"2025-12-01-preview\",\n },\n {\n allowReserved: options?.requestOptions?.skipUrlEncoding,\n },\n );\n return context.path(path).get({\n ...operationOptionsToRequestParameters(options),\n headers: { accept: \"application/json\", ...options.requestOptions?.headers },\n });\n}\n\nexport async function _getDeserialize(result: PathUncheckedResponse): Promise<CloudHsmCluster> {\n const expectedStatuses = [\"200\"];\n if (!expectedStatuses.includes(result.status)) {\n const error = createRestError(result);\n if (result.body) {\n error.details = errorResponseDeserializer(result.body);\n }\n\n throw error;\n }\n\n return cloudHsmClusterDeserializer(result.body);\n}\n/** Gets the specified Cloud HSM Cluster */\nexport async function get(\n context: Client,\n resourceGroupName: string,\n cloudHsmClusterName: string,\n options: CloudHsmClustersGetOptionalParams = { requestOptions: {} },\n): Promise<CloudHsmCluster> {\n const result = await _getSend(context, resourceGroupName, cloudHsmClusterName, options);\n return _getDeserialize(result);\n}\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { BackupRequestProperties, RestoreRequestProperties } from "../../models/models.js";
|
|
2
|
-
import { OperationOptions } from "@azure-rest/core-client";
|
|
1
|
+
import type { BackupRequestProperties, RestoreRequestProperties } from "../../models/models.js";
|
|
2
|
+
import type { OperationOptions } from "@azure-rest/core-client";
|
|
3
3
|
/** Optional parameters. */
|
|
4
4
|
export interface CloudHsmClustersRestoreOptionalParams extends OperationOptions {
|
|
5
5
|
/** Delay to wait until next poll, in milliseconds. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/cloudHsmClusters/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport { BackupRequestProperties, RestoreRequestProperties } from \"../../models/models.js\";\nimport { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface CloudHsmClustersRestoreOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n
|
|
1
|
+
{"version":3,"file":"options.js","sourceRoot":"","sources":["../../../../src/api/cloudHsmClusters/options.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nimport type { BackupRequestProperties, RestoreRequestProperties } from \"../../models/models.js\";\nimport type { OperationOptions } from \"@azure-rest/core-client\";\n\n/** Optional parameters. */\nexport interface CloudHsmClustersRestoreOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n/** Optional parameters. */\nexport interface CloudHsmClustersValidateRestorePropertiesOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** Optional Parameters to validate prior performing a restore operation. */\n restoreRequestProperties?: RestoreRequestProperties;\n}\n/** Optional parameters. */\nexport interface CloudHsmClustersBackupOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** Azure storage Resource Uri */\n backupRequestProperties?: BackupRequestProperties;\n}\n/** Optional parameters. */\nexport interface CloudHsmClustersValidateBackupPropertiesOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n /** Backup Operation Required properties */\n backupRequestProperties?: BackupRequestProperties;\n}\n/** Optional parameters. */\nexport interface CloudHsmClustersListBySubscriptionOptionalParams extends OperationOptions {\n /** The page-continuation token to use with a paged version of this API */\n skiptoken?: string;\n}\n/** Optional parameters. */\nexport interface CloudHsmClustersListByResourceGroupOptionalParams extends OperationOptions {\n /** The page-continuation token to use with a paged version of this API */\n skiptoken?: string;\n}\n/** Optional parameters. */\nexport interface CloudHsmClustersDeleteOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n/** Optional parameters. */\nexport interface CloudHsmClustersUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n/** Optional parameters. */\nexport interface CloudHsmClustersCreateOrUpdateOptionalParams extends OperationOptions {\n /** Delay to wait until next poll, in milliseconds. */\n updateIntervalInMs?: number;\n}\n/** Optional parameters. */\nexport interface CloudHsmClustersGetOptionalParams extends OperationOptions {}\n"]}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { listOutboundNetworkDependenciesEndpoints, listBySubscription, listByResourceGroup, $delete, update, createOrUpdate, get, } from "./operations.js";
|
|
2
|
-
export { DedicatedHsmListOutboundNetworkDependenciesEndpointsOptionalParams, DedicatedHsmListBySubscriptionOptionalParams, DedicatedHsmListByResourceGroupOptionalParams, DedicatedHsmDeleteOptionalParams, DedicatedHsmUpdateOptionalParams, DedicatedHsmCreateOrUpdateOptionalParams, DedicatedHsmGetOptionalParams, } from "./options.js";
|
|
2
|
+
export type { DedicatedHsmListOutboundNetworkDependenciesEndpointsOptionalParams, DedicatedHsmListBySubscriptionOptionalParams, DedicatedHsmListByResourceGroupOptionalParams, DedicatedHsmDeleteOptionalParams, DedicatedHsmUpdateOptionalParams, DedicatedHsmCreateOrUpdateOptionalParams, DedicatedHsmGetOptionalParams, } from "./options.js";
|
|
3
3
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/dedicatedHsm/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,wCAAwC,EACxC,kBAAkB,EAClB,mBAAmB,EACnB,OAAO,EACP,MAAM,EACN,cAAc,EACd,GAAG,GACJ,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n listOutboundNetworkDependenciesEndpoints,\n listBySubscription,\n listByResourceGroup,\n $delete,\n update,\n createOrUpdate,\n get,\n} from \"./operations.js\";\nexport {\n DedicatedHsmListOutboundNetworkDependenciesEndpointsOptionalParams,\n DedicatedHsmListBySubscriptionOptionalParams,\n DedicatedHsmListByResourceGroupOptionalParams,\n DedicatedHsmDeleteOptionalParams,\n DedicatedHsmUpdateOptionalParams,\n DedicatedHsmCreateOrUpdateOptionalParams,\n DedicatedHsmGetOptionalParams,\n} from \"./options.js\";\n"]}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/api/dedicatedHsm/index.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EACL,wCAAwC,EACxC,kBAAkB,EAClB,mBAAmB,EACnB,OAAO,EACP,MAAM,EACN,cAAc,EACd,GAAG,GACJ,MAAM,iBAAiB,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\nexport {\n listOutboundNetworkDependenciesEndpoints,\n listBySubscription,\n listByResourceGroup,\n $delete,\n update,\n createOrUpdate,\n get,\n} from \"./operations.js\";\nexport type {\n DedicatedHsmListOutboundNetworkDependenciesEndpointsOptionalParams,\n DedicatedHsmListBySubscriptionOptionalParams,\n DedicatedHsmListByResourceGroupOptionalParams,\n DedicatedHsmDeleteOptionalParams,\n DedicatedHsmUpdateOptionalParams,\n DedicatedHsmCreateOrUpdateOptionalParams,\n DedicatedHsmGetOptionalParams,\n} from \"./options.js\";\n"]}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { AzureDedicatedHSMResourceProviderContext as Client } from "../index.js";
|
|
2
|
-
import { DedicatedHsm, DedicatedHsmPatchParameters, _DedicatedHsmListResult, _OutboundEnvironmentEndpointCollection, OutboundEnvironmentEndpoint } from "../../models/models.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
6
|
-
import { PollerLike, OperationState } from "@azure/core-lro";
|
|
1
|
+
import type { AzureDedicatedHSMResourceProviderContext as Client } from "../index.js";
|
|
2
|
+
import type { DedicatedHsm, DedicatedHsmPatchParameters, _DedicatedHsmListResult, _OutboundEnvironmentEndpointCollection, OutboundEnvironmentEndpoint } from "../../models/models.js";
|
|
3
|
+
import type { PagedAsyncIterableIterator } from "../../static-helpers/pagingHelpers.js";
|
|
4
|
+
import type { DedicatedHsmListOutboundNetworkDependenciesEndpointsOptionalParams, DedicatedHsmListBySubscriptionOptionalParams, DedicatedHsmListByResourceGroupOptionalParams, DedicatedHsmDeleteOptionalParams, DedicatedHsmUpdateOptionalParams, DedicatedHsmCreateOrUpdateOptionalParams, DedicatedHsmGetOptionalParams } from "./options.js";
|
|
5
|
+
import type { StreamableMethod, PathUncheckedResponse } from "@azure-rest/core-client";
|
|
6
|
+
import type { PollerLike, OperationState } from "@azure/core-lro";
|
|
7
7
|
export declare function _listOutboundNetworkDependenciesEndpointsSend(context: Client, resourceGroupName: string, name: string, options?: DedicatedHsmListOutboundNetworkDependenciesEndpointsOptionalParams): StreamableMethod;
|
|
8
8
|
export declare function _listOutboundNetworkDependenciesEndpointsDeserialize(result: PathUncheckedResponse): Promise<_OutboundEnvironmentEndpointCollection>;
|
|
9
9
|
/** Gets a list of egress endpoints (network endpoints of all outbound dependencies) in the specified dedicated hsm resource. The operation returns properties of each egress endpoint. */
|
|
@@ -19,11 +19,6 @@ export declare function listByResourceGroup(context: Client, resourceGroupName:
|
|
|
19
19
|
export declare function _$deleteSend(context: Client, resourceGroupName: string, name: string, options?: DedicatedHsmDeleteOptionalParams): StreamableMethod;
|
|
20
20
|
export declare function _$deleteDeserialize(result: PathUncheckedResponse): Promise<void>;
|
|
21
21
|
/** Deletes the specified Azure Dedicated HSM. */
|
|
22
|
-
/**
|
|
23
|
-
* @fixme delete is a reserved word that cannot be used as an operation name.
|
|
24
|
-
* Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
|
|
25
|
-
* to the operation to override the generated name.
|
|
26
|
-
*/
|
|
27
22
|
export declare function $delete(context: Client, resourceGroupName: string, name: string, options?: DedicatedHsmDeleteOptionalParams): PollerLike<OperationState<void>, void>;
|
|
28
23
|
export declare function _updateSend(context: Client, resourceGroupName: string, name: string, parameters: DedicatedHsmPatchParameters, options?: DedicatedHsmUpdateOptionalParams): StreamableMethod;
|
|
29
24
|
export declare function _updateDeserialize(result: PathUncheckedResponse): Promise<DedicatedHsm>;
|
|
@@ -1,29 +1,33 @@
|
|
|
1
1
|
// Copyright (c) Microsoft Corporation.
|
|
2
2
|
// Licensed under the MIT License.
|
|
3
3
|
import { dedicatedHsmSerializer, dedicatedHsmDeserializer, dedicatedHsmErrorDeserializer, dedicatedHsmPatchParametersSerializer, _dedicatedHsmListResultDeserializer, _outboundEnvironmentEndpointCollectionDeserializer, } from "../../models/models.js";
|
|
4
|
-
import { buildPagedAsyncIterator
|
|
4
|
+
import { buildPagedAsyncIterator } from "../../static-helpers/pagingHelpers.js";
|
|
5
5
|
import { getLongRunningPoller } from "../../static-helpers/pollingHelpers.js";
|
|
6
6
|
import { expandUrlTemplate } from "../../static-helpers/urlTemplate.js";
|
|
7
|
-
import { createRestError, operationOptionsToRequestParameters
|
|
7
|
+
import { createRestError, operationOptionsToRequestParameters } from "@azure-rest/core-client";
|
|
8
8
|
export function _listOutboundNetworkDependenciesEndpointsSend(context, resourceGroupName, name, options = {
|
|
9
9
|
requestOptions: {},
|
|
10
10
|
}) {
|
|
11
|
-
var _a, _b;
|
|
12
11
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}/outboundNetworkDependenciesEndpoints{?api%2Dversion}", {
|
|
13
12
|
subscriptionId: context.subscriptionId,
|
|
14
13
|
resourceGroupName: resourceGroupName,
|
|
15
14
|
name: name,
|
|
16
|
-
"api%2Dversion": context.apiVersion,
|
|
15
|
+
"api%2Dversion": context.apiVersion ?? "2025-12-01-preview",
|
|
17
16
|
}, {
|
|
18
|
-
allowReserved:
|
|
17
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
18
|
+
});
|
|
19
|
+
return context.path(path).get({
|
|
20
|
+
...operationOptionsToRequestParameters(options),
|
|
21
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
19
22
|
});
|
|
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
23
|
}
|
|
22
24
|
export async function _listOutboundNetworkDependenciesEndpointsDeserialize(result) {
|
|
23
25
|
const expectedStatuses = ["200"];
|
|
24
26
|
if (!expectedStatuses.includes(result.status)) {
|
|
25
27
|
const error = createRestError(result);
|
|
26
|
-
|
|
28
|
+
if (result.body) {
|
|
29
|
+
error.details = dedicatedHsmErrorDeserializer(result.body);
|
|
30
|
+
}
|
|
27
31
|
throw error;
|
|
28
32
|
}
|
|
29
33
|
return _outboundEnvironmentEndpointCollectionDeserializer(result.body);
|
|
@@ -32,177 +36,204 @@ export async function _listOutboundNetworkDependenciesEndpointsDeserialize(resul
|
|
|
32
36
|
export function listOutboundNetworkDependenciesEndpoints(context, resourceGroupName, name, options = {
|
|
33
37
|
requestOptions: {},
|
|
34
38
|
}) {
|
|
35
|
-
return buildPagedAsyncIterator(context, () => _listOutboundNetworkDependenciesEndpointsSend(context, resourceGroupName, name, options), _listOutboundNetworkDependenciesEndpointsDeserialize, ["200"], {
|
|
39
|
+
return buildPagedAsyncIterator(context, () => _listOutboundNetworkDependenciesEndpointsSend(context, resourceGroupName, name, options), _listOutboundNetworkDependenciesEndpointsDeserialize, ["200"], {
|
|
40
|
+
itemName: "value",
|
|
41
|
+
nextLinkName: "nextLink",
|
|
42
|
+
apiVersion: context.apiVersion ?? "2025-12-01-preview",
|
|
43
|
+
});
|
|
36
44
|
}
|
|
37
|
-
export function _listBySubscriptionSend(context, options = {
|
|
38
|
-
requestOptions: {},
|
|
39
|
-
}) {
|
|
40
|
-
var _a, _b;
|
|
45
|
+
export function _listBySubscriptionSend(context, options = { requestOptions: {} }) {
|
|
41
46
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs{?api%2Dversion,%24top}", {
|
|
42
47
|
subscriptionId: context.subscriptionId,
|
|
43
|
-
"api%2Dversion": context.apiVersion,
|
|
44
|
-
"%24top": options
|
|
48
|
+
"api%2Dversion": context.apiVersion ?? "2025-12-01-preview",
|
|
49
|
+
"%24top": options?.top,
|
|
45
50
|
}, {
|
|
46
|
-
allowReserved:
|
|
51
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
52
|
+
});
|
|
53
|
+
return context.path(path).get({
|
|
54
|
+
...operationOptionsToRequestParameters(options),
|
|
55
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
47
56
|
});
|
|
48
|
-
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) }));
|
|
49
57
|
}
|
|
50
58
|
export async function _listBySubscriptionDeserialize(result) {
|
|
51
59
|
const expectedStatuses = ["200"];
|
|
52
60
|
if (!expectedStatuses.includes(result.status)) {
|
|
53
61
|
const error = createRestError(result);
|
|
54
|
-
|
|
62
|
+
if (result.body) {
|
|
63
|
+
error.details = dedicatedHsmErrorDeserializer(result.body);
|
|
64
|
+
}
|
|
55
65
|
throw error;
|
|
56
66
|
}
|
|
57
67
|
return _dedicatedHsmListResultDeserializer(result.body);
|
|
58
68
|
}
|
|
59
69
|
/** The List operation gets information about the dedicated HSMs associated with the subscription. */
|
|
60
|
-
export function listBySubscription(context, options = {
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
70
|
+
export function listBySubscription(context, options = { requestOptions: {} }) {
|
|
71
|
+
return buildPagedAsyncIterator(context, () => _listBySubscriptionSend(context, options), _listBySubscriptionDeserialize, ["200"], {
|
|
72
|
+
itemName: "value",
|
|
73
|
+
nextLinkName: "nextLink",
|
|
74
|
+
apiVersion: context.apiVersion ?? "2025-12-01-preview",
|
|
75
|
+
});
|
|
64
76
|
}
|
|
65
|
-
export function _listByResourceGroupSend(context, resourceGroupName, options = {
|
|
66
|
-
requestOptions: {},
|
|
67
|
-
}) {
|
|
68
|
-
var _a, _b;
|
|
77
|
+
export function _listByResourceGroupSend(context, resourceGroupName, options = { requestOptions: {} }) {
|
|
69
78
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs{?api%2Dversion,%24top}", {
|
|
70
79
|
subscriptionId: context.subscriptionId,
|
|
71
80
|
resourceGroupName: resourceGroupName,
|
|
72
|
-
"api%2Dversion": context.apiVersion,
|
|
73
|
-
"%24top": options
|
|
81
|
+
"api%2Dversion": context.apiVersion ?? "2025-12-01-preview",
|
|
82
|
+
"%24top": options?.top,
|
|
74
83
|
}, {
|
|
75
|
-
allowReserved:
|
|
84
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
85
|
+
});
|
|
86
|
+
return context.path(path).get({
|
|
87
|
+
...operationOptionsToRequestParameters(options),
|
|
88
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
76
89
|
});
|
|
77
|
-
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) }));
|
|
78
90
|
}
|
|
79
91
|
export async function _listByResourceGroupDeserialize(result) {
|
|
80
92
|
const expectedStatuses = ["200"];
|
|
81
93
|
if (!expectedStatuses.includes(result.status)) {
|
|
82
94
|
const error = createRestError(result);
|
|
83
|
-
|
|
95
|
+
if (result.body) {
|
|
96
|
+
error.details = dedicatedHsmErrorDeserializer(result.body);
|
|
97
|
+
}
|
|
84
98
|
throw error;
|
|
85
99
|
}
|
|
86
100
|
return _dedicatedHsmListResultDeserializer(result.body);
|
|
87
101
|
}
|
|
88
102
|
/** The List operation gets information about the dedicated HSMs associated with the subscription and within the specified resource group. */
|
|
89
|
-
export function listByResourceGroup(context, resourceGroupName, options = {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
103
|
+
export function listByResourceGroup(context, resourceGroupName, options = { requestOptions: {} }) {
|
|
104
|
+
return buildPagedAsyncIterator(context, () => _listByResourceGroupSend(context, resourceGroupName, options), _listByResourceGroupDeserialize, ["200"], {
|
|
105
|
+
itemName: "value",
|
|
106
|
+
nextLinkName: "nextLink",
|
|
107
|
+
apiVersion: context.apiVersion ?? "2025-12-01-preview",
|
|
108
|
+
});
|
|
93
109
|
}
|
|
94
110
|
export function _$deleteSend(context, resourceGroupName, name, options = { requestOptions: {} }) {
|
|
95
|
-
var _a, _b;
|
|
96
111
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}{?api%2Dversion}", {
|
|
97
112
|
subscriptionId: context.subscriptionId,
|
|
98
113
|
resourceGroupName: resourceGroupName,
|
|
99
114
|
name: name,
|
|
100
|
-
"api%2Dversion": context.apiVersion,
|
|
115
|
+
"api%2Dversion": context.apiVersion ?? "2025-12-01-preview",
|
|
101
116
|
}, {
|
|
102
|
-
allowReserved:
|
|
117
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
103
118
|
});
|
|
104
|
-
return context.path(path).delete(
|
|
119
|
+
return context.path(path).delete({ ...operationOptionsToRequestParameters(options) });
|
|
105
120
|
}
|
|
106
121
|
export async function _$deleteDeserialize(result) {
|
|
107
122
|
const expectedStatuses = ["202", "204", "200"];
|
|
108
123
|
if (!expectedStatuses.includes(result.status)) {
|
|
109
124
|
const error = createRestError(result);
|
|
110
|
-
|
|
125
|
+
if (result.body) {
|
|
126
|
+
error.details = dedicatedHsmErrorDeserializer(result.body);
|
|
127
|
+
}
|
|
111
128
|
throw error;
|
|
112
129
|
}
|
|
113
130
|
return;
|
|
114
131
|
}
|
|
115
132
|
/** Deletes the specified Azure Dedicated HSM. */
|
|
116
|
-
/**
|
|
117
|
-
* @fixme delete is a reserved word that cannot be used as an operation name.
|
|
118
|
-
* Please add @clientName("clientName") or @clientName("<JS-Specific-Name>", "javascript")
|
|
119
|
-
* to the operation to override the generated name.
|
|
120
|
-
*/
|
|
121
133
|
export function $delete(context, resourceGroupName, name, options = { requestOptions: {} }) {
|
|
122
134
|
return getLongRunningPoller(context, _$deleteDeserialize, ["202", "204", "200"], {
|
|
123
|
-
updateIntervalInMs: options
|
|
124
|
-
abortSignal: options
|
|
135
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
136
|
+
abortSignal: options?.abortSignal,
|
|
125
137
|
getInitialResponse: () => _$deleteSend(context, resourceGroupName, name, options),
|
|
126
138
|
resourceLocationConfig: "location",
|
|
139
|
+
apiVersion: context.apiVersion ?? "2025-12-01-preview",
|
|
127
140
|
});
|
|
128
141
|
}
|
|
129
142
|
export function _updateSend(context, resourceGroupName, name, parameters, options = { requestOptions: {} }) {
|
|
130
|
-
var _a, _b;
|
|
131
143
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}{?api%2Dversion}", {
|
|
132
144
|
subscriptionId: context.subscriptionId,
|
|
133
145
|
resourceGroupName: resourceGroupName,
|
|
134
146
|
name: name,
|
|
135
|
-
"api%2Dversion": context.apiVersion,
|
|
147
|
+
"api%2Dversion": context.apiVersion ?? "2025-12-01-preview",
|
|
136
148
|
}, {
|
|
137
|
-
allowReserved:
|
|
149
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
150
|
+
});
|
|
151
|
+
return context.path(path).patch({
|
|
152
|
+
...operationOptionsToRequestParameters(options),
|
|
153
|
+
contentType: "application/json",
|
|
154
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
155
|
+
body: dedicatedHsmPatchParametersSerializer(parameters),
|
|
138
156
|
});
|
|
139
|
-
return context.path(path).patch(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: dedicatedHsmPatchParametersSerializer(parameters) }));
|
|
140
157
|
}
|
|
141
158
|
export async function _updateDeserialize(result) {
|
|
142
|
-
const expectedStatuses = ["200", "202"];
|
|
159
|
+
const expectedStatuses = ["200", "202", "201"];
|
|
143
160
|
if (!expectedStatuses.includes(result.status)) {
|
|
144
161
|
const error = createRestError(result);
|
|
145
|
-
|
|
162
|
+
if (result.body) {
|
|
163
|
+
error.details = dedicatedHsmErrorDeserializer(result.body);
|
|
164
|
+
}
|
|
146
165
|
throw error;
|
|
147
166
|
}
|
|
148
167
|
return dedicatedHsmDeserializer(result.body);
|
|
149
168
|
}
|
|
150
169
|
/** Update a dedicated HSM in the specified subscription. */
|
|
151
170
|
export function update(context, resourceGroupName, name, parameters, options = { requestOptions: {} }) {
|
|
152
|
-
return getLongRunningPoller(context, _updateDeserialize, ["200", "202"], {
|
|
153
|
-
updateIntervalInMs: options
|
|
154
|
-
abortSignal: options
|
|
171
|
+
return getLongRunningPoller(context, _updateDeserialize, ["200", "202", "201"], {
|
|
172
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
173
|
+
abortSignal: options?.abortSignal,
|
|
155
174
|
getInitialResponse: () => _updateSend(context, resourceGroupName, name, parameters, options),
|
|
156
175
|
resourceLocationConfig: "location",
|
|
176
|
+
apiVersion: context.apiVersion ?? "2025-12-01-preview",
|
|
157
177
|
});
|
|
158
178
|
}
|
|
159
179
|
export function _createOrUpdateSend(context, resourceGroupName, name, parameters, options = { requestOptions: {} }) {
|
|
160
|
-
var _a, _b;
|
|
161
180
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}{?api%2Dversion}", {
|
|
162
181
|
subscriptionId: context.subscriptionId,
|
|
163
182
|
resourceGroupName: resourceGroupName,
|
|
164
183
|
name: name,
|
|
165
|
-
"api%2Dversion": context.apiVersion,
|
|
184
|
+
"api%2Dversion": context.apiVersion ?? "2025-12-01-preview",
|
|
166
185
|
}, {
|
|
167
|
-
allowReserved:
|
|
186
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
187
|
+
});
|
|
188
|
+
return context.path(path).put({
|
|
189
|
+
...operationOptionsToRequestParameters(options),
|
|
190
|
+
contentType: "application/json",
|
|
191
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
192
|
+
body: dedicatedHsmSerializer(parameters),
|
|
168
193
|
});
|
|
169
|
-
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: dedicatedHsmSerializer(parameters) }));
|
|
170
194
|
}
|
|
171
195
|
export async function _createOrUpdateDeserialize(result) {
|
|
172
|
-
const expectedStatuses = ["200", "201"];
|
|
196
|
+
const expectedStatuses = ["200", "201", "202"];
|
|
173
197
|
if (!expectedStatuses.includes(result.status)) {
|
|
174
198
|
const error = createRestError(result);
|
|
175
|
-
|
|
199
|
+
if (result.body) {
|
|
200
|
+
error.details = dedicatedHsmErrorDeserializer(result.body);
|
|
201
|
+
}
|
|
176
202
|
throw error;
|
|
177
203
|
}
|
|
178
204
|
return dedicatedHsmDeserializer(result.body);
|
|
179
205
|
}
|
|
180
206
|
/** Create or Update a dedicated HSM in the specified subscription. */
|
|
181
207
|
export function createOrUpdate(context, resourceGroupName, name, parameters, options = { requestOptions: {} }) {
|
|
182
|
-
return getLongRunningPoller(context, _createOrUpdateDeserialize, ["200", "201"], {
|
|
183
|
-
updateIntervalInMs: options
|
|
184
|
-
abortSignal: options
|
|
208
|
+
return getLongRunningPoller(context, _createOrUpdateDeserialize, ["200", "201", "202"], {
|
|
209
|
+
updateIntervalInMs: options?.updateIntervalInMs,
|
|
210
|
+
abortSignal: options?.abortSignal,
|
|
185
211
|
getInitialResponse: () => _createOrUpdateSend(context, resourceGroupName, name, parameters, options),
|
|
186
212
|
resourceLocationConfig: "azure-async-operation",
|
|
213
|
+
apiVersion: context.apiVersion ?? "2025-12-01-preview",
|
|
187
214
|
});
|
|
188
215
|
}
|
|
189
216
|
export function _getSend(context, resourceGroupName, name, options = { requestOptions: {} }) {
|
|
190
|
-
var _a, _b;
|
|
191
217
|
const path = expandUrlTemplate("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HardwareSecurityModules/dedicatedHSMs/{name}{?api%2Dversion}", {
|
|
192
218
|
subscriptionId: context.subscriptionId,
|
|
193
219
|
resourceGroupName: resourceGroupName,
|
|
194
220
|
name: name,
|
|
195
|
-
"api%2Dversion": context.apiVersion,
|
|
221
|
+
"api%2Dversion": context.apiVersion ?? "2025-12-01-preview",
|
|
196
222
|
}, {
|
|
197
|
-
allowReserved:
|
|
223
|
+
allowReserved: options?.requestOptions?.skipUrlEncoding,
|
|
224
|
+
});
|
|
225
|
+
return context.path(path).get({
|
|
226
|
+
...operationOptionsToRequestParameters(options),
|
|
227
|
+
headers: { accept: "application/json", ...options.requestOptions?.headers },
|
|
198
228
|
});
|
|
199
|
-
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) }));
|
|
200
229
|
}
|
|
201
230
|
export async function _getDeserialize(result) {
|
|
202
231
|
const expectedStatuses = ["200"];
|
|
203
232
|
if (!expectedStatuses.includes(result.status)) {
|
|
204
233
|
const error = createRestError(result);
|
|
205
|
-
|
|
234
|
+
if (result.body) {
|
|
235
|
+
error.details = dedicatedHsmErrorDeserializer(result.body);
|
|
236
|
+
}
|
|
206
237
|
throw error;
|
|
207
238
|
}
|
|
208
239
|
return dedicatedHsmDeserializer(result.body);
|