Skip to content

Commit e9d4aa1

Browse files
author
SDKAuto
committed
CodeGen from PR 29824 in Azure/azure-rest-api-specs
Merge 72399e1446b61eb1154adeb54eb1a3bb19ab028f into be2fd48acd6ab49fe13660ca72917024b7f96fb5
1 parent 59cdd73 commit e9d4aa1

File tree

51 files changed

+1206
-185
lines changed

Some content is hidden

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

51 files changed

+1206
-185
lines changed

common/config/rush/pnpm-lock.yaml

Lines changed: 9 additions & 10 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: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,47 @@
11
# Release History
22

3+
## 4.2.0-beta.1 (2025-01-17)
4+
Compared with version 4.1.0
5+
6+
### Features Added
7+
8+
- Added operation ConfigurationStores.generateSasToken
9+
- Added operation ConfigurationStores.resetSasKind
10+
- Added Interface ConfigurationStoresDeleteHeaders
11+
- Added Interface ConfigurationStoresGenerateSasTokenOptionalParams
12+
- Added Interface ConfigurationStoresPurgeDeletedHeaders
13+
- Added Interface ConfigurationStoresResetSasKindOptionalParams
14+
- Added Interface ExperimentationProperties
15+
- Added Interface KeyValuesDeleteHeaders
16+
- Added Interface KvSasTokenScope
17+
- Added Interface PrivateEndpointConnectionsDeleteHeaders
18+
- Added Interface ResetSasKindParameters
19+
- Added Interface SasKindInfo
20+
- Added Interface SasProperties
21+
- Added Interface SasTokenGenerationParameters
22+
- Added Interface SasTokenGenerationResult
23+
- Added Interface SasTokenScope
24+
- Added Interface SnapshotSasTokenScope
25+
- Added Interface TelemetryProperties
26+
- Added Type Alias ConfigurationStoresGenerateSasTokenResponse
27+
- Added Type Alias ConfigurationStoresResetSasKindResponse
28+
- Added Type Alias ResourceType
29+
- Added Type Alias SasKind
30+
- Added Type Alias SasStatus
31+
- Added Type Alias SasTokenScopeUnion
32+
- Interface ConfigurationStore has a new optional parameter experimentation
33+
- Interface ConfigurationStore has a new optional parameter sas
34+
- Interface ConfigurationStore has a new optional parameter telemetry
35+
- Interface ConfigurationStoreUpdateParameters has a new optional parameter experimentation
36+
- Interface ConfigurationStoreUpdateParameters has a new optional parameter sas
37+
- Interface ConfigurationStoreUpdateParameters has a new optional parameter telemetry
38+
- Interface ReplicasDeleteHeaders has a new optional parameter location
39+
- Interface ReplicasDeleteHeaders has a new optional parameter retryAfter
40+
- Added Enum KnownResourceType
41+
- Added Enum KnownSasKind
42+
- Added Enum KnownSasStatus
43+
44+
345
## 4.1.0 (2024-11-11)
446

547
### Features Added

sdk/appconfiguration/arm-appconfiguration/LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2024 Microsoft
3+
Copyright (c) 2025 Microsoft
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

sdk/appconfiguration/arm-appconfiguration/README.md

Lines changed: 16 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,11 @@
22

33
This package contains an isomorphic SDK (runs both in Node.js and in browsers) for Azure AppConfigurationManagement client.
44

5+
6+
57
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appconfiguration/arm-appconfiguration) |
68
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-appconfiguration) |
7-
[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-appconfiguration) |
9+
[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-appconfiguration?view=azure-node-preview) |
810
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
911

1012
## Getting started
@@ -42,34 +44,27 @@ npm install @azure/identity
4244
```
4345

4446
You will also need to **register a new AAD application and grant access to Azure AppConfigurationManagement** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions).
45-
Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`.
4647

4748
For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal).
4849

49-
```ts snippet:ReadmeSampleCreateClient_Node
50-
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
51-
import { DefaultAzureCredential } from "@azure/identity";
50+
```javascript
51+
const { AppConfigurationManagementClient } = require("@azure/arm-appconfiguration");
52+
const { DefaultAzureCredential } = require("@azure/identity");
53+
// For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
5254

5355
const subscriptionId = "00000000-0000-0000-0000-000000000000";
5456
const client = new AppConfigurationManagementClient(new DefaultAzureCredential(), subscriptionId);
55-
```
56-
57-
For browser environments, use the `InteractiveBrowserCredential` from the `@azure/identity` package to authenticate.
58-
59-
```ts snippet:ReadmeSampleCreateClient_Browser
60-
import { InteractiveBrowserCredential } from "@azure/identity";
61-
import { AppConfigurationManagementClient } from "@azure/arm-appconfiguration";
6257

63-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
64-
const credential = new InteractiveBrowserCredential({
65-
tenantId: "<YOUR_TENANT_ID>",
66-
clientId: "<YOUR_CLIENT_ID>",
67-
});
68-
const client = new AppConfigurationManagementClient(credential, subscriptionId);
58+
// For client-side applications running in the browser, use this code instead:
59+
// const credential = new InteractiveBrowserCredential({
60+
// tenantId: "<YOUR_TENANT_ID>",
61+
// clientId: "<YOUR_CLIENT_ID>"
62+
// });
63+
// const client = new AppConfigurationManagementClient(credential, subscriptionId);
6964
```
7065

71-
### JavaScript Bundle
7266

67+
### JavaScript Bundle
7368
To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling).
7469

7570
## Key concepts
@@ -84,9 +79,8 @@ To use this client library in the browser, first you need to use a bundler. For
8479

8580
Enabling logging may help uncover useful information about failures. In order to see a log of HTTP requests and responses, set the `AZURE_LOG_LEVEL` environment variable to `info`. Alternatively, logging can be enabled at runtime by calling `setLogLevel` in the `@azure/logger`:
8681

87-
```ts snippet:SetLogLevel
88-
import { setLogLevel } from "@azure/logger";
89-
82+
```javascript
83+
const { setLogLevel } = require("@azure/logger");
9084
setLogLevel("info");
9185
```
9286

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"commit": "2d4992bd73955a93f972ba6c476e980e7e16a992",
2+
"commit": "59520d60c18c672e3db61339c64d94f5054b74ea",
33
"readme": "specification/appconfiguration/resource-manager/readme.md",
4-
"autorest_command": "autorest --version=3.9.7 --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\\appconfiguration\\resource-manager\\readme.md --use=@autorest/[email protected].27 --generate-sample=true",
4+
"autorest_command": "autorest --version=3.9.7 --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/appconfiguration/resource-manager/readme.md --use=@autorest/typescript@^6.0.12",
55
"repository_url": "https://github.com/Azure/azure-rest-api-specs.git",
6-
"release_tool": "@azure-tools/[email protected].15",
7-
"use": "@autorest/[email protected].27"
6+
"release_tool": "@azure-tools/[email protected].18",
7+
"use": "@autorest/typescript@^6.0.12"
88
}

sdk/appconfiguration/arm-appconfiguration/api-extractor.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3-
"mainEntryPointFilePath": "dist/esm/index.d.ts",
3+
"mainEntryPointFilePath": "./dist-esm/src/index.d.ts",
44
"docModel": {
55
"enabled": true
66
},
@@ -11,7 +11,7 @@
1111
"dtsRollup": {
1212
"enabled": true,
1313
"untrimmedFilePath": "",
14-
"publicTrimmedFilePath": "dist/arm-appconfiguration.d.ts"
14+
"publicTrimmedFilePath": "./types/arm-appconfiguration.d.ts"
1515
},
1616
"messages": {
1717
"tsdocMessageReporting": {
@@ -28,4 +28,4 @@
2828
}
2929
}
3030
}
31-
}
31+
}

sdk/appconfiguration/arm-appconfiguration/package.json

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"sdk-type": "mgmt",
44
"author": "Microsoft Corporation",
55
"description": "A generated SDK for AppConfigurationManagementClient.",
6-
"version": "4.1.0",
6+
"version": "4.2.0-beta.1",
77
"engines": {
88
"node": ">=18.0.0"
99
},
@@ -25,7 +25,7 @@
2525
],
2626
"license": "MIT",
2727
"main": "./dist/commonjs/index.js",
28-
"module": "./dist/esm/index.js",
28+
"module": "./dist-esm/src/index.js",
2929
"types": "./dist/commonjs/index.d.ts",
3030
"devDependencies": {
3131
"@azure-tools/test-credential": "^2.0.0",
@@ -38,7 +38,8 @@
3838
"@vitest/coverage-istanbul": "^2.1.8",
3939
"dotenv": "^16.0.0",
4040
"playwright": "^1.49.1",
41-
"typescript": "~5.7.2",
41+
"tsx": "^4.7.1",
42+
"typescript": "~5.6.2",
4243
"vitest": "^2.1.8"
4344
},
4445
"repository": {
@@ -79,7 +80,7 @@
7980
"unit-test": "npm run unit-test:node && npm run unit-test:browser",
8081
"unit-test:browser": "echo skipped",
8182
"unit-test:node": "dev-tool run test:vitest",
82-
"update-snippets": "dev-tool run update-snippets"
83+
"update-snippets": "echo skipped"
8384
},
8485
"sideEffects": false,
8586
"//metadata": {
@@ -92,14 +93,6 @@
9293
},
9394
"autoPublish": true,
9495
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/appconfiguration/arm-appconfiguration",
95-
"//sampleConfiguration": {
96-
"productName": "",
97-
"productSlugs": [
98-
"azure"
99-
],
100-
"disableDocsMs": true,
101-
"apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-appconfiguration?view=azure-node-preview"
102-
},
10396
"type": "module",
10497
"tshy": {
10598
"project": "./tsconfig.src.json",
@@ -140,4 +133,4 @@
140133
}
141134
}
142135
}
143-
}
136+
}

0 commit comments

Comments
 (0)