@azure/arm-agrifood 1.0.0-beta.3 → 1.0.0-beta.5
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/CHANGELOG.md +15 -3
- package/dist/index.js +212 -106
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/extensionsListByFarmBeatsSample.js +6 -4
- package/dist-esm/samples-dev/extensionsListByFarmBeatsSample.js.map +1 -1
- package/dist-esm/samples-dev/farmBeatsExtensionsListSample.js +6 -4
- package/dist-esm/samples-dev/farmBeatsExtensionsListSample.js.map +1 -1
- package/dist-esm/samples-dev/farmBeatsModelsListByResourceGroupSample.js +6 -4
- package/dist-esm/samples-dev/farmBeatsModelsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/farmBeatsModelsListBySubscriptionSample.js +6 -4
- package/dist-esm/samples-dev/farmBeatsModelsListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +6 -4
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/privateEndpointConnectionsListByResourceSample.js +6 -4
- package/dist-esm/samples-dev/privateEndpointConnectionsListByResourceSample.js.map +1 -1
- package/dist-esm/samples-dev/privateLinkResourcesListByResourceSample.js +6 -4
- package/dist-esm/samples-dev/privateLinkResourcesListByResourceSample.js.map +1 -1
- package/dist-esm/src/agriFoodMgmtClient.d.ts.map +1 -1
- package/dist-esm/src/agriFoodMgmtClient.js +4 -7
- package/dist-esm/src/agriFoodMgmtClient.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +32 -32
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/operations/extensions.d.ts.map +1 -1
- package/dist-esm/src/operations/extensions.js +25 -11
- package/dist-esm/src/operations/extensions.js.map +1 -1
- package/dist-esm/src/operations/farmBeatsExtensions.d.ts.map +1 -1
- package/dist-esm/src/operations/farmBeatsExtensions.js +25 -11
- package/dist-esm/src/operations/farmBeatsExtensions.js.map +1 -1
- package/dist-esm/src/operations/farmBeatsModels.d.ts.map +1 -1
- package/dist-esm/src/operations/farmBeatsModels.js +49 -22
- package/dist-esm/src/operations/farmBeatsModels.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +25 -11
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndpointConnections.js +14 -8
- package/dist-esm/src/operations/privateEndpointConnections.js.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.d.ts.map +1 -1
- package/dist-esm/src/operations/privateLinkResources.js +14 -8
- package/dist-esm/src/operations/privateLinkResources.js.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/package.json +14 -18
- package/review/arm-agrifood.api.md +3 -0
- package/src/agriFoodMgmtClient.ts +5 -6
- package/src/index.ts +1 -0
- package/src/operations/extensions.ts +27 -13
- package/src/operations/farmBeatsExtensions.ts +21 -8
- package/src/operations/farmBeatsModels.ts +46 -17
- package/src/operations/operations.ts +21 -8
- package/src/operations/privateEndpointConnections.ts +13 -7
- package/src/operations/privateLinkResources.ts +11 -5
- package/src/pagingHelper.ts +39 -0
- package/types/arm-agrifood.d.ts +9 -0
- package/types/tsdoc-metadata.json +1 -1
- package/rollup.config.js +0 -122
package/CHANGELOG.md
CHANGED
|
@@ -1,17 +1,29 @@
|
|
|
1
1
|
# Release History
|
|
2
2
|
|
|
3
|
+
## 1.0.0-beta.5 (2024-04-08)
|
|
4
|
+
|
|
5
|
+
### Bugs Fixed
|
|
6
|
+
|
|
7
|
+
- Release a beta version to fix latest tag issue
|
|
8
|
+
|
|
9
|
+
## 1.0.0-beta.4 (2022-11-14)
|
|
10
|
+
|
|
11
|
+
**Features**
|
|
12
|
+
|
|
13
|
+
- Bugs Fixed
|
|
14
|
+
|
|
3
15
|
## 1.0.0-beta.3 (2022-10-08)
|
|
4
16
|
|
|
5
17
|
**Bugs Fixed**
|
|
6
18
|
|
|
7
|
-
|
|
19
|
+
- revert credential scopes
|
|
8
20
|
|
|
9
21
|
## 1.0.0-beta.2 (2022-09-30)
|
|
10
22
|
|
|
11
23
|
**Bugs Fixed**
|
|
12
24
|
|
|
13
|
-
|
|
25
|
+
- fix better user experience of credential scopes in government cloud
|
|
14
26
|
|
|
15
27
|
## 1.0.0-beta.1 (2022-08-31)
|
|
16
28
|
|
|
17
|
-
The package of @azure/arm-agrifood is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/js
|
|
29
|
+
The package of @azure/arm-agrifood is using our next generation design principles. To learn more, please refer to our documentation [Quick Start](https://aka.ms/azsdk/js/mgmt/quickstart ).
|
package/dist/index.js
CHANGED
|
@@ -7,8 +7,7 @@ var coreClient = require('@azure/core-client');
|
|
|
7
7
|
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
8
8
|
var coreLro = require('@azure/core-lro');
|
|
9
9
|
|
|
10
|
-
function
|
|
11
|
-
if (e && e.__esModule) return e;
|
|
10
|
+
function _interopNamespaceDefault(e) {
|
|
12
11
|
var n = Object.create(null);
|
|
13
12
|
if (e) {
|
|
14
13
|
Object.keys(e).forEach(function (k) {
|
|
@@ -21,12 +20,44 @@ function _interopNamespace(e) {
|
|
|
21
20
|
}
|
|
22
21
|
});
|
|
23
22
|
}
|
|
24
|
-
n
|
|
23
|
+
n.default = e;
|
|
25
24
|
return Object.freeze(n);
|
|
26
25
|
}
|
|
27
26
|
|
|
28
|
-
var coreClient__namespace = /*#__PURE__*/
|
|
29
|
-
var coreRestPipeline__namespace = /*#__PURE__*/
|
|
27
|
+
var coreClient__namespace = /*#__PURE__*/_interopNamespaceDefault(coreClient);
|
|
28
|
+
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespaceDefault(coreRestPipeline);
|
|
29
|
+
|
|
30
|
+
/*
|
|
31
|
+
* Copyright (c) Microsoft Corporation.
|
|
32
|
+
* Licensed under the MIT License.
|
|
33
|
+
*
|
|
34
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
35
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
36
|
+
*/
|
|
37
|
+
const pageMap = new WeakMap();
|
|
38
|
+
/**
|
|
39
|
+
* Given a result page from a pageable operation, returns a
|
|
40
|
+
* continuation token that can be used to begin paging from
|
|
41
|
+
* that point later.
|
|
42
|
+
* @param page A result object from calling .byPage() on a paged operation.
|
|
43
|
+
* @returns The continuation token that can be passed into byPage().
|
|
44
|
+
*/
|
|
45
|
+
function getContinuationToken(page) {
|
|
46
|
+
var _a;
|
|
47
|
+
if (typeof page !== "object" || page === null) {
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
50
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
51
|
+
}
|
|
52
|
+
function setContinuationToken(page, continuationToken) {
|
|
53
|
+
var _a;
|
|
54
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
55
|
+
return;
|
|
56
|
+
}
|
|
57
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
58
|
+
pageInfo.continuationToken = continuationToken;
|
|
59
|
+
pageMap.set(page, pageInfo);
|
|
60
|
+
}
|
|
30
61
|
|
|
31
62
|
/*
|
|
32
63
|
* Copyright (c) Microsoft Corporation.
|
|
@@ -1130,39 +1161,39 @@ const PrivateEndpointConnectionsDeleteHeaders = {
|
|
|
1130
1161
|
|
|
1131
1162
|
var Mappers = /*#__PURE__*/Object.freeze({
|
|
1132
1163
|
__proto__: null,
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1164
|
+
ArmAsyncOperation: ArmAsyncOperation,
|
|
1165
|
+
CheckNameAvailabilityRequest: CheckNameAvailabilityRequest,
|
|
1166
|
+
CheckNameAvailabilityResponse: CheckNameAvailabilityResponse,
|
|
1167
|
+
DetailedInformation: DetailedInformation,
|
|
1137
1168
|
ErrorAdditionalInfo: ErrorAdditionalInfo,
|
|
1169
|
+
ErrorDetail: ErrorDetail,
|
|
1170
|
+
ErrorResponse: ErrorResponse,
|
|
1171
|
+
Extension: Extension,
|
|
1138
1172
|
ExtensionListResponse: ExtensionListResponse,
|
|
1173
|
+
FarmBeats: FarmBeats,
|
|
1174
|
+
FarmBeatsExtension: FarmBeatsExtension,
|
|
1139
1175
|
FarmBeatsExtensionListResponse: FarmBeatsExtensionListResponse,
|
|
1140
|
-
DetailedInformation: DetailedInformation,
|
|
1141
|
-
UnitSystemsInfo: UnitSystemsInfo,
|
|
1142
|
-
Identity: Identity,
|
|
1143
|
-
SensorIntegration: SensorIntegration,
|
|
1144
|
-
PrivateEndpoint: PrivateEndpoint,
|
|
1145
|
-
PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
|
|
1146
|
-
FarmBeatsUpdateRequestModel: FarmBeatsUpdateRequestModel,
|
|
1147
|
-
FarmBeatsUpdateProperties: FarmBeatsUpdateProperties,
|
|
1148
1176
|
FarmBeatsListResponse: FarmBeatsListResponse,
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1177
|
+
FarmBeatsModelsUpdateHeaders: FarmBeatsModelsUpdateHeaders,
|
|
1178
|
+
FarmBeatsUpdateProperties: FarmBeatsUpdateProperties,
|
|
1179
|
+
FarmBeatsUpdateRequestModel: FarmBeatsUpdateRequestModel,
|
|
1180
|
+
Identity: Identity,
|
|
1153
1181
|
Operation: Operation,
|
|
1154
1182
|
OperationDisplay: OperationDisplay,
|
|
1183
|
+
OperationListResult: OperationListResult,
|
|
1184
|
+
PrivateEndpoint: PrivateEndpoint,
|
|
1185
|
+
PrivateEndpointConnection: PrivateEndpointConnection,
|
|
1155
1186
|
PrivateEndpointConnectionListResult: PrivateEndpointConnectionListResult,
|
|
1187
|
+
PrivateEndpointConnectionsDeleteHeaders: PrivateEndpointConnectionsDeleteHeaders,
|
|
1188
|
+
PrivateLinkResource: PrivateLinkResource,
|
|
1156
1189
|
PrivateLinkResourceListResult: PrivateLinkResourceListResult,
|
|
1190
|
+
PrivateLinkServiceConnectionState: PrivateLinkServiceConnectionState,
|
|
1157
1191
|
ProxyResource: ProxyResource,
|
|
1158
|
-
|
|
1192
|
+
Resource: Resource,
|
|
1193
|
+
SensorIntegration: SensorIntegration,
|
|
1194
|
+
SystemData: SystemData,
|
|
1159
1195
|
TrackedResource: TrackedResource,
|
|
1160
|
-
|
|
1161
|
-
Extension: Extension,
|
|
1162
|
-
FarmBeatsExtension: FarmBeatsExtension,
|
|
1163
|
-
FarmBeats: FarmBeats,
|
|
1164
|
-
FarmBeatsModelsUpdateHeaders: FarmBeatsModelsUpdateHeaders,
|
|
1165
|
-
PrivateEndpointConnectionsDeleteHeaders: PrivateEndpointConnectionsDeleteHeaders
|
|
1196
|
+
UnitSystemsInfo: UnitSystemsInfo
|
|
1166
1197
|
});
|
|
1167
1198
|
|
|
1168
1199
|
/*
|
|
@@ -1467,36 +1498,49 @@ class ExtensionsImpl {
|
|
|
1467
1498
|
[Symbol.asyncIterator]() {
|
|
1468
1499
|
return this;
|
|
1469
1500
|
},
|
|
1470
|
-
byPage: () => {
|
|
1471
|
-
|
|
1501
|
+
byPage: (settings) => {
|
|
1502
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1503
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1504
|
+
}
|
|
1505
|
+
return this.listByFarmBeatsPagingPage(resourceGroupName, farmBeatsResourceName, options, settings);
|
|
1472
1506
|
}
|
|
1473
1507
|
};
|
|
1474
1508
|
}
|
|
1475
|
-
listByFarmBeatsPagingPage(resourceGroupName, farmBeatsResourceName, options) {
|
|
1509
|
+
listByFarmBeatsPagingPage(resourceGroupName, farmBeatsResourceName, options, settings) {
|
|
1476
1510
|
return tslib.__asyncGenerator(this, arguments, function* listByFarmBeatsPagingPage_1() {
|
|
1477
|
-
let result
|
|
1478
|
-
|
|
1479
|
-
|
|
1511
|
+
let result;
|
|
1512
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1513
|
+
if (!continuationToken) {
|
|
1514
|
+
result = yield tslib.__await(this._listByFarmBeats(resourceGroupName, farmBeatsResourceName, options));
|
|
1515
|
+
let page = result.value || [];
|
|
1516
|
+
continuationToken = result.nextLink;
|
|
1517
|
+
setContinuationToken(page, continuationToken);
|
|
1518
|
+
yield yield tslib.__await(page);
|
|
1519
|
+
}
|
|
1480
1520
|
while (continuationToken) {
|
|
1481
1521
|
result = yield tslib.__await(this._listByFarmBeatsNext(resourceGroupName, farmBeatsResourceName, continuationToken, options));
|
|
1482
1522
|
continuationToken = result.nextLink;
|
|
1483
|
-
|
|
1523
|
+
let page = result.value || [];
|
|
1524
|
+
setContinuationToken(page, continuationToken);
|
|
1525
|
+
yield yield tslib.__await(page);
|
|
1484
1526
|
}
|
|
1485
1527
|
});
|
|
1486
1528
|
}
|
|
1487
1529
|
listByFarmBeatsPagingAll(resourceGroupName, farmBeatsResourceName, options) {
|
|
1488
1530
|
return tslib.__asyncGenerator(this, arguments, function* listByFarmBeatsPagingAll_1() {
|
|
1489
|
-
var e_1,
|
|
1531
|
+
var _a, e_1, _b, _c;
|
|
1490
1532
|
try {
|
|
1491
|
-
for (var
|
|
1492
|
-
|
|
1533
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByFarmBeatsPagingPage(resourceGroupName, farmBeatsResourceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
1534
|
+
_c = _f.value;
|
|
1535
|
+
_d = false;
|
|
1536
|
+
const page = _c;
|
|
1493
1537
|
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1494
1538
|
}
|
|
1495
1539
|
}
|
|
1496
1540
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1497
1541
|
finally {
|
|
1498
1542
|
try {
|
|
1499
|
-
if (
|
|
1543
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1500
1544
|
}
|
|
1501
1545
|
finally { if (e_1) throw e_1.error; }
|
|
1502
1546
|
}
|
|
@@ -1737,36 +1781,49 @@ class FarmBeatsExtensionsImpl {
|
|
|
1737
1781
|
[Symbol.asyncIterator]() {
|
|
1738
1782
|
return this;
|
|
1739
1783
|
},
|
|
1740
|
-
byPage: () => {
|
|
1741
|
-
|
|
1784
|
+
byPage: (settings) => {
|
|
1785
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1786
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1787
|
+
}
|
|
1788
|
+
return this.listPagingPage(options, settings);
|
|
1742
1789
|
}
|
|
1743
1790
|
};
|
|
1744
1791
|
}
|
|
1745
|
-
listPagingPage(options) {
|
|
1792
|
+
listPagingPage(options, settings) {
|
|
1746
1793
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
1747
|
-
let result
|
|
1748
|
-
|
|
1749
|
-
|
|
1794
|
+
let result;
|
|
1795
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1796
|
+
if (!continuationToken) {
|
|
1797
|
+
result = yield tslib.__await(this._list(options));
|
|
1798
|
+
let page = result.value || [];
|
|
1799
|
+
continuationToken = result.nextLink;
|
|
1800
|
+
setContinuationToken(page, continuationToken);
|
|
1801
|
+
yield yield tslib.__await(page);
|
|
1802
|
+
}
|
|
1750
1803
|
while (continuationToken) {
|
|
1751
1804
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
1752
1805
|
continuationToken = result.nextLink;
|
|
1753
|
-
|
|
1806
|
+
let page = result.value || [];
|
|
1807
|
+
setContinuationToken(page, continuationToken);
|
|
1808
|
+
yield yield tslib.__await(page);
|
|
1754
1809
|
}
|
|
1755
1810
|
});
|
|
1756
1811
|
}
|
|
1757
1812
|
listPagingAll(options) {
|
|
1758
1813
|
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
1759
|
-
var e_1,
|
|
1814
|
+
var _a, e_1, _b, _c;
|
|
1760
1815
|
try {
|
|
1761
|
-
for (var
|
|
1762
|
-
|
|
1816
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
1817
|
+
_c = _f.value;
|
|
1818
|
+
_d = false;
|
|
1819
|
+
const page = _c;
|
|
1763
1820
|
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1764
1821
|
}
|
|
1765
1822
|
}
|
|
1766
1823
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1767
1824
|
finally {
|
|
1768
1825
|
try {
|
|
1769
|
-
if (
|
|
1826
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1770
1827
|
}
|
|
1771
1828
|
finally { if (e_1) throw e_1.error; }
|
|
1772
1829
|
}
|
|
@@ -1919,36 +1976,49 @@ class FarmBeatsModelsImpl {
|
|
|
1919
1976
|
[Symbol.asyncIterator]() {
|
|
1920
1977
|
return this;
|
|
1921
1978
|
},
|
|
1922
|
-
byPage: () => {
|
|
1923
|
-
|
|
1979
|
+
byPage: (settings) => {
|
|
1980
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1981
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1982
|
+
}
|
|
1983
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
1924
1984
|
}
|
|
1925
1985
|
};
|
|
1926
1986
|
}
|
|
1927
|
-
listBySubscriptionPagingPage(options) {
|
|
1987
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
1928
1988
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
1929
|
-
let result
|
|
1930
|
-
|
|
1931
|
-
|
|
1989
|
+
let result;
|
|
1990
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1991
|
+
if (!continuationToken) {
|
|
1992
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
1993
|
+
let page = result.value || [];
|
|
1994
|
+
continuationToken = result.nextLink;
|
|
1995
|
+
setContinuationToken(page, continuationToken);
|
|
1996
|
+
yield yield tslib.__await(page);
|
|
1997
|
+
}
|
|
1932
1998
|
while (continuationToken) {
|
|
1933
1999
|
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
1934
2000
|
continuationToken = result.nextLink;
|
|
1935
|
-
|
|
2001
|
+
let page = result.value || [];
|
|
2002
|
+
setContinuationToken(page, continuationToken);
|
|
2003
|
+
yield yield tslib.__await(page);
|
|
1936
2004
|
}
|
|
1937
2005
|
});
|
|
1938
2006
|
}
|
|
1939
2007
|
listBySubscriptionPagingAll(options) {
|
|
1940
2008
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
1941
|
-
var e_1,
|
|
2009
|
+
var _a, e_1, _b, _c;
|
|
1942
2010
|
try {
|
|
1943
|
-
for (var
|
|
1944
|
-
|
|
2011
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
2012
|
+
_c = _f.value;
|
|
2013
|
+
_d = false;
|
|
2014
|
+
const page = _c;
|
|
1945
2015
|
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1946
2016
|
}
|
|
1947
2017
|
}
|
|
1948
2018
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1949
2019
|
finally {
|
|
1950
2020
|
try {
|
|
1951
|
-
if (
|
|
2021
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
1952
2022
|
}
|
|
1953
2023
|
finally { if (e_1) throw e_1.error; }
|
|
1954
2024
|
}
|
|
@@ -1968,36 +2038,49 @@ class FarmBeatsModelsImpl {
|
|
|
1968
2038
|
[Symbol.asyncIterator]() {
|
|
1969
2039
|
return this;
|
|
1970
2040
|
},
|
|
1971
|
-
byPage: () => {
|
|
1972
|
-
|
|
2041
|
+
byPage: (settings) => {
|
|
2042
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2043
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2044
|
+
}
|
|
2045
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
1973
2046
|
}
|
|
1974
2047
|
};
|
|
1975
2048
|
}
|
|
1976
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
2049
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
1977
2050
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
1978
|
-
let result
|
|
1979
|
-
|
|
1980
|
-
|
|
2051
|
+
let result;
|
|
2052
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2053
|
+
if (!continuationToken) {
|
|
2054
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
2055
|
+
let page = result.value || [];
|
|
2056
|
+
continuationToken = result.nextLink;
|
|
2057
|
+
setContinuationToken(page, continuationToken);
|
|
2058
|
+
yield yield tslib.__await(page);
|
|
2059
|
+
}
|
|
1981
2060
|
while (continuationToken) {
|
|
1982
2061
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
1983
2062
|
continuationToken = result.nextLink;
|
|
1984
|
-
|
|
2063
|
+
let page = result.value || [];
|
|
2064
|
+
setContinuationToken(page, continuationToken);
|
|
2065
|
+
yield yield tslib.__await(page);
|
|
1985
2066
|
}
|
|
1986
2067
|
});
|
|
1987
2068
|
}
|
|
1988
2069
|
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
1989
2070
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
1990
|
-
var e_2,
|
|
2071
|
+
var _a, e_2, _b, _c;
|
|
1991
2072
|
try {
|
|
1992
|
-
for (var
|
|
1993
|
-
|
|
2073
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
2074
|
+
_c = _f.value;
|
|
2075
|
+
_d = false;
|
|
2076
|
+
const page = _c;
|
|
1994
2077
|
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1995
2078
|
}
|
|
1996
2079
|
}
|
|
1997
2080
|
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1998
2081
|
finally {
|
|
1999
2082
|
try {
|
|
2000
|
-
if (
|
|
2083
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2001
2084
|
}
|
|
2002
2085
|
finally { if (e_2) throw e_2.error; }
|
|
2003
2086
|
}
|
|
@@ -2421,36 +2504,49 @@ class OperationsImpl {
|
|
|
2421
2504
|
[Symbol.asyncIterator]() {
|
|
2422
2505
|
return this;
|
|
2423
2506
|
},
|
|
2424
|
-
byPage: () => {
|
|
2425
|
-
|
|
2507
|
+
byPage: (settings) => {
|
|
2508
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2509
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2510
|
+
}
|
|
2511
|
+
return this.listPagingPage(options, settings);
|
|
2426
2512
|
}
|
|
2427
2513
|
};
|
|
2428
2514
|
}
|
|
2429
|
-
listPagingPage(options) {
|
|
2515
|
+
listPagingPage(options, settings) {
|
|
2430
2516
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2431
|
-
let result
|
|
2432
|
-
|
|
2433
|
-
|
|
2517
|
+
let result;
|
|
2518
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2519
|
+
if (!continuationToken) {
|
|
2520
|
+
result = yield tslib.__await(this._list(options));
|
|
2521
|
+
let page = result.value || [];
|
|
2522
|
+
continuationToken = result.nextLink;
|
|
2523
|
+
setContinuationToken(page, continuationToken);
|
|
2524
|
+
yield yield tslib.__await(page);
|
|
2525
|
+
}
|
|
2434
2526
|
while (continuationToken) {
|
|
2435
2527
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
2436
2528
|
continuationToken = result.nextLink;
|
|
2437
|
-
|
|
2529
|
+
let page = result.value || [];
|
|
2530
|
+
setContinuationToken(page, continuationToken);
|
|
2531
|
+
yield yield tslib.__await(page);
|
|
2438
2532
|
}
|
|
2439
2533
|
});
|
|
2440
2534
|
}
|
|
2441
2535
|
listPagingAll(options) {
|
|
2442
2536
|
return tslib.__asyncGenerator(this, arguments, function* listPagingAll_1() {
|
|
2443
|
-
var e_1,
|
|
2537
|
+
var _a, e_1, _b, _c;
|
|
2444
2538
|
try {
|
|
2445
|
-
for (var
|
|
2446
|
-
|
|
2539
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
2540
|
+
_c = _f.value;
|
|
2541
|
+
_d = false;
|
|
2542
|
+
const page = _c;
|
|
2447
2543
|
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2448
2544
|
}
|
|
2449
2545
|
}
|
|
2450
2546
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2451
2547
|
finally {
|
|
2452
2548
|
try {
|
|
2453
|
-
if (
|
|
2549
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2454
2550
|
}
|
|
2455
2551
|
finally { if (e_1) throw e_1.error; }
|
|
2456
2552
|
}
|
|
@@ -2539,30 +2635,36 @@ class PrivateEndpointConnectionsImpl {
|
|
|
2539
2635
|
[Symbol.asyncIterator]() {
|
|
2540
2636
|
return this;
|
|
2541
2637
|
},
|
|
2542
|
-
byPage: () => {
|
|
2543
|
-
|
|
2638
|
+
byPage: (settings) => {
|
|
2639
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2640
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2641
|
+
}
|
|
2642
|
+
return this.listByResourcePagingPage(resourceGroupName, farmBeatsResourceName, options, settings);
|
|
2544
2643
|
}
|
|
2545
2644
|
};
|
|
2546
2645
|
}
|
|
2547
|
-
listByResourcePagingPage(resourceGroupName, farmBeatsResourceName, options) {
|
|
2646
|
+
listByResourcePagingPage(resourceGroupName, farmBeatsResourceName, options, _settings) {
|
|
2548
2647
|
return tslib.__asyncGenerator(this, arguments, function* listByResourcePagingPage_1() {
|
|
2549
|
-
let result
|
|
2648
|
+
let result;
|
|
2649
|
+
result = yield tslib.__await(this._listByResource(resourceGroupName, farmBeatsResourceName, options));
|
|
2550
2650
|
yield yield tslib.__await(result.value || []);
|
|
2551
2651
|
});
|
|
2552
2652
|
}
|
|
2553
2653
|
listByResourcePagingAll(resourceGroupName, farmBeatsResourceName, options) {
|
|
2554
2654
|
return tslib.__asyncGenerator(this, arguments, function* listByResourcePagingAll_1() {
|
|
2555
|
-
var e_1,
|
|
2655
|
+
var _a, e_1, _b, _c;
|
|
2556
2656
|
try {
|
|
2557
|
-
for (var
|
|
2558
|
-
|
|
2657
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByResourcePagingPage(resourceGroupName, farmBeatsResourceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
2658
|
+
_c = _f.value;
|
|
2659
|
+
_d = false;
|
|
2660
|
+
const page = _c;
|
|
2559
2661
|
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2560
2662
|
}
|
|
2561
2663
|
}
|
|
2562
2664
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2563
2665
|
finally {
|
|
2564
2666
|
try {
|
|
2565
|
-
if (
|
|
2667
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2566
2668
|
}
|
|
2567
2669
|
finally { if (e_1) throw e_1.error; }
|
|
2568
2670
|
}
|
|
@@ -2798,30 +2900,36 @@ class PrivateLinkResourcesImpl {
|
|
|
2798
2900
|
[Symbol.asyncIterator]() {
|
|
2799
2901
|
return this;
|
|
2800
2902
|
},
|
|
2801
|
-
byPage: () => {
|
|
2802
|
-
|
|
2903
|
+
byPage: (settings) => {
|
|
2904
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2905
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2906
|
+
}
|
|
2907
|
+
return this.listByResourcePagingPage(resourceGroupName, farmBeatsResourceName, options, settings);
|
|
2803
2908
|
}
|
|
2804
2909
|
};
|
|
2805
2910
|
}
|
|
2806
|
-
listByResourcePagingPage(resourceGroupName, farmBeatsResourceName, options) {
|
|
2911
|
+
listByResourcePagingPage(resourceGroupName, farmBeatsResourceName, options, _settings) {
|
|
2807
2912
|
return tslib.__asyncGenerator(this, arguments, function* listByResourcePagingPage_1() {
|
|
2808
|
-
let result
|
|
2913
|
+
let result;
|
|
2914
|
+
result = yield tslib.__await(this._listByResource(resourceGroupName, farmBeatsResourceName, options));
|
|
2809
2915
|
yield yield tslib.__await(result.value || []);
|
|
2810
2916
|
});
|
|
2811
2917
|
}
|
|
2812
2918
|
listByResourcePagingAll(resourceGroupName, farmBeatsResourceName, options) {
|
|
2813
2919
|
return tslib.__asyncGenerator(this, arguments, function* listByResourcePagingAll_1() {
|
|
2814
|
-
var e_1,
|
|
2920
|
+
var _a, e_1, _b, _c;
|
|
2815
2921
|
try {
|
|
2816
|
-
for (var
|
|
2817
|
-
|
|
2922
|
+
for (var _d = true, _e = tslib.__asyncValues(this.listByResourcePagingPage(resourceGroupName, farmBeatsResourceName, options)), _f; _f = yield tslib.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
2923
|
+
_c = _f.value;
|
|
2924
|
+
_d = false;
|
|
2925
|
+
const page = _c;
|
|
2818
2926
|
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
2819
2927
|
}
|
|
2820
2928
|
}
|
|
2821
2929
|
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
2822
2930
|
finally {
|
|
2823
2931
|
try {
|
|
2824
|
-
if (
|
|
2932
|
+
if (!_d && !_a && (_b = _e.return)) yield tslib.__await(_b.call(_e));
|
|
2825
2933
|
}
|
|
2826
2934
|
finally { if (e_1) throw e_1.error; }
|
|
2827
2935
|
}
|
|
@@ -2912,7 +3020,7 @@ class AgriFoodMgmtClient extends coreClient__namespace.ServiceClient {
|
|
|
2912
3020
|
* @param options The parameter options
|
|
2913
3021
|
*/
|
|
2914
3022
|
constructor(credentials, subscriptionId, options) {
|
|
2915
|
-
var _a, _b;
|
|
3023
|
+
var _a, _b, _c;
|
|
2916
3024
|
if (credentials === undefined) {
|
|
2917
3025
|
throw new Error("'credentials' cannot be null");
|
|
2918
3026
|
}
|
|
@@ -2927,16 +3035,13 @@ class AgriFoodMgmtClient extends coreClient__namespace.ServiceClient {
|
|
|
2927
3035
|
requestContentType: "application/json; charset=utf-8",
|
|
2928
3036
|
credential: credentials
|
|
2929
3037
|
};
|
|
2930
|
-
const packageDetails = `azsdk-js-arm-agrifood/1.0.0-beta.
|
|
3038
|
+
const packageDetails = `azsdk-js-arm-agrifood/1.0.0-beta.5`;
|
|
2931
3039
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
2932
3040
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
2933
3041
|
: `${packageDetails}`;
|
|
2934
|
-
if (!options.credentialScopes) {
|
|
2935
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
2936
|
-
}
|
|
2937
3042
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
2938
3043
|
userAgentPrefix
|
|
2939
|
-
},
|
|
3044
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
2940
3045
|
super(optionsWithDefaults);
|
|
2941
3046
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
2942
3047
|
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
@@ -2953,7 +3058,7 @@ class AgriFoodMgmtClient extends coreClient__namespace.ServiceClient {
|
|
|
2953
3058
|
});
|
|
2954
3059
|
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
2955
3060
|
credential: credentials,
|
|
2956
|
-
scopes: `${optionsWithDefaults.
|
|
3061
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
2957
3062
|
challengeCallbacks: {
|
|
2958
3063
|
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
2959
3064
|
}
|
|
@@ -3003,4 +3108,5 @@ class AgriFoodMgmtClient extends coreClient__namespace.ServiceClient {
|
|
|
3003
3108
|
}
|
|
3004
3109
|
|
|
3005
3110
|
exports.AgriFoodMgmtClient = AgriFoodMgmtClient;
|
|
3111
|
+
exports.getContinuationToken = getContinuationToken;
|
|
3006
3112
|
//# sourceMappingURL=index.js.map
|