@azure/arm-appconfiguration 3.0.3-alpha.20221026.1 → 3.1.0
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 +8 -11
- package/dist/index.js +221 -75
- 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/src/appConfigurationManagementClient.d.ts.map +1 -1
- package/dist-esm/src/appConfigurationManagementClient.js +21 -19
- package/dist-esm/src/appConfigurationManagementClient.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 +27 -4
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +23 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/operations/configurationStores.d.ts.map +1 -1
- package/dist-esm/src/operations/configurationStores.js +73 -28
- package/dist-esm/src/operations/configurationStores.js.map +1 -1
- package/dist-esm/src/operations/keyValues.d.ts.map +1 -1
- package/dist-esm/src/operations/keyValues.js +19 -7
- package/dist-esm/src/operations/keyValues.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +19 -7
- 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 +19 -7
- 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 +19 -7
- 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 +8 -8
- package/review/arm-appconfiguration.api.md +16 -36
- package/src/appConfigurationManagementClient.ts +27 -21
- package/src/index.ts +1 -0
- package/src/models/index.ts +27 -4
- package/src/operations/configurationStores.ts +91 -37
- package/src/operations/keyValues.ts +26 -12
- package/src/operations/operations.ts +22 -9
- package/src/operations/privateEndpointConnections.ts +26 -12
- package/src/operations/privateLinkResources.ts +26 -12
- package/src/pagingHelper.ts +39 -0
- package/types/arm-appconfiguration.d.ts +36 -4
- package/types/tsdoc-metadata.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
1
|
# Release History
|
|
2
|
-
|
|
3
|
-
## 3.0
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
### Other Changes
|
|
12
|
-
|
|
2
|
+
|
|
3
|
+
## 3.1.0 (2022-11-15)
|
|
4
|
+
|
|
5
|
+
**Features**
|
|
6
|
+
|
|
7
|
+
- Added Interface ConfigurationStore
|
|
8
|
+
- Added Interface TrackedResource
|
|
9
|
+
|
|
13
10
|
## 3.0.2 (2022-10-08)
|
|
14
11
|
|
|
15
12
|
**Bugs Fixed**
|
package/dist/index.js
CHANGED
|
@@ -28,6 +28,38 @@ function _interopNamespace(e) {
|
|
|
28
28
|
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
29
29
|
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
30
30
|
|
|
31
|
+
/*
|
|
32
|
+
* Copyright (c) Microsoft Corporation.
|
|
33
|
+
* Licensed under the MIT License.
|
|
34
|
+
*
|
|
35
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
36
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
37
|
+
*/
|
|
38
|
+
const pageMap = new WeakMap();
|
|
39
|
+
/**
|
|
40
|
+
* Given a result page from a pageable operation, returns a
|
|
41
|
+
* continuation token that can be used to begin paging from
|
|
42
|
+
* that point later.
|
|
43
|
+
* @param page A result object from calling .byPage() on a paged operation.
|
|
44
|
+
* @returns The continuation token that can be passed into byPage().
|
|
45
|
+
*/
|
|
46
|
+
function getContinuationToken(page) {
|
|
47
|
+
var _a;
|
|
48
|
+
if (typeof page !== "object" || page === null) {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
52
|
+
}
|
|
53
|
+
function setContinuationToken(page, continuationToken) {
|
|
54
|
+
var _a;
|
|
55
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
const pageInfo = (_a = pageMap.get(page)) !== null && _a !== void 0 ? _a : {};
|
|
59
|
+
pageInfo.continuationToken = continuationToken;
|
|
60
|
+
pageMap.set(page, pageInfo);
|
|
61
|
+
}
|
|
62
|
+
|
|
31
63
|
/*
|
|
32
64
|
* Copyright (c) Microsoft Corporation.
|
|
33
65
|
* Licensed under the MIT License.
|
|
@@ -38,52 +70,75 @@ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipelin
|
|
|
38
70
|
/** Known values of {@link IdentityType} that the service accepts. */
|
|
39
71
|
exports.KnownIdentityType = void 0;
|
|
40
72
|
(function (KnownIdentityType) {
|
|
73
|
+
/** None */
|
|
41
74
|
KnownIdentityType["None"] = "None";
|
|
75
|
+
/** SystemAssigned */
|
|
42
76
|
KnownIdentityType["SystemAssigned"] = "SystemAssigned";
|
|
77
|
+
/** UserAssigned */
|
|
43
78
|
KnownIdentityType["UserAssigned"] = "UserAssigned";
|
|
79
|
+
/** SystemAssignedUserAssigned */
|
|
44
80
|
KnownIdentityType["SystemAssignedUserAssigned"] = "SystemAssigned, UserAssigned";
|
|
45
81
|
})(exports.KnownIdentityType || (exports.KnownIdentityType = {}));
|
|
46
82
|
/** Known values of {@link ProvisioningState} that the service accepts. */
|
|
47
83
|
exports.KnownProvisioningState = void 0;
|
|
48
84
|
(function (KnownProvisioningState) {
|
|
85
|
+
/** Creating */
|
|
49
86
|
KnownProvisioningState["Creating"] = "Creating";
|
|
87
|
+
/** Updating */
|
|
50
88
|
KnownProvisioningState["Updating"] = "Updating";
|
|
89
|
+
/** Deleting */
|
|
51
90
|
KnownProvisioningState["Deleting"] = "Deleting";
|
|
91
|
+
/** Succeeded */
|
|
52
92
|
KnownProvisioningState["Succeeded"] = "Succeeded";
|
|
93
|
+
/** Failed */
|
|
53
94
|
KnownProvisioningState["Failed"] = "Failed";
|
|
95
|
+
/** Canceled */
|
|
54
96
|
KnownProvisioningState["Canceled"] = "Canceled";
|
|
55
97
|
})(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
|
|
56
98
|
/** Known values of {@link ConnectionStatus} that the service accepts. */
|
|
57
99
|
exports.KnownConnectionStatus = void 0;
|
|
58
100
|
(function (KnownConnectionStatus) {
|
|
101
|
+
/** Pending */
|
|
59
102
|
KnownConnectionStatus["Pending"] = "Pending";
|
|
103
|
+
/** Approved */
|
|
60
104
|
KnownConnectionStatus["Approved"] = "Approved";
|
|
105
|
+
/** Rejected */
|
|
61
106
|
KnownConnectionStatus["Rejected"] = "Rejected";
|
|
107
|
+
/** Disconnected */
|
|
62
108
|
KnownConnectionStatus["Disconnected"] = "Disconnected";
|
|
63
109
|
})(exports.KnownConnectionStatus || (exports.KnownConnectionStatus = {}));
|
|
64
110
|
/** Known values of {@link ActionsRequired} that the service accepts. */
|
|
65
111
|
exports.KnownActionsRequired = void 0;
|
|
66
112
|
(function (KnownActionsRequired) {
|
|
113
|
+
/** None */
|
|
67
114
|
KnownActionsRequired["None"] = "None";
|
|
115
|
+
/** Recreate */
|
|
68
116
|
KnownActionsRequired["Recreate"] = "Recreate";
|
|
69
117
|
})(exports.KnownActionsRequired || (exports.KnownActionsRequired = {}));
|
|
70
118
|
/** Known values of {@link PublicNetworkAccess} that the service accepts. */
|
|
71
119
|
exports.KnownPublicNetworkAccess = void 0;
|
|
72
120
|
(function (KnownPublicNetworkAccess) {
|
|
121
|
+
/** Enabled */
|
|
73
122
|
KnownPublicNetworkAccess["Enabled"] = "Enabled";
|
|
123
|
+
/** Disabled */
|
|
74
124
|
KnownPublicNetworkAccess["Disabled"] = "Disabled";
|
|
75
125
|
})(exports.KnownPublicNetworkAccess || (exports.KnownPublicNetworkAccess = {}));
|
|
76
126
|
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
77
127
|
exports.KnownCreatedByType = void 0;
|
|
78
128
|
(function (KnownCreatedByType) {
|
|
129
|
+
/** User */
|
|
79
130
|
KnownCreatedByType["User"] = "User";
|
|
131
|
+
/** Application */
|
|
80
132
|
KnownCreatedByType["Application"] = "Application";
|
|
133
|
+
/** ManagedIdentity */
|
|
81
134
|
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
135
|
+
/** Key */
|
|
82
136
|
KnownCreatedByType["Key"] = "Key";
|
|
83
137
|
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
84
138
|
/** Known values of {@link ConfigurationResourceType} that the service accepts. */
|
|
85
139
|
exports.KnownConfigurationResourceType = void 0;
|
|
86
140
|
(function (KnownConfigurationResourceType) {
|
|
141
|
+
/** MicrosoftAppConfigurationConfigurationStores */
|
|
87
142
|
KnownConfigurationResourceType["MicrosoftAppConfigurationConfigurationStores"] = "Microsoft.AppConfiguration/configurationStores";
|
|
88
143
|
})(exports.KnownConfigurationResourceType || (exports.KnownConfigurationResourceType = {}));
|
|
89
144
|
|
|
@@ -1669,20 +1724,31 @@ class ConfigurationStoresImpl {
|
|
|
1669
1724
|
[Symbol.asyncIterator]() {
|
|
1670
1725
|
return this;
|
|
1671
1726
|
},
|
|
1672
|
-
byPage: () => {
|
|
1673
|
-
|
|
1727
|
+
byPage: (settings) => {
|
|
1728
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1729
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1730
|
+
}
|
|
1731
|
+
return this.listPagingPage(options, settings);
|
|
1674
1732
|
}
|
|
1675
1733
|
};
|
|
1676
1734
|
}
|
|
1677
|
-
listPagingPage(options) {
|
|
1735
|
+
listPagingPage(options, settings) {
|
|
1678
1736
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
1679
|
-
let result
|
|
1680
|
-
|
|
1681
|
-
|
|
1737
|
+
let result;
|
|
1738
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1739
|
+
if (!continuationToken) {
|
|
1740
|
+
result = yield tslib.__await(this._list(options));
|
|
1741
|
+
let page = result.value || [];
|
|
1742
|
+
continuationToken = result.nextLink;
|
|
1743
|
+
setContinuationToken(page, continuationToken);
|
|
1744
|
+
yield yield tslib.__await(page);
|
|
1745
|
+
}
|
|
1682
1746
|
while (continuationToken) {
|
|
1683
1747
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
1684
1748
|
continuationToken = result.nextLink;
|
|
1685
|
-
|
|
1749
|
+
let page = result.value || [];
|
|
1750
|
+
setContinuationToken(page, continuationToken);
|
|
1751
|
+
yield yield tslib.__await(page);
|
|
1686
1752
|
}
|
|
1687
1753
|
});
|
|
1688
1754
|
}
|
|
@@ -1718,20 +1784,31 @@ class ConfigurationStoresImpl {
|
|
|
1718
1784
|
[Symbol.asyncIterator]() {
|
|
1719
1785
|
return this;
|
|
1720
1786
|
},
|
|
1721
|
-
byPage: () => {
|
|
1722
|
-
|
|
1787
|
+
byPage: (settings) => {
|
|
1788
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1789
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1790
|
+
}
|
|
1791
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
1723
1792
|
}
|
|
1724
1793
|
};
|
|
1725
1794
|
}
|
|
1726
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
1795
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
1727
1796
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
1728
|
-
let result
|
|
1729
|
-
|
|
1730
|
-
|
|
1797
|
+
let result;
|
|
1798
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1799
|
+
if (!continuationToken) {
|
|
1800
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
1801
|
+
let page = result.value || [];
|
|
1802
|
+
continuationToken = result.nextLink;
|
|
1803
|
+
setContinuationToken(page, continuationToken);
|
|
1804
|
+
yield yield tslib.__await(page);
|
|
1805
|
+
}
|
|
1731
1806
|
while (continuationToken) {
|
|
1732
1807
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
1733
1808
|
continuationToken = result.nextLink;
|
|
1734
|
-
|
|
1809
|
+
let page = result.value || [];
|
|
1810
|
+
setContinuationToken(page, continuationToken);
|
|
1811
|
+
yield yield tslib.__await(page);
|
|
1735
1812
|
}
|
|
1736
1813
|
});
|
|
1737
1814
|
}
|
|
@@ -1768,20 +1845,31 @@ class ConfigurationStoresImpl {
|
|
|
1768
1845
|
[Symbol.asyncIterator]() {
|
|
1769
1846
|
return this;
|
|
1770
1847
|
},
|
|
1771
|
-
byPage: () => {
|
|
1772
|
-
|
|
1848
|
+
byPage: (settings) => {
|
|
1849
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1850
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1851
|
+
}
|
|
1852
|
+
return this.listKeysPagingPage(resourceGroupName, configStoreName, options, settings);
|
|
1773
1853
|
}
|
|
1774
1854
|
};
|
|
1775
1855
|
}
|
|
1776
|
-
listKeysPagingPage(resourceGroupName, configStoreName, options) {
|
|
1856
|
+
listKeysPagingPage(resourceGroupName, configStoreName, options, settings) {
|
|
1777
1857
|
return tslib.__asyncGenerator(this, arguments, function* listKeysPagingPage_1() {
|
|
1778
|
-
let result
|
|
1779
|
-
|
|
1780
|
-
|
|
1858
|
+
let result;
|
|
1859
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1860
|
+
if (!continuationToken) {
|
|
1861
|
+
result = yield tslib.__await(this._listKeys(resourceGroupName, configStoreName, options));
|
|
1862
|
+
let page = result.value || [];
|
|
1863
|
+
continuationToken = result.nextLink;
|
|
1864
|
+
setContinuationToken(page, continuationToken);
|
|
1865
|
+
yield yield tslib.__await(page);
|
|
1866
|
+
}
|
|
1781
1867
|
while (continuationToken) {
|
|
1782
1868
|
result = yield tslib.__await(this._listKeysNext(resourceGroupName, configStoreName, continuationToken, options));
|
|
1783
1869
|
continuationToken = result.nextLink;
|
|
1784
|
-
|
|
1870
|
+
let page = result.value || [];
|
|
1871
|
+
setContinuationToken(page, continuationToken);
|
|
1872
|
+
yield yield tslib.__await(page);
|
|
1785
1873
|
}
|
|
1786
1874
|
});
|
|
1787
1875
|
}
|
|
@@ -1816,20 +1904,31 @@ class ConfigurationStoresImpl {
|
|
|
1816
1904
|
[Symbol.asyncIterator]() {
|
|
1817
1905
|
return this;
|
|
1818
1906
|
},
|
|
1819
|
-
byPage: () => {
|
|
1820
|
-
|
|
1907
|
+
byPage: (settings) => {
|
|
1908
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1909
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1910
|
+
}
|
|
1911
|
+
return this.listDeletedPagingPage(options, settings);
|
|
1821
1912
|
}
|
|
1822
1913
|
};
|
|
1823
1914
|
}
|
|
1824
|
-
listDeletedPagingPage(options) {
|
|
1915
|
+
listDeletedPagingPage(options, settings) {
|
|
1825
1916
|
return tslib.__asyncGenerator(this, arguments, function* listDeletedPagingPage_1() {
|
|
1826
|
-
let result
|
|
1827
|
-
|
|
1828
|
-
|
|
1917
|
+
let result;
|
|
1918
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1919
|
+
if (!continuationToken) {
|
|
1920
|
+
result = yield tslib.__await(this._listDeleted(options));
|
|
1921
|
+
let page = result.value || [];
|
|
1922
|
+
continuationToken = result.nextLink;
|
|
1923
|
+
setContinuationToken(page, continuationToken);
|
|
1924
|
+
yield yield tslib.__await(page);
|
|
1925
|
+
}
|
|
1829
1926
|
while (continuationToken) {
|
|
1830
1927
|
result = yield tslib.__await(this._listDeletedNext(continuationToken, options));
|
|
1831
1928
|
continuationToken = result.nextLink;
|
|
1832
|
-
|
|
1929
|
+
let page = result.value || [];
|
|
1930
|
+
setContinuationToken(page, continuationToken);
|
|
1931
|
+
yield yield tslib.__await(page);
|
|
1833
1932
|
}
|
|
1834
1933
|
});
|
|
1835
1934
|
}
|
|
@@ -2526,20 +2625,31 @@ class OperationsImpl {
|
|
|
2526
2625
|
[Symbol.asyncIterator]() {
|
|
2527
2626
|
return this;
|
|
2528
2627
|
},
|
|
2529
|
-
byPage: () => {
|
|
2530
|
-
|
|
2628
|
+
byPage: (settings) => {
|
|
2629
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2630
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2631
|
+
}
|
|
2632
|
+
return this.listPagingPage(options, settings);
|
|
2531
2633
|
}
|
|
2532
2634
|
};
|
|
2533
2635
|
}
|
|
2534
|
-
listPagingPage(options) {
|
|
2636
|
+
listPagingPage(options, settings) {
|
|
2535
2637
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2536
|
-
let result
|
|
2537
|
-
|
|
2538
|
-
|
|
2638
|
+
let result;
|
|
2639
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2640
|
+
if (!continuationToken) {
|
|
2641
|
+
result = yield tslib.__await(this._list(options));
|
|
2642
|
+
let page = result.value || [];
|
|
2643
|
+
continuationToken = result.nextLink;
|
|
2644
|
+
setContinuationToken(page, continuationToken);
|
|
2645
|
+
yield yield tslib.__await(page);
|
|
2646
|
+
}
|
|
2539
2647
|
while (continuationToken) {
|
|
2540
2648
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
2541
2649
|
continuationToken = result.nextLink;
|
|
2542
|
-
|
|
2650
|
+
let page = result.value || [];
|
|
2651
|
+
setContinuationToken(page, continuationToken);
|
|
2652
|
+
yield yield tslib.__await(page);
|
|
2543
2653
|
}
|
|
2544
2654
|
});
|
|
2545
2655
|
}
|
|
@@ -2703,20 +2813,31 @@ class PrivateEndpointConnectionsImpl {
|
|
|
2703
2813
|
[Symbol.asyncIterator]() {
|
|
2704
2814
|
return this;
|
|
2705
2815
|
},
|
|
2706
|
-
byPage: () => {
|
|
2707
|
-
|
|
2816
|
+
byPage: (settings) => {
|
|
2817
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2818
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2819
|
+
}
|
|
2820
|
+
return this.listByConfigurationStorePagingPage(resourceGroupName, configStoreName, options, settings);
|
|
2708
2821
|
}
|
|
2709
2822
|
};
|
|
2710
2823
|
}
|
|
2711
|
-
listByConfigurationStorePagingPage(resourceGroupName, configStoreName, options) {
|
|
2824
|
+
listByConfigurationStorePagingPage(resourceGroupName, configStoreName, options, settings) {
|
|
2712
2825
|
return tslib.__asyncGenerator(this, arguments, function* listByConfigurationStorePagingPage_1() {
|
|
2713
|
-
let result
|
|
2714
|
-
|
|
2715
|
-
|
|
2826
|
+
let result;
|
|
2827
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2828
|
+
if (!continuationToken) {
|
|
2829
|
+
result = yield tslib.__await(this._listByConfigurationStore(resourceGroupName, configStoreName, options));
|
|
2830
|
+
let page = result.value || [];
|
|
2831
|
+
continuationToken = result.nextLink;
|
|
2832
|
+
setContinuationToken(page, continuationToken);
|
|
2833
|
+
yield yield tslib.__await(page);
|
|
2834
|
+
}
|
|
2716
2835
|
while (continuationToken) {
|
|
2717
2836
|
result = yield tslib.__await(this._listByConfigurationStoreNext(resourceGroupName, configStoreName, continuationToken, options));
|
|
2718
2837
|
continuationToken = result.nextLink;
|
|
2719
|
-
|
|
2838
|
+
let page = result.value || [];
|
|
2839
|
+
setContinuationToken(page, continuationToken);
|
|
2840
|
+
yield yield tslib.__await(page);
|
|
2720
2841
|
}
|
|
2721
2842
|
});
|
|
2722
2843
|
}
|
|
@@ -3051,20 +3172,31 @@ class PrivateLinkResourcesImpl {
|
|
|
3051
3172
|
[Symbol.asyncIterator]() {
|
|
3052
3173
|
return this;
|
|
3053
3174
|
},
|
|
3054
|
-
byPage: () => {
|
|
3055
|
-
|
|
3175
|
+
byPage: (settings) => {
|
|
3176
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3177
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3178
|
+
}
|
|
3179
|
+
return this.listByConfigurationStorePagingPage(resourceGroupName, configStoreName, options, settings);
|
|
3056
3180
|
}
|
|
3057
3181
|
};
|
|
3058
3182
|
}
|
|
3059
|
-
listByConfigurationStorePagingPage(resourceGroupName, configStoreName, options) {
|
|
3183
|
+
listByConfigurationStorePagingPage(resourceGroupName, configStoreName, options, settings) {
|
|
3060
3184
|
return tslib.__asyncGenerator(this, arguments, function* listByConfigurationStorePagingPage_1() {
|
|
3061
|
-
let result
|
|
3062
|
-
|
|
3063
|
-
|
|
3185
|
+
let result;
|
|
3186
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3187
|
+
if (!continuationToken) {
|
|
3188
|
+
result = yield tslib.__await(this._listByConfigurationStore(resourceGroupName, configStoreName, options));
|
|
3189
|
+
let page = result.value || [];
|
|
3190
|
+
continuationToken = result.nextLink;
|
|
3191
|
+
setContinuationToken(page, continuationToken);
|
|
3192
|
+
yield yield tslib.__await(page);
|
|
3193
|
+
}
|
|
3064
3194
|
while (continuationToken) {
|
|
3065
3195
|
result = yield tslib.__await(this._listByConfigurationStoreNext(resourceGroupName, configStoreName, continuationToken, options));
|
|
3066
3196
|
continuationToken = result.nextLink;
|
|
3067
|
-
|
|
3197
|
+
let page = result.value || [];
|
|
3198
|
+
setContinuationToken(page, continuationToken);
|
|
3199
|
+
yield yield tslib.__await(page);
|
|
3068
3200
|
}
|
|
3069
3201
|
});
|
|
3070
3202
|
}
|
|
@@ -3217,20 +3349,31 @@ class KeyValuesImpl {
|
|
|
3217
3349
|
[Symbol.asyncIterator]() {
|
|
3218
3350
|
return this;
|
|
3219
3351
|
},
|
|
3220
|
-
byPage: () => {
|
|
3221
|
-
|
|
3352
|
+
byPage: (settings) => {
|
|
3353
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3354
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3355
|
+
}
|
|
3356
|
+
return this.listByConfigurationStorePagingPage(resourceGroupName, configStoreName, options, settings);
|
|
3222
3357
|
}
|
|
3223
3358
|
};
|
|
3224
3359
|
}
|
|
3225
|
-
listByConfigurationStorePagingPage(resourceGroupName, configStoreName, options) {
|
|
3360
|
+
listByConfigurationStorePagingPage(resourceGroupName, configStoreName, options, settings) {
|
|
3226
3361
|
return tslib.__asyncGenerator(this, arguments, function* listByConfigurationStorePagingPage_1() {
|
|
3227
|
-
let result
|
|
3228
|
-
|
|
3229
|
-
|
|
3362
|
+
let result;
|
|
3363
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3364
|
+
if (!continuationToken) {
|
|
3365
|
+
result = yield tslib.__await(this._listByConfigurationStore(resourceGroupName, configStoreName, options));
|
|
3366
|
+
let page = result.value || [];
|
|
3367
|
+
continuationToken = result.nextLink;
|
|
3368
|
+
setContinuationToken(page, continuationToken);
|
|
3369
|
+
yield yield tslib.__await(page);
|
|
3370
|
+
}
|
|
3230
3371
|
while (continuationToken) {
|
|
3231
3372
|
result = yield tslib.__await(this._listByConfigurationStoreNext(resourceGroupName, configStoreName, continuationToken, options));
|
|
3232
3373
|
continuationToken = result.nextLink;
|
|
3233
|
-
|
|
3374
|
+
let page = result.value || [];
|
|
3375
|
+
setContinuationToken(page, continuationToken);
|
|
3376
|
+
yield yield tslib.__await(page);
|
|
3234
3377
|
}
|
|
3235
3378
|
});
|
|
3236
3379
|
}
|
|
@@ -3480,7 +3623,7 @@ class AppConfigurationManagementClient extends coreClient__namespace.ServiceClie
|
|
|
3480
3623
|
* @param options The parameter options
|
|
3481
3624
|
*/
|
|
3482
3625
|
constructor(credentials, subscriptionId, options) {
|
|
3483
|
-
var _a, _b;
|
|
3626
|
+
var _a, _b, _c;
|
|
3484
3627
|
if (credentials === undefined) {
|
|
3485
3628
|
throw new Error("'credentials' cannot be null");
|
|
3486
3629
|
}
|
|
@@ -3495,32 +3638,34 @@ class AppConfigurationManagementClient extends coreClient__namespace.ServiceClie
|
|
|
3495
3638
|
requestContentType: "application/json; charset=utf-8",
|
|
3496
3639
|
credential: credentials
|
|
3497
3640
|
};
|
|
3498
|
-
const packageDetails = `azsdk-js-arm-appconfiguration/3.0
|
|
3641
|
+
const packageDetails = `azsdk-js-arm-appconfiguration/3.1.0`;
|
|
3499
3642
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
3500
3643
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
3501
3644
|
: `${packageDetails}`;
|
|
3502
|
-
if (!options.credentialScopes) {
|
|
3503
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
3504
|
-
}
|
|
3505
3645
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
3506
3646
|
userAgentPrefix
|
|
3507
|
-
},
|
|
3647
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
3508
3648
|
super(optionsWithDefaults);
|
|
3649
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
3509
3650
|
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
3510
3651
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
3511
|
-
|
|
3652
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
3512
3653
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3654
|
+
}
|
|
3655
|
+
if (!options ||
|
|
3656
|
+
!options.pipeline ||
|
|
3657
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
3658
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
3659
|
+
this.pipeline.removePolicy({
|
|
3660
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
3661
|
+
});
|
|
3662
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
3663
|
+
credential: credentials,
|
|
3664
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
3665
|
+
challengeCallbacks: {
|
|
3666
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
3667
|
+
}
|
|
3668
|
+
}));
|
|
3524
3669
|
}
|
|
3525
3670
|
// Parameter assignments
|
|
3526
3671
|
this.subscriptionId = subscriptionId;
|
|
@@ -3547,7 +3692,7 @@ class AppConfigurationManagementClient extends coreClient__namespace.ServiceClie
|
|
|
3547
3692
|
if (param.length > 1) {
|
|
3548
3693
|
const newParams = param[1].split("&").map((item) => {
|
|
3549
3694
|
if (item.indexOf("api-version") > -1) {
|
|
3550
|
-
return
|
|
3695
|
+
return "api-version=" + apiVersion;
|
|
3551
3696
|
}
|
|
3552
3697
|
else {
|
|
3553
3698
|
return item;
|
|
@@ -3564,4 +3709,5 @@ class AppConfigurationManagementClient extends coreClient__namespace.ServiceClie
|
|
|
3564
3709
|
}
|
|
3565
3710
|
|
|
3566
3711
|
exports.AppConfigurationManagementClient = AppConfigurationManagementClient;
|
|
3712
|
+
exports.getContinuationToken = getContinuationToken;
|
|
3567
3713
|
//# sourceMappingURL=index.js.map
|