Skip to content

Commit

Permalink
CodeGen from PR 22154 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 45031203cae5a71dec11f2fa7efae2f5a9a837c4 into 891dd18a70057c2fee388573117683e6d0081bda
  • Loading branch information
SDKAuto committed Jan 13, 2023
1 parent 0523409 commit 7304b52
Show file tree
Hide file tree
Showing 23 changed files with 496 additions and 123 deletions.
40 changes: 28 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-beta.1 (2023-01-13)

**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,34 @@
- 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
- Added Type Alias ResourceManagerApiVersions
- 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**

- Operation Vaults.list has a new signature
- 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
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": "db384c8b14627da82ec008f35abe4aa7c10a2792",
"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/typescript@6.0.0-rc.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/typescript@6.0.0-rc.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/typescript@6.0.0-rc.3.20221108.1"
"release_tool": "@azure-tools/js-sdk-release-tools@2.6.0",
"use": "@autorest/typescript@6.0.0-rc.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-beta.1",
"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
}
72 changes: 62 additions & 10 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 @@ -1057,6 +1110,9 @@ export interface ResourceListResult {
value?: Resource[];
}

// @public
export type ResourceManagerApiVersions = "2015-11-01" | "2022-02-01-preview";

// @public (undocumented)
export interface RotationPolicy {
attributes?: KeyRotationPolicyAttributes;
Expand Down Expand Up @@ -1137,7 +1193,6 @@ export type SecretsGetResponse = Secret;

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

// @public
Expand Down Expand Up @@ -1302,7 +1357,7 @@ export interface Vaults {
delete(resourceGroupName: string, vaultName: string, options?: VaultsDeleteOptionalParams): Promise<void>;
get(resourceGroupName: string, vaultName: string, options?: VaultsGetOptionalParams): Promise<VaultsGetResponse>;
getDeleted(vaultName: string, location: string, options?: VaultsGetDeletedOptionalParams): Promise<VaultsGetDeletedResponse>;
list(options?: VaultsListOptionalParams): PagedAsyncIterableIterator<Resource>;
list(apiVersion: ResourceManagerApiVersions, options?: VaultsListOptionalParams): PagedAsyncIterableIterator<Resource>;
listByResourceGroup(resourceGroupName: string, options?: VaultsListByResourceGroupOptionalParams): PagedAsyncIterableIterator<Vault>;
listBySubscription(options?: VaultsListBySubscriptionOptionalParams): PagedAsyncIterableIterator<Vault>;
listDeleted(options?: VaultsListDeletedOptionalParams): PagedAsyncIterableIterator<DeletedVault>;
Expand Down Expand Up @@ -1346,7 +1401,6 @@ export type VaultsGetResponse = Vault;

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

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

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

// @public
Expand Down Expand Up @@ -1392,7 +1445,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-beta.1`;
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-02-01-preview";
this.keys = new KeysImpl(this);
this.vaults = new VaultsImpl(this);
this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);
Expand Down
Loading

0 comments on commit 7304b52

Please sign in to comment.