Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR @azure/arm-keyvault] [Hub Generated] Review request for Microsoft.KeyVault to add version stable/2022-07-01 #3536

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 26 additions & 12 deletions sdk/keyvault/arm-keyvault/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
# Release History

## 2.1.0-beta.3 (Unreleased)

### Features Added

### Breaking Changes

### Bugs Fixed

### Other Changes

## 2.1.0-beta.2 (2022-11-28)

## 3.0.0 (2023-01-17)

**Features**

- Added operation ManagedHsms.checkMhsmNameAvailability
- Added Interface Action
- Added Interface CheckMhsmNameAvailabilityParameters
- Added Interface CheckMhsmNameAvailabilityResult
- Added Interface Key
- Added Interface KeyReleasePolicy
- Added Interface KeyRotationPolicyAttributes
- Added Interface LifetimeAction
- Added Interface ManagedHsm
- Added Interface ManagedHsmsCheckMhsmNameAvailabilityOptionalParams
- Added Interface ManagedHsmsCreateOrUpdateHeaders
- Added Interface ManagedHsmsDeleteHeaders
- Added Interface ManagedHSMSecurityDomainProperties
- Added Interface ManagedHsmsPurgeDeletedHeaders
- Added Interface ManagedHsmsUpdateHeaders
- Added Interface MhsmPrivateEndpointConnection
- Added Interface MhsmPrivateLinkResource
Expand All @@ -29,16 +27,32 @@
- Added Interface Secret
- Added Interface SecretAttributes
- Added Interface Trigger
- Added Type Alias ActivationStatus
- Added Type Alias KeyRotationPolicyActionType
- Added Type Alias ManagedHsmsCheckMhsmNameAvailabilityResponse
- Added Type Alias ManagedHsmsPurgeDeletedResponse
- Interface KeyProperties has a new optional parameter releasePolicy
- Interface KeyProperties has a new optional parameter rotationPolicy
- Interface ManagedHsmProperties has a new optional parameter securityDomainProperties
- Interface MhsmPrivateEndpointConnectionItem has a new optional parameter etag
- Interface MhsmPrivateEndpointConnectionItem has a new optional parameter id
- Added Enum KnownActivationStatus
- Enum KnownJsonWebKeyOperation has a new value Release
- Enum KnownKeyPermissions has a new value Getrotationpolicy
- Enum KnownKeyPermissions has a new value Release
- Enum KnownKeyPermissions has a new value Rotate
- Enum KnownKeyPermissions has a new value Setrotationpolicy
- Added function getContinuationToken

**Breaking Changes**

- Interface ManagedHsmsListByResourceGroupNextOptionalParams no longer has parameter top
- Interface ManagedHsmsListBySubscriptionNextOptionalParams no longer has parameter top
- Interface MhsmPrivateEndpointConnectionsDeleteHeaders no longer has parameter retryAfter
- Interface SecretsListNextOptionalParams no longer has parameter top
- Interface VaultsListByResourceGroupNextOptionalParams no longer has parameter top
- Interface VaultsListBySubscriptionNextOptionalParams no longer has parameter top
- Interface VaultsListNextOptionalParams no longer has parameter top


## 2.0.0 (2022-01-17)
Expand Down
2 changes: 1 addition & 1 deletion sdk/keyvault/arm-keyvault/LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2022 Microsoft
Copyright (c) 2023 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
2 changes: 1 addition & 1 deletion sdk/keyvault/arm-keyvault/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The Azure management API provides a RESTful set of web services that interact wi

[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/keyvault/arm-keyvault) |
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-keyvault) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-keyvault?view=azure-node-preview) |
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-keyvault) |
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)

## Getting started
Expand Down
8 changes: 4 additions & 4 deletions sdk/keyvault/arm-keyvault/_meta.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"commit": "1fefe3f5cee88319b17c08a2dbf95e1e983a9f8c",
"commit": "26e8c0afa459ab92f88a3cda5df6ce5cc82163b1",
"readme": "specification/keyvault/resource-manager/readme.md",
"autorest_command": "autorest --version=3.8.4 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\keyvault\\resource-manager\\readme.md --use=@autorest/[email protected].3.20221108.1 --generate-sample=true",
"autorest_command": "autorest --version=3.9.3 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/keyvault/resource-manager/readme.md --use=@autorest/[email protected].5",
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
"release_tool": "@azure-tools/js-sdk-release-tools@2.4.2",
"use": "@autorest/[email protected].3.20221108.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.6.0",
"use": "@autorest/[email protected].5"
}
14 changes: 3 additions & 11 deletions sdk/keyvault/arm-keyvault/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sdk-type": "mgmt",
"author": "Microsoft Corporation",
"description": "A generated SDK for KeyVaultManagementClient.",
"version": "2.1.0-beta.3",
"version": "3.0.0",
"engines": {
"node": ">=14.0.0"
},
Expand Down Expand Up @@ -110,13 +110,5 @@
}
]
},
"autoPublish": true,
"//sampleConfiguration": {
"productName": "",
"productSlugs": [
"azure"
],
"disableDocsMs": true,
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-keyvault?view=azure-node-preview"
}
}
"autoPublish": true
}
67 changes: 58 additions & 9 deletions sdk/keyvault/arm-keyvault/review/arm-keyvault.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ export interface Action {
// @public
export type ActionsRequired = string;

// @public
export type ActivationStatus = string;

// @public
export interface Attributes {
readonly created?: Date;
Expand All @@ -41,6 +44,18 @@ export interface Attributes {
// @public
export type CertificatePermissions = string;

// @public
export interface CheckMhsmNameAvailabilityParameters {
name: string;
}

// @public
export interface CheckMhsmNameAvailabilityResult {
readonly message?: string;
readonly nameAvailable?: boolean;
readonly reason?: Reason;
}

// @public
export interface CheckNameAvailabilityResult {
readonly message?: string;
Expand Down Expand Up @@ -322,6 +337,14 @@ export enum KnownActionsRequired {
None = "None"
}

// @public
export enum KnownActivationStatus {
Active = "Active",
Failed = "Failed",
NotActivated = "NotActivated",
Unknown = "Unknown"
}

// @public
export enum KnownCertificatePermissions {
All = "all",
Expand Down Expand Up @@ -551,6 +574,7 @@ export interface ManagedHsmProperties {
readonly provisioningState?: ProvisioningState;
publicNetworkAccess?: PublicNetworkAccess;
readonly scheduledPurgeDate?: Date;
readonly securityDomainProperties?: ManagedHSMSecurityDomainProperties;
softDeleteRetentionInDays?: number;
readonly statusMessage?: string;
tenantId?: string;
Expand All @@ -575,17 +599,30 @@ export interface ManagedHsms {
beginCreateOrUpdateAndWait(resourceGroupName: string, name: string, parameters: ManagedHsm, options?: ManagedHsmsCreateOrUpdateOptionalParams): Promise<ManagedHsmsCreateOrUpdateResponse>;
beginDelete(resourceGroupName: string, name: string, options?: ManagedHsmsDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
beginDeleteAndWait(resourceGroupName: string, name: string, options?: ManagedHsmsDeleteOptionalParams): Promise<void>;
beginPurgeDeleted(name: string, location: string, options?: ManagedHsmsPurgeDeletedOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
beginPurgeDeletedAndWait(name: string, location: string, options?: ManagedHsmsPurgeDeletedOptionalParams): Promise<void>;
beginPurgeDeleted(name: string, location: string, options?: ManagedHsmsPurgeDeletedOptionalParams): Promise<PollerLike<PollOperationState<ManagedHsmsPurgeDeletedResponse>, ManagedHsmsPurgeDeletedResponse>>;
beginPurgeDeletedAndWait(name: string, location: string, options?: ManagedHsmsPurgeDeletedOptionalParams): Promise<ManagedHsmsPurgeDeletedResponse>;
beginUpdate(resourceGroupName: string, name: string, parameters: ManagedHsm, options?: ManagedHsmsUpdateOptionalParams): Promise<PollerLike<PollOperationState<ManagedHsmsUpdateResponse>, ManagedHsmsUpdateResponse>>;
beginUpdateAndWait(resourceGroupName: string, name: string, parameters: ManagedHsm, options?: ManagedHsmsUpdateOptionalParams): Promise<ManagedHsmsUpdateResponse>;
checkMhsmNameAvailability(mhsmName: CheckMhsmNameAvailabilityParameters, options?: ManagedHsmsCheckMhsmNameAvailabilityOptionalParams): Promise<ManagedHsmsCheckMhsmNameAvailabilityResponse>;
get(resourceGroupName: string, name: string, options?: ManagedHsmsGetOptionalParams): Promise<ManagedHsmsGetResponse>;
getDeleted(name: string, location: string, options?: ManagedHsmsGetDeletedOptionalParams): Promise<ManagedHsmsGetDeletedResponse>;
listByResourceGroup(resourceGroupName: string, options?: ManagedHsmsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ManagedHsm>;
listBySubscription(options?: ManagedHsmsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<ManagedHsm>;
listDeleted(options?: ManagedHsmsListDeletedOptionalParams): PagedAsyncIterableIterator<DeletedManagedHsm>;
}

// @public
export interface ManagedHsmsCheckMhsmNameAvailabilityOptionalParams extends coreClient.OperationOptions {
}

// @public
export type ManagedHsmsCheckMhsmNameAvailabilityResponse = CheckMhsmNameAvailabilityResult;

// @public
export interface ManagedHsmsCreateOrUpdateHeaders {
location?: string;
}

// @public
export interface ManagedHsmsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
Expand All @@ -595,12 +632,23 @@ export interface ManagedHsmsCreateOrUpdateOptionalParams extends coreClient.Oper
// @public
export type ManagedHsmsCreateOrUpdateResponse = ManagedHsm;

// @public
export interface ManagedHsmsDeleteHeaders {
location?: string;
}

// @public
export interface ManagedHsmsDeleteOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
updateIntervalInMs?: number;
}

// @public
export interface ManagedHSMSecurityDomainProperties {
readonly activationStatus?: ActivationStatus;
readonly activationStatusMessage?: string;
}

// @public
export interface ManagedHsmsGetDeletedOptionalParams extends coreClient.OperationOptions {
}
Expand Down Expand Up @@ -629,7 +677,6 @@ export type ManagedHsmSkuName = "Standard_B1" | "Custom_B32";

// @public
export interface ManagedHsmsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
top?: number;
}

// @public
Expand All @@ -645,7 +692,6 @@ export type ManagedHsmsListByResourceGroupResponse = ManagedHsmListResult;

// @public
export interface ManagedHsmsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
top?: number;
}

// @public
Expand Down Expand Up @@ -673,12 +719,20 @@ export interface ManagedHsmsListDeletedOptionalParams extends coreClient.Operati
// @public
export type ManagedHsmsListDeletedResponse = DeletedManagedHsmListResult;

// @public
export interface ManagedHsmsPurgeDeletedHeaders {
location?: string;
}

// @public
export interface ManagedHsmsPurgeDeletedOptionalParams extends coreClient.OperationOptions {
resumeFrom?: string;
updateIntervalInMs?: number;
}

// @public
export type ManagedHsmsPurgeDeletedResponse = ManagedHsmsPurgeDeletedHeaders;

// @public
export interface ManagedHsmsUpdateHeaders {
location?: string;
Expand Down Expand Up @@ -755,7 +809,6 @@ export interface MhsmPrivateEndpointConnections {
// @public
export interface MhsmPrivateEndpointConnectionsDeleteHeaders {
location?: string;
retryAfter?: number;
}

// @public
Expand Down Expand Up @@ -1137,7 +1190,6 @@ export type SecretsGetResponse = Secret;

// @public
export interface SecretsListNextOptionalParams extends coreClient.OperationOptions {
top?: number;
}

// @public
Expand Down Expand Up @@ -1346,7 +1398,6 @@ export type VaultsGetResponse = Vault;

// @public
export interface VaultsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {
top?: number;
}

// @public
Expand All @@ -1362,7 +1413,6 @@ export type VaultsListByResourceGroupResponse = VaultListResult;

// @public
export interface VaultsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {
top?: number;
}

// @public
Expand Down Expand Up @@ -1392,7 +1442,6 @@ export type VaultsListDeletedResponse = DeletedVaultListResult;

// @public
export interface VaultsListNextOptionalParams extends coreClient.OperationOptions {
top?: number;
}

// @public
Expand Down
4 changes: 2 additions & 2 deletions sdk/keyvault/arm-keyvault/src/keyVaultManagementClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export class KeyVaultManagementClient extends coreClient.ServiceClient {
credential: credentials
};

const packageDetails = `azsdk-js-arm-keyvault/2.1.0-beta.3`;
const packageDetails = `azsdk-js-arm-keyvault/3.0.0`;
const userAgentPrefix =
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
Expand Down Expand Up @@ -124,7 +124,7 @@ export class KeyVaultManagementClient extends coreClient.ServiceClient {

// Assigning values to Constant parameters
this.$host = options.$host || "https://management.azure.com";
this.apiVersion = options.apiVersion || "2021-11-01-preview";
this.apiVersion = options.apiVersion || "2022-07-01";
this.keys = new KeysImpl(this);
this.vaults = new VaultsImpl(this);
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
Expand Down
Loading