@azure/arm-keyvault 3.2.0-alpha.20251124.1 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -0
- package/dist/browser/index.d.ts.map +1 -1
- package/dist/browser/index.js +4 -7
- package/dist/browser/index.js.map +1 -1
- package/dist/browser/keyVaultManagementClient.d.ts +11 -12
- package/dist/browser/keyVaultManagementClient.d.ts.map +1 -1
- package/dist/browser/keyVaultManagementClient.js +24 -31
- package/dist/browser/keyVaultManagementClient.js.map +1 -1
- package/dist/browser/lroImpl.d.ts +1 -1
- package/dist/browser/lroImpl.d.ts.map +1 -1
- package/dist/browser/lroImpl.js +2 -7
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/index.d.ts +1514 -1451
- package/dist/browser/models/index.d.ts.map +1 -1
- package/dist/browser/models/index.js +204 -201
- package/dist/browser/models/index.js.map +1 -1
- package/dist/browser/models/mappers.d.ts +76 -72
- package/dist/browser/models/mappers.d.ts.map +1 -1
- package/dist/browser/models/mappers.js +1693 -1551
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/models/parameters.d.ts +17 -19
- package/dist/browser/models/parameters.d.ts.map +1 -1
- package/dist/browser/models/parameters.js +107 -132
- package/dist/browser/models/parameters.js.map +1 -1
- package/dist/browser/operations/index.d.ts +6 -6
- package/dist/browser/operations/index.d.ts.map +1 -1
- package/dist/browser/operations/index.js +10 -13
- package/dist/browser/operations/index.js.map +1 -1
- package/dist/browser/operations/keys.d.ts +36 -38
- package/dist/browser/operations/keys.d.ts.map +1 -1
- package/dist/browser/operations/keys.js +71 -78
- package/dist/browser/operations/keys.js.map +1 -1
- package/dist/browser/operations/managedHsmKeys.d.ts +20 -20
- package/dist/browser/operations/managedHsmKeys.d.ts.map +1 -1
- package/dist/browser/operations/managedHsmKeys.js +62 -67
- package/dist/browser/operations/managedHsmKeys.js.map +1 -1
- package/dist/browser/operations/managedHsms.d.ts +77 -77
- package/dist/browser/operations/managedHsms.d.ts.map +1 -1
- package/dist/browser/operations/managedHsms.js +243 -256
- package/dist/browser/operations/managedHsms.js.map +1 -1
- package/dist/browser/operations/mhsmPrivateEndpointConnections.d.ts +19 -19
- package/dist/browser/operations/mhsmPrivateEndpointConnections.d.ts.map +1 -1
- package/dist/browser/operations/mhsmPrivateEndpointConnections.js +28 -32
- package/dist/browser/operations/mhsmPrivateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/mhsmPrivateLinkResources.d.ts +5 -5
- package/dist/browser/operations/mhsmPrivateLinkResources.d.ts.map +1 -1
- package/dist/browser/operations/mhsmPrivateLinkResources.js +5 -10
- package/dist/browser/operations/mhsmPrivateLinkResources.js.map +1 -1
- package/dist/browser/operations/mhsmRegions.d.ts +10 -10
- package/dist/browser/operations/mhsmRegions.d.ts.map +1 -1
- package/dist/browser/operations/mhsmRegions.js +13 -18
- package/dist/browser/operations/mhsmRegions.js.map +1 -1
- package/dist/browser/operations/operations.d.ts +6 -6
- package/dist/browser/operations/operations.d.ts.map +1 -1
- package/dist/browser/operations/operations.js +6 -11
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnections.d.ts +25 -25
- package/dist/browser/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist/browser/operations/privateEndpointConnections.js +56 -60
- package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operations/privateLinkResources.d.ts +5 -5
- package/dist/browser/operations/privateLinkResources.d.ts.map +1 -1
- package/dist/browser/operations/privateLinkResources.js +5 -10
- package/dist/browser/operations/privateLinkResources.js.map +1 -1
- package/dist/browser/operations/secrets.d.ts +30 -32
- package/dist/browser/operations/secrets.d.ts.map +1 -1
- package/dist/browser/operations/secrets.js +67 -74
- package/dist/browser/operations/secrets.js.map +1 -1
- package/dist/browser/operations/vaults.d.ts +72 -72
- package/dist/browser/operations/vaults.d.ts.map +1 -1
- package/dist/browser/operations/vaults.js +242 -261
- package/dist/browser/operations/vaults.js.map +1 -1
- package/dist/browser/operationsInterfaces/index.d.ts +6 -6
- package/dist/browser/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/index.js +10 -13
- package/dist/browser/operationsInterfaces/index.js.map +1 -1
- package/dist/browser/operationsInterfaces/keys.d.ts +20 -22
- package/dist/browser/operationsInterfaces/keys.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/keys.js +2 -7
- package/dist/browser/operationsInterfaces/keys.js.map +1 -1
- package/dist/browser/operationsInterfaces/managedHsmKeys.d.ts +10 -10
- package/dist/browser/operationsInterfaces/managedHsmKeys.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/managedHsmKeys.js +2 -7
- package/dist/browser/operationsInterfaces/managedHsmKeys.js.map +1 -1
- package/dist/browser/operationsInterfaces/managedHsms.d.ts +54 -54
- package/dist/browser/operationsInterfaces/managedHsms.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/managedHsms.js +2 -7
- package/dist/browser/operationsInterfaces/managedHsms.js.map +1 -1
- package/dist/browser/operationsInterfaces/mhsmPrivateEndpointConnections.d.ts +13 -13
- package/dist/browser/operationsInterfaces/mhsmPrivateEndpointConnections.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/mhsmPrivateEndpointConnections.js +2 -7
- package/dist/browser/operationsInterfaces/mhsmPrivateEndpointConnections.js.map +1 -1
- package/dist/browser/operationsInterfaces/mhsmPrivateLinkResources.d.ts +3 -3
- package/dist/browser/operationsInterfaces/mhsmPrivateLinkResources.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/mhsmPrivateLinkResources.js +2 -7
- package/dist/browser/operationsInterfaces/mhsmPrivateLinkResources.js.map +1 -1
- package/dist/browser/operationsInterfaces/mhsmRegions.d.ts +4 -4
- package/dist/browser/operationsInterfaces/mhsmRegions.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/mhsmRegions.js +2 -7
- package/dist/browser/operationsInterfaces/mhsmRegions.js.map +1 -1
- package/dist/browser/operationsInterfaces/operations.d.ts +3 -3
- package/dist/browser/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/operations.js +2 -7
- package/dist/browser/operationsInterfaces/operations.js.map +1 -1
- package/dist/browser/operationsInterfaces/privateEndpointConnections.d.ts +13 -13
- package/dist/browser/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/privateEndpointConnections.js +2 -7
- package/dist/browser/operationsInterfaces/privateEndpointConnections.js.map +1 -1
- package/dist/browser/operationsInterfaces/privateLinkResources.d.ts +3 -3
- package/dist/browser/operationsInterfaces/privateLinkResources.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/privateLinkResources.js +2 -7
- package/dist/browser/operationsInterfaces/privateLinkResources.js.map +1 -1
- package/dist/browser/operationsInterfaces/secrets.d.ts +18 -20
- package/dist/browser/operationsInterfaces/secrets.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/secrets.js +2 -7
- package/dist/browser/operationsInterfaces/secrets.js.map +1 -1
- package/dist/browser/operationsInterfaces/vaults.d.ts +50 -50
- package/dist/browser/operationsInterfaces/vaults.d.ts.map +1 -1
- package/dist/browser/operationsInterfaces/vaults.js +2 -7
- package/dist/browser/operationsInterfaces/vaults.js.map +1 -1
- package/dist/browser/pagingHelper.d.ts.map +1 -1
- package/dist/browser/pagingHelper.js +2 -7
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +4 -7
- package/dist/commonjs/index.js.map +1 -1
- package/dist/commonjs/keyVaultManagementClient.d.ts +11 -12
- package/dist/commonjs/keyVaultManagementClient.d.ts.map +1 -1
- package/dist/commonjs/keyVaultManagementClient.js +23 -30
- package/dist/commonjs/keyVaultManagementClient.js.map +1 -1
- package/dist/commonjs/lroImpl.d.ts +1 -1
- package/dist/commonjs/lroImpl.d.ts.map +1 -1
- package/dist/commonjs/lroImpl.js +2 -7
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +1514 -1451
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +205 -202
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/models/mappers.d.ts +76 -72
- package/dist/commonjs/models/mappers.d.ts.map +1 -1
- package/dist/commonjs/models/mappers.js +1696 -1554
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/models/parameters.d.ts +17 -19
- package/dist/commonjs/models/parameters.d.ts.map +1 -1
- package/dist/commonjs/models/parameters.js +107 -132
- package/dist/commonjs/models/parameters.js.map +1 -1
- package/dist/commonjs/operations/index.d.ts +6 -6
- package/dist/commonjs/operations/index.d.ts.map +1 -1
- package/dist/commonjs/operations/index.js +10 -13
- package/dist/commonjs/operations/index.js.map +1 -1
- package/dist/commonjs/operations/keys.d.ts +36 -38
- package/dist/commonjs/operations/keys.d.ts.map +1 -1
- package/dist/commonjs/operations/keys.js +71 -78
- package/dist/commonjs/operations/keys.js.map +1 -1
- package/dist/commonjs/operations/managedHsmKeys.d.ts +20 -20
- package/dist/commonjs/operations/managedHsmKeys.d.ts.map +1 -1
- package/dist/commonjs/operations/managedHsmKeys.js +62 -67
- package/dist/commonjs/operations/managedHsmKeys.js.map +1 -1
- package/dist/commonjs/operations/managedHsms.d.ts +77 -77
- package/dist/commonjs/operations/managedHsms.d.ts.map +1 -1
- package/dist/commonjs/operations/managedHsms.js +242 -255
- package/dist/commonjs/operations/managedHsms.js.map +1 -1
- package/dist/commonjs/operations/mhsmPrivateEndpointConnections.d.ts +19 -19
- package/dist/commonjs/operations/mhsmPrivateEndpointConnections.d.ts.map +1 -1
- package/dist/commonjs/operations/mhsmPrivateEndpointConnections.js +27 -31
- package/dist/commonjs/operations/mhsmPrivateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/mhsmPrivateLinkResources.d.ts +5 -5
- package/dist/commonjs/operations/mhsmPrivateLinkResources.d.ts.map +1 -1
- package/dist/commonjs/operations/mhsmPrivateLinkResources.js +5 -10
- package/dist/commonjs/operations/mhsmPrivateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/mhsmRegions.d.ts +10 -10
- package/dist/commonjs/operations/mhsmRegions.d.ts.map +1 -1
- package/dist/commonjs/operations/mhsmRegions.js +13 -18
- package/dist/commonjs/operations/mhsmRegions.js.map +1 -1
- package/dist/commonjs/operations/operations.d.ts +6 -6
- package/dist/commonjs/operations/operations.d.ts.map +1 -1
- package/dist/commonjs/operations/operations.js +6 -11
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnections.d.ts +25 -25
- package/dist/commonjs/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnections.js +55 -59
- package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.d.ts +5 -5
- package/dist/commonjs/operations/privateLinkResources.d.ts.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.js +5 -10
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/secrets.d.ts +30 -32
- package/dist/commonjs/operations/secrets.d.ts.map +1 -1
- package/dist/commonjs/operations/secrets.js +67 -74
- package/dist/commonjs/operations/secrets.js.map +1 -1
- package/dist/commonjs/operations/vaults.d.ts +72 -72
- package/dist/commonjs/operations/vaults.d.ts.map +1 -1
- package/dist/commonjs/operations/vaults.js +241 -260
- package/dist/commonjs/operations/vaults.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/index.d.ts +6 -6
- package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/index.js +10 -13
- package/dist/commonjs/operationsInterfaces/index.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/keys.d.ts +20 -22
- package/dist/commonjs/operationsInterfaces/keys.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/keys.js +2 -7
- package/dist/commonjs/operationsInterfaces/keys.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/managedHsmKeys.d.ts +10 -10
- package/dist/commonjs/operationsInterfaces/managedHsmKeys.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/managedHsmKeys.js +2 -7
- package/dist/commonjs/operationsInterfaces/managedHsmKeys.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/managedHsms.d.ts +54 -54
- package/dist/commonjs/operationsInterfaces/managedHsms.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/managedHsms.js +2 -7
- package/dist/commonjs/operationsInterfaces/managedHsms.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/mhsmPrivateEndpointConnections.d.ts +13 -13
- package/dist/commonjs/operationsInterfaces/mhsmPrivateEndpointConnections.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/mhsmPrivateEndpointConnections.js +2 -7
- package/dist/commonjs/operationsInterfaces/mhsmPrivateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/mhsmPrivateLinkResources.d.ts +3 -3
- package/dist/commonjs/operationsInterfaces/mhsmPrivateLinkResources.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/mhsmPrivateLinkResources.js +2 -7
- package/dist/commonjs/operationsInterfaces/mhsmPrivateLinkResources.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/mhsmRegions.d.ts +4 -4
- package/dist/commonjs/operationsInterfaces/mhsmRegions.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/mhsmRegions.js +2 -7
- package/dist/commonjs/operationsInterfaces/mhsmRegions.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/operations.d.ts +3 -3
- package/dist/commonjs/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/operations.js +2 -7
- package/dist/commonjs/operationsInterfaces/operations.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts +13 -13
- package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js +2 -7
- package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/privateLinkResources.d.ts +3 -3
- package/dist/commonjs/operationsInterfaces/privateLinkResources.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/privateLinkResources.js +2 -7
- package/dist/commonjs/operationsInterfaces/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/secrets.d.ts +18 -20
- package/dist/commonjs/operationsInterfaces/secrets.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/secrets.js +2 -7
- package/dist/commonjs/operationsInterfaces/secrets.js.map +1 -1
- package/dist/commonjs/operationsInterfaces/vaults.d.ts +50 -50
- package/dist/commonjs/operationsInterfaces/vaults.d.ts.map +1 -1
- package/dist/commonjs/operationsInterfaces/vaults.js +2 -7
- package/dist/commonjs/operationsInterfaces/vaults.js.map +1 -1
- package/dist/commonjs/pagingHelper.d.ts.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -7
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +4 -7
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/keyVaultManagementClient.d.ts +11 -12
- package/dist/esm/keyVaultManagementClient.d.ts.map +1 -1
- package/dist/esm/keyVaultManagementClient.js +24 -31
- package/dist/esm/keyVaultManagementClient.js.map +1 -1
- package/dist/esm/lroImpl.d.ts +1 -1
- package/dist/esm/lroImpl.d.ts.map +1 -1
- package/dist/esm/lroImpl.js +2 -7
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/index.d.ts +1514 -1451
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +204 -201
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/models/mappers.d.ts +76 -72
- package/dist/esm/models/mappers.d.ts.map +1 -1
- package/dist/esm/models/mappers.js +1693 -1551
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/models/parameters.d.ts +17 -19
- package/dist/esm/models/parameters.d.ts.map +1 -1
- package/dist/esm/models/parameters.js +107 -132
- package/dist/esm/models/parameters.js.map +1 -1
- package/dist/esm/operations/index.d.ts +6 -6
- package/dist/esm/operations/index.d.ts.map +1 -1
- package/dist/esm/operations/index.js +10 -13
- package/dist/esm/operations/index.js.map +1 -1
- package/dist/esm/operations/keys.d.ts +36 -38
- package/dist/esm/operations/keys.d.ts.map +1 -1
- package/dist/esm/operations/keys.js +71 -78
- package/dist/esm/operations/keys.js.map +1 -1
- package/dist/esm/operations/managedHsmKeys.d.ts +20 -20
- package/dist/esm/operations/managedHsmKeys.d.ts.map +1 -1
- package/dist/esm/operations/managedHsmKeys.js +62 -67
- package/dist/esm/operations/managedHsmKeys.js.map +1 -1
- package/dist/esm/operations/managedHsms.d.ts +77 -77
- package/dist/esm/operations/managedHsms.d.ts.map +1 -1
- package/dist/esm/operations/managedHsms.js +243 -256
- package/dist/esm/operations/managedHsms.js.map +1 -1
- package/dist/esm/operations/mhsmPrivateEndpointConnections.d.ts +19 -19
- package/dist/esm/operations/mhsmPrivateEndpointConnections.d.ts.map +1 -1
- package/dist/esm/operations/mhsmPrivateEndpointConnections.js +28 -32
- package/dist/esm/operations/mhsmPrivateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/mhsmPrivateLinkResources.d.ts +5 -5
- package/dist/esm/operations/mhsmPrivateLinkResources.d.ts.map +1 -1
- package/dist/esm/operations/mhsmPrivateLinkResources.js +5 -10
- package/dist/esm/operations/mhsmPrivateLinkResources.js.map +1 -1
- package/dist/esm/operations/mhsmRegions.d.ts +10 -10
- package/dist/esm/operations/mhsmRegions.d.ts.map +1 -1
- package/dist/esm/operations/mhsmRegions.js +13 -18
- package/dist/esm/operations/mhsmRegions.js.map +1 -1
- package/dist/esm/operations/operations.d.ts +6 -6
- package/dist/esm/operations/operations.d.ts.map +1 -1
- package/dist/esm/operations/operations.js +6 -11
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnections.d.ts +25 -25
- package/dist/esm/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist/esm/operations/privateEndpointConnections.js +56 -60
- package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operations/privateLinkResources.d.ts +5 -5
- package/dist/esm/operations/privateLinkResources.d.ts.map +1 -1
- package/dist/esm/operations/privateLinkResources.js +5 -10
- package/dist/esm/operations/privateLinkResources.js.map +1 -1
- package/dist/esm/operations/secrets.d.ts +30 -32
- package/dist/esm/operations/secrets.d.ts.map +1 -1
- package/dist/esm/operations/secrets.js +67 -74
- package/dist/esm/operations/secrets.js.map +1 -1
- package/dist/esm/operations/vaults.d.ts +72 -72
- package/dist/esm/operations/vaults.d.ts.map +1 -1
- package/dist/esm/operations/vaults.js +242 -261
- package/dist/esm/operations/vaults.js.map +1 -1
- package/dist/esm/operationsInterfaces/index.d.ts +6 -6
- package/dist/esm/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/index.js +10 -13
- package/dist/esm/operationsInterfaces/index.js.map +1 -1
- package/dist/esm/operationsInterfaces/keys.d.ts +20 -22
- package/dist/esm/operationsInterfaces/keys.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/keys.js +2 -7
- package/dist/esm/operationsInterfaces/keys.js.map +1 -1
- package/dist/esm/operationsInterfaces/managedHsmKeys.d.ts +10 -10
- package/dist/esm/operationsInterfaces/managedHsmKeys.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/managedHsmKeys.js +2 -7
- package/dist/esm/operationsInterfaces/managedHsmKeys.js.map +1 -1
- package/dist/esm/operationsInterfaces/managedHsms.d.ts +54 -54
- package/dist/esm/operationsInterfaces/managedHsms.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/managedHsms.js +2 -7
- package/dist/esm/operationsInterfaces/managedHsms.js.map +1 -1
- package/dist/esm/operationsInterfaces/mhsmPrivateEndpointConnections.d.ts +13 -13
- package/dist/esm/operationsInterfaces/mhsmPrivateEndpointConnections.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/mhsmPrivateEndpointConnections.js +2 -7
- package/dist/esm/operationsInterfaces/mhsmPrivateEndpointConnections.js.map +1 -1
- package/dist/esm/operationsInterfaces/mhsmPrivateLinkResources.d.ts +3 -3
- package/dist/esm/operationsInterfaces/mhsmPrivateLinkResources.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/mhsmPrivateLinkResources.js +2 -7
- package/dist/esm/operationsInterfaces/mhsmPrivateLinkResources.js.map +1 -1
- package/dist/esm/operationsInterfaces/mhsmRegions.d.ts +4 -4
- package/dist/esm/operationsInterfaces/mhsmRegions.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/mhsmRegions.js +2 -7
- package/dist/esm/operationsInterfaces/mhsmRegions.js.map +1 -1
- package/dist/esm/operationsInterfaces/operations.d.ts +3 -3
- package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/operations.js +2 -7
- package/dist/esm/operationsInterfaces/operations.js.map +1 -1
- package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts +13 -13
- package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/privateEndpointConnections.js +2 -7
- package/dist/esm/operationsInterfaces/privateEndpointConnections.js.map +1 -1
- package/dist/esm/operationsInterfaces/privateLinkResources.d.ts +3 -3
- package/dist/esm/operationsInterfaces/privateLinkResources.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/privateLinkResources.js +2 -7
- package/dist/esm/operationsInterfaces/privateLinkResources.js.map +1 -1
- package/dist/esm/operationsInterfaces/secrets.d.ts +18 -20
- package/dist/esm/operationsInterfaces/secrets.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/secrets.js +2 -7
- package/dist/esm/operationsInterfaces/secrets.js.map +1 -1
- package/dist/esm/operationsInterfaces/vaults.d.ts +50 -50
- package/dist/esm/operationsInterfaces/vaults.d.ts.map +1 -1
- package/dist/esm/operationsInterfaces/vaults.js +2 -7
- package/dist/esm/operationsInterfaces/vaults.js.map +1 -1
- package/dist/esm/pagingHelper.d.ts.map +1 -1
- package/dist/esm/pagingHelper.js +2 -7
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/index.d.ts.map +1 -1
- package/dist/react-native/index.js +4 -7
- package/dist/react-native/index.js.map +1 -1
- package/dist/react-native/keyVaultManagementClient.d.ts +11 -12
- package/dist/react-native/keyVaultManagementClient.d.ts.map +1 -1
- package/dist/react-native/keyVaultManagementClient.js +24 -31
- package/dist/react-native/keyVaultManagementClient.js.map +1 -1
- package/dist/react-native/lroImpl.d.ts +1 -1
- package/dist/react-native/lroImpl.d.ts.map +1 -1
- package/dist/react-native/lroImpl.js +2 -7
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/index.d.ts +1514 -1451
- package/dist/react-native/models/index.d.ts.map +1 -1
- package/dist/react-native/models/index.js +204 -201
- package/dist/react-native/models/index.js.map +1 -1
- package/dist/react-native/models/mappers.d.ts +76 -72
- package/dist/react-native/models/mappers.d.ts.map +1 -1
- package/dist/react-native/models/mappers.js +1693 -1551
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/models/parameters.d.ts +17 -19
- package/dist/react-native/models/parameters.d.ts.map +1 -1
- package/dist/react-native/models/parameters.js +107 -132
- package/dist/react-native/models/parameters.js.map +1 -1
- package/dist/react-native/operations/index.d.ts +6 -6
- package/dist/react-native/operations/index.d.ts.map +1 -1
- package/dist/react-native/operations/index.js +10 -13
- package/dist/react-native/operations/index.js.map +1 -1
- package/dist/react-native/operations/keys.d.ts +36 -38
- package/dist/react-native/operations/keys.d.ts.map +1 -1
- package/dist/react-native/operations/keys.js +71 -78
- package/dist/react-native/operations/keys.js.map +1 -1
- package/dist/react-native/operations/managedHsmKeys.d.ts +20 -20
- package/dist/react-native/operations/managedHsmKeys.d.ts.map +1 -1
- package/dist/react-native/operations/managedHsmKeys.js +62 -67
- package/dist/react-native/operations/managedHsmKeys.js.map +1 -1
- package/dist/react-native/operations/managedHsms.d.ts +77 -77
- package/dist/react-native/operations/managedHsms.d.ts.map +1 -1
- package/dist/react-native/operations/managedHsms.js +243 -256
- package/dist/react-native/operations/managedHsms.js.map +1 -1
- package/dist/react-native/operations/mhsmPrivateEndpointConnections.d.ts +19 -19
- package/dist/react-native/operations/mhsmPrivateEndpointConnections.d.ts.map +1 -1
- package/dist/react-native/operations/mhsmPrivateEndpointConnections.js +28 -32
- package/dist/react-native/operations/mhsmPrivateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/mhsmPrivateLinkResources.d.ts +5 -5
- package/dist/react-native/operations/mhsmPrivateLinkResources.d.ts.map +1 -1
- package/dist/react-native/operations/mhsmPrivateLinkResources.js +5 -10
- package/dist/react-native/operations/mhsmPrivateLinkResources.js.map +1 -1
- package/dist/react-native/operations/mhsmRegions.d.ts +10 -10
- package/dist/react-native/operations/mhsmRegions.d.ts.map +1 -1
- package/dist/react-native/operations/mhsmRegions.js +13 -18
- package/dist/react-native/operations/mhsmRegions.js.map +1 -1
- package/dist/react-native/operations/operations.d.ts +6 -6
- package/dist/react-native/operations/operations.d.ts.map +1 -1
- package/dist/react-native/operations/operations.js +6 -11
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnections.d.ts +25 -25
- package/dist/react-native/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist/react-native/operations/privateEndpointConnections.js +56 -60
- package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operations/privateLinkResources.d.ts +5 -5
- package/dist/react-native/operations/privateLinkResources.d.ts.map +1 -1
- package/dist/react-native/operations/privateLinkResources.js +5 -10
- package/dist/react-native/operations/privateLinkResources.js.map +1 -1
- package/dist/react-native/operations/secrets.d.ts +30 -32
- package/dist/react-native/operations/secrets.d.ts.map +1 -1
- package/dist/react-native/operations/secrets.js +67 -74
- package/dist/react-native/operations/secrets.js.map +1 -1
- package/dist/react-native/operations/vaults.d.ts +72 -72
- package/dist/react-native/operations/vaults.d.ts.map +1 -1
- package/dist/react-native/operations/vaults.js +242 -261
- package/dist/react-native/operations/vaults.js.map +1 -1
- package/dist/react-native/operationsInterfaces/index.d.ts +6 -6
- package/dist/react-native/operationsInterfaces/index.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/index.js +10 -13
- package/dist/react-native/operationsInterfaces/index.js.map +1 -1
- package/dist/react-native/operationsInterfaces/keys.d.ts +20 -22
- package/dist/react-native/operationsInterfaces/keys.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/keys.js +2 -7
- package/dist/react-native/operationsInterfaces/keys.js.map +1 -1
- package/dist/react-native/operationsInterfaces/managedHsmKeys.d.ts +10 -10
- package/dist/react-native/operationsInterfaces/managedHsmKeys.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/managedHsmKeys.js +2 -7
- package/dist/react-native/operationsInterfaces/managedHsmKeys.js.map +1 -1
- package/dist/react-native/operationsInterfaces/managedHsms.d.ts +54 -54
- package/dist/react-native/operationsInterfaces/managedHsms.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/managedHsms.js +2 -7
- package/dist/react-native/operationsInterfaces/managedHsms.js.map +1 -1
- package/dist/react-native/operationsInterfaces/mhsmPrivateEndpointConnections.d.ts +13 -13
- package/dist/react-native/operationsInterfaces/mhsmPrivateEndpointConnections.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/mhsmPrivateEndpointConnections.js +2 -7
- package/dist/react-native/operationsInterfaces/mhsmPrivateEndpointConnections.js.map +1 -1
- package/dist/react-native/operationsInterfaces/mhsmPrivateLinkResources.d.ts +3 -3
- package/dist/react-native/operationsInterfaces/mhsmPrivateLinkResources.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/mhsmPrivateLinkResources.js +2 -7
- package/dist/react-native/operationsInterfaces/mhsmPrivateLinkResources.js.map +1 -1
- package/dist/react-native/operationsInterfaces/mhsmRegions.d.ts +4 -4
- package/dist/react-native/operationsInterfaces/mhsmRegions.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/mhsmRegions.js +2 -7
- package/dist/react-native/operationsInterfaces/mhsmRegions.js.map +1 -1
- package/dist/react-native/operationsInterfaces/operations.d.ts +3 -3
- package/dist/react-native/operationsInterfaces/operations.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/operations.js +2 -7
- package/dist/react-native/operationsInterfaces/operations.js.map +1 -1
- package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts +13 -13
- package/dist/react-native/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/privateEndpointConnections.js +2 -7
- package/dist/react-native/operationsInterfaces/privateEndpointConnections.js.map +1 -1
- package/dist/react-native/operationsInterfaces/privateLinkResources.d.ts +3 -3
- package/dist/react-native/operationsInterfaces/privateLinkResources.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/privateLinkResources.js +2 -7
- package/dist/react-native/operationsInterfaces/privateLinkResources.js.map +1 -1
- package/dist/react-native/operationsInterfaces/secrets.d.ts +18 -20
- package/dist/react-native/operationsInterfaces/secrets.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/secrets.js +2 -7
- package/dist/react-native/operationsInterfaces/secrets.js.map +1 -1
- package/dist/react-native/operationsInterfaces/vaults.d.ts +50 -50
- package/dist/react-native/operationsInterfaces/vaults.d.ts.map +1 -1
- package/dist/react-native/operationsInterfaces/vaults.js +2 -7
- package/dist/react-native/operationsInterfaces/vaults.js.map +1 -1
- package/dist/react-native/pagingHelper.d.ts.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -7
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +41 -42
- package/CHANGELOG.md +0 -121
- package/review/arm-keyvault-node.api.md +0 -1722
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
-
import { ManagedHsmKeys } from "../operationsInterfaces/index.js";
|
|
3
|
-
import { KeyVaultManagementClient } from "../keyVaultManagementClient.js";
|
|
4
|
-
import { ManagedHsmKey, ManagedHsmKeysListOptionalParams, ManagedHsmKeysListVersionsOptionalParams,
|
|
1
|
+
import type { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
2
|
+
import type { ManagedHsmKeys } from "../operationsInterfaces/index.js";
|
|
3
|
+
import type { KeyVaultManagementClient } from "../keyVaultManagementClient.js";
|
|
4
|
+
import type { ManagedHsmKey, ManagedHsmKeysListOptionalParams, ManagedHsmKeysListVersionsOptionalParams, ManagedHsmKeysGetOptionalParams, ManagedHsmKeysGetResponse, ManagedHsmKeyCreateParameters, ManagedHsmKeysCreateIfNotExistOptionalParams, ManagedHsmKeysCreateIfNotExistResponse, ManagedHsmKeysGetVersionOptionalParams, ManagedHsmKeysGetVersionResponse } from "../models/index.js";
|
|
5
5
|
/** Class containing ManagedHsmKeys operations. */
|
|
6
6
|
export declare class ManagedHsmKeysImpl implements ManagedHsmKeys {
|
|
7
7
|
private readonly client;
|
|
@@ -20,7 +20,7 @@ export declare class ManagedHsmKeysImpl implements ManagedHsmKeys {
|
|
|
20
20
|
private listPagingPage;
|
|
21
21
|
private listPagingAll;
|
|
22
22
|
/**
|
|
23
|
-
* Lists the
|
|
23
|
+
* Lists the keys in the specified managed HSM.
|
|
24
24
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
25
25
|
* @param name The name of the Managed HSM Pool within the specified resource group.
|
|
26
26
|
* @param keyName The name of the key to be created. The value you provide may be copied globally for
|
|
@@ -32,18 +32,12 @@ export declare class ManagedHsmKeysImpl implements ManagedHsmKeys {
|
|
|
32
32
|
private listVersionsPagingPage;
|
|
33
33
|
private listVersionsPagingAll;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
36
|
-
* key is returned without any write operations being performed. This API does not create subsequent
|
|
37
|
-
* versions, and does not update existing keys.
|
|
35
|
+
* Lists the keys in the specified managed HSM.
|
|
38
36
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
39
37
|
* @param name The name of the Managed HSM Pool within the specified resource group.
|
|
40
|
-
* @param keyName The name of the key to be created. The value you provide may be copied globally for
|
|
41
|
-
* the purpose of running the service. The value provided should not include personally identifiable or
|
|
42
|
-
* sensitive information.
|
|
43
|
-
* @param parameters The parameters used to create the specified key.
|
|
44
38
|
* @param options The options parameters.
|
|
45
39
|
*/
|
|
46
|
-
|
|
40
|
+
private _list;
|
|
47
41
|
/**
|
|
48
42
|
* Gets the current version of the specified key from the specified managed HSM.
|
|
49
43
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -55,33 +49,39 @@ export declare class ManagedHsmKeysImpl implements ManagedHsmKeys {
|
|
|
55
49
|
*/
|
|
56
50
|
get(resourceGroupName: string, name: string, keyName: string, options?: ManagedHsmKeysGetOptionalParams): Promise<ManagedHsmKeysGetResponse>;
|
|
57
51
|
/**
|
|
58
|
-
*
|
|
52
|
+
* Creates the first version of a new key if it does not exist. If it already exists, then the existing
|
|
53
|
+
* key is returned without any write operations being performed. This API does not create subsequent
|
|
54
|
+
* versions, and does not update existing keys.
|
|
59
55
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
60
56
|
* @param name The name of the Managed HSM Pool within the specified resource group.
|
|
57
|
+
* @param keyName The name of the key to be created. The value you provide may be copied globally for
|
|
58
|
+
* the purpose of running the service. The value provided should not include personally identifiable or
|
|
59
|
+
* sensitive information.
|
|
60
|
+
* @param parameters The parameters used to create the specified key.
|
|
61
61
|
* @param options The options parameters.
|
|
62
62
|
*/
|
|
63
|
-
|
|
63
|
+
createIfNotExist(resourceGroupName: string, name: string, keyName: string, parameters: ManagedHsmKeyCreateParameters, options?: ManagedHsmKeysCreateIfNotExistOptionalParams): Promise<ManagedHsmKeysCreateIfNotExistResponse>;
|
|
64
64
|
/**
|
|
65
|
-
*
|
|
65
|
+
* Lists the keys in the specified managed HSM.
|
|
66
66
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
67
67
|
* @param name The name of the Managed HSM Pool within the specified resource group.
|
|
68
68
|
* @param keyName The name of the key to be created. The value you provide may be copied globally for
|
|
69
69
|
* the purpose of running the service. The value provided should not include personally identifiable or
|
|
70
70
|
* sensitive information.
|
|
71
|
-
* @param keyVersion The version of the key to be retrieved.
|
|
72
71
|
* @param options The options parameters.
|
|
73
72
|
*/
|
|
74
|
-
|
|
73
|
+
private _listVersions;
|
|
75
74
|
/**
|
|
76
|
-
*
|
|
75
|
+
* Gets the specified version of the specified key in the specified managed HSM.
|
|
77
76
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
78
77
|
* @param name The name of the Managed HSM Pool within the specified resource group.
|
|
79
78
|
* @param keyName The name of the key to be created. The value you provide may be copied globally for
|
|
80
79
|
* the purpose of running the service. The value provided should not include personally identifiable or
|
|
81
80
|
* sensitive information.
|
|
81
|
+
* @param keyVersion The version of the key to be retrieved.
|
|
82
82
|
* @param options The options parameters.
|
|
83
83
|
*/
|
|
84
|
-
|
|
84
|
+
getVersion(resourceGroupName: string, name: string, keyName: string, keyVersion: string, options?: ManagedHsmKeysGetVersionOptionalParams): Promise<ManagedHsmKeysGetVersionResponse>;
|
|
85
85
|
/**
|
|
86
86
|
* ListNext
|
|
87
87
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"managedHsmKeys.d.ts","sourceRoot":"","sources":["../../../src/operations/managedHsmKeys.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"managedHsmKeys.d.ts","sourceRoot":"","sources":["../../../src/operations/managedHsmKeys.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAEnF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAIvE,OAAO,KAAK,EAAE,wBAAwB,EAA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E,MAAM,EACzB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,UAAU,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,sCAAsC,GAC/C,OAAO,CAAC,gCAAgC,CAAC;IAO5C;;;;;;OAMG;IACH,OAAO,CAAC,SAAS;IAYjB;;;;;;;;;OASG;IACH,OAAO,CAAC,iBAAiB;CAY1B"}
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
* Licensed under the MIT License.
|
|
5
|
-
*
|
|
6
|
-
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
8
|
-
*/
|
|
2
|
+
// Copyright (c) Microsoft Corporation.
|
|
3
|
+
// Licensed under the MIT License.
|
|
9
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
5
|
exports.ManagedHsmKeysImpl = void 0;
|
|
11
6
|
const tslib_1 = require("tslib");
|
|
@@ -52,7 +47,7 @@ class ManagedHsmKeysImpl {
|
|
|
52
47
|
let continuationToken = settings?.continuationToken;
|
|
53
48
|
if (!continuationToken) {
|
|
54
49
|
result = await this._list(resourceGroupName, name, options);
|
|
55
|
-
|
|
50
|
+
const page = result.value || [];
|
|
56
51
|
continuationToken = result.nextLink;
|
|
57
52
|
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
58
53
|
yield page;
|
|
@@ -60,7 +55,7 @@ class ManagedHsmKeysImpl {
|
|
|
60
55
|
while (continuationToken) {
|
|
61
56
|
result = await this._listNext(resourceGroupName, name, continuationToken, options);
|
|
62
57
|
continuationToken = result.nextLink;
|
|
63
|
-
|
|
58
|
+
const page = result.value || [];
|
|
64
59
|
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
65
60
|
yield page;
|
|
66
61
|
}
|
|
@@ -71,7 +66,7 @@ class ManagedHsmKeysImpl {
|
|
|
71
66
|
}
|
|
72
67
|
}
|
|
73
68
|
/**
|
|
74
|
-
* Lists the
|
|
69
|
+
* Lists the keys in the specified managed HSM.
|
|
75
70
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
76
71
|
* @param name The name of the Managed HSM Pool within the specified resource group.
|
|
77
72
|
* @param keyName The name of the key to be created. The value you provide may be copied globally for
|
|
@@ -101,7 +96,7 @@ class ManagedHsmKeysImpl {
|
|
|
101
96
|
let continuationToken = settings?.continuationToken;
|
|
102
97
|
if (!continuationToken) {
|
|
103
98
|
result = await this._listVersions(resourceGroupName, name, keyName, options);
|
|
104
|
-
|
|
99
|
+
const page = result.value || [];
|
|
105
100
|
continuationToken = result.nextLink;
|
|
106
101
|
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
107
102
|
yield page;
|
|
@@ -109,7 +104,7 @@ class ManagedHsmKeysImpl {
|
|
|
109
104
|
while (continuationToken) {
|
|
110
105
|
result = await this._listVersionsNext(resourceGroupName, name, keyName, continuationToken, options);
|
|
111
106
|
continuationToken = result.nextLink;
|
|
112
|
-
|
|
107
|
+
const page = result.value || [];
|
|
113
108
|
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
114
109
|
yield page;
|
|
115
110
|
}
|
|
@@ -120,19 +115,13 @@ class ManagedHsmKeysImpl {
|
|
|
120
115
|
}
|
|
121
116
|
}
|
|
122
117
|
/**
|
|
123
|
-
*
|
|
124
|
-
* key is returned without any write operations being performed. This API does not create subsequent
|
|
125
|
-
* versions, and does not update existing keys.
|
|
118
|
+
* Lists the keys in the specified managed HSM.
|
|
126
119
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
127
120
|
* @param name The name of the Managed HSM Pool within the specified resource group.
|
|
128
|
-
* @param keyName The name of the key to be created. The value you provide may be copied globally for
|
|
129
|
-
* the purpose of running the service. The value provided should not include personally identifiable or
|
|
130
|
-
* sensitive information.
|
|
131
|
-
* @param parameters The parameters used to create the specified key.
|
|
132
121
|
* @param options The options parameters.
|
|
133
122
|
*/
|
|
134
|
-
|
|
135
|
-
return this.client.sendOperationRequest({ resourceGroupName, name,
|
|
123
|
+
_list(resourceGroupName, name, options) {
|
|
124
|
+
return this.client.sendOperationRequest({ resourceGroupName, name, options }, listOperationSpec);
|
|
136
125
|
}
|
|
137
126
|
/**
|
|
138
127
|
* Gets the current version of the specified key from the specified managed HSM.
|
|
@@ -147,38 +136,44 @@ class ManagedHsmKeysImpl {
|
|
|
147
136
|
return this.client.sendOperationRequest({ resourceGroupName, name, keyName, options }, getOperationSpec);
|
|
148
137
|
}
|
|
149
138
|
/**
|
|
150
|
-
*
|
|
139
|
+
* Creates the first version of a new key if it does not exist. If it already exists, then the existing
|
|
140
|
+
* key is returned without any write operations being performed. This API does not create subsequent
|
|
141
|
+
* versions, and does not update existing keys.
|
|
151
142
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
152
143
|
* @param name The name of the Managed HSM Pool within the specified resource group.
|
|
144
|
+
* @param keyName The name of the key to be created. The value you provide may be copied globally for
|
|
145
|
+
* the purpose of running the service. The value provided should not include personally identifiable or
|
|
146
|
+
* sensitive information.
|
|
147
|
+
* @param parameters The parameters used to create the specified key.
|
|
153
148
|
* @param options The options parameters.
|
|
154
149
|
*/
|
|
155
|
-
|
|
156
|
-
return this.client.sendOperationRequest({ resourceGroupName, name, options },
|
|
150
|
+
createIfNotExist(resourceGroupName, name, keyName, parameters, options) {
|
|
151
|
+
return this.client.sendOperationRequest({ resourceGroupName, name, keyName, parameters, options }, createIfNotExistOperationSpec);
|
|
157
152
|
}
|
|
158
153
|
/**
|
|
159
|
-
*
|
|
154
|
+
* Lists the keys in the specified managed HSM.
|
|
160
155
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
161
156
|
* @param name The name of the Managed HSM Pool within the specified resource group.
|
|
162
157
|
* @param keyName The name of the key to be created. The value you provide may be copied globally for
|
|
163
158
|
* the purpose of running the service. The value provided should not include personally identifiable or
|
|
164
159
|
* sensitive information.
|
|
165
|
-
* @param keyVersion The version of the key to be retrieved.
|
|
166
160
|
* @param options The options parameters.
|
|
167
161
|
*/
|
|
168
|
-
|
|
169
|
-
return this.client.sendOperationRequest({ resourceGroupName, name, keyName,
|
|
162
|
+
_listVersions(resourceGroupName, name, keyName, options) {
|
|
163
|
+
return this.client.sendOperationRequest({ resourceGroupName, name, keyName, options }, listVersionsOperationSpec);
|
|
170
164
|
}
|
|
171
165
|
/**
|
|
172
|
-
*
|
|
166
|
+
* Gets the specified version of the specified key in the specified managed HSM.
|
|
173
167
|
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
174
168
|
* @param name The name of the Managed HSM Pool within the specified resource group.
|
|
175
169
|
* @param keyName The name of the key to be created. The value you provide may be copied globally for
|
|
176
170
|
* the purpose of running the service. The value provided should not include personally identifiable or
|
|
177
171
|
* sensitive information.
|
|
172
|
+
* @param keyVersion The version of the key to be retrieved.
|
|
178
173
|
* @param options The options parameters.
|
|
179
174
|
*/
|
|
180
|
-
|
|
181
|
-
return this.client.sendOperationRequest({ resourceGroupName, name, keyName, options },
|
|
175
|
+
getVersion(resourceGroupName, name, keyName, keyVersion, options) {
|
|
176
|
+
return this.client.sendOperationRequest({ resourceGroupName, name, keyName, keyVersion, options }, getVersionOperationSpec);
|
|
182
177
|
}
|
|
183
178
|
/**
|
|
184
179
|
* ListNext
|
|
@@ -207,28 +202,25 @@ class ManagedHsmKeysImpl {
|
|
|
207
202
|
exports.ManagedHsmKeysImpl = ManagedHsmKeysImpl;
|
|
208
203
|
// Operation Specifications
|
|
209
204
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
210
|
-
const
|
|
211
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/keys
|
|
212
|
-
httpMethod: "
|
|
205
|
+
const listOperationSpec = {
|
|
206
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/keys",
|
|
207
|
+
httpMethod: "GET",
|
|
213
208
|
responses: {
|
|
214
209
|
200: {
|
|
215
|
-
bodyMapper: Mappers.
|
|
210
|
+
bodyMapper: Mappers.ManagedHsmKeyListResult,
|
|
216
211
|
},
|
|
217
212
|
default: {
|
|
218
213
|
bodyMapper: Mappers.CloudError,
|
|
219
214
|
},
|
|
220
215
|
},
|
|
221
|
-
requestBody: Parameters.parameters1,
|
|
222
216
|
queryParameters: [Parameters.apiVersion],
|
|
223
217
|
urlParameters: [
|
|
224
218
|
Parameters.$host,
|
|
225
219
|
Parameters.subscriptionId,
|
|
226
|
-
Parameters.
|
|
227
|
-
Parameters.
|
|
228
|
-
Parameters.name,
|
|
220
|
+
Parameters.resourceGroupName,
|
|
221
|
+
Parameters.name1,
|
|
229
222
|
],
|
|
230
|
-
headerParameters: [Parameters.
|
|
231
|
-
mediaType: "json",
|
|
223
|
+
headerParameters: [Parameters.accept],
|
|
232
224
|
serializer,
|
|
233
225
|
};
|
|
234
226
|
const getOperationSpec = {
|
|
@@ -246,40 +238,43 @@ const getOperationSpec = {
|
|
|
246
238
|
urlParameters: [
|
|
247
239
|
Parameters.$host,
|
|
248
240
|
Parameters.subscriptionId,
|
|
241
|
+
Parameters.resourceGroupName,
|
|
242
|
+
Parameters.name1,
|
|
249
243
|
Parameters.keyName,
|
|
250
|
-
Parameters.resourceGroupName1,
|
|
251
|
-
Parameters.name,
|
|
252
244
|
],
|
|
253
245
|
headerParameters: [Parameters.accept],
|
|
254
246
|
serializer,
|
|
255
247
|
};
|
|
256
|
-
const
|
|
257
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/keys",
|
|
258
|
-
httpMethod: "
|
|
248
|
+
const createIfNotExistOperationSpec = {
|
|
249
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/keys/{keyName}",
|
|
250
|
+
httpMethod: "PUT",
|
|
259
251
|
responses: {
|
|
260
252
|
200: {
|
|
261
|
-
bodyMapper: Mappers.
|
|
253
|
+
bodyMapper: Mappers.ManagedHsmKey,
|
|
262
254
|
},
|
|
263
255
|
default: {
|
|
264
256
|
bodyMapper: Mappers.CloudError,
|
|
265
257
|
},
|
|
266
258
|
},
|
|
259
|
+
requestBody: Parameters.parameters4,
|
|
267
260
|
queryParameters: [Parameters.apiVersion],
|
|
268
261
|
urlParameters: [
|
|
269
262
|
Parameters.$host,
|
|
270
263
|
Parameters.subscriptionId,
|
|
271
|
-
Parameters.
|
|
272
|
-
Parameters.
|
|
264
|
+
Parameters.resourceGroupName,
|
|
265
|
+
Parameters.name1,
|
|
266
|
+
Parameters.keyName,
|
|
273
267
|
],
|
|
274
|
-
headerParameters: [Parameters.accept],
|
|
268
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
269
|
+
mediaType: "json",
|
|
275
270
|
serializer,
|
|
276
271
|
};
|
|
277
|
-
const
|
|
278
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/keys/{keyName}/versions
|
|
272
|
+
const listVersionsOperationSpec = {
|
|
273
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/keys/{keyName}/versions",
|
|
279
274
|
httpMethod: "GET",
|
|
280
275
|
responses: {
|
|
281
276
|
200: {
|
|
282
|
-
bodyMapper: Mappers.
|
|
277
|
+
bodyMapper: Mappers.ManagedHsmKeyListResult,
|
|
283
278
|
},
|
|
284
279
|
default: {
|
|
285
280
|
bodyMapper: Mappers.CloudError,
|
|
@@ -289,20 +284,19 @@ const getVersionOperationSpec = {
|
|
|
289
284
|
urlParameters: [
|
|
290
285
|
Parameters.$host,
|
|
291
286
|
Parameters.subscriptionId,
|
|
287
|
+
Parameters.resourceGroupName,
|
|
288
|
+
Parameters.name1,
|
|
292
289
|
Parameters.keyName,
|
|
293
|
-
Parameters.keyVersion,
|
|
294
|
-
Parameters.resourceGroupName1,
|
|
295
|
-
Parameters.name,
|
|
296
290
|
],
|
|
297
291
|
headerParameters: [Parameters.accept],
|
|
298
292
|
serializer,
|
|
299
293
|
};
|
|
300
|
-
const
|
|
301
|
-
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/keys/{keyName}/versions",
|
|
294
|
+
const getVersionOperationSpec = {
|
|
295
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/keys/{keyName}/versions/{keyVersion}",
|
|
302
296
|
httpMethod: "GET",
|
|
303
297
|
responses: {
|
|
304
298
|
200: {
|
|
305
|
-
bodyMapper: Mappers.
|
|
299
|
+
bodyMapper: Mappers.ManagedHsmKey,
|
|
306
300
|
},
|
|
307
301
|
default: {
|
|
308
302
|
bodyMapper: Mappers.CloudError,
|
|
@@ -312,9 +306,10 @@ const listVersionsOperationSpec = {
|
|
|
312
306
|
urlParameters: [
|
|
313
307
|
Parameters.$host,
|
|
314
308
|
Parameters.subscriptionId,
|
|
309
|
+
Parameters.resourceGroupName,
|
|
310
|
+
Parameters.name1,
|
|
315
311
|
Parameters.keyName,
|
|
316
|
-
Parameters.
|
|
317
|
-
Parameters.name,
|
|
312
|
+
Parameters.keyVersion,
|
|
318
313
|
],
|
|
319
314
|
headerParameters: [Parameters.accept],
|
|
320
315
|
serializer,
|
|
@@ -332,10 +327,10 @@ const listNextOperationSpec = {
|
|
|
332
327
|
},
|
|
333
328
|
urlParameters: [
|
|
334
329
|
Parameters.$host,
|
|
335
|
-
Parameters.subscriptionId,
|
|
336
330
|
Parameters.nextLink,
|
|
337
|
-
Parameters.
|
|
338
|
-
Parameters.
|
|
331
|
+
Parameters.subscriptionId,
|
|
332
|
+
Parameters.resourceGroupName,
|
|
333
|
+
Parameters.name1,
|
|
339
334
|
],
|
|
340
335
|
headerParameters: [Parameters.accept],
|
|
341
336
|
serializer,
|
|
@@ -353,11 +348,11 @@ const listVersionsNextOperationSpec = {
|
|
|
353
348
|
},
|
|
354
349
|
urlParameters: [
|
|
355
350
|
Parameters.$host,
|
|
351
|
+
Parameters.nextLink,
|
|
356
352
|
Parameters.subscriptionId,
|
|
353
|
+
Parameters.resourceGroupName,
|
|
354
|
+
Parameters.name1,
|
|
357
355
|
Parameters.keyName,
|
|
358
|
-
Parameters.nextLink,
|
|
359
|
-
Parameters.resourceGroupName1,
|
|
360
|
-
Parameters.name,
|
|
361
356
|
],
|
|
362
357
|
headerParameters: [Parameters.accept],
|
|
363
358
|
serializer,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"managedHsmKeys.js","sourceRoot":"","sources":["../../../src/operations/managedHsmKeys.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAqBtD,4CAA4C;AAC5C,kDAAkD;AAClD,MAAa,kBAAkB;IACZ,MAAM,CAA2B;IAElD;;;OAGG;IACH,YAAY,MAAgC;QAC1C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,IAAY,EACZ,OAA0C;QAE1C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAClE,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gB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AAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,IAAI;KAChB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,6BAA6B,GAA6B;IAC9D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,OAAO;QAClB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,kBAAkB;QAC7B,UAAU,CAAC,IAAI;KAChB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ManagedHsmKeys } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { KeyVaultManagementClient } from \"../keyVaultManagementClient.js\";\nimport {\n ManagedHsmKey,\n ManagedHsmKeysListNextOptionalParams,\n ManagedHsmKeysListOptionalParams,\n ManagedHsmKeysListResponse,\n ManagedHsmKeysListVersionsNextOptionalParams,\n ManagedHsmKeysListVersionsOptionalParams,\n ManagedHsmKeysListVersionsResponse,\n ManagedHsmKeyCreateParameters,\n ManagedHsmKeysCreateIfNotExistOptionalParams,\n ManagedHsmKeysCreateIfNotExistResponse,\n ManagedHsmKeysGetOptionalParams,\n ManagedHsmKeysGetResponse,\n ManagedHsmKeysGetVersionOptionalParams,\n ManagedHsmKeysGetVersionResponse,\n ManagedHsmKeysListNextResponse,\n ManagedHsmKeysListVersionsNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ManagedHsmKeys operations. */\nexport class ManagedHsmKeysImpl implements ManagedHsmKeys {\n private readonly client: KeyVaultManagementClient;\n\n /**\n * Initialize a new instance of the class ManagedHsmKeys class.\n * @param client Reference to the service client\n */\n constructor(client: KeyVaultManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the keys in the specified managed HSM.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param name The name of the Managed HSM Pool within the specified resource group.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n name: string,\n options?: ManagedHsmKeysListOptionalParams,\n ): PagedAsyncIterableIterator<ManagedHsmKey> {\n const iter = this.listPagingAll(resourceGroupName, name, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(resourceGroupName, name, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n name: string,\n options?: ManagedHsmKeysListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ManagedHsmKey[]> {\n let result: ManagedHsmKeysListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, name, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(\n resourceGroupName,\n name,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n name: string,\n options?: ManagedHsmKeysListOptionalParams,\n ): AsyncIterableIterator<ManagedHsmKey> {\n for await (const page of this.listPagingPage(\n resourceGroupName,\n name,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the versions of the specified key in the specified managed HSM.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param name The name of the Managed HSM Pool within the specified resource group.\n * @param keyName The name of the key to be created. The value you provide may be copied globally for\n * the purpose of running the service. The value provided should not include personally identifiable or\n * sensitive information.\n * @param options The options parameters.\n */\n public listVersions(\n resourceGroupName: string,\n name: string,\n keyName: string,\n options?: ManagedHsmKeysListVersionsOptionalParams,\n ): PagedAsyncIterableIterator<ManagedHsmKey> {\n const iter = this.listVersionsPagingAll(\n resourceGroupName,\n name,\n keyName,\n options,\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listVersionsPagingPage(\n resourceGroupName,\n name,\n keyName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listVersionsPagingPage(\n resourceGroupName: string,\n name: string,\n keyName: string,\n options?: ManagedHsmKeysListVersionsOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ManagedHsmKey[]> {\n let result: ManagedHsmKeysListVersionsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listVersions(\n resourceGroupName,\n name,\n keyName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listVersionsNext(\n resourceGroupName,\n name,\n keyName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listVersionsPagingAll(\n resourceGroupName: string,\n name: string,\n keyName: string,\n options?: ManagedHsmKeysListVersionsOptionalParams,\n ): AsyncIterableIterator<ManagedHsmKey> {\n for await (const page of this.listVersionsPagingPage(\n resourceGroupName,\n name,\n keyName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates the first version of a new key if it does not exist. If it already exists, then the existing\n * key is returned without any write operations being performed. This API does not create subsequent\n * versions, and does not update existing keys.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param name The name of the Managed HSM Pool within the specified resource group.\n * @param keyName The name of the key to be created. The value you provide may be copied globally for\n * the purpose of running the service. The value provided should not include personally identifiable or\n * sensitive information.\n * @param parameters The parameters used to create the specified key.\n * @param options The options parameters.\n */\n createIfNotExist(\n resourceGroupName: string,\n name: string,\n keyName: string,\n parameters: ManagedHsmKeyCreateParameters,\n options?: ManagedHsmKeysCreateIfNotExistOptionalParams,\n ): Promise<ManagedHsmKeysCreateIfNotExistResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, name, keyName, parameters, options },\n createIfNotExistOperationSpec,\n );\n }\n\n /**\n * Gets the current version of the specified key from the specified managed HSM.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param name The name of the Managed HSM Pool within the specified resource group.\n * @param keyName The name of the key to be created. The value you provide may be copied globally for\n * the purpose of running the service. The value provided should not include personally identifiable or\n * sensitive information.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n name: string,\n keyName: string,\n options?: ManagedHsmKeysGetOptionalParams,\n ): Promise<ManagedHsmKeysGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, name, keyName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Lists the keys in the specified managed HSM.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param name The name of the Managed HSM Pool within the specified resource group.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n name: string,\n options?: ManagedHsmKeysListOptionalParams,\n ): Promise<ManagedHsmKeysListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, name, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the specified version of the specified key in the specified managed HSM.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param name The name of the Managed HSM Pool within the specified resource group.\n * @param keyName The name of the key to be created. The value you provide may be copied globally for\n * the purpose of running the service. The value provided should not include personally identifiable or\n * sensitive information.\n * @param keyVersion The version of the key to be retrieved.\n * @param options The options parameters.\n */\n getVersion(\n resourceGroupName: string,\n name: string,\n keyName: string,\n keyVersion: string,\n options?: ManagedHsmKeysGetVersionOptionalParams,\n ): Promise<ManagedHsmKeysGetVersionResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, name, keyName, keyVersion, options },\n getVersionOperationSpec,\n );\n }\n\n /**\n * Lists the versions of the specified key in the specified managed HSM.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param name The name of the Managed HSM Pool within the specified resource group.\n * @param keyName The name of the key to be created. The value you provide may be copied globally for\n * the purpose of running the service. The value provided should not include personally identifiable or\n * sensitive information.\n * @param options The options parameters.\n */\n private _listVersions(\n resourceGroupName: string,\n name: string,\n keyName: string,\n options?: ManagedHsmKeysListVersionsOptionalParams,\n ): Promise<ManagedHsmKeysListVersionsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, name, keyName, options },\n listVersionsOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param name The name of the Managed HSM Pool within the specified resource group.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n name: string,\n nextLink: string,\n options?: ManagedHsmKeysListNextOptionalParams,\n ): Promise<ManagedHsmKeysListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, name, nextLink, options },\n listNextOperationSpec,\n );\n }\n\n /**\n * ListVersionsNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param name The name of the Managed HSM Pool within the specified resource group.\n * @param keyName The name of the key to be created. The value you provide may be copied globally for\n * the purpose of running the service. The value provided should not include personally identifiable or\n * sensitive information.\n * @param nextLink The nextLink from the previous successful call to the ListVersions method.\n * @param options The options parameters.\n */\n private _listVersionsNext(\n resourceGroupName: string,\n name: string,\n keyName: string,\n nextLink: string,\n options?: ManagedHsmKeysListVersionsNextOptionalParams,\n ): Promise<ManagedHsmKeysListVersionsNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, name, keyName, nextLink, options },\n listVersionsNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createIfNotExistOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/keys/{keyName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedHsmKey,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.keyName,\n Parameters.resourceGroupName1,\n Parameters.name,\n ],\n headerParameters: [Parameters.contentType, Parameters.accept],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/keys/{keyName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedHsmKey,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.keyName,\n Parameters.resourceGroupName1,\n Parameters.name,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/keys\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedHsmKeyListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName1,\n Parameters.name,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getVersionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/keys/{keyName}/versions/{keyVersion}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedHsmKey,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.keyName,\n Parameters.keyVersion,\n Parameters.resourceGroupName1,\n Parameters.name,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listVersionsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/keys/{keyName}/versions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedHsmKeyListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.keyName,\n Parameters.resourceGroupName1,\n Parameters.name,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedHsmKeyListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink,\n Parameters.resourceGroupName1,\n Parameters.name,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listVersionsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedHsmKeyListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.keyName,\n Parameters.nextLink,\n Parameters.resourceGroupName1,\n Parameters.name,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"managedHsmKeys.js","sourceRoot":"","sources":["../../../src/operations/managedHsmKeys.ts"],"names":[],"mappings":";AAAA,uCAAuC;AACvC,kCAAkC;;;;AAMlC,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAqBtD,4CAA4C;AAC5C,kDAAkD;AAClD,MAAa,kBAAkB;IACZ,MAAM,CAA2B;IAElD;;;OAGG;IACH,YAAY,MAAgC;QAC1C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,IAAI,CACT,iBAAyB,EACzB,IAAY,EACZ,OAA0C;QAE1C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;QAClE,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;g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IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,KAAK;KACjB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,6BAA6B,GAA6B;IAC9D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,OAAO;KACnB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n// Code generated by Microsoft (R) AutoRest Code Generator.\n// Changes may cause incorrect behavior and will be lost if the code is regenerated.\n\nimport type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport type { ManagedHsmKeys } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport type { KeyVaultManagementClient } from \"../keyVaultManagementClient.js\";\nimport type {\n ManagedHsmKey,\n ManagedHsmKeysListNextOptionalParams,\n ManagedHsmKeysListOptionalParams,\n ManagedHsmKeysListResponse,\n ManagedHsmKeysListVersionsNextOptionalParams,\n ManagedHsmKeysListVersionsOptionalParams,\n ManagedHsmKeysListVersionsResponse,\n ManagedHsmKeysGetOptionalParams,\n ManagedHsmKeysGetResponse,\n ManagedHsmKeyCreateParameters,\n ManagedHsmKeysCreateIfNotExistOptionalParams,\n ManagedHsmKeysCreateIfNotExistResponse,\n ManagedHsmKeysGetVersionOptionalParams,\n ManagedHsmKeysGetVersionResponse,\n ManagedHsmKeysListNextResponse,\n ManagedHsmKeysListVersionsNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ManagedHsmKeys operations. */\nexport class ManagedHsmKeysImpl implements ManagedHsmKeys {\n private readonly client: KeyVaultManagementClient;\n\n /**\n * Initialize a new instance of the class ManagedHsmKeys class.\n * @param client Reference to the service client\n */\n constructor(client: KeyVaultManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists the keys in the specified managed HSM.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param name The name of the Managed HSM Pool within the specified resource group.\n * @param options The options parameters.\n */\n public list(\n resourceGroupName: string,\n name: string,\n options?: ManagedHsmKeysListOptionalParams,\n ): PagedAsyncIterableIterator<ManagedHsmKey> {\n const iter = this.listPagingAll(resourceGroupName, name, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(resourceGroupName, name, options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n resourceGroupName: string,\n name: string,\n options?: ManagedHsmKeysListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ManagedHsmKey[]> {\n let result: ManagedHsmKeysListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(resourceGroupName, name, options);\n const page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(resourceGroupName, name, continuationToken, options);\n continuationToken = result.nextLink;\n const page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n resourceGroupName: string,\n name: string,\n options?: ManagedHsmKeysListOptionalParams,\n ): AsyncIterableIterator<ManagedHsmKey> {\n for await (const page of this.listPagingPage(resourceGroupName, name, options)) {\n yield* page;\n }\n }\n\n /**\n * Lists the keys in the specified managed HSM.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param name The name of the Managed HSM Pool within the specified resource group.\n * @param keyName The name of the key to be created. The value you provide may be copied globally for\n * the purpose of running the service. The value provided should not include personally identifiable or\n * sensitive information.\n * @param options The options parameters.\n */\n public listVersions(\n resourceGroupName: string,\n name: string,\n keyName: string,\n options?: ManagedHsmKeysListVersionsOptionalParams,\n ): PagedAsyncIterableIterator<ManagedHsmKey> {\n const iter = this.listVersionsPagingAll(resourceGroupName, name, keyName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listVersionsPagingPage(resourceGroupName, name, keyName, options, settings);\n },\n };\n }\n\n private async *listVersionsPagingPage(\n resourceGroupName: string,\n name: string,\n keyName: string,\n options?: ManagedHsmKeysListVersionsOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ManagedHsmKey[]> {\n let result: ManagedHsmKeysListVersionsResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listVersions(resourceGroupName, name, keyName, options);\n const page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listVersionsNext(\n resourceGroupName,\n name,\n keyName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n const page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listVersionsPagingAll(\n resourceGroupName: string,\n name: string,\n keyName: string,\n options?: ManagedHsmKeysListVersionsOptionalParams,\n ): AsyncIterableIterator<ManagedHsmKey> {\n for await (const page of this.listVersionsPagingPage(\n resourceGroupName,\n name,\n keyName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the keys in the specified managed HSM.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param name The name of the Managed HSM Pool within the specified resource group.\n * @param options The options parameters.\n */\n private _list(\n resourceGroupName: string,\n name: string,\n options?: ManagedHsmKeysListOptionalParams,\n ): Promise<ManagedHsmKeysListResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, name, options },\n listOperationSpec,\n );\n }\n\n /**\n * Gets the current version of the specified key from the specified managed HSM.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param name The name of the Managed HSM Pool within the specified resource group.\n * @param keyName The name of the key to be created. The value you provide may be copied globally for\n * the purpose of running the service. The value provided should not include personally identifiable or\n * sensitive information.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n name: string,\n keyName: string,\n options?: ManagedHsmKeysGetOptionalParams,\n ): Promise<ManagedHsmKeysGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, name, keyName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates the first version of a new key if it does not exist. If it already exists, then the existing\n * key is returned without any write operations being performed. This API does not create subsequent\n * versions, and does not update existing keys.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param name The name of the Managed HSM Pool within the specified resource group.\n * @param keyName The name of the key to be created. The value you provide may be copied globally for\n * the purpose of running the service. The value provided should not include personally identifiable or\n * sensitive information.\n * @param parameters The parameters used to create the specified key.\n * @param options The options parameters.\n */\n createIfNotExist(\n resourceGroupName: string,\n name: string,\n keyName: string,\n parameters: ManagedHsmKeyCreateParameters,\n options?: ManagedHsmKeysCreateIfNotExistOptionalParams,\n ): Promise<ManagedHsmKeysCreateIfNotExistResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, name, keyName, parameters, options },\n createIfNotExistOperationSpec,\n );\n }\n\n /**\n * Lists the keys in the specified managed HSM.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param name The name of the Managed HSM Pool within the specified resource group.\n * @param keyName The name of the key to be created. The value you provide may be copied globally for\n * the purpose of running the service. The value provided should not include personally identifiable or\n * sensitive information.\n * @param options The options parameters.\n */\n private _listVersions(\n resourceGroupName: string,\n name: string,\n keyName: string,\n options?: ManagedHsmKeysListVersionsOptionalParams,\n ): Promise<ManagedHsmKeysListVersionsResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, name, keyName, options },\n listVersionsOperationSpec,\n );\n }\n\n /**\n * Gets the specified version of the specified key in the specified managed HSM.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param name The name of the Managed HSM Pool within the specified resource group.\n * @param keyName The name of the key to be created. The value you provide may be copied globally for\n * the purpose of running the service. The value provided should not include personally identifiable or\n * sensitive information.\n * @param keyVersion The version of the key to be retrieved.\n * @param options The options parameters.\n */\n getVersion(\n resourceGroupName: string,\n name: string,\n keyName: string,\n keyVersion: string,\n options?: ManagedHsmKeysGetVersionOptionalParams,\n ): Promise<ManagedHsmKeysGetVersionResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, name, keyName, keyVersion, options },\n getVersionOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param name The name of the Managed HSM Pool within the specified resource group.\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n resourceGroupName: string,\n name: string,\n nextLink: string,\n options?: ManagedHsmKeysListNextOptionalParams,\n ): Promise<ManagedHsmKeysListNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, name, nextLink, options },\n listNextOperationSpec,\n );\n }\n\n /**\n * ListVersionsNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param name The name of the Managed HSM Pool within the specified resource group.\n * @param keyName The name of the key to be created. The value you provide may be copied globally for\n * the purpose of running the service. The value provided should not include personally identifiable or\n * sensitive information.\n * @param nextLink The nextLink from the previous successful call to the ListVersions method.\n * @param options The options parameters.\n */\n private _listVersionsNext(\n resourceGroupName: string,\n name: string,\n keyName: string,\n nextLink: string,\n options?: ManagedHsmKeysListVersionsNextOptionalParams,\n ): Promise<ManagedHsmKeysListVersionsNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, name, keyName, nextLink, options },\n listVersionsNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/keys\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedHsmKeyListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.name1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/keys/{keyName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedHsmKey,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.name1,\n Parameters.keyName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createIfNotExistOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/keys/{keyName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedHsmKey,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters4,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.name1,\n Parameters.keyName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listVersionsOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/keys/{keyName}/versions\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedHsmKeyListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.name1,\n Parameters.keyName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getVersionOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.KeyVault/managedHSMs/{name}/keys/{keyName}/versions/{keyVersion}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedHsmKey,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.name1,\n Parameters.keyName,\n Parameters.keyVersion,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedHsmKeyListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.name1,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listVersionsNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ManagedHsmKeyListResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.name1,\n Parameters.keyName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|