Skip to content

Commit

Permalink
[KeyVault] - Address a few items for keys and admin and bump service …
Browse files Browse the repository at this point in the history
…version (#13759)

## What

- Move `curve` from `createECKeyOptions` to `createKeyOptions`
- Add sample clatifying when `CertificatePolicy.contentType` is required
- Bump the API version to 7.2 (and update recordings)

## Why

- `createKeyOptions` is the catch-all and should accept parameters for all possible key creations (fixes #11263)
- It's not entirely clear when contentType is required. Following dotnet's example here (fixes #12309)
- 7.2 is already supported, and we will not GA with 7.2-preview (fixes #13594)
  • Loading branch information
maorleger authored Feb 16, 2021
1 parent b1c071a commit 35fb851
Show file tree
Hide file tree
Showing 372 changed files with 46,691 additions and 166,891 deletions.
2 changes: 2 additions & 0 deletions sdk/keyvault/keyvault-admin/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

## 4.0.0-beta.3 (Unreleased)

- Updated the Latest service version to 7.2.

## 4.0.0-beta.2 (2021-02-09)

- [Breaking] Removed `dist-browser` from the published package. To bundle the Azure SDK libraries for the browsers, please read our bundling guide: [link](https://github.com/Azure/azure-sdk-for-js/blob/master/documentation/Bundling.md).
Expand Down
4 changes: 2 additions & 2 deletions sdk/keyvault/keyvault-admin/review/keyvault-admin.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ export interface KeyVaultRoleDefinition {
export type KeyVaultRoleScope = "/" | "/keys" | string;

// @public
export const LATEST_API_VERSION = "7.2-preview";
export const LATEST_API_VERSION = "7.2";

// @public
export interface ListRoleAssignmentsOptions extends coreHttp.OperationOptions {
Expand Down Expand Up @@ -186,7 +186,7 @@ export interface SelectiveRestoreOperationState extends KeyVaultAdminPollOperati
}

// @public
export type SUPPORTED_API_VERSIONS = "7.2-preview";
export type SUPPORTED_API_VERSIONS = "7.2";

// @public
export interface UpsertRoleDefinitionOptions extends coreHttp.OperationOptions {
Expand Down
4 changes: 2 additions & 2 deletions sdk/keyvault/keyvault-admin/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ export const SDK_VERSION: string = "4.0.0-beta.3";
/**
* The latest supported Key Vault service API version.
*/
export const LATEST_API_VERSION = "7.2-preview";
export const LATEST_API_VERSION = "7.2";

/**
* Supported API versions
*/
export type SUPPORTED_API_VERSIONS = "7.2-preview";
export type SUPPORTED_API_VERSIONS = "7.2";
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,6 @@ export class KeyVaultClientContext extends coreHttp.ServiceClient {
this.baseUri = options.endpoint || "{vaultBaseUrl}";

// Assigning values to Constant parameters
this.apiVersion = options.apiVersion || "7.2-preview";
this.apiVersion = options.apiVersion || "7.2";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const roleDefinitionName: OperationURLParameter = {
export const apiVersion: OperationQueryParameter = {
parameterPath: "apiVersion",
mapper: {
defaultValue: "7.2-preview",
defaultValue: "7.2",
isConstant: true,
serializedName: "api-version",
type: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { env } from "@azure/test-utils-recorder";
import { URL } from "url";

// Adding this to the source would change the public API.
type ApIVersions = "7.2-preview";
type ApIVersions = "7.2";

describe("The keyvault-admin clients should set the serviceVersion", () => {
function makeHTTPMock(path: string, status = 200): HttpClient {
Expand Down Expand Up @@ -68,7 +68,7 @@ describe("The keyvault-admin clients should set the serviceVersion", () => {
});

it("it should allow us to specify an API version from a specific set of versions", async function() {
const serviceVersion = "7.2-preview";
const serviceVersion = "7.2";
const client = new KeyVaultAccessControlClient(env.KEYVAULT_URI, credential, {
serviceVersion: serviceVersion as ApIVersions,
httpClient: mockHttpClient
Expand Down Expand Up @@ -101,7 +101,7 @@ describe("The keyvault-admin clients should set the serviceVersion", () => {
});

it("it should allow us to specify an API version from a specific set of versions", async function() {
const serviceVersion = "7.2-preview";
const serviceVersion = "7.2";
const client = new KeyVaultBackupClient(env.KEYVAULT_URI, credential, {
serviceVersion: serviceVersion as ApIVersions,
httpClient: mockHttpClient
Expand Down
3 changes: 3 additions & 0 deletions sdk/keyvault/keyvault-certificates/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

## 4.2.0-beta.3 (Unreleased)

- Updated the Latest service version to 7.2.
- Added a sample demonstrating how to import PFX / PEM certificates.

## 4.2.0-beta.2 (2021-02-09)

- [Breaking] Removed `dist-browser` from the published package. To bundle the Azure SDK libraries for the browsers, please read our bundling guide: [link](https://github.com/Azure/azure-sdk-for-js/blob/master/documentation/Bundling.md).
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 35fb851

Please sign in to comment.