Skip to content

Commit

Permalink
CodeGen from PR 21671 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 805f2c3029bebaafc342b93c4a8888fd07e3fb2e into 8bbdaa16bf2523c166b7933439e63ed945596a8b
  • Loading branch information
SDKAuto committed Dec 21, 2022
1 parent bb264a7 commit 3c13e07
Show file tree
Hide file tree
Showing 22 changed files with 467 additions and 114 deletions.
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 (2022-12-21)

**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/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": "d311408c0c5209c55775d03672794aabea440c4d",
"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.5.4",
"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

0 comments on commit 3c13e07

Please sign in to comment.