Skip to content

Commit

Permalink
[Key Vault] Renamed the core folder as generated (#10280)
Browse files Browse the repository at this point in the history
* moved core to generated

* removed the now useless .eslintignore
  • Loading branch information
sadasant authored Jul 27, 2020
1 parent a5fda32 commit fb630e8
Show file tree
Hide file tree
Showing 48 changed files with 34 additions and 40 deletions.
2 changes: 0 additions & 2 deletions sdk/keyvault/keyvault-certificates/.eslintignore

This file was deleted.

4 changes: 2 additions & 2 deletions sdk/keyvault/keyvault-certificates/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@
"//metadata": {
"constantPaths": [
{
"path": "src/core/keyVaultClientContext.ts",
"path": "src/generated/keyVaultClientContext.ts",
"prefix": "packageVersion"
},
{
"path": "src/core/utils/constants.ts",
"path": "src/generated/utils/constants.ts",
"prefix": "SDK_VERSION"
}
]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT license.

import * as coreHttp from "@azure/core-http";
import { DeletionRecoveryLevel, KeyUsageType } from "./core/models";
import { DeletionRecoveryLevel, KeyUsageType } from "./generated/models";

/**
* Defines values for CertificateKeyType.
Expand Down
8 changes: 4 additions & 4 deletions sdk/keyvault/keyvault-certificates/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,10 @@ import {
CertificateAttributes,
Contacts as CoreContacts,
IssuerBundle
} from "./core/models";
import { KeyVaultClient } from "./core/keyVaultClient";
import { SDK_VERSION } from "./core/utils/constants";
import { parseKeyvaultIdentifier as parseKeyvaultEntityIdentifier } from "./core/utils";
} from "./generated/models";
import { KeyVaultClient } from "./generated/keyVaultClient";
import { SDK_VERSION } from "./generated/utils/constants";
import { parseKeyvaultIdentifier as parseKeyvaultEntityIdentifier } from "./generated/utils";
import "@azure/core-paging";
import { PageSettings, PagedAsyncIterableIterator } from "@azure/core-paging";
import { challengeBasedAuthenticationPolicy } from "../../keyvault-common/src";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import {
CertificatePolicy,
CertificateClientInterface
} from "../../certificatesModels";
import { CertificateOperation } from "../../core/models";
import { CertificateOperation } from "../../generated/models";

/**
* The public representation of the CreateCertificatePoller operation state.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

import * as assert from "assert";
import { version } from "../../package.json";
import { SDK_VERSION } from "../../src/core/utils/constants";
import { packageVersion } from "../../src/core/keyVaultClientContext";
import { SDK_VERSION } from "../../src/generated/utils/constants";
import { packageVersion } from "../../src/generated/keyVaultClientContext";

describe("Certificates client's user agent", () => {
// The tests follow
Expand Down
2 changes: 1 addition & 1 deletion sdk/keyvault/keyvault-certificates/typedoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"out": "../../../docGen/keyvault-certificates",
"excludeNotExported": true,
"excludePrivate": true,
"exclude": ["node_modules/**/*", "src/core/**/*"],
"exclude": ["node_modules/**/*", "src/generated/**/*"],
"ignoreCompilerErrors": true
}
2 changes: 0 additions & 2 deletions sdk/keyvault/keyvault-keys/.eslintignore

This file was deleted.

4 changes: 2 additions & 2 deletions sdk/keyvault/keyvault-keys/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,11 @@
"//metadata": {
"constantPaths": [
{
"path": "src/core/keyVaultClientContext.ts",
"path": "src/generated/keyVaultClientContext.ts",
"prefix": "packageVersion"
},
{
"path": "src/core/utils/constants.ts",
"path": "src/generated/utils/constants.ts",
"prefix": "SDK_VERSION"
}
]
Expand Down
6 changes: 3 additions & 3 deletions sdk/keyvault/keyvault-keys/src/cryptographyClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import {
import { getTracer } from "@azure/core-tracing";
import { Span } from "@opentelemetry/api";
import { logger } from "./log";
import { parseKeyvaultIdentifier } from "./core/utils";
import { SDK_VERSION } from "./core/utils/constants";
import { KeyVaultClient } from "./core/keyVaultClient";
import { parseKeyvaultIdentifier } from "./generated/utils";
import { SDK_VERSION } from "./generated/utils/constants";
import { KeyVaultClient } from "./generated/keyVaultClient";
import { challengeBasedAuthenticationPolicy } from "../../keyvault-common/src";
import { createHash as cryptoCreateHash, createVerify, publicEncrypt } from "crypto";
import * as constants from "constants";
Expand Down
8 changes: 4 additions & 4 deletions sdk/keyvault/keyvault-keys/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ import {
RecoverDeletedKeyResponse,
RestoreKeyResponse,
UpdateKeyResponse
} from "./core/models";
import { KeyVaultClient } from "./core/keyVaultClient";
import { SDK_VERSION } from "./core/utils/constants";
} from "./generated/models";
import { KeyVaultClient } from "./generated/keyVaultClient";
import { SDK_VERSION } from "./generated/utils/constants";
import { challengeBasedAuthenticationPolicy } from "../../keyvault-common/src";

import { DeleteKeyPoller } from "./lro/delete/poller";
Expand Down Expand Up @@ -77,7 +77,7 @@ import {
LATEST_API_VERSION,
CryptographyClientOptions
} from "./keysModels";
import { parseKeyvaultIdentifier as parseKeyvaultEntityIdentifier } from "./core/utils";
import { parseKeyvaultIdentifier as parseKeyvaultEntityIdentifier } from "./generated/utils";

import {
CryptographyClient,
Expand Down
2 changes: 1 addition & 1 deletion sdk/keyvault/keyvault-keys/src/keysModels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT license.

import * as coreHttp from "@azure/core-http";
import { DeletionRecoveryLevel } from "./core/models";
import { DeletionRecoveryLevel } from "./generated/models";

/**
* Defines values for EncryptionAlgorithm.
Expand Down
4 changes: 2 additions & 2 deletions sdk/keyvault/keyvault-keys/test/internal/userAgent.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

import * as assert from "assert";
import { version } from "../../package.json";
import { SDK_VERSION } from "../../src/core/utils/constants";
import { packageVersion } from "../../src/core/keyVaultClientContext";
import { SDK_VERSION } from "../../src/generated/utils/constants";
import { packageVersion } from "../../src/generated/keyVaultClientContext";

describe("Keys client's user agent", () => {
// The tests follow
Expand Down
2 changes: 1 addition & 1 deletion sdk/keyvault/keyvault-keys/typedoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"out": "../../../docGen/keyvault-keys",
"excludeNotExported": true,
"excludePrivate": true,
"exclude": ["node_modules/**/*", "src/core/**/*"],
"exclude": ["node_modules/**/*", "src/generated/**/*"],
"ignoreCompilerErrors": true
}
2 changes: 0 additions & 2 deletions sdk/keyvault/keyvault-secrets/.eslintignore

This file was deleted.

4 changes: 2 additions & 2 deletions sdk/keyvault/keyvault-secrets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@
"//metadata": {
"constantPaths": [
{
"path": "src/core/keyVaultClientContext.ts",
"path": "src/generated/keyVaultClientContext.ts",
"prefix": "packageVersion"
},
{
"path": "src/core/utils/constants.ts",
"path": "src/generated/utils/constants.ts",
"prefix": "SDK_VERSION"
}
]
Expand Down
8 changes: 4 additions & 4 deletions sdk/keyvault/keyvault-secrets/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ import {
GetDeletedSecretResponse,
BackupSecretResponse,
RestoreSecretResponse
} from "./core/models";
import { KeyVaultClient } from "./core/keyVaultClient";
import { SDK_VERSION } from "./core/utils/constants";
} from "./generated/models";
import { KeyVaultClient } from "./generated/keyVaultClient";
import { SDK_VERSION } from "./generated/utils/constants";
import { challengeBasedAuthenticationPolicy } from "../../keyvault-common/src";

import { DeleteSecretPoller } from "./lro/delete/poller";
Expand Down Expand Up @@ -63,7 +63,7 @@ import {
SecretClientOptions,
LATEST_API_VERSION
} from "./secretsModels";
import { parseKeyvaultIdentifier as parseKeyvaultEntityIdentifier } from "./core/utils";
import { parseKeyvaultIdentifier as parseKeyvaultEntityIdentifier } from "./generated/utils";

export {
SecretClientOptions,
Expand Down
2 changes: 1 addition & 1 deletion sdk/keyvault/keyvault-secrets/src/secretsModels.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the MIT license.

import * as coreHttp from "@azure/core-http";
import { DeletionRecoveryLevel } from "./core/models";
import { DeletionRecoveryLevel } from "./generated/models";

/**
* @internal
Expand Down
4 changes: 2 additions & 2 deletions sdk/keyvault/keyvault-secrets/test/internal/userAgent.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

import * as assert from "assert";
import { version } from "../../package.json";
import { SDK_VERSION } from "../../src/core/utils/constants";
import { packageVersion } from "../../src/core/keyVaultClientContext";
import { SDK_VERSION } from "../../src/generated/utils/constants";
import { packageVersion } from "../../src/generated/keyVaultClientContext";

describe("Secrets client's user agent", () => {
// The tests follow
Expand Down
2 changes: 1 addition & 1 deletion sdk/keyvault/keyvault-secrets/typedoc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
"out": "../../../docGen/keyvault-secrets",
"excludeNotExported": true,
"excludePrivate": true,
"exclude": ["node_modules/**/*", "src/core/**/*"],
"exclude": ["node_modules/**/*", "src/generated/**/*"],
"ignoreCompilerErrors": true
}

0 comments on commit fb630e8

Please sign in to comment.