@azure-rest/agrifood-farming 1.0.0-alpha.20250109.1 → 1.0.0-alpha.20250113.1
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 +3 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -54,7 +54,7 @@ AZURE_CLIENT_ID, AZURE_TENANT_ID, AZURE_CLIENT_SECRET
|
|
|
54
54
|
Use the returned token credential to authenticate the client:
|
|
55
55
|
|
|
56
56
|
```ts snippet:CreateFarmBeatsClient
|
|
57
|
-
import
|
|
57
|
+
import FarmBeats from "@azure-rest/agrifood-farming";
|
|
58
58
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
59
59
|
|
|
60
60
|
const client = FarmBeats(
|
|
@@ -96,7 +96,7 @@ Once you have authenticated and created the client object as shown in the [Authe
|
|
|
96
96
|
section, you can create a party within the Data Manager for Agriculture resource like this:
|
|
97
97
|
|
|
98
98
|
```ts snippet:CreateParty
|
|
99
|
-
import
|
|
99
|
+
import FarmBeats, { isUnexpected } from "@azure-rest/agrifood-farming";
|
|
100
100
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
101
101
|
|
|
102
102
|
const client = FarmBeats(
|
|
@@ -127,7 +127,7 @@ console.log(`Created Party: ${party.name}`);
|
|
|
127
127
|
### List Parties
|
|
128
128
|
|
|
129
129
|
```ts snippet:ListParties
|
|
130
|
-
import
|
|
130
|
+
import FarmBeats, { isUnexpected, paginate } from "@azure-rest/agrifood-farming";
|
|
131
131
|
import { DefaultAzureCredential } from "@azure/identity";
|
|
132
132
|
|
|
133
133
|
const client = FarmBeats(
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"sdk-type": "client",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "An isomorphic REST client library for the Azure FarmBeats Service.",
|
|
6
|
-
"version": "1.0.0-alpha.
|
|
6
|
+
"version": "1.0.0-alpha.20250113.1",
|
|
7
7
|
"keywords": [
|
|
8
8
|
"node",
|
|
9
9
|
"azure",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"azure-farmbeats"
|
|
45
45
|
],
|
|
46
46
|
"requiredResources": {
|
|
47
|
-
"Azure FarmBeats Service instance": "https://
|
|
47
|
+
"Azure FarmBeats Service instance": "https://learn.microsoft.com/azure/industry/agriculture/install-azure-farmbeats"
|
|
48
48
|
}
|
|
49
49
|
},
|
|
50
50
|
"browser": "./dist/browser/index.js",
|