@azure-rest/purview-scanning 1.0.0-alpha.20250108.1 → 1.0.0-alpha.20250109.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -7
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -60,7 +60,7 @@ import PurviewScanning from "@azure-rest/purview-scanning";
|
|
|
60
60
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
61
61
|
const client = PurviewScanning(
|
|
62
62
|
"https://<my-account-name>.scan.purview.azure.com",
|
|
63
|
-
new DefaultAzureCredential()
|
|
63
|
+
new DefaultAzureCredential(),
|
|
64
64
|
);
|
|
65
65
|
```
|
|
66
66
|
|
|
@@ -87,18 +87,20 @@ async function main(): Promise<void> {
|
|
|
87
87
|
console.log("== List dataSources ==");
|
|
88
88
|
const client = PurviewScanning(
|
|
89
89
|
"https://<my-account-name>.scan.purview.azure.com",
|
|
90
|
-
new DefaultAzureCredential()
|
|
90
|
+
new DefaultAzureCredential(),
|
|
91
91
|
);
|
|
92
92
|
|
|
93
93
|
const dataSources = await client.path("/datasources").get();
|
|
94
94
|
if (dataSources.status !== "200") {
|
|
95
95
|
throw dataSources.body.error;
|
|
96
96
|
}
|
|
97
|
-
const iter = paginate(client, dataSources)
|
|
97
|
+
const iter = paginate(client, dataSources);
|
|
98
98
|
|
|
99
99
|
const items: DataSource[] = [];
|
|
100
100
|
|
|
101
|
-
for await (const item of <PagedAsyncIterableIterator<DataSource,
|
|
101
|
+
for await (const item of <PagedAsyncIterableIterator<DataSource, DataSource[], PageSettings>>(
|
|
102
|
+
iter
|
|
103
|
+
)) {
|
|
102
104
|
items.push(item);
|
|
103
105
|
}
|
|
104
106
|
|
|
@@ -142,9 +144,9 @@ If you'd like to contribute to this library, please read the [contributing guide
|
|
|
142
144
|
[scanning_npm]: https://www.npmjs.com/package/@azure-rest/purview-scanning
|
|
143
145
|
[scanning_ref_docs]: https://azure.github.io/azure-sdk-for-js
|
|
144
146
|
[azure_subscription]: https://azure.microsoft.com/free/
|
|
145
|
-
[purview_resource]: https://
|
|
146
|
-
[authenticate_with_token]: https://
|
|
147
|
+
[purview_resource]: https://learn.microsoft.com/azure/purview/create-catalog-portal
|
|
148
|
+
[authenticate_with_token]: https://learn.microsoft.com/azure/cognitive-services/authentication?tabs=powershell#authenticate-with-an-authentication-token
|
|
147
149
|
[azure_identity_credentials]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#credentials
|
|
148
150
|
[azure_identity_npm]: https://www.npmjs.com/package/@azure/identity
|
|
149
|
-
[enable_aad]: https://
|
|
151
|
+
[enable_aad]: https://learn.microsoft.com/azure/purview/create-catalog-portal#add-a-security-principal-to-a-data-plane-role
|
|
150
152
|
[default_azure_credential]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"sdk-type": "client",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "An isomorphic rest level client library for the Azure Purview Scanning service.",
|
|
6
|
-
"version": "1.0.0-alpha.
|
|
6
|
+
"version": "1.0.0-alpha.20250109.2",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"node",
|
|
9
9
|
"azure",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"azure"
|
|
44
44
|
],
|
|
45
45
|
"requiredResources": {
|
|
46
|
-
"Azure Cognitive Services instance": "https://
|
|
46
|
+
"Azure Cognitive Services instance": "https://learn.microsoft.com/azure/cognitive-services/cognitive-services-apis-create-account"
|
|
47
47
|
},
|
|
48
48
|
"disableDocsMs": true,
|
|
49
|
-
"apiRefLink": "https://
|
|
49
|
+
"apiRefLink": "https://learn.microsoft.com/rest/api/purview"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"build": "npm run clean && dev-tool run build-package && dev-tool run extract-api",
|