Skip to content

Commit 8e3959a

Browse files
authored
appconfiguration-release (Azure#20580)
* appconfiguration-release * update
1 parent 40e1570 commit 8e3959a

File tree

95 files changed

+6109
-1813
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+6109
-1813
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 1908 additions & 1695 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/appconfiguration/arm-appconfiguration/CHANGELOG.md

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,8 @@
11
# Release History
2+
3+
## 3.0.0-beta.2 (2022-03-01)
24

3-
## 3.0.0-beta.2 (Unreleased)
4-
5-
### Features Added
6-
7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
12-
13-
## 3.0.0-beta.1 (2022-01-11)
14-
15-
The package of @azure/arm-appconfiguration is using our next generation design principles since version 3.0.0-beta.1, which contains breaking changes.
5+
The package of @azure/arm-appconfiguration is using our next generation design principles since version 3.0.0-beta.2, which contains breaking changes.
166

177
To understand the detail of the change, please refer to [Changelog](https://aka.ms/js-track2-changelog).
188

sdk/appconfiguration/arm-appconfiguration/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f
1616
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
1717
- Latest versions of Safari, Chrome, Edge and Firefox.
1818

19+
See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
20+
1921
### Prerequisites
2022

2123
- An [Azure subscription][azure_sub].
@@ -49,8 +51,17 @@ For more information about how to create an Azure AD Application check out [this
4951
```javascript
5052
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
5153
const { DefaultAzureCredential } = require("@azure/identity");
54+
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
55+
5256
const subscriptionId = "00000000-0000-0000-0000-000000000000";
5357
const client = new AppConfigurationManagementClient(new DefaultAzureCredential(), subscriptionId);
58+
59+
// For client-side applications running in the browser, use this code instead:
60+
// const credential = new InteractiveBrowserCredential({
61+
// tenantId: "<YOUR_TENANT_ID>",
62+
// clientId: "<YOUR_CLIENT_ID>"
63+
// });
64+
// const client = new AppConfigurationManagementClient(credential, subscriptionId);
5465
```
5566

5667

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2-
"commit": "e6a2296d02ec6c4b2c32479198bfbcb9b16ea247",
2+
"commit": "6cae16d785c0916d73085fac1587e061308626b6",
33
"readme": "specification/appconfiguration/resource-manager/readme.md",
4-
"autorest_command": "autorest --version=3.1.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ../azure-rest-api-specs/specification/appconfiguration/resource-manager/readme.md --use=@autorest/typescript@6.0.0-alpha.16.20211217.1",
4+
"autorest_command": "autorest --version=3.7.3 --typescript --modelerfour.lenient-model-deduplication --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\mydev\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\appconfiguration\\resource-manager\\readme.md --use=@autorest/typescript@6.0.0-alpha.16.20220225.1 --generate-sample=true",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"use": "@autorest/typescript@6.0.0-alpha.16.20211217.1"
6+
"use": "@autorest/typescript@6.0.0-alpha.16.20220225.1"
77
}
Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,31 @@
11
{
22
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
33
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
4-
"docModel": { "enabled": true },
5-
"apiReport": { "enabled": true, "reportFolder": "./review" },
4+
"docModel": {
5+
"enabled": true
6+
},
7+
"apiReport": {
8+
"enabled": true,
9+
"reportFolder": "./review"
10+
},
611
"dtsRollup": {
712
"enabled": true,
813
"untrimmedFilePath": "",
914
"publicTrimmedFilePath": "./types/arm-appconfiguration.d.ts"
1015
},
1116
"messages": {
12-
"tsdocMessageReporting": { "default": { "logLevel": "none" } },
17+
"tsdocMessageReporting": {
18+
"default": {
19+
"logLevel": "none"
20+
}
21+
},
1322
"extractorMessageReporting": {
14-
"ae-missing-release-tag": { "logLevel": "none" },
15-
"ae-unresolved-link": { "logLevel": "none" }
23+
"ae-missing-release-tag": {
24+
"logLevel": "none"
25+
},
26+
"ae-unresolved-link": {
27+
"logLevel": "none"
28+
}
1629
}
1730
}
18-
}
31+
}

sdk/appconfiguration/arm-appconfiguration/package.json

Lines changed: 23 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,13 @@
2929
"types": "./types/arm-appconfiguration.d.ts",
3030
"devDependencies": {
3131
"@microsoft/api-extractor": "^7.18.11",
32-
"@rollup/plugin-commonjs": "11.0.2",
33-
"@rollup/plugin-json": "^4.0.0",
34-
"@rollup/plugin-multi-entry": "^3.0.0",
35-
"@rollup/plugin-node-resolve": "^8.0.0",
32+
"@rollup/plugin-commonjs": "^21.0.1",
33+
"@rollup/plugin-json": "^4.1.0",
34+
"@rollup/plugin-multi-entry": "^4.1.0",
35+
"@rollup/plugin-node-resolve": "^13.1.3",
3636
"mkdirp": "^1.0.4",
37-
"rollup": "^1.16.3",
38-
"rollup-plugin-sourcemaps": "^0.4.2",
37+
"rollup": "^2.66.1",
38+
"rollup-plugin-sourcemaps": "^0.6.3",
3939
"typescript": "~4.2.0",
4040
"uglify-js": "^3.4.9",
4141
"rimraf": "^3.0.0",
@@ -98,5 +98,21 @@
9898
"docs": "echo skipped"
9999
},
100100
"sideEffects": false,
101-
"autoPublish": true
101+
"//metadata": {
102+
"constantPaths": [
103+
{
104+
"path": "src/appConfigurationManagementClient.ts",
105+
"prefix": "packageDetails"
106+
}
107+
]
108+
},
109+
"autoPublish": true,
110+
"//sampleConfiguration": {
111+
"productName": "",
112+
"productSlugs": [
113+
"azure"
114+
],
115+
"disableDocsMs": true,
116+
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-appconfiguration?view=azure-node-preview"
117+
}
102118
}

sdk/appconfiguration/arm-appconfiguration/review/arm-appconfiguration.api.md

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ export type ConfigurationStore = TrackedResource & {
7878
readonly privateEndpointConnections?: PrivateEndpointConnectionReference[];
7979
publicNetworkAccess?: PublicNetworkAccess;
8080
disableLocalAuth?: boolean;
81+
softDeleteRetentionInDays?: number;
82+
enablePurgeProtection?: boolean;
83+
createMode?: CreateMode;
8184
};
8285

8386
// @public
@@ -92,11 +95,15 @@ export interface ConfigurationStores {
9295
beginCreateAndWait(resourceGroupName: string, configStoreName: string, configStoreCreationParameters: ConfigurationStore, options?: ConfigurationStoresCreateOptionalParams): Promise<ConfigurationStoresCreateResponse>;
9396
beginDelete(resourceGroupName: string, configStoreName: string, options?: ConfigurationStoresDeleteOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
9497
beginDeleteAndWait(resourceGroupName: string, configStoreName: string, options?: ConfigurationStoresDeleteOptionalParams): Promise<void>;
98+
beginPurgeDeleted(location: string, configStoreName: string, options?: ConfigurationStoresPurgeDeletedOptionalParams): Promise<PollerLike<PollOperationState<void>, void>>;
99+
beginPurgeDeletedAndWait(location: string, configStoreName: string, options?: ConfigurationStoresPurgeDeletedOptionalParams): Promise<void>;
95100
beginUpdate(resourceGroupName: string, configStoreName: string, configStoreUpdateParameters: ConfigurationStoreUpdateParameters, options?: ConfigurationStoresUpdateOptionalParams): Promise<PollerLike<PollOperationState<ConfigurationStoresUpdateResponse>, ConfigurationStoresUpdateResponse>>;
96101
beginUpdateAndWait(resourceGroupName: string, configStoreName: string, configStoreUpdateParameters: ConfigurationStoreUpdateParameters, options?: ConfigurationStoresUpdateOptionalParams): Promise<ConfigurationStoresUpdateResponse>;
97102
get(resourceGroupName: string, configStoreName: string, options?: ConfigurationStoresGetOptionalParams): Promise<ConfigurationStoresGetResponse>;
103+
getDeleted(location: string, configStoreName: string, options?: ConfigurationStoresGetDeletedOptionalParams): Promise<ConfigurationStoresGetDeletedResponse>;
98104
list(options?: ConfigurationStoresListOptionalParams): PagedAsyncIterableIterator<ConfigurationStore>;
99105
listByResourceGroup(resourceGroupName: string, options?: ConfigurationStoresListByResourceGroupOptionalParams): PagedAsyncIterableIterator<ConfigurationStore>;
106+
listDeleted(options?: ConfigurationStoresListDeletedOptionalParams): PagedAsyncIterableIterator<DeletedConfigurationStore>;
100107
listKeys(resourceGroupName: string, configStoreName: string, options?: ConfigurationStoresListKeysOptionalParams): PagedAsyncIterableIterator<ApiKey>;
101108
regenerateKey(resourceGroupName: string, configStoreName: string, regenerateKeyParameters: RegenerateKeyParameters, options?: ConfigurationStoresRegenerateKeyOptionalParams): Promise<ConfigurationStoresRegenerateKeyResponse>;
102109
}
@@ -116,6 +123,13 @@ export interface ConfigurationStoresDeleteOptionalParams extends coreClient.Oper
116123
updateIntervalInMs?: number;
117124
}
118125

126+
// @public
127+
export interface ConfigurationStoresGetDeletedOptionalParams extends coreClient.OperationOptions {
128+
}
129+
130+
// @public
131+
export type ConfigurationStoresGetDeletedResponse = DeletedConfigurationStore;
132+
119133
// @public
120134
export interface ConfigurationStoresGetOptionalParams extends coreClient.OperationOptions {
121135
}
@@ -139,6 +153,20 @@ export interface ConfigurationStoresListByResourceGroupOptionalParams extends co
139153
// @public
140154
export type ConfigurationStoresListByResourceGroupResponse = ConfigurationStoreListResult;
141155

156+
// @public
157+
export interface ConfigurationStoresListDeletedNextOptionalParams extends coreClient.OperationOptions {
158+
}
159+
160+
// @public
161+
export type ConfigurationStoresListDeletedNextResponse = DeletedConfigurationStoreListResult;
162+
163+
// @public
164+
export interface ConfigurationStoresListDeletedOptionalParams extends coreClient.OperationOptions {
165+
}
166+
167+
// @public
168+
export type ConfigurationStoresListDeletedResponse = DeletedConfigurationStoreListResult;
169+
142170
// @public
143171
export interface ConfigurationStoresListKeysNextOptionalParams extends coreClient.OperationOptions {
144172
skipToken?: string;
@@ -171,6 +199,12 @@ export interface ConfigurationStoresListOptionalParams extends coreClient.Operat
171199
// @public
172200
export type ConfigurationStoresListResponse = ConfigurationStoreListResult;
173201

202+
// @public
203+
export interface ConfigurationStoresPurgeDeletedOptionalParams extends coreClient.OperationOptions {
204+
resumeFrom?: string;
205+
updateIntervalInMs?: number;
206+
}
207+
174208
// @public
175209
export interface ConfigurationStoresRegenerateKeyOptionalParams extends coreClient.OperationOptions {
176210
}
@@ -190,6 +224,7 @@ export type ConfigurationStoresUpdateResponse = ConfigurationStore;
190224
// @public
191225
export interface ConfigurationStoreUpdateParameters {
192226
disableLocalAuth?: boolean;
227+
enablePurgeProtection?: boolean;
193228
encryption?: EncryptionProperties;
194229
identity?: ResourceIdentity;
195230
publicNetworkAccess?: PublicNetworkAccess;
@@ -205,6 +240,30 @@ export type ConnectionStatus = string;
205240
// @public
206241
export type CreatedByType = string;
207242

243+
// @public
244+
export type CreateMode = "Recover" | "Default";
245+
246+
// @public
247+
export interface DeletedConfigurationStore {
248+
readonly configurationStoreId?: string;
249+
readonly deletionDate?: Date;
250+
readonly id?: string;
251+
readonly location?: string;
252+
readonly name?: string;
253+
readonly purgeProtectionEnabled?: boolean;
254+
readonly scheduledPurgeDate?: Date;
255+
readonly tags?: {
256+
[propertyName: string]: string;
257+
};
258+
readonly type?: string;
259+
}
260+
261+
// @public
262+
export interface DeletedConfigurationStoreListResult {
263+
nextLink?: string;
264+
value?: DeletedConfigurationStore[];
265+
}
266+
208267
// @public
209268
export interface EncryptionProperties {
210269
keyVaultProperties?: KeyVaultProperties;
@@ -445,6 +504,7 @@ export interface OperationProperties {
445504
export interface Operations {
446505
checkNameAvailability(checkNameAvailabilityParameters: CheckNameAvailabilityParameters, options?: OperationsCheckNameAvailabilityOptionalParams): Promise<OperationsCheckNameAvailabilityResponse>;
447506
list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<OperationDefinition>;
507+
regionalCheckNameAvailability(location: string, checkNameAvailabilityParameters: CheckNameAvailabilityParameters, options?: OperationsRegionalCheckNameAvailabilityOptionalParams): Promise<OperationsRegionalCheckNameAvailabilityResponse>;
448508
}
449509

450510
// @public
@@ -470,6 +530,13 @@ export interface OperationsListOptionalParams extends coreClient.OperationOption
470530
// @public
471531
export type OperationsListResponse = OperationDefinitionListResult;
472532

533+
// @public
534+
export interface OperationsRegionalCheckNameAvailabilityOptionalParams extends coreClient.OperationOptions {
535+
}
536+
537+
// @public
538+
export type OperationsRegionalCheckNameAvailabilityResponse = NameAvailabilityStatus;
539+
473540
// @public
474541
export interface PrivateEndpoint {
475542
id?: string;

sdk/appconfiguration/arm-appconfiguration/rollup.config.js

Lines changed: 6 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -14,62 +14,14 @@ import json from "@rollup/plugin-json";
1414

1515
import nodeBuiltins from "builtin-modules";
1616

17-
/**
18-
* Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
19-
*
20-
* NOTE: this manual configuration is only needed because OpenTelemetry uses an
21-
* __exportStar downleveled helper function to declare its exports which confuses
22-
* rollup's automatic discovery mechanism.
23-
*
24-
* @returns an object reference that can be `...`'d into your cjs() configuration.
25-
*/
26-
export function openTelemetryCommonJs() {
27-
const namedExports = {};
28-
29-
for (const key of [
30-
"@opentelemetry/api",
31-
"@azure/core-tracing/node_modules/@opentelemetry/api"
32-
]) {
33-
namedExports[key] = [
34-
"SpanKind",
35-
"TraceFlags",
36-
"getSpan",
37-
"setSpan",
38-
"SpanStatusCode",
39-
"getSpanContext",
40-
"setSpanContext"
41-
];
42-
}
43-
44-
const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
45-
46-
for (const version of releasedOpenTelemetryVersions) {
47-
namedExports[
48-
// working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
49-
`../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
50-
] = [
51-
"SpanKind",
52-
"TraceFlags",
53-
"getSpan",
54-
"setSpan",
55-
"StatusCode",
56-
"CanonicalCode",
57-
"getSpanContext",
58-
"setSpanContext"
59-
];
60-
}
61-
62-
return namedExports;
63-
}
64-
6517
// #region Warning Handler
6618

6719
/**
68-
* A function that can determine whether a rollupwarning should be ignored. If
20+
* A function that can determine whether a rollup warning should be ignored. If
6921
* the function returns `true`, then the warning will not be displayed.
7022
*/
7123

72-
function ignoreNiseSinonEvalWarnings(warning) {
24+
function ignoreNiseSinonEval(warning) {
7325
return (
7426
warning.code === "EVAL" &&
7527
warning.id &&
@@ -78,17 +30,14 @@ function ignoreNiseSinonEvalWarnings(warning) {
7830
);
7931
}
8032

81-
function ignoreChaiCircularDependencyWarnings(warning) {
33+
function ignoreChaiCircularDependency(warning) {
8234
return (
8335
warning.code === "CIRCULAR_DEPENDENCY" &&
8436
warning.importer && warning.importer.includes("node_modules/chai") === true
8537
);
8638
}
8739

88-
const warningInhibitors = [
89-
ignoreChaiCircularDependencyWarnings,
90-
ignoreNiseSinonEvalWarnings
91-
];
40+
const warningInhibitors = [ignoreChaiCircularDependency, ignoreNiseSinonEval];
9241

9342
/**
9443
* Construct a warning handler for the shared rollup configuration
@@ -122,22 +71,7 @@ function makeBrowserTestConfig() {
12271
nodeResolve({
12372
mainFields: ["module", "browser"]
12473
}),
125-
cjs({
126-
namedExports: {
127-
// Chai's strange internal architecture makes it impossible to statically
128-
// analyze its exports.
129-
chai: [
130-
"version",
131-
"use",
132-
"util",
133-
"config",
134-
"expect",
135-
"should",
136-
"assert"
137-
],
138-
...openTelemetryCommonJs()
139-
}
140-
}),
74+
cjs(),
14175
json(),
14276
sourcemaps()
14377
//viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
@@ -173,7 +107,7 @@ export function makeConfig(pkg, options) {
173107
],
174108
output: { file: "dist/index.js", format: "cjs", sourcemap: true },
175109
preserveSymlinks: false,
176-
plugins: [sourcemaps(), nodeResolve(), cjs()]
110+
plugins: [sourcemaps(), nodeResolve()]
177111
};
178112

179113
const config = [baseConfig];

0 commit comments

Comments
 (0)