Skip to content

Commit 1799d46

Browse files
[AutoPR @azure-arm-sql]-generated-from-SDK Generation - JS-6276195 (#38485)
Configurations: 'specification/sql/resource-manager/Microsoft.Sql/SQL/tspconfig.yaml', API Version: 2025-01-01, SDK Release Type: stable, and CommitSHA: '41784cfad64229e05cb37b1532a686a0cc3a60a9` in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6276195 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. Release plan link: [https://azsdk-releaseplan-dashboard-hveph5aqhhcfhtgu](https://azsdk-releaseplan-dashboard-hveph5aqhhcfhtgu.westus-01.azurewebsites.net/?releasePlan=2227).[westus-01.azurewebsites.net/?releasePlan=2227](https://azsdk-releaseplan-dashboard-hveph5aqhhcfhtgu.westus-01.azurewebsites.net/?releasePlan=2227) Submitted by: [jeremyfrosti@microsoft.com](mailto:jeremyfrosti@microsoft.com) ### Release Plan Details Release Plan: https://azsdk-releaseplan-dashboard-hveph5aqhhcfhtgu.westus-01.azurewebsites.net/?releasePlan=2227 Spec pull request: [Azure/azure-rest-api-specs#41520](Azure/azure-rest-api-specs#41520) Spec API version: --------- Co-authored-by: kazrael2119 <98569699+kazrael2119@users.noreply.github.com>
1 parent 53a7841 commit 1799d46

3,705 files changed

Lines changed: 158029 additions & 190591 deletions

File tree

Some content is hidden

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

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -947,7 +947,7 @@
947947
# PRLabel: %Mgmt
948948
/sdk/signalr/arm-signalr/ @qiaozha @MaryGao @JialinHuang803
949949

950-
# PRLabel: %Mgmt
950+
# PRLabel: %Mgmt %mgmt-review-needed
951951
/sdk/sql/arm-sql/ @qiaozha @MaryGao @JialinHuang803
952952

953953
# PRLabel: %Mgmt

pnpm-lock.yaml

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

sdk/sql/arm-sql/CHANGELOG.md

Lines changed: 884 additions & 5 deletions
Large diffs are not rendered by default.

sdk/sql/arm-sql/README.md

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

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

5-
The Azure SQL Database management API provides a RESTful set of web services that interact with Azure SQL Database services to manage your databases. The API enables you to create, retrieve, update, and delete databases.
5+
The Azure SQL Database management API provides a RESTful set of web APIs that interact with Azure SQL Database services to manage your databases. The API enables users to create, retrieve, update, and delete databases, servers, and other entities.
66

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

1214
## Getting started
1315

@@ -35,7 +37,7 @@ npm install @azure/arm-sql
3537
To create a client object to access the Azure SqlManagement API, you will need the `endpoint` of your Azure SqlManagement resource and a `credential`. The Azure SqlManagement client can use Azure Active Directory credentials to authenticate.
3638
You can find the endpoint for your Azure SqlManagement resource in the [Azure Portal][azure_portal].
3739

38-
You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
40+
You can authenticate with Azure Active Directory using a credential from the [@azure/identity][azure_identity] library or [an existing AAD Token](https://github.com/Azure/azure-sdk-for-js/blob/main/sdk/identity/identity/samples/AzureIdentityExamples.md#authenticating-with-a-pre-fetched-access-token).
3941

4042
To use the [DefaultAzureCredential][defaultazurecredential] provider shown below, or other credential providers provided with the Azure SDK, please install the `@azure/identity` package:
4143

@@ -63,14 +65,15 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur
6365
import { InteractiveBrowserCredential } from "@azure/identity";
6466
import { SqlManagementClient } from "@azure/arm-sql";
6567

66-
const subscriptionId = "00000000-0000-0000-0000-000000000000";
6768
const credential = new InteractiveBrowserCredential({
6869
tenantId: "<YOUR_TENANT_ID>",
6970
clientId: "<YOUR_CLIENT_ID>",
7071
});
72+
const subscriptionId = "00000000-0000-0000-0000-000000000000";
7173
const client = new SqlManagementClient(credential, subscriptionId);
7274
```
7375

76+
7477
### JavaScript Bundle
7578
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).
7679

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

97100
## Next steps
98101

99-
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.
102+
Please take a look at the [samples](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/sql/arm-sql/samples) directory for detailed examples on how to use this library.
100103

101104
## Contributing
102105

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

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

109-
110-
[azure_cli]: https://learn.microsoft.com/cli/azure
111-
[azure_sub]: https://azure.microsoft.com/free/
112112
[azure_sub]: https://azure.microsoft.com/free/
113113
[azure_portal]: https://portal.azure.com
114114
[azure_identity]: https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity

sdk/sql/arm-sql/_meta.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
{
2-
"extends": "../../../api-extractor-base.json"
3-
}
1+
{ "extends": "../../../api-extractor-base.json" }
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "../../../../eng/tsconfigs/test.browser.json",
3+
"compilerOptions": {
4+
"paths": {
5+
"@azure/arm-sql": ["../src/index.ts"],
6+
"@azure/arm-sql/*": ["../src/*"],
7+
"$internal/*": ["../src/*"]
8+
}
9+
}
10+
}

0 commit comments

Comments
 (0)