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

Key vault secrets migration #12821

Merged
merged 8 commits into from
Jan 13, 2021
Merged
Show file tree
Hide file tree
Changes from 6 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
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export interface DeletedSecret {
}

// @public
export type DeletionRecoveryLevel = 'Purgeable' | 'Recoverable+Purgeable' | 'Recoverable' | 'Recoverable+ProtectedSubscription' | 'CustomizedRecoverable+Purgeable' | 'CustomizedRecoverable' | 'CustomizedRecoverable+ProtectedSubscription';
export type DeletionRecoveryLevel = string;
ramya-rao-a marked this conversation as resolved.
Show resolved Hide resolved

// @public
export interface GetDeletedSecretOptions extends coreHttp.OperationOptions {
Expand Down
11 changes: 11 additions & 0 deletions sdk/keyvault/keyvault-secrets/src/generated/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
/*
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

export * from "./models";
export { KeyVaultClient } from "./keyVaultClient";
export { KeyVaultClientContext } from "./keyVaultClientContext";
934 changes: 430 additions & 504 deletions sdk/keyvault/keyvault-secrets/src/generated/keyVaultClient.ts

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,31 +1,34 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
* Copyright (c) Microsoft Corporation.
* Licensed under the MIT License.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
*/

import * as coreHttp from "@azure/core-http";
import { ApiVersion72Preview, KeyVaultClientOptionalParams } from "./models";

const packageName = "@azure/keyvault-secrets";
export const packageVersion = "4.2.0-beta.2";

export class KeyVaultClientContext extends coreHttp.ServiceClient {
apiVersion: string;
apiVersion: ApiVersion72Preview;

/**
* Initializes a new instance of the KeyVaultClientContext class.
* @param apiVersion Client API version.
* @param [options] The parameter options
* @param apiVersion Api Version
* @param options The parameter options
*/
constructor(apiVersion: string, options?: coreHttp.ServiceClientOptions) {
if (apiVersion == undefined) {
throw new Error("'apiVersion' cannot be null.");
constructor(
apiVersion: ApiVersion72Preview,
options?: KeyVaultClientOptionalParams
) {
if (apiVersion === undefined) {
throw new Error("'apiVersion' cannot be null");
}

// Initializing default values for options
if (!options) {
options = {};
}
Expand All @@ -37,8 +40,11 @@ export class KeyVaultClientContext extends coreHttp.ServiceClient {

super(undefined, options);

this.baseUri = "{vaultBaseUrl}";
this.requestContentType = "application/json; charset=utf-8";

this.baseUri = options.endpoint || "{vaultBaseUrl}";

// Parameter assignments
this.apiVersion = apiVersion;
}
}
Loading