Skip to content

Commit

Permalink
CodeGen from PR 32238 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge c56306af86b767387aec24e2939ef517b73780c2 into 1175ddba07ff5e3040bb3b15fe7fe59453f1ef7a
  • Loading branch information
SDKAuto committed Mar 5, 2025
1 parent b17a773 commit bb264be
Show file tree
Hide file tree
Showing 33 changed files with 5,547 additions and 27 deletions.
93 changes: 68 additions & 25 deletions common/config/rush/pnpm-lock.yaml

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

5 changes: 5 additions & 0 deletions rush.json
Original file line number Diff line number Diff line change
Expand Up @@ -2331,6 +2331,11 @@
"packageName": "@azure/arm-databasewatcher",
"projectFolder": "sdk/databasewatcher/arm-databasewatcher",
"versionPolicyName": "management"
},
{
"packageName": "@azure-rest/agricultureplatform",
"projectFolder": "sdk/agricultureplatform/agricultureplatform",
"versionPolicyName": "client"
}
]
}
7 changes: 7 additions & 0 deletions sdk/agricultureplatform/agricultureplatform/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Release History

## 1.0.0-beta.1 (2025-03-05)

### Features Added

The package of @azure-rest/agricultureplatform is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart).
21 changes: 21 additions & 0 deletions sdk/agricultureplatform/agricultureplatform/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Copyright (c) Microsoft Corporation.

MIT License

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
55 changes: 55 additions & 0 deletions sdk/agricultureplatform/agricultureplatform/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Azure AgriculturePlatform REST client library for JavaScript

APIs documentation for Azure AgPlatform DataPlane Service.

**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**

Key links:

- [Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/agricultureplatform/agricultureplatform)
- [Package (NPM)](https://www.npmjs.com/package/@azure-rest/agricultureplatform)
- [API reference documentation](https://learn.microsoft.com/javascript/api/@azure-rest/agricultureplatform?view=azure-node-preview)

## Getting started

### Currently supported environments

- LTS versions of Node.js

### Prerequisites

- You must have an [Azure subscription](https://azure.microsoft.com/free/) to use this package.

### Install the `@azure-rest/agricultureplatform` package

Install the Azure AgriculturePlatform REST client REST client library for JavaScript with `npm`:

```bash
npm install @azure-rest/agricultureplatform
```

### Create and authenticate a `AgriculturePlatformClient`

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),
provide an instance of the desired credential type obtained from the
[@azure/identity](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#credentials) library.

To authenticate with AAD, you must first `npm` install [`@azure/identity`](https://www.npmjs.com/package/@azure/identity)

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.
As an example, [DefaultAzureCredential](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/identity/identity#defaultazurecredential)
can be used to authenticate the client.

## Troubleshooting

### Logging

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`:

```ts snippet:SetLogLevel
import { setLogLevel } from "@azure/logger";

setLogLevel("info");
```

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).
Loading

0 comments on commit bb264be

Please sign in to comment.