Skip to content

Commit 5a87b60

Browse files
author
SDKAuto
committed
CodeGen from PR 34270 in Azure/azure-rest-api-specs
Merge 6d6de338301c13fb6000c2fe4f6f9af98ff5cfa4 into ba0c086df0ebe03a61579485c1c10de0d17804b2
1 parent 5b5ae2b commit 5a87b60

34 files changed

+2202
-4
lines changed

common/config/rush/pnpm-lock.yaml

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

rush.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* This is the main configuration file for Rush.
33
* For full documentation, please see https://rushjs.io
4-
*/ {
4+
*/{
55
"$schema": "https://developer.microsoft.com/json-schemas/rush/v5/rush.schema.json",
66
/**
77
* (Required) This specifies the version of the Rush engine to be used in this repo.
@@ -555,7 +555,9 @@
555555
"projectFolder": "common/tools/dev-tool",
556556
"versionPolicyName": "utility",
557557
// Add Identity to decoupledLocalDependencies so that dev-tool uses the package from npm, avoiding a cyclic dependency.
558-
"decoupledLocalDependencies": ["@azure/identity"]
558+
"decoupledLocalDependencies": [
559+
"@azure/identity"
560+
]
559561
},
560562
{
561563
"packageName": "@azure/eventgrid",
@@ -595,7 +597,9 @@
595597
{
596598
"packageName": "@azure/identity",
597599
"projectFolder": "sdk/identity/identity",
598-
"decoupledLocalDependencies": ["@azure/keyvault-keys"],
600+
"decoupledLocalDependencies": [
601+
"@azure/keyvault-keys"
602+
],
599603
"versionPolicyName": "client"
600604
},
601605
{
@@ -2367,6 +2371,11 @@
23672371
"packageName": "@azure/arm-carbonoptimization",
23682372
"projectFolder": "sdk/carbonoptimization/arm-carbonoptimization",
23692373
"versionPolicyName": "management"
2374+
},
2375+
{
2376+
"packageName": "@azure-rest/microsoft-app-dynamicsessions",
2377+
"projectFolder": "sdk/microsoft.app/microsoft-app-dynamicsessions-rest",
2378+
"versionPolicyName": "client"
23702379
}
23712380
]
2372-
}
2381+
}

sdk/microsoft.app/ci.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
2+
3+
trigger:
4+
branches:
5+
include:
6+
- main
7+
- feature/*
8+
- release/*
9+
- hotfix/*
10+
exclude:
11+
- feature/v4
12+
paths:
13+
include:
14+
- sdk/microsoft.app/
15+
pr:
16+
branches:
17+
include:
18+
- main
19+
- feature/*
20+
- release/*
21+
- hotfix/*
22+
exclude:
23+
- feature/v4
24+
paths:
25+
include:
26+
- sdk/microsoft.app/
27+
extends:
28+
template: /eng/pipelines/templates/stages/archetype-sdk-client.yml
29+
parameters:
30+
ServiceDirectory: microsoft.app
31+
Artifacts:
32+
- name: azure-rest-microsoft-app-dynamicsessions
33+
safeName: azurerestmicrosoftappdynamicsessions
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Release History
2+
3+
## 1.0.0-beta.1 (2025-05-13)
4+
5+
### Features Added
6+
7+
The package of @azure-rest/microsoft-app-dynamicsessions is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart).
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Copyright (c) Microsoft Corporation.
2+
3+
MIT License
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# Azure DynamicSessions REST client library for JavaScript
2+
3+
Microsoft.App Dynamic Sessions Service
4+
5+
**Please rely heavily on our [REST client docs](https://github.com/Azure/azure-sdk-for-js/blob/main/documentation/rest-clients.md) to use this library**
6+
7+
Key links:
8+
9+
- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/microsoft.app/microsoft-app-dynamicsessions-rest)
10+
- [Package (NPM)](https://www.npmjs.com/package/@azure-rest/microsoft-app-dynamicsessions)
11+
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure-rest/microsoft-app-dynamicsessions?view=azure-node-preview)
12+
13+
## Getting started
14+
15+
### Currently supported environments
16+
17+
- LTS versions of Node.js
18+
19+
### Prerequisites
20+
21+
- You must have an [Azure subscription](https://azure.microsoft.com/free/) to use this package.
22+
23+
### Install the `@azure-rest/microsoft-app-dynamicsessions` package
24+
25+
Install the Azure DynamicSessions REST client REST client library for JavaScript with `npm`:
26+
27+
```bash
28+
npm install @azure-rest/microsoft-app-dynamicsessions
29+
```
30+
31+
### Create and authenticate a `DynamicSessionsClient`
32+
33+
To use an [Azure Active Directory (AAD) token credential](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token),
34+
provide an instance of the desired credential type obtained from the
35+
[@azure/identity](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#credentials) library.
36+
37+
To authenticate with AAD, you must first `npm` install [`@azure/identity`](https://www.npmjs.com/package/@azure/identity)
38+
39+
After setup, you can choose which type of [credential](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#credentials) from `@azure/identity` to use.
40+
As an example, [DefaultAzureCredential](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential)
41+
can be used to authenticate the client.
42+
43+
## Troubleshooting
44+
45+
### Logging
46+
47+
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`:
48+
49+
```ts snippet:SetLogLevel
50+
import { setLogLevel } from "@azure/logger";
51+
52+
setLogLevel("info");
53+
```
54+
55+
For more detailed instructions on how to enable logs, you can look at the [@azure/logger package docs](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/core/logger).
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json",
3+
"mainEntryPointFilePath": "dist/esm/index.d.ts",
4+
"docModel": {
5+
"enabled": true
6+
},
7+
"apiReport": {
8+
"enabled": true,
9+
"reportFolder": "./review"
10+
},
11+
"dtsRollup": {
12+
"enabled": true,
13+
"untrimmedFilePath": "",
14+
"publicTrimmedFilePath": "dist/microsoft-app-dynamicsessions.d.ts"
15+
},
16+
"messages": {
17+
"tsdocMessageReporting": {
18+
"default": {
19+
"logLevel": "none"
20+
}
21+
},
22+
"extractorMessageReporting": {
23+
"ae-missing-release-tag": {
24+
"logLevel": "none"
25+
},
26+
"ae-unresolved-link": {
27+
"logLevel": "none"
28+
}
29+
}
30+
}
31+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";
2+
3+
export default azsdkEslint.config([
4+
{
5+
rules: {
6+
"@azure/azure-sdk/ts-modules-only-named": "warn",
7+
"@azure/azure-sdk/ts-package-json-types": "warn",
8+
"@azure/azure-sdk/ts-package-json-engine-is-present": "warn",
9+
"@azure/azure-sdk/ts-package-json-files-required": "off",
10+
"@azure/azure-sdk/ts-package-json-main-is-cjs": "off",
11+
"tsdoc/syntax": "warn",
12+
},
13+
},
14+
]);

0 commit comments

Comments
 (0)