@azure/arm-postgresql-flexible 6.0.1-alpha.20221215.1 → 6.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 +13 -10
- package/dist/index.js +238 -67
- 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/checkNameAvailabilityExecuteSample.js +10 -2
- package/dist-esm/samples-dev/checkNameAvailabilityExecuteSample.js.map +1 -1
- package/dist-esm/samples-dev/configurationsGetSample.js +11 -3
- package/dist-esm/samples-dev/configurationsGetSample.js.map +1 -1
- package/dist-esm/samples-dev/configurationsListByServerSample.js +11 -3
- package/dist-esm/samples-dev/configurationsListByServerSample.js.map +1 -1
- package/dist-esm/samples-dev/configurationsPutSample.js +11 -3
- package/dist-esm/samples-dev/configurationsPutSample.js.map +1 -1
- package/dist-esm/samples-dev/configurationsUpdateSample.js +11 -3
- package/dist-esm/samples-dev/configurationsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesCreateSample.js +11 -3
- package/dist-esm/samples-dev/databasesCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesDeleteSample.js +11 -3
- package/dist-esm/samples-dev/databasesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesGetSample.js +11 -3
- package/dist-esm/samples-dev/databasesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/databasesListByServerSample.js +11 -3
- package/dist-esm/samples-dev/databasesListByServerSample.js.map +1 -1
- package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js +11 -3
- package/dist-esm/samples-dev/firewallRulesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/firewallRulesDeleteSample.js +11 -3
- package/dist-esm/samples-dev/firewallRulesDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/firewallRulesGetSample.js +11 -3
- package/dist-esm/samples-dev/firewallRulesGetSample.js.map +1 -1
- package/dist-esm/samples-dev/firewallRulesListByServerSample.js +11 -3
- package/dist-esm/samples-dev/firewallRulesListByServerSample.js.map +1 -1
- package/dist-esm/samples-dev/getPrivateDnsZoneSuffixExecuteSample.js +10 -2
- package/dist-esm/samples-dev/getPrivateDnsZoneSuffixExecuteSample.js.map +1 -1
- package/dist-esm/samples-dev/locationBasedCapabilitiesExecuteSample.js +10 -2
- package/dist-esm/samples-dev/locationBasedCapabilitiesExecuteSample.js.map +1 -1
- package/dist-esm/samples-dev/operationsListSample.js +10 -2
- package/dist-esm/samples-dev/operationsListSample.js.map +1 -1
- package/dist-esm/samples-dev/serversCreateSample.js +15 -6
- package/dist-esm/samples-dev/serversCreateSample.js.map +1 -1
- package/dist-esm/samples-dev/serversDeleteSample.js +11 -3
- package/dist-esm/samples-dev/serversDeleteSample.js.map +1 -1
- package/dist-esm/samples-dev/serversGetSample.js +15 -6
- package/dist-esm/samples-dev/serversGetSample.js.map +1 -1
- package/dist-esm/samples-dev/serversListByResourceGroupSample.js +11 -3
- package/dist-esm/samples-dev/serversListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/serversListSample.js +10 -2
- package/dist-esm/samples-dev/serversListSample.js.map +1 -1
- package/dist-esm/samples-dev/serversRestartSample.js +15 -6
- package/dist-esm/samples-dev/serversRestartSample.js.map +1 -1
- package/dist-esm/samples-dev/serversStartSample.js +11 -3
- package/dist-esm/samples-dev/serversStartSample.js.map +1 -1
- package/dist-esm/samples-dev/serversStopSample.js +11 -3
- package/dist-esm/samples-dev/serversStopSample.js.map +1 -1
- package/dist-esm/samples-dev/serversUpdateSample.js +15 -6
- package/dist-esm/samples-dev/serversUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/virtualNetworkSubnetUsageExecuteSample.js +10 -2
- package/dist-esm/samples-dev/virtualNetworkSubnetUsageExecuteSample.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 +60 -11
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +48 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/operations/configurations.d.ts.map +1 -1
- package/dist-esm/src/operations/configurations.js +19 -8
- package/dist-esm/src/operations/configurations.js.map +1 -1
- package/dist-esm/src/operations/databases.d.ts.map +1 -1
- package/dist-esm/src/operations/databases.js +19 -8
- package/dist-esm/src/operations/databases.js.map +1 -1
- package/dist-esm/src/operations/firewallRules.d.ts.map +1 -1
- package/dist-esm/src/operations/firewallRules.js +19 -8
- package/dist-esm/src/operations/firewallRules.js.map +1 -1
- package/dist-esm/src/operations/locationBasedCapabilities.d.ts.map +1 -1
- package/dist-esm/src/operations/locationBasedCapabilities.js +19 -8
- package/dist-esm/src/operations/locationBasedCapabilities.js.map +1 -1
- package/dist-esm/src/operations/servers.d.ts.map +1 -1
- package/dist-esm/src/operations/servers.js +37 -16
- package/dist-esm/src/operations/servers.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/dist-esm/src/postgreSQLManagementFlexibleServerClient.d.ts +2 -0
- package/dist-esm/src/postgreSQLManagementFlexibleServerClient.d.ts.map +1 -1
- package/dist-esm/src/postgreSQLManagementFlexibleServerClient.js +49 -18
- package/dist-esm/src/postgreSQLManagementFlexibleServerClient.js.map +1 -1
- package/dist-esm/test/sampleTest.js +11 -13
- package/dist-esm/test/sampleTest.js.map +1 -1
- package/package.json +15 -10
- package/review/arm-postgresql-flexible.api.md +38 -82
- package/src/index.ts +1 -0
- package/src/models/index.ts +59 -11
- package/src/operations/configurations.ts +22 -13
- package/src/operations/databases.ts +23 -14
- package/src/operations/firewallRules.ts +23 -14
- package/src/operations/locationBasedCapabilities.ts +21 -9
- package/src/operations/servers.ts +46 -19
- package/src/pagingHelper.ts +39 -0
- package/src/postgreSQLManagementFlexibleServerClient.ts +60 -20
- package/types/arm-postgresql-flexible.d.ts +71 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
1
|
# Release History
|
|
2
|
+
|
|
3
|
+
## 6.1.0 (2022-12-22)
|
|
4
|
+
|
|
5
|
+
**Features**
|
|
2
6
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
- Added Interface Configuration
|
|
8
|
+
- Added Interface Database
|
|
9
|
+
- Added Interface FirewallRule
|
|
10
|
+
- Added Interface ProxyResource
|
|
11
|
+
- Added Interface Server
|
|
12
|
+
- Added Interface TrackedResource
|
|
13
|
+
- Added function getContinuationToken
|
|
14
|
+
|
|
15
|
+
|
|
13
16
|
## 6.0.0 (2022-04-28)
|
|
14
17
|
|
|
15
18
|
**Features**
|
package/dist/index.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var tslib = require('tslib');
|
|
5
6
|
var coreClient = require('@azure/core-client');
|
|
6
7
|
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
7
|
-
var tslib = require('tslib');
|
|
8
8
|
var coreLro = require('@azure/core-lro');
|
|
9
9
|
|
|
10
10
|
function _interopNamespace(e) {
|
|
@@ -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 the last `.value` produced by the `byPage` iterator,
|
|
41
|
+
* returns a continuation token that can be used to begin paging from
|
|
42
|
+
* that point later.
|
|
43
|
+
* @param page An object from accessing `value` on the IteratorResult from a `byPage` iterator.
|
|
44
|
+
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
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,105 +70,153 @@ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipelin
|
|
|
38
70
|
/** Known values of {@link SkuTier} that the service accepts. */
|
|
39
71
|
exports.KnownSkuTier = void 0;
|
|
40
72
|
(function (KnownSkuTier) {
|
|
73
|
+
/** Burstable */
|
|
41
74
|
KnownSkuTier["Burstable"] = "Burstable";
|
|
75
|
+
/** GeneralPurpose */
|
|
42
76
|
KnownSkuTier["GeneralPurpose"] = "GeneralPurpose";
|
|
77
|
+
/** MemoryOptimized */
|
|
43
78
|
KnownSkuTier["MemoryOptimized"] = "MemoryOptimized";
|
|
44
79
|
})(exports.KnownSkuTier || (exports.KnownSkuTier = {}));
|
|
45
80
|
/** Known values of {@link ServerVersion} that the service accepts. */
|
|
46
81
|
exports.KnownServerVersion = void 0;
|
|
47
82
|
(function (KnownServerVersion) {
|
|
83
|
+
/** Thirteen */
|
|
48
84
|
KnownServerVersion["Thirteen"] = "13";
|
|
85
|
+
/** Twelve */
|
|
49
86
|
KnownServerVersion["Twelve"] = "12";
|
|
87
|
+
/** Eleven */
|
|
50
88
|
KnownServerVersion["Eleven"] = "11";
|
|
51
89
|
})(exports.KnownServerVersion || (exports.KnownServerVersion = {}));
|
|
52
90
|
/** Known values of {@link ServerState} that the service accepts. */
|
|
53
91
|
exports.KnownServerState = void 0;
|
|
54
92
|
(function (KnownServerState) {
|
|
93
|
+
/** Ready */
|
|
55
94
|
KnownServerState["Ready"] = "Ready";
|
|
95
|
+
/** Dropping */
|
|
56
96
|
KnownServerState["Dropping"] = "Dropping";
|
|
97
|
+
/** Disabled */
|
|
57
98
|
KnownServerState["Disabled"] = "Disabled";
|
|
99
|
+
/** Starting */
|
|
58
100
|
KnownServerState["Starting"] = "Starting";
|
|
101
|
+
/** Stopping */
|
|
59
102
|
KnownServerState["Stopping"] = "Stopping";
|
|
103
|
+
/** Stopped */
|
|
60
104
|
KnownServerState["Stopped"] = "Stopped";
|
|
105
|
+
/** Updating */
|
|
61
106
|
KnownServerState["Updating"] = "Updating";
|
|
62
107
|
})(exports.KnownServerState || (exports.KnownServerState = {}));
|
|
63
108
|
/** Known values of {@link GeoRedundantBackupEnum} that the service accepts. */
|
|
64
109
|
exports.KnownGeoRedundantBackupEnum = void 0;
|
|
65
110
|
(function (KnownGeoRedundantBackupEnum) {
|
|
111
|
+
/** Enabled */
|
|
66
112
|
KnownGeoRedundantBackupEnum["Enabled"] = "Enabled";
|
|
113
|
+
/** Disabled */
|
|
67
114
|
KnownGeoRedundantBackupEnum["Disabled"] = "Disabled";
|
|
68
115
|
})(exports.KnownGeoRedundantBackupEnum || (exports.KnownGeoRedundantBackupEnum = {}));
|
|
69
116
|
/** Known values of {@link ServerPublicNetworkAccessState} that the service accepts. */
|
|
70
117
|
exports.KnownServerPublicNetworkAccessState = void 0;
|
|
71
118
|
(function (KnownServerPublicNetworkAccessState) {
|
|
119
|
+
/** Enabled */
|
|
72
120
|
KnownServerPublicNetworkAccessState["Enabled"] = "Enabled";
|
|
121
|
+
/** Disabled */
|
|
73
122
|
KnownServerPublicNetworkAccessState["Disabled"] = "Disabled";
|
|
74
123
|
})(exports.KnownServerPublicNetworkAccessState || (exports.KnownServerPublicNetworkAccessState = {}));
|
|
75
124
|
/** Known values of {@link HighAvailabilityMode} that the service accepts. */
|
|
76
125
|
exports.KnownHighAvailabilityMode = void 0;
|
|
77
126
|
(function (KnownHighAvailabilityMode) {
|
|
127
|
+
/** Disabled */
|
|
78
128
|
KnownHighAvailabilityMode["Disabled"] = "Disabled";
|
|
129
|
+
/** ZoneRedundant */
|
|
79
130
|
KnownHighAvailabilityMode["ZoneRedundant"] = "ZoneRedundant";
|
|
80
131
|
})(exports.KnownHighAvailabilityMode || (exports.KnownHighAvailabilityMode = {}));
|
|
81
132
|
/** Known values of {@link ServerHAState} that the service accepts. */
|
|
82
133
|
exports.KnownServerHAState = void 0;
|
|
83
134
|
(function (KnownServerHAState) {
|
|
135
|
+
/** NotEnabled */
|
|
84
136
|
KnownServerHAState["NotEnabled"] = "NotEnabled";
|
|
137
|
+
/** CreatingStandby */
|
|
85
138
|
KnownServerHAState["CreatingStandby"] = "CreatingStandby";
|
|
139
|
+
/** ReplicatingData */
|
|
86
140
|
KnownServerHAState["ReplicatingData"] = "ReplicatingData";
|
|
141
|
+
/** FailingOver */
|
|
87
142
|
KnownServerHAState["FailingOver"] = "FailingOver";
|
|
143
|
+
/** Healthy */
|
|
88
144
|
KnownServerHAState["Healthy"] = "Healthy";
|
|
145
|
+
/** RemovingStandby */
|
|
89
146
|
KnownServerHAState["RemovingStandby"] = "RemovingStandby";
|
|
90
147
|
})(exports.KnownServerHAState || (exports.KnownServerHAState = {}));
|
|
91
148
|
/** Known values of {@link CreateMode} that the service accepts. */
|
|
92
149
|
exports.KnownCreateMode = void 0;
|
|
93
150
|
(function (KnownCreateMode) {
|
|
151
|
+
/** Default */
|
|
94
152
|
KnownCreateMode["Default"] = "Default";
|
|
153
|
+
/** Create */
|
|
95
154
|
KnownCreateMode["Create"] = "Create";
|
|
155
|
+
/** Update */
|
|
96
156
|
KnownCreateMode["Update"] = "Update";
|
|
157
|
+
/** PointInTimeRestore */
|
|
97
158
|
KnownCreateMode["PointInTimeRestore"] = "PointInTimeRestore";
|
|
98
159
|
})(exports.KnownCreateMode || (exports.KnownCreateMode = {}));
|
|
99
160
|
/** Known values of {@link CreatedByType} that the service accepts. */
|
|
100
161
|
exports.KnownCreatedByType = void 0;
|
|
101
162
|
(function (KnownCreatedByType) {
|
|
163
|
+
/** User */
|
|
102
164
|
KnownCreatedByType["User"] = "User";
|
|
165
|
+
/** Application */
|
|
103
166
|
KnownCreatedByType["Application"] = "Application";
|
|
167
|
+
/** ManagedIdentity */
|
|
104
168
|
KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
|
|
169
|
+
/** Key */
|
|
105
170
|
KnownCreatedByType["Key"] = "Key";
|
|
106
171
|
})(exports.KnownCreatedByType || (exports.KnownCreatedByType = {}));
|
|
107
172
|
/** Known values of {@link CreateModeForUpdate} that the service accepts. */
|
|
108
173
|
exports.KnownCreateModeForUpdate = void 0;
|
|
109
174
|
(function (KnownCreateModeForUpdate) {
|
|
175
|
+
/** Default */
|
|
110
176
|
KnownCreateModeForUpdate["Default"] = "Default";
|
|
177
|
+
/** Update */
|
|
111
178
|
KnownCreateModeForUpdate["Update"] = "Update";
|
|
112
179
|
})(exports.KnownCreateModeForUpdate || (exports.KnownCreateModeForUpdate = {}));
|
|
113
180
|
/** Known values of {@link FailoverMode} that the service accepts. */
|
|
114
181
|
exports.KnownFailoverMode = void 0;
|
|
115
182
|
(function (KnownFailoverMode) {
|
|
183
|
+
/** PlannedFailover */
|
|
116
184
|
KnownFailoverMode["PlannedFailover"] = "PlannedFailover";
|
|
185
|
+
/** ForcedFailover */
|
|
117
186
|
KnownFailoverMode["ForcedFailover"] = "ForcedFailover";
|
|
187
|
+
/** PlannedSwitchover */
|
|
118
188
|
KnownFailoverMode["PlannedSwitchover"] = "PlannedSwitchover";
|
|
189
|
+
/** ForcedSwitchover */
|
|
119
190
|
KnownFailoverMode["ForcedSwitchover"] = "ForcedSwitchover";
|
|
120
191
|
})(exports.KnownFailoverMode || (exports.KnownFailoverMode = {}));
|
|
121
192
|
/** Known values of {@link ConfigurationDataType} that the service accepts. */
|
|
122
193
|
exports.KnownConfigurationDataType = void 0;
|
|
123
194
|
(function (KnownConfigurationDataType) {
|
|
195
|
+
/** Boolean */
|
|
124
196
|
KnownConfigurationDataType["Boolean"] = "Boolean";
|
|
197
|
+
/** Numeric */
|
|
125
198
|
KnownConfigurationDataType["Numeric"] = "Numeric";
|
|
199
|
+
/** Integer */
|
|
126
200
|
KnownConfigurationDataType["Integer"] = "Integer";
|
|
201
|
+
/** Enumeration */
|
|
127
202
|
KnownConfigurationDataType["Enumeration"] = "Enumeration";
|
|
128
203
|
})(exports.KnownConfigurationDataType || (exports.KnownConfigurationDataType = {}));
|
|
129
204
|
/** Known values of {@link Reason} that the service accepts. */
|
|
130
205
|
exports.KnownReason = void 0;
|
|
131
206
|
(function (KnownReason) {
|
|
207
|
+
/** Invalid */
|
|
132
208
|
KnownReason["Invalid"] = "Invalid";
|
|
209
|
+
/** AlreadyExists */
|
|
133
210
|
KnownReason["AlreadyExists"] = "AlreadyExists";
|
|
134
211
|
})(exports.KnownReason || (exports.KnownReason = {}));
|
|
135
212
|
/** Known values of {@link OperationOrigin} that the service accepts. */
|
|
136
213
|
exports.KnownOperationOrigin = void 0;
|
|
137
214
|
(function (KnownOperationOrigin) {
|
|
215
|
+
/** NotSpecified */
|
|
138
216
|
KnownOperationOrigin["NotSpecified"] = "NotSpecified";
|
|
217
|
+
/** User */
|
|
139
218
|
KnownOperationOrigin["User"] = "user";
|
|
219
|
+
/** System */
|
|
140
220
|
KnownOperationOrigin["System"] = "system";
|
|
141
221
|
})(exports.KnownOperationOrigin || (exports.KnownOperationOrigin = {}));
|
|
142
222
|
|
|
@@ -1812,20 +1892,31 @@ class ServersImpl {
|
|
|
1812
1892
|
[Symbol.asyncIterator]() {
|
|
1813
1893
|
return this;
|
|
1814
1894
|
},
|
|
1815
|
-
byPage: () => {
|
|
1816
|
-
|
|
1895
|
+
byPage: (settings) => {
|
|
1896
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1897
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1898
|
+
}
|
|
1899
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
1817
1900
|
}
|
|
1818
1901
|
};
|
|
1819
1902
|
}
|
|
1820
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
1903
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
1821
1904
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
1822
|
-
let result
|
|
1823
|
-
|
|
1824
|
-
|
|
1905
|
+
let result;
|
|
1906
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1907
|
+
if (!continuationToken) {
|
|
1908
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
1909
|
+
let page = result.value || [];
|
|
1910
|
+
continuationToken = result.nextLink;
|
|
1911
|
+
setContinuationToken(page, continuationToken);
|
|
1912
|
+
yield yield tslib.__await(page);
|
|
1913
|
+
}
|
|
1825
1914
|
while (continuationToken) {
|
|
1826
1915
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
1827
1916
|
continuationToken = result.nextLink;
|
|
1828
|
-
|
|
1917
|
+
let page = result.value || [];
|
|
1918
|
+
setContinuationToken(page, continuationToken);
|
|
1919
|
+
yield yield tslib.__await(page);
|
|
1829
1920
|
}
|
|
1830
1921
|
});
|
|
1831
1922
|
}
|
|
@@ -1860,20 +1951,31 @@ class ServersImpl {
|
|
|
1860
1951
|
[Symbol.asyncIterator]() {
|
|
1861
1952
|
return this;
|
|
1862
1953
|
},
|
|
1863
|
-
byPage: () => {
|
|
1864
|
-
|
|
1954
|
+
byPage: (settings) => {
|
|
1955
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1956
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1957
|
+
}
|
|
1958
|
+
return this.listPagingPage(options, settings);
|
|
1865
1959
|
}
|
|
1866
1960
|
};
|
|
1867
1961
|
}
|
|
1868
|
-
listPagingPage(options) {
|
|
1962
|
+
listPagingPage(options, settings) {
|
|
1869
1963
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
1870
|
-
let result
|
|
1871
|
-
|
|
1872
|
-
|
|
1964
|
+
let result;
|
|
1965
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
1966
|
+
if (!continuationToken) {
|
|
1967
|
+
result = yield tslib.__await(this._list(options));
|
|
1968
|
+
let page = result.value || [];
|
|
1969
|
+
continuationToken = result.nextLink;
|
|
1970
|
+
setContinuationToken(page, continuationToken);
|
|
1971
|
+
yield yield tslib.__await(page);
|
|
1972
|
+
}
|
|
1873
1973
|
while (continuationToken) {
|
|
1874
1974
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
1875
1975
|
continuationToken = result.nextLink;
|
|
1876
|
-
|
|
1976
|
+
let page = result.value || [];
|
|
1977
|
+
setContinuationToken(page, continuationToken);
|
|
1978
|
+
yield yield tslib.__await(page);
|
|
1877
1979
|
}
|
|
1878
1980
|
});
|
|
1879
1981
|
}
|
|
@@ -2473,7 +2575,6 @@ const listByResourceGroupNextOperationSpec = {
|
|
|
2473
2575
|
bodyMapper: CloudError
|
|
2474
2576
|
}
|
|
2475
2577
|
},
|
|
2476
|
-
queryParameters: [apiVersion],
|
|
2477
2578
|
urlParameters: [
|
|
2478
2579
|
$host,
|
|
2479
2580
|
subscriptionId,
|
|
@@ -2494,7 +2595,6 @@ const listNextOperationSpec = {
|
|
|
2494
2595
|
bodyMapper: CloudError
|
|
2495
2596
|
}
|
|
2496
2597
|
},
|
|
2497
|
-
queryParameters: [apiVersion],
|
|
2498
2598
|
urlParameters: [
|
|
2499
2599
|
$host,
|
|
2500
2600
|
subscriptionId,
|
|
@@ -2536,20 +2636,31 @@ class FirewallRulesImpl {
|
|
|
2536
2636
|
[Symbol.asyncIterator]() {
|
|
2537
2637
|
return this;
|
|
2538
2638
|
},
|
|
2539
|
-
byPage: () => {
|
|
2540
|
-
|
|
2639
|
+
byPage: (settings) => {
|
|
2640
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2641
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2642
|
+
}
|
|
2643
|
+
return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
|
|
2541
2644
|
}
|
|
2542
2645
|
};
|
|
2543
2646
|
}
|
|
2544
|
-
listByServerPagingPage(resourceGroupName, serverName, options) {
|
|
2647
|
+
listByServerPagingPage(resourceGroupName, serverName, options, settings) {
|
|
2545
2648
|
return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
|
|
2546
|
-
let result
|
|
2547
|
-
|
|
2548
|
-
|
|
2649
|
+
let result;
|
|
2650
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2651
|
+
if (!continuationToken) {
|
|
2652
|
+
result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
|
|
2653
|
+
let page = result.value || [];
|
|
2654
|
+
continuationToken = result.nextLink;
|
|
2655
|
+
setContinuationToken(page, continuationToken);
|
|
2656
|
+
yield yield tslib.__await(page);
|
|
2657
|
+
}
|
|
2549
2658
|
while (continuationToken) {
|
|
2550
2659
|
result = yield tslib.__await(this._listByServerNext(resourceGroupName, serverName, continuationToken, options));
|
|
2551
2660
|
continuationToken = result.nextLink;
|
|
2552
|
-
|
|
2661
|
+
let page = result.value || [];
|
|
2662
|
+
setContinuationToken(page, continuationToken);
|
|
2663
|
+
yield yield tslib.__await(page);
|
|
2553
2664
|
}
|
|
2554
2665
|
});
|
|
2555
2666
|
}
|
|
@@ -2821,7 +2932,6 @@ const listByServerNextOperationSpec$2 = {
|
|
|
2821
2932
|
bodyMapper: CloudError
|
|
2822
2933
|
}
|
|
2823
2934
|
},
|
|
2824
|
-
queryParameters: [apiVersion],
|
|
2825
2935
|
urlParameters: [
|
|
2826
2936
|
$host,
|
|
2827
2937
|
subscriptionId,
|
|
@@ -2865,20 +2975,31 @@ class ConfigurationsImpl {
|
|
|
2865
2975
|
[Symbol.asyncIterator]() {
|
|
2866
2976
|
return this;
|
|
2867
2977
|
},
|
|
2868
|
-
byPage: () => {
|
|
2869
|
-
|
|
2978
|
+
byPage: (settings) => {
|
|
2979
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2980
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2981
|
+
}
|
|
2982
|
+
return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
|
|
2870
2983
|
}
|
|
2871
2984
|
};
|
|
2872
2985
|
}
|
|
2873
|
-
listByServerPagingPage(resourceGroupName, serverName, options) {
|
|
2986
|
+
listByServerPagingPage(resourceGroupName, serverName, options, settings) {
|
|
2874
2987
|
return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
|
|
2875
|
-
let result
|
|
2876
|
-
|
|
2877
|
-
|
|
2988
|
+
let result;
|
|
2989
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2990
|
+
if (!continuationToken) {
|
|
2991
|
+
result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
|
|
2992
|
+
let page = result.value || [];
|
|
2993
|
+
continuationToken = result.nextLink;
|
|
2994
|
+
setContinuationToken(page, continuationToken);
|
|
2995
|
+
yield yield tslib.__await(page);
|
|
2996
|
+
}
|
|
2878
2997
|
while (continuationToken) {
|
|
2879
2998
|
result = yield tslib.__await(this._listByServerNext(resourceGroupName, serverName, continuationToken, options));
|
|
2880
2999
|
continuationToken = result.nextLink;
|
|
2881
|
-
|
|
3000
|
+
let page = result.value || [];
|
|
3001
|
+
setContinuationToken(page, continuationToken);
|
|
3002
|
+
yield yield tslib.__await(page);
|
|
2882
3003
|
}
|
|
2883
3004
|
});
|
|
2884
3005
|
}
|
|
@@ -3162,7 +3283,6 @@ const listByServerNextOperationSpec$1 = {
|
|
|
3162
3283
|
bodyMapper: CloudError
|
|
3163
3284
|
}
|
|
3164
3285
|
},
|
|
3165
|
-
queryParameters: [apiVersion],
|
|
3166
3286
|
urlParameters: [
|
|
3167
3287
|
$host,
|
|
3168
3288
|
subscriptionId,
|
|
@@ -3251,20 +3371,31 @@ class LocationBasedCapabilitiesImpl {
|
|
|
3251
3371
|
[Symbol.asyncIterator]() {
|
|
3252
3372
|
return this;
|
|
3253
3373
|
},
|
|
3254
|
-
byPage: () => {
|
|
3255
|
-
|
|
3374
|
+
byPage: (settings) => {
|
|
3375
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3376
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3377
|
+
}
|
|
3378
|
+
return this.executePagingPage(locationName, options, settings);
|
|
3256
3379
|
}
|
|
3257
3380
|
};
|
|
3258
3381
|
}
|
|
3259
|
-
executePagingPage(locationName, options) {
|
|
3382
|
+
executePagingPage(locationName, options, settings) {
|
|
3260
3383
|
return tslib.__asyncGenerator(this, arguments, function* executePagingPage_1() {
|
|
3261
|
-
let result
|
|
3262
|
-
|
|
3263
|
-
|
|
3384
|
+
let result;
|
|
3385
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3386
|
+
if (!continuationToken) {
|
|
3387
|
+
result = yield tslib.__await(this._execute(locationName, options));
|
|
3388
|
+
let page = result.value || [];
|
|
3389
|
+
continuationToken = result.nextLink;
|
|
3390
|
+
setContinuationToken(page, continuationToken);
|
|
3391
|
+
yield yield tslib.__await(page);
|
|
3392
|
+
}
|
|
3264
3393
|
while (continuationToken) {
|
|
3265
3394
|
result = yield tslib.__await(this._executeNext(locationName, continuationToken, options));
|
|
3266
3395
|
continuationToken = result.nextLink;
|
|
3267
|
-
|
|
3396
|
+
let page = result.value || [];
|
|
3397
|
+
setContinuationToken(page, continuationToken);
|
|
3398
|
+
yield yield tslib.__await(page);
|
|
3268
3399
|
}
|
|
3269
3400
|
});
|
|
3270
3401
|
}
|
|
@@ -3337,7 +3468,6 @@ const executeNextOperationSpec = {
|
|
|
3337
3468
|
bodyMapper: CloudError
|
|
3338
3469
|
}
|
|
3339
3470
|
},
|
|
3340
|
-
queryParameters: [apiVersion],
|
|
3341
3471
|
urlParameters: [
|
|
3342
3472
|
$host,
|
|
3343
3473
|
subscriptionId,
|
|
@@ -3474,20 +3604,31 @@ class DatabasesImpl {
|
|
|
3474
3604
|
[Symbol.asyncIterator]() {
|
|
3475
3605
|
return this;
|
|
3476
3606
|
},
|
|
3477
|
-
byPage: () => {
|
|
3478
|
-
|
|
3607
|
+
byPage: (settings) => {
|
|
3608
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3609
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3610
|
+
}
|
|
3611
|
+
return this.listByServerPagingPage(resourceGroupName, serverName, options, settings);
|
|
3479
3612
|
}
|
|
3480
3613
|
};
|
|
3481
3614
|
}
|
|
3482
|
-
listByServerPagingPage(resourceGroupName, serverName, options) {
|
|
3615
|
+
listByServerPagingPage(resourceGroupName, serverName, options, settings) {
|
|
3483
3616
|
return tslib.__asyncGenerator(this, arguments, function* listByServerPagingPage_1() {
|
|
3484
|
-
let result
|
|
3485
|
-
|
|
3486
|
-
|
|
3617
|
+
let result;
|
|
3618
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3619
|
+
if (!continuationToken) {
|
|
3620
|
+
result = yield tslib.__await(this._listByServer(resourceGroupName, serverName, options));
|
|
3621
|
+
let page = result.value || [];
|
|
3622
|
+
continuationToken = result.nextLink;
|
|
3623
|
+
setContinuationToken(page, continuationToken);
|
|
3624
|
+
yield yield tslib.__await(page);
|
|
3625
|
+
}
|
|
3487
3626
|
while (continuationToken) {
|
|
3488
3627
|
result = yield tslib.__await(this._listByServerNext(resourceGroupName, serverName, continuationToken, options));
|
|
3489
3628
|
continuationToken = result.nextLink;
|
|
3490
|
-
|
|
3629
|
+
let page = result.value || [];
|
|
3630
|
+
setContinuationToken(page, continuationToken);
|
|
3631
|
+
yield yield tslib.__await(page);
|
|
3491
3632
|
}
|
|
3492
3633
|
});
|
|
3493
3634
|
}
|
|
@@ -3759,7 +3900,6 @@ const listByServerNextOperationSpec = {
|
|
|
3759
3900
|
bodyMapper: CloudError
|
|
3760
3901
|
}
|
|
3761
3902
|
},
|
|
3762
|
-
queryParameters: [apiVersion],
|
|
3763
3903
|
urlParameters: [
|
|
3764
3904
|
$host,
|
|
3765
3905
|
subscriptionId,
|
|
@@ -3829,7 +3969,7 @@ class PostgreSQLManagementFlexibleServerClient extends coreClient__namespace.Ser
|
|
|
3829
3969
|
* @param options The parameter options
|
|
3830
3970
|
*/
|
|
3831
3971
|
constructor(credentials, subscriptionId, options) {
|
|
3832
|
-
var _a, _b;
|
|
3972
|
+
var _a, _b, _c;
|
|
3833
3973
|
if (credentials === undefined) {
|
|
3834
3974
|
throw new Error("'credentials' cannot be null");
|
|
3835
3975
|
}
|
|
@@ -3844,32 +3984,34 @@ class PostgreSQLManagementFlexibleServerClient extends coreClient__namespace.Ser
|
|
|
3844
3984
|
requestContentType: "application/json; charset=utf-8",
|
|
3845
3985
|
credential: credentials
|
|
3846
3986
|
};
|
|
3847
|
-
const packageDetails = `azsdk-js-arm-postgresql-flexible/6.0
|
|
3987
|
+
const packageDetails = `azsdk-js-arm-postgresql-flexible/6.1.0`;
|
|
3848
3988
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
3849
3989
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
3850
3990
|
: `${packageDetails}`;
|
|
3851
|
-
if (!options.credentialScopes) {
|
|
3852
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
3853
|
-
}
|
|
3854
3991
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
3855
3992
|
userAgentPrefix
|
|
3856
|
-
},
|
|
3993
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
3857
3994
|
super(optionsWithDefaults);
|
|
3995
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
3858
3996
|
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
3859
3997
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
3860
|
-
|
|
3998
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
3861
3999
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
|
|
3870
|
-
|
|
3871
|
-
|
|
3872
|
-
|
|
4000
|
+
}
|
|
4001
|
+
if (!options ||
|
|
4002
|
+
!options.pipeline ||
|
|
4003
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
4004
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
4005
|
+
this.pipeline.removePolicy({
|
|
4006
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
4007
|
+
});
|
|
4008
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
4009
|
+
credential: credentials,
|
|
4010
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
4011
|
+
challengeCallbacks: {
|
|
4012
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
4013
|
+
}
|
|
4014
|
+
}));
|
|
3873
4015
|
}
|
|
3874
4016
|
// Parameter assignments
|
|
3875
4017
|
this.subscriptionId = subscriptionId;
|
|
@@ -3885,8 +4027,37 @@ class PostgreSQLManagementFlexibleServerClient extends coreClient__namespace.Ser
|
|
|
3885
4027
|
this.operations = new OperationsImpl(this);
|
|
3886
4028
|
this.databases = new DatabasesImpl(this);
|
|
3887
4029
|
this.getPrivateDnsZoneSuffix = new GetPrivateDnsZoneSuffixImpl(this);
|
|
4030
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
4031
|
+
}
|
|
4032
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
4033
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
4034
|
+
if (!apiVersion) {
|
|
4035
|
+
return;
|
|
4036
|
+
}
|
|
4037
|
+
const apiVersionPolicy = {
|
|
4038
|
+
name: "CustomApiVersionPolicy",
|
|
4039
|
+
sendRequest(request, next) {
|
|
4040
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
4041
|
+
const param = request.url.split("?");
|
|
4042
|
+
if (param.length > 1) {
|
|
4043
|
+
const newParams = param[1].split("&").map((item) => {
|
|
4044
|
+
if (item.indexOf("api-version") > -1) {
|
|
4045
|
+
return "api-version=" + apiVersion;
|
|
4046
|
+
}
|
|
4047
|
+
else {
|
|
4048
|
+
return item;
|
|
4049
|
+
}
|
|
4050
|
+
});
|
|
4051
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
4052
|
+
}
|
|
4053
|
+
return next(request);
|
|
4054
|
+
});
|
|
4055
|
+
}
|
|
4056
|
+
};
|
|
4057
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
3888
4058
|
}
|
|
3889
4059
|
}
|
|
3890
4060
|
|
|
3891
4061
|
exports.PostgreSQLManagementFlexibleServerClient = PostgreSQLManagementFlexibleServerClient;
|
|
4062
|
+
exports.getContinuationToken = getContinuationToken;
|
|
3892
4063
|
//# sourceMappingURL=index.js.map
|