Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.

Commit 1639f83

Browse files
author
SDKAuto
committed
CodeGen from PR 3627 in test-repo-billy/azure-rest-api-specs
Merge f39cb0c3650a0e382cb88c49d53cfa21040de956 into 5fbc3c052e42e83c7286dbc29d88aa2238059ac4
1 parent 185a46d commit 1639f83

31 files changed

+8083
-22
lines changed

common/config/rush/pnpm-lock.yaml

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

rush.json

Lines changed: 7 additions & 2 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.
@@ -2331,6 +2331,11 @@
23312331
"packageName": "@azure/arm-pineconevectordb",
23322332
"projectFolder": "sdk/pineconevectordb/arm-pineconevectordb",
23332333
"versionPolicyName": "management"
2334+
},
2335+
{
2336+
"packageName": "@azure-rest/defender-easmx-rest",
2337+
"projectFolder": "sdk/easm/defendereasmx-rest",
2338+
"versionPolicyName": "client"
23342339
}
23352340
]
2336-
}
2341+
}

sdk/easm/ci.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file.
2-
2+
33
trigger:
44
branches:
55
include:
@@ -9,22 +9,24 @@ trigger:
99
paths:
1010
include:
1111
- sdk/iot/
12-
1312
pr:
1413
branches:
1514
include:
1615
- main
1716
- feature/*
1817
- release/*
1918
- hotfix/*
19+
exclude:
20+
- feature/v4
2021
paths:
2122
include:
2223
- sdk/easm/
23-
2424
extends:
2525
template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml
2626
parameters:
2727
ServiceDirectory: easm
2828
Artifacts:
2929
- name: azure-rest-defender-easm
3030
safeName: azurerestdefendereasm
31+
- name: azure-rest-defender-easmx-rest
32+
safeName: azurerestdefendereasmxrest
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-02-19)
4+
5+
### Features Added
6+
7+
The package of @azure-rest/defender-easmx-rest 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+
The MIT License (MIT)
2+
3+
Copyright (c) 2025 Microsoft
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 Easm REST client library for JavaScript
2+
3+
Defender EASM discovers and maps your digital attack surface to provide an "outside-in" perspective using probes to discover assets. The assets are provided with detailed metadata associated, including vulnerabilities, configurations and web components, allowing customers to view and prioritize external risk. The EASM REST API enables you to develop clients that integrate with your application.
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/easm/defendereasmx-rest)
10+
- [Package (NPM)](https://www.npmjs.com/package/@azure-rest/defender-easmx-rest)
11+
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure-rest/defender-easmx-rest?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/defender-easmx-rest` package
24+
25+
Install the Azure Easm REST client REST client library for JavaScript with `npm`:
26+
27+
```bash
28+
npm install @azure-rest/defender-easmx-rest
29+
```
30+
31+
### Create and authenticate a `EasmClient`
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+
```javascript
50+
const { setLogLevel } = require("@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": "./types/defender-easmx-rest.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: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
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-apiextractor-json-types": "warn",
8+
"@azure/azure-sdk/ts-package-json-types": "warn",
9+
"@azure/azure-sdk/ts-package-json-engine-is-present": "warn",
10+
"@azure/azure-sdk/ts-package-json-module": "off",
11+
"@azure/azure-sdk/ts-package-json-files-required": "off",
12+
"@azure/azure-sdk/ts-package-json-main-is-cjs": "off",
13+
"tsdoc/syntax": "warn",
14+
},
15+
},
16+
]);

0 commit comments

Comments
 (0)