@azure/arm-keyvault 2.1.0-beta.2 → 3.0.0-alpha.20230424.3
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 +62 -1
- package/LICENSE +1 -1
- package/README.md +1 -1
- package/dist/index.js +2998 -1638
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/keysCreateIfNotExistSample.js +12 -4
- package/dist-esm/samples-dev/keysCreateIfNotExistSample.js.map +1 -1
- package/dist-esm/samples-dev/keysGetSample.js +12 -4
- package/dist-esm/samples-dev/keysGetSample.js.map +1 -1
- package/dist-esm/samples-dev/keysGetVersionSample.js +12 -4
- package/dist-esm/samples-dev/keysGetVersionSample.js.map +1 -1
- package/dist-esm/samples-dev/keysListSample.js +24 -9
- package/dist-esm/samples-dev/keysListSample.js.map +1 -1
- package/dist-esm/samples-dev/keysListVersionsSample.js +24 -9
- package/dist-esm/samples-dev/keysListVersionsSample.js.map +1 -1
- package/dist-esm/samples-dev/managedHsmKeysCreateIfNotExistSample.d.ts +2 -0
- package/dist-esm/samples-dev/managedHsmKeysCreateIfNotExistSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managedHsmKeysCreateIfNotExistSample.js +43 -0
- package/dist-esm/samples-dev/managedHsmKeysCreateIfNotExistSample.js.map +1 -0
- package/dist-esm/samples-dev/managedHsmKeysGetSample.d.ts +2 -0
- package/dist-esm/samples-dev/managedHsmKeysGetSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managedHsmKeysGetSample.js +40 -0
- package/dist-esm/samples-dev/managedHsmKeysGetSample.js.map +1 -0
- package/dist-esm/samples-dev/managedHsmKeysGetVersionSample.d.ts +2 -0
- package/dist-esm/samples-dev/managedHsmKeysGetVersionSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managedHsmKeysGetVersionSample.js +41 -0
- package/dist-esm/samples-dev/managedHsmKeysGetVersionSample.js.map +1 -0
- package/dist-esm/samples-dev/managedHsmKeysListSample.d.ts +2 -0
- package/dist-esm/samples-dev/managedHsmKeysListSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managedHsmKeysListSample.js +60 -0
- package/dist-esm/samples-dev/managedHsmKeysListSample.js.map +1 -0
- package/dist-esm/samples-dev/managedHsmKeysListVersionsSample.d.ts +2 -0
- package/dist-esm/samples-dev/managedHsmKeysListVersionsSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managedHsmKeysListVersionsSample.js +61 -0
- package/dist-esm/samples-dev/managedHsmKeysListVersionsSample.js.map +1 -0
- package/dist-esm/samples-dev/managedHsmsCheckMhsmNameAvailabilitySample.d.ts +2 -0
- package/dist-esm/samples-dev/managedHsmsCheckMhsmNameAvailabilitySample.d.ts.map +1 -0
- package/dist-esm/samples-dev/managedHsmsCheckMhsmNameAvailabilitySample.js +38 -0
- package/dist-esm/samples-dev/managedHsmsCheckMhsmNameAvailabilitySample.js.map +1 -0
- package/dist-esm/samples-dev/managedHsmsCreateOrUpdateSample.js +13 -5
- package/dist-esm/samples-dev/managedHsmsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/managedHsmsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/managedHsmsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/managedHsmsGetDeletedSample.js +11 -3
- package/dist-esm/samples-dev/managedHsmsGetDeletedSample.js.map +1 -1
- package/dist-esm/samples-dev/managedHsmsGetSample.js +12 -4
- package/dist-esm/samples-dev/managedHsmsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/managedHsmsListByResourceGroupSample.js +24 -9
- package/dist-esm/samples-dev/managedHsmsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/managedHsmsListBySubscriptionSample.js +23 -8
- package/dist-esm/samples-dev/managedHsmsListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/managedHsmsListDeletedSample.js +23 -8
- package/dist-esm/samples-dev/managedHsmsListDeletedSample.js.map +1 -1
- package/dist-esm/samples-dev/managedHsmsPurgeDeletedSample.js +11 -3
- package/dist-esm/samples-dev/managedHsmsPurgeDeletedSample.js.map +1 -1
- package/dist-esm/samples-dev/managedHsmsUpdateSample.js +12 -4
- package/dist-esm/samples-dev/managedHsmsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/mhsmPrivateEndpointConnectionsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/mhsmPrivateEndpointConnectionsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/mhsmPrivateEndpointConnectionsGetSample.js +12 -4
- package/dist-esm/samples-dev/mhsmPrivateEndpointConnectionsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/mhsmPrivateEndpointConnectionsListByResourceSample.js +24 -9
- package/dist-esm/samples-dev/mhsmPrivateEndpointConnectionsListByResourceSample.js.map +1 -1
- package/dist-esm/samples-dev/mhsmPrivateEndpointConnectionsPutSample.js +12 -4
- package/dist-esm/samples-dev/mhsmPrivateEndpointConnectionsPutSample.js.map +1 -1
- package/dist-esm/samples-dev/mhsmPrivateLinkResourcesListByMhsmResourceSample.js +12 -4
- package/dist-esm/samples-dev/mhsmPrivateLinkResourcesListByMhsmResourceSample.js.map +1 -1
- package/dist-esm/samples-dev/mhsmRegionsListByResourceSample.d.ts +2 -0
- package/dist-esm/samples-dev/mhsmRegionsListByResourceSample.d.ts.map +1 -0
- package/dist-esm/samples-dev/mhsmRegionsListByResourceSample.js +60 -0
- package/dist-esm/samples-dev/mhsmRegionsListByResourceSample.js.map +1 -0
- package/dist-esm/samples-dev/operationsListSample.js +23 -8
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +12 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListByResourceSample.js +24 -9
- package/dist-esm/samples-dev/privateEndpointConnectionsListByResourceSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js +12 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsPutSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByVaultSample.js +12 -4
- package/dist-esm/samples-dev/privateLinkResourcesListByVaultSample.js.map +1 -1
- package/dist-esm/samples-dev/secretsCreateOrUpdateSample.js +12 -4
- package/dist-esm/samples-dev/secretsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/secretsGetSample.js +12 -4
- package/dist-esm/samples-dev/secretsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/secretsListSample.js +24 -9
- package/dist-esm/samples-dev/secretsListSample.js.map +1 -1
- package/dist-esm/samples-dev/secretsUpdateSample.js +12 -4
- package/dist-esm/samples-dev/secretsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/vaultsCheckNameAvailabilitySample.js +11 -3
- package/dist-esm/samples-dev/vaultsCheckNameAvailabilitySample.js.map +1 -1
- package/dist-esm/samples-dev/vaultsCreateOrUpdateSample.js +17 -8
- package/dist-esm/samples-dev/vaultsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/vaultsDeleteSample.js +12 -4
- package/dist-esm/samples-dev/vaultsDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/vaultsGetDeletedSample.js +11 -3
- package/dist-esm/samples-dev/vaultsGetDeletedSample.js.map +1 -1
- package/dist-esm/samples-dev/vaultsGetSample.js +12 -4
- package/dist-esm/samples-dev/vaultsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/vaultsListByResourceGroupSample.js +24 -9
- package/dist-esm/samples-dev/vaultsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/vaultsListBySubscriptionSample.js +23 -8
- package/dist-esm/samples-dev/vaultsListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/vaultsListDeletedSample.js +23 -8
- package/dist-esm/samples-dev/vaultsListDeletedSample.js.map +1 -1
- package/dist-esm/samples-dev/vaultsListSample.js +23 -8
- package/dist-esm/samples-dev/vaultsListSample.js.map +1 -1
- package/dist-esm/samples-dev/vaultsPurgeDeletedSample.js +11 -3
- package/dist-esm/samples-dev/vaultsPurgeDeletedSample.js.map +1 -1
- package/dist-esm/samples-dev/vaultsUpdateAccessPolicySample.js +12 -4
- package/dist-esm/samples-dev/vaultsUpdateAccessPolicySample.js.map +1 -1
- package/dist-esm/samples-dev/vaultsUpdateSample.js +12 -4
- package/dist-esm/samples-dev/vaultsUpdateSample.js.map +1 -1
- package/dist-esm/src/keyVaultManagementClient.d.ts +3 -1
- package/dist-esm/src/keyVaultManagementClient.d.ts.map +1 -1
- package/dist-esm/src/keyVaultManagementClient.js +5 -3
- package/dist-esm/src/keyVaultManagementClient.js.map +1 -1
- package/dist-esm/src/lroImpl.d.ts +6 -11
- package/dist-esm/src/lroImpl.d.ts.map +1 -1
- package/dist-esm/src/lroImpl.js +12 -20
- package/dist-esm/src/lroImpl.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +415 -92
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +28 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +20 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +608 -28
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts +9 -5
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +45 -8
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/index.d.ts +2 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -1
- package/dist-esm/src/operations/index.js +2 -0
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/keys.d.ts +3 -1
- package/dist-esm/src/operations/keys.d.ts.map +1 -1
- package/dist-esm/src/operations/keys.js +27 -13
- package/dist-esm/src/operations/keys.js.map +1 -1
- package/dist-esm/src/operations/managedHsmKeys.d.ts +105 -0
- package/dist-esm/src/operations/managedHsmKeys.d.ts.map +1 -0
- package/dist-esm/src/operations/managedHsmKeys.js +404 -0
- package/dist-esm/src/operations/managedHsmKeys.js.map +1 -0
- package/dist-esm/src/operations/managedHsms.d.ts +13 -7
- package/dist-esm/src/operations/managedHsms.d.ts.map +1 -1
- package/dist-esm/src/operations/managedHsms.js +116 -49
- package/dist-esm/src/operations/managedHsms.js.map +1 -1
- package/dist-esm/src/operations/mhsmPrivateEndpointConnections.d.ts +2 -2
- package/dist-esm/src/operations/mhsmPrivateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/mhsmPrivateEndpointConnections.js +27 -17
- package/dist-esm/src/operations/mhsmPrivateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/mhsmPrivateLinkResources.js +1 -1
- package/dist-esm/src/operations/mhsmPrivateLinkResources.js.map +1 -1
- package/dist-esm/src/operations/mhsmRegions.d.ts +38 -0
- package/dist-esm/src/operations/mhsmRegions.d.ts.map +1 -0
- package/dist-esm/src/operations/mhsmRegions.js +155 -0
- package/dist-esm/src/operations/mhsmRegions.js.map +1 -0
- package/dist-esm/src/operations/operations.js +12 -6
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts +2 -2
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +27 -12
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/secrets.d.ts +3 -1
- package/dist-esm/src/operations/secrets.d.ts.map +1 -1
- package/dist-esm/src/operations/secrets.js +17 -9
- package/dist-esm/src/operations/secrets.js.map +1 -1
- package/dist-esm/src/operations/vaults.d.ts +3 -3
- package/dist-esm/src/operations/vaults.d.ts.map +1 -1
- package/dist-esm/src/operations/vaults.js +69 -37
- package/dist-esm/src/operations/vaults.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.d.ts +2 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/index.js +2 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/keys.d.ts +3 -1
- package/dist-esm/src/operationsInterfaces/keys.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/managedHsmKeys.d.ts +57 -0
- package/dist-esm/src/operationsInterfaces/managedHsmKeys.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/managedHsmKeys.js +9 -0
- package/dist-esm/src/operationsInterfaces/managedHsmKeys.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/managedHsms.d.ts +13 -7
- package/dist-esm/src/operationsInterfaces/managedHsms.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/mhsmPrivateEndpointConnections.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/mhsmPrivateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/mhsmRegions.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/mhsmRegions.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/mhsmRegions.js +9 -0
- package/dist-esm/src/operationsInterfaces/mhsmRegions.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts +2 -2
- package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/secrets.d.ts +3 -1
- package/dist-esm/src/operationsInterfaces/secrets.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/vaults.d.ts +3 -3
- package/dist-esm/src/operationsInterfaces/vaults.d.ts.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +4 -4
- package/dist-esm/src/pagingHelper.js +4 -4
- package/dist-esm/test/keyvault_examples.js +25 -11
- package/dist-esm/test/keyvault_examples.js.map +1 -1
- package/package.json +13 -12
- package/review/arm-keyvault.api.md +274 -18
- package/src/keyVaultManagementClient.ts +10 -2
- package/src/lroImpl.ts +31 -23
- package/src/models/index.ts +387 -29
- package/src/models/mappers.ts +622 -11
- package/src/models/parameters.ts +50 -7
- package/src/operations/index.ts +2 -0
- package/src/operations/keys.ts +3 -3
- package/src/operations/managedHsmKeys.ts +525 -0
- package/src/operations/managedHsms.ts +118 -58
- package/src/operations/mhsmPrivateEndpointConnections.ts +24 -18
- package/src/operations/mhsmPrivateLinkResources.ts +1 -1
- package/src/operations/mhsmRegions.ts +194 -0
- package/src/operations/operations.ts +0 -1
- package/src/operations/privateEndpointConnections.ts +24 -13
- package/src/operations/secrets.ts +5 -4
- package/src/operations/vaults.ts +31 -28
- package/src/operationsInterfaces/index.ts +2 -0
- package/src/operationsInterfaces/keys.ts +3 -1
- package/src/operationsInterfaces/managedHsmKeys.ts +103 -0
- package/src/operationsInterfaces/managedHsms.ts +27 -9
- package/src/operationsInterfaces/mhsmPrivateEndpointConnections.ts +3 -3
- package/src/operationsInterfaces/mhsmRegions.ts +29 -0
- package/src/operationsInterfaces/privateEndpointConnections.ts +3 -3
- package/src/operationsInterfaces/secrets.ts +3 -1
- package/src/operationsInterfaces/vaults.ts +4 -4
- package/src/pagingHelper.ts +4 -4
- package/types/arm-keyvault.d.ts +480 -34
- package/types/tsdoc-metadata.json +1 -1
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
|
|
7
7
|
import * as coreAuth from '@azure/core-auth';
|
|
8
8
|
import * as coreClient from '@azure/core-client';
|
|
9
|
+
import { OperationState } from '@azure/core-lro';
|
|
9
10
|
import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
10
|
-
import {
|
|
11
|
-
import { PollOperationState } from '@azure/core-lro';
|
|
11
|
+
import { SimplePollerLike } from '@azure/core-lro';
|
|
12
12
|
|
|
13
13
|
// @public
|
|
14
14
|
export interface AccessPolicyEntry {
|
|
@@ -29,6 +29,9 @@ export interface Action {
|
|
|
29
29
|
// @public
|
|
30
30
|
export type ActionsRequired = string;
|
|
31
31
|
|
|
32
|
+
// @public
|
|
33
|
+
export type ActivationStatus = string;
|
|
34
|
+
|
|
32
35
|
// @public
|
|
33
36
|
export interface Attributes {
|
|
34
37
|
readonly created?: Date;
|
|
@@ -41,6 +44,18 @@ export interface Attributes {
|
|
|
41
44
|
// @public
|
|
42
45
|
export type CertificatePermissions = string;
|
|
43
46
|
|
|
47
|
+
// @public
|
|
48
|
+
export interface CheckMhsmNameAvailabilityParameters {
|
|
49
|
+
name: string;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
// @public
|
|
53
|
+
export interface CheckMhsmNameAvailabilityResult {
|
|
54
|
+
readonly message?: string;
|
|
55
|
+
readonly nameAvailable?: boolean;
|
|
56
|
+
readonly reason?: Reason;
|
|
57
|
+
}
|
|
58
|
+
|
|
44
59
|
// @public
|
|
45
60
|
export interface CheckNameAvailabilityResult {
|
|
46
61
|
readonly message?: string;
|
|
@@ -131,6 +146,9 @@ export interface ErrorModel {
|
|
|
131
146
|
readonly message?: string;
|
|
132
147
|
}
|
|
133
148
|
|
|
149
|
+
// @public
|
|
150
|
+
export type GeoReplicationRegionProvisioningState = string;
|
|
151
|
+
|
|
134
152
|
// @public
|
|
135
153
|
export function getContinuationToken(page: unknown): string | undefined;
|
|
136
154
|
|
|
@@ -291,12 +309,16 @@ export class KeyVaultManagementClient extends coreClient.ServiceClient {
|
|
|
291
309
|
// (undocumented)
|
|
292
310
|
keys: Keys;
|
|
293
311
|
// (undocumented)
|
|
312
|
+
managedHsmKeys: ManagedHsmKeys;
|
|
313
|
+
// (undocumented)
|
|
294
314
|
managedHsms: ManagedHsms;
|
|
295
315
|
// (undocumented)
|
|
296
316
|
mhsmPrivateEndpointConnections: MhsmPrivateEndpointConnections;
|
|
297
317
|
// (undocumented)
|
|
298
318
|
mhsmPrivateLinkResources: MhsmPrivateLinkResources;
|
|
299
319
|
// (undocumented)
|
|
320
|
+
mhsmRegions: MhsmRegions;
|
|
321
|
+
// (undocumented)
|
|
300
322
|
operations: Operations;
|
|
301
323
|
// (undocumented)
|
|
302
324
|
privateEndpointConnections: PrivateEndpointConnections;
|
|
@@ -322,6 +344,14 @@ export enum KnownActionsRequired {
|
|
|
322
344
|
None = "None"
|
|
323
345
|
}
|
|
324
346
|
|
|
347
|
+
// @public
|
|
348
|
+
export enum KnownActivationStatus {
|
|
349
|
+
Active = "Active",
|
|
350
|
+
Failed = "Failed",
|
|
351
|
+
NotActivated = "NotActivated",
|
|
352
|
+
Unknown = "Unknown"
|
|
353
|
+
}
|
|
354
|
+
|
|
325
355
|
// @public
|
|
326
356
|
export enum KnownCertificatePermissions {
|
|
327
357
|
All = "all",
|
|
@@ -351,6 +381,16 @@ export enum KnownDeletionRecoveryLevel {
|
|
|
351
381
|
RecoverablePurgeable = "Recoverable+Purgeable"
|
|
352
382
|
}
|
|
353
383
|
|
|
384
|
+
// @public
|
|
385
|
+
export enum KnownGeoReplicationRegionProvisioningState {
|
|
386
|
+
Cleanup = "Cleanup",
|
|
387
|
+
Deleting = "Deleting",
|
|
388
|
+
Failed = "Failed",
|
|
389
|
+
Preprovisioning = "Preprovisioning",
|
|
390
|
+
Provisioning = "Provisioning",
|
|
391
|
+
Succeeded = "Succeeded"
|
|
392
|
+
}
|
|
393
|
+
|
|
354
394
|
// @public
|
|
355
395
|
export enum KnownIdentityType {
|
|
356
396
|
Application = "Application",
|
|
@@ -528,11 +568,146 @@ export interface ManagedHsm extends ManagedHsmResource {
|
|
|
528
568
|
properties?: ManagedHsmProperties;
|
|
529
569
|
}
|
|
530
570
|
|
|
571
|
+
// @public (undocumented)
|
|
572
|
+
export interface ManagedHsmAction {
|
|
573
|
+
type?: KeyRotationPolicyActionType;
|
|
574
|
+
}
|
|
575
|
+
|
|
531
576
|
// @public
|
|
532
577
|
export interface ManagedHsmError {
|
|
533
578
|
readonly error?: ErrorModel;
|
|
534
579
|
}
|
|
535
580
|
|
|
581
|
+
// @public
|
|
582
|
+
export interface ManagedHsmKey extends ProxyResourceWithoutSystemData {
|
|
583
|
+
attributes?: ManagedHsmKeyAttributes;
|
|
584
|
+
curveName?: JsonWebKeyCurveName;
|
|
585
|
+
// (undocumented)
|
|
586
|
+
keyOps?: JsonWebKeyOperation[];
|
|
587
|
+
keySize?: number;
|
|
588
|
+
readonly keyUri?: string;
|
|
589
|
+
readonly keyUriWithVersion?: string;
|
|
590
|
+
kty?: JsonWebKeyType;
|
|
591
|
+
releasePolicy?: ManagedHsmKeyReleasePolicy;
|
|
592
|
+
rotationPolicy?: ManagedHsmRotationPolicy;
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
// @public
|
|
596
|
+
export interface ManagedHsmKeyAttributes {
|
|
597
|
+
readonly created?: number;
|
|
598
|
+
enabled?: boolean;
|
|
599
|
+
expires?: number;
|
|
600
|
+
exportable?: boolean;
|
|
601
|
+
notBefore?: number;
|
|
602
|
+
readonly recoveryLevel?: DeletionRecoveryLevel;
|
|
603
|
+
readonly updated?: number;
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
// @public
|
|
607
|
+
export interface ManagedHsmKeyCreateParameters {
|
|
608
|
+
properties: ManagedHsmKeyProperties;
|
|
609
|
+
tags?: {
|
|
610
|
+
[propertyName: string]: string;
|
|
611
|
+
};
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
// @public
|
|
615
|
+
export interface ManagedHsmKeyListResult {
|
|
616
|
+
nextLink?: string;
|
|
617
|
+
value?: ManagedHsmKey[];
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
// @public
|
|
621
|
+
export interface ManagedHsmKeyProperties {
|
|
622
|
+
attributes?: ManagedHsmKeyAttributes;
|
|
623
|
+
curveName?: JsonWebKeyCurveName;
|
|
624
|
+
// (undocumented)
|
|
625
|
+
keyOps?: JsonWebKeyOperation[];
|
|
626
|
+
keySize?: number;
|
|
627
|
+
readonly keyUri?: string;
|
|
628
|
+
readonly keyUriWithVersion?: string;
|
|
629
|
+
kty?: JsonWebKeyType;
|
|
630
|
+
releasePolicy?: ManagedHsmKeyReleasePolicy;
|
|
631
|
+
rotationPolicy?: ManagedHsmRotationPolicy;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
// @public (undocumented)
|
|
635
|
+
export interface ManagedHsmKeyReleasePolicy {
|
|
636
|
+
contentType?: string;
|
|
637
|
+
data?: Uint8Array;
|
|
638
|
+
}
|
|
639
|
+
|
|
640
|
+
// @public (undocumented)
|
|
641
|
+
export interface ManagedHsmKeyRotationPolicyAttributes {
|
|
642
|
+
readonly created?: number;
|
|
643
|
+
expiryTime?: string;
|
|
644
|
+
readonly updated?: number;
|
|
645
|
+
}
|
|
646
|
+
|
|
647
|
+
// @public
|
|
648
|
+
export interface ManagedHsmKeys {
|
|
649
|
+
createIfNotExist(resourceGroupName: string, name: string, keyName: string, parameters: ManagedHsmKeyCreateParameters, options?: ManagedHsmKeysCreateIfNotExistOptionalParams): Promise<ManagedHsmKeysCreateIfNotExistResponse>;
|
|
650
|
+
get(resourceGroupName: string, name: string, keyName: string, options?: ManagedHsmKeysGetOptionalParams): Promise<ManagedHsmKeysGetResponse>;
|
|
651
|
+
getVersion(resourceGroupName: string, name: string, keyName: string, keyVersion: string, options?: ManagedHsmKeysGetVersionOptionalParams): Promise<ManagedHsmKeysGetVersionResponse>;
|
|
652
|
+
list(resourceGroupName: string, name: string, options?: ManagedHsmKeysListOptionalParams): PagedAsyncIterableIterator<ManagedHsmKey>;
|
|
653
|
+
listVersions(resourceGroupName: string, name: string, keyName: string, options?: ManagedHsmKeysListVersionsOptionalParams): PagedAsyncIterableIterator<ManagedHsmKey>;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
// @public
|
|
657
|
+
export interface ManagedHsmKeysCreateIfNotExistOptionalParams extends coreClient.OperationOptions {
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
// @public
|
|
661
|
+
export type ManagedHsmKeysCreateIfNotExistResponse = ManagedHsmKey;
|
|
662
|
+
|
|
663
|
+
// @public
|
|
664
|
+
export interface ManagedHsmKeysGetOptionalParams extends coreClient.OperationOptions {
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
// @public
|
|
668
|
+
export type ManagedHsmKeysGetResponse = ManagedHsmKey;
|
|
669
|
+
|
|
670
|
+
// @public
|
|
671
|
+
export interface ManagedHsmKeysGetVersionOptionalParams extends coreClient.OperationOptions {
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
// @public
|
|
675
|
+
export type ManagedHsmKeysGetVersionResponse = ManagedHsmKey;
|
|
676
|
+
|
|
677
|
+
// @public
|
|
678
|
+
export interface ManagedHsmKeysListNextOptionalParams extends coreClient.OperationOptions {
|
|
679
|
+
}
|
|
680
|
+
|
|
681
|
+
// @public
|
|
682
|
+
export type ManagedHsmKeysListNextResponse = ManagedHsmKeyListResult;
|
|
683
|
+
|
|
684
|
+
// @public
|
|
685
|
+
export interface ManagedHsmKeysListOptionalParams extends coreClient.OperationOptions {
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
// @public
|
|
689
|
+
export type ManagedHsmKeysListResponse = ManagedHsmKeyListResult;
|
|
690
|
+
|
|
691
|
+
// @public
|
|
692
|
+
export interface ManagedHsmKeysListVersionsNextOptionalParams extends coreClient.OperationOptions {
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
// @public
|
|
696
|
+
export type ManagedHsmKeysListVersionsNextResponse = ManagedHsmKeyListResult;
|
|
697
|
+
|
|
698
|
+
// @public
|
|
699
|
+
export interface ManagedHsmKeysListVersionsOptionalParams extends coreClient.OperationOptions {
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
// @public
|
|
703
|
+
export type ManagedHsmKeysListVersionsResponse = ManagedHsmKeyListResult;
|
|
704
|
+
|
|
705
|
+
// @public (undocumented)
|
|
706
|
+
export interface ManagedHsmLifetimeAction {
|
|
707
|
+
action?: ManagedHsmAction;
|
|
708
|
+
trigger?: ManagedHsmTrigger;
|
|
709
|
+
}
|
|
710
|
+
|
|
536
711
|
// @public
|
|
537
712
|
export interface ManagedHsmListResult {
|
|
538
713
|
nextLink?: string;
|
|
@@ -550,7 +725,9 @@ export interface ManagedHsmProperties {
|
|
|
550
725
|
readonly privateEndpointConnections?: MhsmPrivateEndpointConnectionItem[];
|
|
551
726
|
readonly provisioningState?: ProvisioningState;
|
|
552
727
|
publicNetworkAccess?: PublicNetworkAccess;
|
|
728
|
+
regions?: MhsmGeoReplicatedRegion[];
|
|
553
729
|
readonly scheduledPurgeDate?: Date;
|
|
730
|
+
readonly securityDomainProperties?: ManagedHSMSecurityDomainProperties;
|
|
554
731
|
softDeleteRetentionInDays?: number;
|
|
555
732
|
readonly statusMessage?: string;
|
|
556
733
|
tenantId?: string;
|
|
@@ -569,16 +746,23 @@ export interface ManagedHsmResource {
|
|
|
569
746
|
readonly type?: string;
|
|
570
747
|
}
|
|
571
748
|
|
|
749
|
+
// @public (undocumented)
|
|
750
|
+
export interface ManagedHsmRotationPolicy {
|
|
751
|
+
attributes?: ManagedHsmKeyRotationPolicyAttributes;
|
|
752
|
+
lifetimeActions?: ManagedHsmLifetimeAction[];
|
|
753
|
+
}
|
|
754
|
+
|
|
572
755
|
// @public
|
|
573
756
|
export interface ManagedHsms {
|
|
574
|
-
beginCreateOrUpdate(resourceGroupName: string, name: string, parameters: ManagedHsm, options?: ManagedHsmsCreateOrUpdateOptionalParams): Promise<
|
|
757
|
+
beginCreateOrUpdate(resourceGroupName: string, name: string, parameters: ManagedHsm, options?: ManagedHsmsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ManagedHsmsCreateOrUpdateResponse>, ManagedHsmsCreateOrUpdateResponse>>;
|
|
575
758
|
beginCreateOrUpdateAndWait(resourceGroupName: string, name: string, parameters: ManagedHsm, options?: ManagedHsmsCreateOrUpdateOptionalParams): Promise<ManagedHsmsCreateOrUpdateResponse>;
|
|
576
|
-
beginDelete(resourceGroupName: string, name: string, options?: ManagedHsmsDeleteOptionalParams): Promise<
|
|
759
|
+
beginDelete(resourceGroupName: string, name: string, options?: ManagedHsmsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
577
760
|
beginDeleteAndWait(resourceGroupName: string, name: string, options?: ManagedHsmsDeleteOptionalParams): Promise<void>;
|
|
578
|
-
beginPurgeDeleted(name: string, location: string, options?: ManagedHsmsPurgeDeletedOptionalParams): Promise<
|
|
579
|
-
beginPurgeDeletedAndWait(name: string, location: string, options?: ManagedHsmsPurgeDeletedOptionalParams): Promise<
|
|
580
|
-
beginUpdate(resourceGroupName: string, name: string, parameters: ManagedHsm, options?: ManagedHsmsUpdateOptionalParams): Promise<
|
|
761
|
+
beginPurgeDeleted(name: string, location: string, options?: ManagedHsmsPurgeDeletedOptionalParams): Promise<SimplePollerLike<OperationState<ManagedHsmsPurgeDeletedResponse>, ManagedHsmsPurgeDeletedResponse>>;
|
|
762
|
+
beginPurgeDeletedAndWait(name: string, location: string, options?: ManagedHsmsPurgeDeletedOptionalParams): Promise<ManagedHsmsPurgeDeletedResponse>;
|
|
763
|
+
beginUpdate(resourceGroupName: string, name: string, parameters: ManagedHsm, options?: ManagedHsmsUpdateOptionalParams): Promise<SimplePollerLike<OperationState<ManagedHsmsUpdateResponse>, ManagedHsmsUpdateResponse>>;
|
|
581
764
|
beginUpdateAndWait(resourceGroupName: string, name: string, parameters: ManagedHsm, options?: ManagedHsmsUpdateOptionalParams): Promise<ManagedHsmsUpdateResponse>;
|
|
765
|
+
checkMhsmNameAvailability(mhsmName: CheckMhsmNameAvailabilityParameters, options?: ManagedHsmsCheckMhsmNameAvailabilityOptionalParams): Promise<ManagedHsmsCheckMhsmNameAvailabilityResponse>;
|
|
582
766
|
get(resourceGroupName: string, name: string, options?: ManagedHsmsGetOptionalParams): Promise<ManagedHsmsGetResponse>;
|
|
583
767
|
getDeleted(name: string, location: string, options?: ManagedHsmsGetDeletedOptionalParams): Promise<ManagedHsmsGetDeletedResponse>;
|
|
584
768
|
listByResourceGroup(resourceGroupName: string, options?: ManagedHsmsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ManagedHsm>;
|
|
@@ -586,6 +770,18 @@ export interface ManagedHsms {
|
|
|
586
770
|
listDeleted(options?: ManagedHsmsListDeletedOptionalParams): PagedAsyncIterableIterator<DeletedManagedHsm>;
|
|
587
771
|
}
|
|
588
772
|
|
|
773
|
+
// @public
|
|
774
|
+
export interface ManagedHsmsCheckMhsmNameAvailabilityOptionalParams extends coreClient.OperationOptions {
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
// @public
|
|
778
|
+
export type ManagedHsmsCheckMhsmNameAvailabilityResponse = CheckMhsmNameAvailabilityResult;
|
|
779
|
+
|
|
780
|
+
// @public
|
|
781
|
+
export interface ManagedHsmsCreateOrUpdateHeaders {
|
|
782
|
+
location?: string;
|
|
783
|
+
}
|
|
784
|
+
|
|
589
785
|
// @public
|
|
590
786
|
export interface ManagedHsmsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
|
|
591
787
|
resumeFrom?: string;
|
|
@@ -595,12 +791,23 @@ export interface ManagedHsmsCreateOrUpdateOptionalParams extends coreClient.Oper
|
|
|
595
791
|
// @public
|
|
596
792
|
export type ManagedHsmsCreateOrUpdateResponse = ManagedHsm;
|
|
597
793
|
|
|
794
|
+
// @public
|
|
795
|
+
export interface ManagedHsmsDeleteHeaders {
|
|
796
|
+
location?: string;
|
|
797
|
+
}
|
|
798
|
+
|
|
598
799
|
// @public
|
|
599
800
|
export interface ManagedHsmsDeleteOptionalParams extends coreClient.OperationOptions {
|
|
600
801
|
resumeFrom?: string;
|
|
601
802
|
updateIntervalInMs?: number;
|
|
602
803
|
}
|
|
603
804
|
|
|
805
|
+
// @public
|
|
806
|
+
export interface ManagedHSMSecurityDomainProperties {
|
|
807
|
+
readonly activationStatus?: ActivationStatus;
|
|
808
|
+
readonly activationStatusMessage?: string;
|
|
809
|
+
}
|
|
810
|
+
|
|
604
811
|
// @public
|
|
605
812
|
export interface ManagedHsmsGetDeletedOptionalParams extends coreClient.OperationOptions {
|
|
606
813
|
}
|
|
@@ -629,7 +836,6 @@ export type ManagedHsmSkuName = "Standard_B1" | "Custom_B32";
|
|
|
629
836
|
|
|
630
837
|
// @public
|
|
631
838
|
export interface ManagedHsmsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
|
|
632
|
-
top?: number;
|
|
633
839
|
}
|
|
634
840
|
|
|
635
841
|
// @public
|
|
@@ -645,7 +851,6 @@ export type ManagedHsmsListByResourceGroupResponse = ManagedHsmListResult;
|
|
|
645
851
|
|
|
646
852
|
// @public
|
|
647
853
|
export interface ManagedHsmsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
|
|
648
|
-
top?: number;
|
|
649
854
|
}
|
|
650
855
|
|
|
651
856
|
// @public
|
|
@@ -673,12 +878,20 @@ export interface ManagedHsmsListDeletedOptionalParams extends coreClient.Operati
|
|
|
673
878
|
// @public
|
|
674
879
|
export type ManagedHsmsListDeletedResponse = DeletedManagedHsmListResult;
|
|
675
880
|
|
|
881
|
+
// @public
|
|
882
|
+
export interface ManagedHsmsPurgeDeletedHeaders {
|
|
883
|
+
location?: string;
|
|
884
|
+
}
|
|
885
|
+
|
|
676
886
|
// @public
|
|
677
887
|
export interface ManagedHsmsPurgeDeletedOptionalParams extends coreClient.OperationOptions {
|
|
678
888
|
resumeFrom?: string;
|
|
679
889
|
updateIntervalInMs?: number;
|
|
680
890
|
}
|
|
681
891
|
|
|
892
|
+
// @public
|
|
893
|
+
export type ManagedHsmsPurgeDeletedResponse = ManagedHsmsPurgeDeletedHeaders;
|
|
894
|
+
|
|
682
895
|
// @public
|
|
683
896
|
export interface ManagedHsmsUpdateHeaders {
|
|
684
897
|
location?: string;
|
|
@@ -693,6 +906,12 @@ export interface ManagedHsmsUpdateOptionalParams extends coreClient.OperationOpt
|
|
|
693
906
|
// @public
|
|
694
907
|
export type ManagedHsmsUpdateResponse = ManagedHsm;
|
|
695
908
|
|
|
909
|
+
// @public (undocumented)
|
|
910
|
+
export interface ManagedHsmTrigger {
|
|
911
|
+
timeAfterCreate?: string;
|
|
912
|
+
timeBeforeExpiry?: string;
|
|
913
|
+
}
|
|
914
|
+
|
|
696
915
|
// @public
|
|
697
916
|
export interface MetricSpecification {
|
|
698
917
|
aggregationType?: string;
|
|
@@ -708,6 +927,13 @@ export interface MetricSpecification {
|
|
|
708
927
|
unit?: string;
|
|
709
928
|
}
|
|
710
929
|
|
|
930
|
+
// @public
|
|
931
|
+
export interface MhsmGeoReplicatedRegion {
|
|
932
|
+
isPrimary?: boolean;
|
|
933
|
+
name?: string;
|
|
934
|
+
readonly provisioningState?: GeoReplicationRegionProvisioningState;
|
|
935
|
+
}
|
|
936
|
+
|
|
711
937
|
// @public
|
|
712
938
|
export interface MhsmipRule {
|
|
713
939
|
value: string;
|
|
@@ -745,7 +971,7 @@ export interface MhsmPrivateEndpointConnectionItem {
|
|
|
745
971
|
|
|
746
972
|
// @public
|
|
747
973
|
export interface MhsmPrivateEndpointConnections {
|
|
748
|
-
beginDelete(resourceGroupName: string, name: string, privateEndpointConnectionName: string, options?: MhsmPrivateEndpointConnectionsDeleteOptionalParams): Promise<
|
|
974
|
+
beginDelete(resourceGroupName: string, name: string, privateEndpointConnectionName: string, options?: MhsmPrivateEndpointConnectionsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<MhsmPrivateEndpointConnectionsDeleteResponse>, MhsmPrivateEndpointConnectionsDeleteResponse>>;
|
|
749
975
|
beginDeleteAndWait(resourceGroupName: string, name: string, privateEndpointConnectionName: string, options?: MhsmPrivateEndpointConnectionsDeleteOptionalParams): Promise<MhsmPrivateEndpointConnectionsDeleteResponse>;
|
|
750
976
|
get(resourceGroupName: string, name: string, privateEndpointConnectionName: string, options?: MhsmPrivateEndpointConnectionsGetOptionalParams): Promise<MhsmPrivateEndpointConnectionsGetResponse>;
|
|
751
977
|
listByResource(resourceGroupName: string, name: string, options?: MhsmPrivateEndpointConnectionsListByResourceOptionalParams): PagedAsyncIterableIterator<MhsmPrivateEndpointConnection>;
|
|
@@ -755,7 +981,6 @@ export interface MhsmPrivateEndpointConnections {
|
|
|
755
981
|
// @public
|
|
756
982
|
export interface MhsmPrivateEndpointConnectionsDeleteHeaders {
|
|
757
983
|
location?: string;
|
|
758
|
-
retryAfter?: number;
|
|
759
984
|
}
|
|
760
985
|
|
|
761
986
|
// @public
|
|
@@ -838,6 +1063,31 @@ export interface MhsmPrivateLinkServiceConnectionState {
|
|
|
838
1063
|
status?: PrivateEndpointServiceConnectionStatus;
|
|
839
1064
|
}
|
|
840
1065
|
|
|
1066
|
+
// @public
|
|
1067
|
+
export interface MhsmRegions {
|
|
1068
|
+
listByResource(resourceGroupName: string, name: string, options?: MhsmRegionsListByResourceOptionalParams): PagedAsyncIterableIterator<MhsmGeoReplicatedRegion>;
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
// @public
|
|
1072
|
+
export interface MhsmRegionsListByResourceNextOptionalParams extends coreClient.OperationOptions {
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
// @public
|
|
1076
|
+
export type MhsmRegionsListByResourceNextResponse = MhsmRegionsListResult;
|
|
1077
|
+
|
|
1078
|
+
// @public
|
|
1079
|
+
export interface MhsmRegionsListByResourceOptionalParams extends coreClient.OperationOptions {
|
|
1080
|
+
}
|
|
1081
|
+
|
|
1082
|
+
// @public
|
|
1083
|
+
export type MhsmRegionsListByResourceResponse = MhsmRegionsListResult;
|
|
1084
|
+
|
|
1085
|
+
// @public
|
|
1086
|
+
export interface MhsmRegionsListResult {
|
|
1087
|
+
nextLink?: string;
|
|
1088
|
+
value?: MhsmGeoReplicatedRegion[];
|
|
1089
|
+
}
|
|
1090
|
+
|
|
841
1091
|
// @public
|
|
842
1092
|
export interface MhsmVirtualNetworkRule {
|
|
843
1093
|
id: string;
|
|
@@ -941,7 +1191,7 @@ export type PrivateEndpointConnectionProvisioningState = string;
|
|
|
941
1191
|
|
|
942
1192
|
// @public
|
|
943
1193
|
export interface PrivateEndpointConnections {
|
|
944
|
-
beginDelete(resourceGroupName: string, vaultName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise<
|
|
1194
|
+
beginDelete(resourceGroupName: string, vaultName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise<SimplePollerLike<OperationState<PrivateEndpointConnectionsDeleteResponse>, PrivateEndpointConnectionsDeleteResponse>>;
|
|
945
1195
|
beginDeleteAndWait(resourceGroupName: string, vaultName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsDeleteOptionalParams): Promise<PrivateEndpointConnectionsDeleteResponse>;
|
|
946
1196
|
get(resourceGroupName: string, vaultName: string, privateEndpointConnectionName: string, options?: PrivateEndpointConnectionsGetOptionalParams): Promise<PrivateEndpointConnectionsGetResponse>;
|
|
947
1197
|
listByResource(resourceGroupName: string, vaultName: string, options?: PrivateEndpointConnectionsListByResourceOptionalParams): PagedAsyncIterableIterator<PrivateEndpointConnection>;
|
|
@@ -1034,6 +1284,16 @@ export interface PrivateLinkServiceConnectionState {
|
|
|
1034
1284
|
// @public
|
|
1035
1285
|
export type ProvisioningState = string;
|
|
1036
1286
|
|
|
1287
|
+
// @public
|
|
1288
|
+
export interface ProxyResourceWithoutSystemData {
|
|
1289
|
+
readonly id?: string;
|
|
1290
|
+
readonly name?: string;
|
|
1291
|
+
tags?: {
|
|
1292
|
+
[propertyName: string]: string;
|
|
1293
|
+
};
|
|
1294
|
+
readonly type?: string;
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1037
1297
|
// @public
|
|
1038
1298
|
export type PublicNetworkAccess = string;
|
|
1039
1299
|
|
|
@@ -1137,7 +1397,6 @@ export type SecretsGetResponse = Secret;
|
|
|
1137
1397
|
|
|
1138
1398
|
// @public
|
|
1139
1399
|
export interface SecretsListNextOptionalParams extends coreClient.OperationOptions {
|
|
1140
|
-
top?: number;
|
|
1141
1400
|
}
|
|
1142
1401
|
|
|
1143
1402
|
// @public
|
|
@@ -1294,9 +1553,9 @@ export type VaultProvisioningState = string;
|
|
|
1294
1553
|
|
|
1295
1554
|
// @public
|
|
1296
1555
|
export interface Vaults {
|
|
1297
|
-
beginCreateOrUpdate(resourceGroupName: string, vaultName: string, parameters: VaultCreateOrUpdateParameters, options?: VaultsCreateOrUpdateOptionalParams): Promise<
|
|
1556
|
+
beginCreateOrUpdate(resourceGroupName: string, vaultName: string, parameters: VaultCreateOrUpdateParameters, options?: VaultsCreateOrUpdateOptionalParams): Promise<SimplePollerLike<OperationState<VaultsCreateOrUpdateResponse>, VaultsCreateOrUpdateResponse>>;
|
|
1298
1557
|
beginCreateOrUpdateAndWait(resourceGroupName: string, vaultName: string, parameters: VaultCreateOrUpdateParameters, options?: VaultsCreateOrUpdateOptionalParams): Promise<VaultsCreateOrUpdateResponse>;
|
|
1299
|
-
beginPurgeDeleted(vaultName: string, location: string, options?: VaultsPurgeDeletedOptionalParams): Promise<
|
|
1558
|
+
beginPurgeDeleted(vaultName: string, location: string, options?: VaultsPurgeDeletedOptionalParams): Promise<SimplePollerLike<OperationState<void>, void>>;
|
|
1300
1559
|
beginPurgeDeletedAndWait(vaultName: string, location: string, options?: VaultsPurgeDeletedOptionalParams): Promise<void>;
|
|
1301
1560
|
checkNameAvailability(vaultName: VaultCheckNameAvailabilityParameters, options?: VaultsCheckNameAvailabilityOptionalParams): Promise<VaultsCheckNameAvailabilityResponse>;
|
|
1302
1561
|
delete(resourceGroupName: string, vaultName: string, options?: VaultsDeleteOptionalParams): Promise<void>;
|
|
@@ -1346,7 +1605,6 @@ export type VaultsGetResponse = Vault;
|
|
|
1346
1605
|
|
|
1347
1606
|
// @public
|
|
1348
1607
|
export interface VaultsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
|
|
1349
|
-
top?: number;
|
|
1350
1608
|
}
|
|
1351
1609
|
|
|
1352
1610
|
// @public
|
|
@@ -1362,7 +1620,6 @@ export type VaultsListByResourceGroupResponse = VaultListResult;
|
|
|
1362
1620
|
|
|
1363
1621
|
// @public
|
|
1364
1622
|
export interface VaultsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
|
|
1365
|
-
top?: number;
|
|
1366
1623
|
}
|
|
1367
1624
|
|
|
1368
1625
|
// @public
|
|
@@ -1392,7 +1649,6 @@ export type VaultsListDeletedResponse = DeletedVaultListResult;
|
|
|
1392
1649
|
|
|
1393
1650
|
// @public
|
|
1394
1651
|
export interface VaultsListNextOptionalParams extends coreClient.OperationOptions {
|
|
1395
|
-
top?: number;
|
|
1396
1652
|
}
|
|
1397
1653
|
|
|
1398
1654
|
// @public
|
|
@@ -16,23 +16,27 @@ import {
|
|
|
16
16
|
import * as coreAuth from "@azure/core-auth";
|
|
17
17
|
import {
|
|
18
18
|
KeysImpl,
|
|
19
|
+
ManagedHsmKeysImpl,
|
|
19
20
|
VaultsImpl,
|
|
20
21
|
PrivateEndpointConnectionsImpl,
|
|
21
22
|
PrivateLinkResourcesImpl,
|
|
22
23
|
ManagedHsmsImpl,
|
|
23
24
|
MhsmPrivateEndpointConnectionsImpl,
|
|
24
25
|
MhsmPrivateLinkResourcesImpl,
|
|
26
|
+
MhsmRegionsImpl,
|
|
25
27
|
OperationsImpl,
|
|
26
28
|
SecretsImpl
|
|
27
29
|
} from "./operations";
|
|
28
30
|
import {
|
|
29
31
|
Keys,
|
|
32
|
+
ManagedHsmKeys,
|
|
30
33
|
Vaults,
|
|
31
34
|
PrivateEndpointConnections,
|
|
32
35
|
PrivateLinkResources,
|
|
33
36
|
ManagedHsms,
|
|
34
37
|
MhsmPrivateEndpointConnections,
|
|
35
38
|
MhsmPrivateLinkResources,
|
|
39
|
+
MhsmRegions,
|
|
36
40
|
Operations,
|
|
37
41
|
Secrets
|
|
38
42
|
} from "./operationsInterfaces";
|
|
@@ -71,7 +75,7 @@ export class KeyVaultManagementClient extends coreClient.ServiceClient {
|
|
|
71
75
|
credential: credentials
|
|
72
76
|
};
|
|
73
77
|
|
|
74
|
-
const packageDetails = `azsdk-js-arm-keyvault/
|
|
78
|
+
const packageDetails = `azsdk-js-arm-keyvault/3.0.0`;
|
|
75
79
|
const userAgentPrefix =
|
|
76
80
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
77
81
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
@@ -124,8 +128,9 @@ export class KeyVaultManagementClient extends coreClient.ServiceClient {
|
|
|
124
128
|
|
|
125
129
|
// Assigning values to Constant parameters
|
|
126
130
|
this.$host = options.$host || "https://management.azure.com";
|
|
127
|
-
this.apiVersion = options.apiVersion || "
|
|
131
|
+
this.apiVersion = options.apiVersion || "2023-02-01";
|
|
128
132
|
this.keys = new KeysImpl(this);
|
|
133
|
+
this.managedHsmKeys = new ManagedHsmKeysImpl(this);
|
|
129
134
|
this.vaults = new VaultsImpl(this);
|
|
130
135
|
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
|
|
131
136
|
this.privateLinkResources = new PrivateLinkResourcesImpl(this);
|
|
@@ -134,6 +139,7 @@ export class KeyVaultManagementClient extends coreClient.ServiceClient {
|
|
|
134
139
|
this
|
|
135
140
|
);
|
|
136
141
|
this.mhsmPrivateLinkResources = new MhsmPrivateLinkResourcesImpl(this);
|
|
142
|
+
this.mhsmRegions = new MhsmRegionsImpl(this);
|
|
137
143
|
this.operations = new OperationsImpl(this);
|
|
138
144
|
this.secrets = new SecretsImpl(this);
|
|
139
145
|
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
@@ -168,12 +174,14 @@ export class KeyVaultManagementClient extends coreClient.ServiceClient {
|
|
|
168
174
|
}
|
|
169
175
|
|
|
170
176
|
keys: Keys;
|
|
177
|
+
managedHsmKeys: ManagedHsmKeys;
|
|
171
178
|
vaults: Vaults;
|
|
172
179
|
privateEndpointConnections: PrivateEndpointConnections;
|
|
173
180
|
privateLinkResources: PrivateLinkResources;
|
|
174
181
|
managedHsms: ManagedHsms;
|
|
175
182
|
mhsmPrivateEndpointConnections: MhsmPrivateEndpointConnections;
|
|
176
183
|
mhsmPrivateLinkResources: MhsmPrivateLinkResources;
|
|
184
|
+
mhsmRegions: MhsmRegions;
|
|
177
185
|
operations: Operations;
|
|
178
186
|
secrets: Secrets;
|
|
179
187
|
}
|
package/src/lroImpl.ts
CHANGED
|
@@ -6,29 +6,37 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
+
// Copyright (c) Microsoft Corporation.
|
|
10
|
+
// Licensed under the MIT license.
|
|
11
|
+
|
|
12
|
+
import { AbortSignalLike } from "@azure/abort-controller";
|
|
9
13
|
import { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
|
10
14
|
|
|
11
|
-
export
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
...restSpec
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
15
|
+
export function createLroSpec<T>(inputs: {
|
|
16
|
+
sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;
|
|
17
|
+
args: Record<string, unknown>;
|
|
18
|
+
spec: {
|
|
19
|
+
readonly requestBody?: unknown;
|
|
20
|
+
readonly path?: string;
|
|
21
|
+
readonly httpMethod: string;
|
|
22
|
+
} & Record<string, any>;
|
|
23
|
+
}): LongRunningOperation<T> {
|
|
24
|
+
const { args, spec, sendOperationFn } = inputs;
|
|
25
|
+
return {
|
|
26
|
+
requestMethod: spec.httpMethod,
|
|
27
|
+
requestPath: spec.path!,
|
|
28
|
+
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
29
|
+
sendPollRequest: (
|
|
30
|
+
path: string,
|
|
31
|
+
options?: { abortSignal?: AbortSignalLike }
|
|
32
|
+
) => {
|
|
33
|
+
const { requestBody, ...restSpec } = spec;
|
|
34
|
+
return sendOperationFn(args, {
|
|
35
|
+
...restSpec,
|
|
36
|
+
httpMethod: "GET",
|
|
37
|
+
path,
|
|
38
|
+
abortSignal: options?.abortSignal
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
};
|
|
34
42
|
}
|