Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,7 @@
# PRLabel: %Mgmt
/sdk/nginx/arm-nginx/ @qiaozha @MaryGao @JialinHuang803

# PRLabel: %Mgmt
# PRLabel: %Mgmt %mgmt-review-needed
/sdk/network/arm-network/ @qiaozha @MaryGao @JialinHuang803

# PRLabel: %Mgmt
Expand Down
28 changes: 14 additions & 14 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1,765 changes: 3 additions & 1,762 deletions sdk/network/arm-network/CHANGELOG.md

Large diffs are not rendered by default.

20 changes: 10 additions & 10 deletions sdk/network/arm-network/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@

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

Network Client
APIs to manage web application firewall rules.

[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/network/arm-network) |
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-network) |
[API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-network?view=azure-node-preview) |
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
Key links:

- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/network/arm-network)
- [Package (NPM)](https://www.npmjs.com/package/@azure/arm-network)
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure/arm-network)
- [Samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/network/arm-network/samples)

## Getting started

Expand Down Expand Up @@ -63,14 +65,15 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur
import { InteractiveBrowserCredential } from "@azure/identity";
import { NetworkManagementClient } from "@azure/arm-network";

const subscriptionId = "00000000-0000-0000-0000-000000000000";
const credential = new InteractiveBrowserCredential({
tenantId: "<YOUR_TENANT_ID>",
clientId: "<YOUR_CLIENT_ID>",
});
const subscriptionId = "00000000-0000-0000-0000-000000000000";
const client = new NetworkManagementClient(credential, subscriptionId);
```


### JavaScript Bundle
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).

Expand All @@ -96,7 +99,7 @@ For more detailed instructions on how to enable logs, you can look at the [@azur

## Next steps

Please take a look at the [samples](https://github.com/Azure-Samples/azure-samples-js-management) directory for detailed examples on how to use this library.
Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/network/arm-network/samples) directory for detailed examples on how to use this library.

## Contributing

Expand All @@ -106,9 +109,6 @@ If you'd like to contribute to this library, please read the [contributing guide

- [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js)


[azure_cli]: https://learn.microsoft.com/cli/azure
[azure_sub]: https://azure.microsoft.com/free/
[azure_sub]: https://azure.microsoft.com/free/
[azure_portal]: https://portal.azure.com
[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity
Expand Down
8 changes: 0 additions & 8 deletions sdk/network/arm-network/_meta.json

This file was deleted.

4 changes: 1 addition & 3 deletions sdk/network/arm-network/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
{
"extends": "../../../api-extractor-base.json"
}
{ "extends": "../../../api-extractor-base.json" }
8 changes: 8 additions & 0 deletions sdk/network/arm-network/config/tsconfig.samples.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": "../../../../eng/tsconfigs/samples.json",
"compilerOptions": {
"paths": {
"@azure/arm-network": ["../dist/esm"]
}
}
}
3 changes: 3 additions & 0 deletions sdk/network/arm-network/config/tsconfig.snippets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "../../../../eng/tsconfigs/snippets.json"
}
4 changes: 4 additions & 0 deletions sdk/network/arm-network/config/tsconfig.src.browser.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../../../../eng/tsconfigs/src.browser.json",
"include": ["../src/index.ts"]
}
4 changes: 4 additions & 0 deletions sdk/network/arm-network/config/tsconfig.src.cjs.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../../../../eng/tsconfigs/src.cjs.json",
"include": ["../src/index.ts"]
}
4 changes: 4 additions & 0 deletions sdk/network/arm-network/config/tsconfig.src.esm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../../../../eng/tsconfigs/src.esm.json",
"include": ["../src/index.ts"]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"extends": "../../../../eng/tsconfigs/src.react-native.json",
"include": ["../src/index.ts"]
}
10 changes: 10 additions & 0 deletions sdk/network/arm-network/config/tsconfig.test.browser.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "../../../../eng/tsconfigs/test.browser.json",
"compilerOptions": {
"paths": {
"@azure/arm-network": ["../src/index.ts"],
"@azure/arm-network/*": ["../src/*"],
"$internal/*": ["../src/*"]
}
}
}
10 changes: 10 additions & 0 deletions sdk/network/arm-network/config/tsconfig.test.node.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"extends": "../../../../eng/tsconfigs/test.node.json",
"compilerOptions": {
"paths": {
"@azure/arm-network": ["../src/index.ts"],
"@azure/arm-network/*": ["../src/*"],
"$internal/*": ["../src/*"]
}
}
}
14 changes: 14 additions & 0 deletions sdk/network/arm-network/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import azsdkEslint from "@azure/eslint-plugin-azure-sdk";

export default azsdkEslint.config([
{
rules: {
"@azure/azure-sdk/ts-modules-only-named": "warn",
"@azure/azure-sdk/ts-package-json-types": "warn",
"@azure/azure-sdk/ts-package-json-engine-is-present": "warn",
"@azure/azure-sdk/ts-package-json-files-required": "off",
"@azure/azure-sdk/ts-package-json-main-is-cjs": "off",
"tsdoc/syntax": "warn",
},
},
]);
Loading
Loading