@azure/arm-peering 2.0.2-alpha.20221129.1 → 2.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 +17 -10
- package/dist/index.js +481 -138
- 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/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 +117 -23
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +93 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/operations/cdnPeeringPrefixes.d.ts.map +1 -1
- package/dist-esm/src/operations/cdnPeeringPrefixes.js +19 -7
- package/dist-esm/src/operations/cdnPeeringPrefixes.js.map +1 -1
- package/dist-esm/src/operations/connectionMonitorTests.d.ts.map +1 -1
- package/dist-esm/src/operations/connectionMonitorTests.js +19 -7
- package/dist-esm/src/operations/connectionMonitorTests.js.map +1 -1
- package/dist-esm/src/operations/legacyPeerings.d.ts.map +1 -1
- package/dist-esm/src/operations/legacyPeerings.js +19 -7
- package/dist-esm/src/operations/legacyPeerings.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/peerAsns.d.ts.map +1 -1
- package/dist-esm/src/operations/peerAsns.js +19 -7
- package/dist-esm/src/operations/peerAsns.js.map +1 -1
- package/dist-esm/src/operations/peeringLocations.d.ts.map +1 -1
- package/dist-esm/src/operations/peeringLocations.js +19 -7
- package/dist-esm/src/operations/peeringLocations.js.map +1 -1
- package/dist-esm/src/operations/peeringServiceCountries.d.ts.map +1 -1
- package/dist-esm/src/operations/peeringServiceCountries.js +19 -7
- package/dist-esm/src/operations/peeringServiceCountries.js.map +1 -1
- package/dist-esm/src/operations/peeringServiceLocations.d.ts.map +1 -1
- package/dist-esm/src/operations/peeringServiceLocations.js +19 -7
- package/dist-esm/src/operations/peeringServiceLocations.js.map +1 -1
- package/dist-esm/src/operations/peeringServiceProviders.d.ts.map +1 -1
- package/dist-esm/src/operations/peeringServiceProviders.js +19 -7
- package/dist-esm/src/operations/peeringServiceProviders.js.map +1 -1
- package/dist-esm/src/operations/peeringServices.d.ts.map +1 -1
- package/dist-esm/src/operations/peeringServices.js +37 -14
- package/dist-esm/src/operations/peeringServices.js.map +1 -1
- package/dist-esm/src/operations/peerings.d.ts.map +1 -1
- package/dist-esm/src/operations/peerings.js +37 -14
- package/dist-esm/src/operations/peerings.js.map +1 -1
- package/dist-esm/src/operations/prefixes.d.ts.map +1 -1
- package/dist-esm/src/operations/prefixes.js +19 -7
- package/dist-esm/src/operations/prefixes.js.map +1 -1
- package/dist-esm/src/operations/receivedRoutes.d.ts.map +1 -1
- package/dist-esm/src/operations/receivedRoutes.js +19 -7
- package/dist-esm/src/operations/receivedRoutes.js.map +1 -1
- package/dist-esm/src/operations/registeredAsns.d.ts.map +1 -1
- package/dist-esm/src/operations/registeredAsns.js +19 -7
- package/dist-esm/src/operations/registeredAsns.js.map +1 -1
- package/dist-esm/src/operations/registeredPrefixes.d.ts.map +1 -1
- package/dist-esm/src/operations/registeredPrefixes.js +19 -7
- package/dist-esm/src/operations/registeredPrefixes.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/peeringManagementClient.d.ts +2 -0
- package/dist-esm/src/peeringManagementClient.d.ts.map +1 -1
- package/dist-esm/src/peeringManagementClient.js +49 -18
- package/dist-esm/src/peeringManagementClient.js.map +1 -1
- package/dist-esm/test/sampleTest.js +11 -13
- package/dist-esm/test/sampleTest.js.map +1 -1
- package/package.json +13 -9
- package/review/arm-peering.api.md +54 -143
- package/src/index.ts +1 -0
- package/src/models/index.ts +116 -23
- package/src/operations/cdnPeeringPrefixes.ts +21 -8
- package/src/operations/connectionMonitorTests.ts +27 -13
- package/src/operations/legacyPeerings.ts +21 -8
- package/src/operations/operations.ts +21 -8
- package/src/operations/peerAsns.ts +22 -9
- package/src/operations/peeringLocations.ts +21 -8
- package/src/operations/peeringServiceCountries.ts +21 -8
- package/src/operations/peeringServiceLocations.ts +21 -8
- package/src/operations/peeringServiceProviders.ts +21 -8
- package/src/operations/peeringServices.ts +46 -17
- package/src/operations/peerings.ts +46 -17
- package/src/operations/prefixes.ts +27 -13
- package/src/operations/receivedRoutes.ts +26 -12
- package/src/operations/registeredAsns.ts +27 -13
- package/src/operations/registeredPrefixes.ts +27 -13
- package/src/pagingHelper.ts +39 -0
- package/src/peeringManagementClient.ts +60 -20
- package/types/arm-peering.d.ts +128 -23
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
|
|
|
9
9
|
function _interopNamespace(e) {
|
|
10
10
|
if (e && e.__esModule) return e;
|
|
@@ -27,6 +27,38 @@ function _interopNamespace(e) {
|
|
|
27
27
|
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
28
28
|
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
29
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
|
+
}
|
|
61
|
+
|
|
30
62
|
/*
|
|
31
63
|
* Copyright (c) Microsoft Corporation.
|
|
32
64
|
* Licensed under the MIT License.
|
|
@@ -37,178 +69,271 @@ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipelin
|
|
|
37
69
|
/** Known values of {@link Enum0} that the service accepts. */
|
|
38
70
|
exports.KnownEnum0 = void 0;
|
|
39
71
|
(function (KnownEnum0) {
|
|
72
|
+
/** Available */
|
|
40
73
|
KnownEnum0["Available"] = "Available";
|
|
74
|
+
/** Unavailable */
|
|
41
75
|
KnownEnum0["Unavailable"] = "Unavailable";
|
|
42
76
|
})(exports.KnownEnum0 || (exports.KnownEnum0 = {}));
|
|
43
77
|
/** Known values of {@link LegacyPeeringsKind} that the service accepts. */
|
|
44
78
|
exports.KnownLegacyPeeringsKind = void 0;
|
|
45
79
|
(function (KnownLegacyPeeringsKind) {
|
|
80
|
+
/** Direct */
|
|
46
81
|
KnownLegacyPeeringsKind["Direct"] = "Direct";
|
|
82
|
+
/** Exchange */
|
|
47
83
|
KnownLegacyPeeringsKind["Exchange"] = "Exchange";
|
|
48
84
|
})(exports.KnownLegacyPeeringsKind || (exports.KnownLegacyPeeringsKind = {}));
|
|
49
85
|
/** Known values of {@link Tier} that the service accepts. */
|
|
50
86
|
exports.KnownTier = void 0;
|
|
51
87
|
(function (KnownTier) {
|
|
88
|
+
/** Basic */
|
|
52
89
|
KnownTier["Basic"] = "Basic";
|
|
90
|
+
/** Premium */
|
|
53
91
|
KnownTier["Premium"] = "Premium";
|
|
54
92
|
})(exports.KnownTier || (exports.KnownTier = {}));
|
|
55
93
|
/** Known values of {@link Family} that the service accepts. */
|
|
56
94
|
exports.KnownFamily = void 0;
|
|
57
95
|
(function (KnownFamily) {
|
|
96
|
+
/** Direct */
|
|
58
97
|
KnownFamily["Direct"] = "Direct";
|
|
98
|
+
/** Exchange */
|
|
59
99
|
KnownFamily["Exchange"] = "Exchange";
|
|
60
100
|
})(exports.KnownFamily || (exports.KnownFamily = {}));
|
|
61
101
|
/** Known values of {@link Size} that the service accepts. */
|
|
62
102
|
exports.KnownSize = void 0;
|
|
63
103
|
(function (KnownSize) {
|
|
104
|
+
/** Free */
|
|
64
105
|
KnownSize["Free"] = "Free";
|
|
106
|
+
/** Metered */
|
|
65
107
|
KnownSize["Metered"] = "Metered";
|
|
108
|
+
/** Unlimited */
|
|
66
109
|
KnownSize["Unlimited"] = "Unlimited";
|
|
67
110
|
})(exports.KnownSize || (exports.KnownSize = {}));
|
|
68
111
|
/** Known values of {@link Kind} that the service accepts. */
|
|
69
112
|
exports.KnownKind = void 0;
|
|
70
113
|
(function (KnownKind) {
|
|
114
|
+
/** Direct */
|
|
71
115
|
KnownKind["Direct"] = "Direct";
|
|
116
|
+
/** Exchange */
|
|
72
117
|
KnownKind["Exchange"] = "Exchange";
|
|
73
118
|
})(exports.KnownKind || (exports.KnownKind = {}));
|
|
74
119
|
/** Known values of {@link SessionAddressProvider} that the service accepts. */
|
|
75
120
|
exports.KnownSessionAddressProvider = void 0;
|
|
76
121
|
(function (KnownSessionAddressProvider) {
|
|
122
|
+
/** Microsoft */
|
|
77
123
|
KnownSessionAddressProvider["Microsoft"] = "Microsoft";
|
|
124
|
+
/** Peer */
|
|
78
125
|
KnownSessionAddressProvider["Peer"] = "Peer";
|
|
79
126
|
})(exports.KnownSessionAddressProvider || (exports.KnownSessionAddressProvider = {}));
|
|
80
127
|
/** Known values of {@link ConnectionState} that the service accepts. */
|
|
81
128
|
exports.KnownConnectionState = void 0;
|
|
82
129
|
(function (KnownConnectionState) {
|
|
130
|
+
/** None */
|
|
83
131
|
KnownConnectionState["None"] = "None";
|
|
132
|
+
/** PendingApproval */
|
|
84
133
|
KnownConnectionState["PendingApproval"] = "PendingApproval";
|
|
134
|
+
/** Approved */
|
|
85
135
|
KnownConnectionState["Approved"] = "Approved";
|
|
136
|
+
/** ProvisioningStarted */
|
|
86
137
|
KnownConnectionState["ProvisioningStarted"] = "ProvisioningStarted";
|
|
138
|
+
/** ProvisioningFailed */
|
|
87
139
|
KnownConnectionState["ProvisioningFailed"] = "ProvisioningFailed";
|
|
140
|
+
/** ProvisioningCompleted */
|
|
88
141
|
KnownConnectionState["ProvisioningCompleted"] = "ProvisioningCompleted";
|
|
142
|
+
/** Validating */
|
|
89
143
|
KnownConnectionState["Validating"] = "Validating";
|
|
144
|
+
/** Active */
|
|
90
145
|
KnownConnectionState["Active"] = "Active";
|
|
91
146
|
})(exports.KnownConnectionState || (exports.KnownConnectionState = {}));
|
|
92
147
|
/** Known values of {@link SessionStateV4} that the service accepts. */
|
|
93
148
|
exports.KnownSessionStateV4 = void 0;
|
|
94
149
|
(function (KnownSessionStateV4) {
|
|
150
|
+
/** None */
|
|
95
151
|
KnownSessionStateV4["None"] = "None";
|
|
152
|
+
/** Idle */
|
|
96
153
|
KnownSessionStateV4["Idle"] = "Idle";
|
|
154
|
+
/** Connect */
|
|
97
155
|
KnownSessionStateV4["Connect"] = "Connect";
|
|
156
|
+
/** Active */
|
|
98
157
|
KnownSessionStateV4["Active"] = "Active";
|
|
158
|
+
/** OpenSent */
|
|
99
159
|
KnownSessionStateV4["OpenSent"] = "OpenSent";
|
|
160
|
+
/** OpenConfirm */
|
|
100
161
|
KnownSessionStateV4["OpenConfirm"] = "OpenConfirm";
|
|
162
|
+
/** OpenReceived */
|
|
101
163
|
KnownSessionStateV4["OpenReceived"] = "OpenReceived";
|
|
164
|
+
/** Established */
|
|
102
165
|
KnownSessionStateV4["Established"] = "Established";
|
|
166
|
+
/** PendingAdd */
|
|
103
167
|
KnownSessionStateV4["PendingAdd"] = "PendingAdd";
|
|
168
|
+
/** PendingUpdate */
|
|
104
169
|
KnownSessionStateV4["PendingUpdate"] = "PendingUpdate";
|
|
170
|
+
/** PendingRemove */
|
|
105
171
|
KnownSessionStateV4["PendingRemove"] = "PendingRemove";
|
|
106
172
|
})(exports.KnownSessionStateV4 || (exports.KnownSessionStateV4 = {}));
|
|
107
173
|
/** Known values of {@link SessionStateV6} that the service accepts. */
|
|
108
174
|
exports.KnownSessionStateV6 = void 0;
|
|
109
175
|
(function (KnownSessionStateV6) {
|
|
176
|
+
/** None */
|
|
110
177
|
KnownSessionStateV6["None"] = "None";
|
|
178
|
+
/** Idle */
|
|
111
179
|
KnownSessionStateV6["Idle"] = "Idle";
|
|
180
|
+
/** Connect */
|
|
112
181
|
KnownSessionStateV6["Connect"] = "Connect";
|
|
182
|
+
/** Active */
|
|
113
183
|
KnownSessionStateV6["Active"] = "Active";
|
|
184
|
+
/** OpenSent */
|
|
114
185
|
KnownSessionStateV6["OpenSent"] = "OpenSent";
|
|
186
|
+
/** OpenConfirm */
|
|
115
187
|
KnownSessionStateV6["OpenConfirm"] = "OpenConfirm";
|
|
188
|
+
/** OpenReceived */
|
|
116
189
|
KnownSessionStateV6["OpenReceived"] = "OpenReceived";
|
|
190
|
+
/** Established */
|
|
117
191
|
KnownSessionStateV6["Established"] = "Established";
|
|
192
|
+
/** PendingAdd */
|
|
118
193
|
KnownSessionStateV6["PendingAdd"] = "PendingAdd";
|
|
194
|
+
/** PendingUpdate */
|
|
119
195
|
KnownSessionStateV6["PendingUpdate"] = "PendingUpdate";
|
|
196
|
+
/** PendingRemove */
|
|
120
197
|
KnownSessionStateV6["PendingRemove"] = "PendingRemove";
|
|
121
198
|
})(exports.KnownSessionStateV6 || (exports.KnownSessionStateV6 = {}));
|
|
122
199
|
/** Known values of {@link DirectPeeringType} that the service accepts. */
|
|
123
200
|
exports.KnownDirectPeeringType = void 0;
|
|
124
201
|
(function (KnownDirectPeeringType) {
|
|
202
|
+
/** Edge */
|
|
125
203
|
KnownDirectPeeringType["Edge"] = "Edge";
|
|
204
|
+
/** Transit */
|
|
126
205
|
KnownDirectPeeringType["Transit"] = "Transit";
|
|
206
|
+
/** Cdn */
|
|
127
207
|
KnownDirectPeeringType["Cdn"] = "Cdn";
|
|
208
|
+
/** Internal */
|
|
128
209
|
KnownDirectPeeringType["Internal"] = "Internal";
|
|
210
|
+
/** Ix */
|
|
129
211
|
KnownDirectPeeringType["Ix"] = "Ix";
|
|
212
|
+
/** IxRs */
|
|
130
213
|
KnownDirectPeeringType["IxRs"] = "IxRs";
|
|
214
|
+
/** Voice */
|
|
131
215
|
KnownDirectPeeringType["Voice"] = "Voice";
|
|
132
216
|
})(exports.KnownDirectPeeringType || (exports.KnownDirectPeeringType = {}));
|
|
133
217
|
/** Known values of {@link ProvisioningState} that the service accepts. */
|
|
134
218
|
exports.KnownProvisioningState = void 0;
|
|
135
219
|
(function (KnownProvisioningState) {
|
|
220
|
+
/** Succeeded */
|
|
136
221
|
KnownProvisioningState["Succeeded"] = "Succeeded";
|
|
222
|
+
/** Updating */
|
|
137
223
|
KnownProvisioningState["Updating"] = "Updating";
|
|
224
|
+
/** Deleting */
|
|
138
225
|
KnownProvisioningState["Deleting"] = "Deleting";
|
|
226
|
+
/** Failed */
|
|
139
227
|
KnownProvisioningState["Failed"] = "Failed";
|
|
140
228
|
})(exports.KnownProvisioningState || (exports.KnownProvisioningState = {}));
|
|
141
229
|
/** Known values of {@link LookingGlassCommand} that the service accepts. */
|
|
142
230
|
exports.KnownLookingGlassCommand = void 0;
|
|
143
231
|
(function (KnownLookingGlassCommand) {
|
|
232
|
+
/** Traceroute */
|
|
144
233
|
KnownLookingGlassCommand["Traceroute"] = "Traceroute";
|
|
234
|
+
/** Ping */
|
|
145
235
|
KnownLookingGlassCommand["Ping"] = "Ping";
|
|
236
|
+
/** BgpRoute */
|
|
146
237
|
KnownLookingGlassCommand["BgpRoute"] = "BgpRoute";
|
|
147
238
|
})(exports.KnownLookingGlassCommand || (exports.KnownLookingGlassCommand = {}));
|
|
148
239
|
/** Known values of {@link LookingGlassSourceType} that the service accepts. */
|
|
149
240
|
exports.KnownLookingGlassSourceType = void 0;
|
|
150
241
|
(function (KnownLookingGlassSourceType) {
|
|
242
|
+
/** EdgeSite */
|
|
151
243
|
KnownLookingGlassSourceType["EdgeSite"] = "EdgeSite";
|
|
244
|
+
/** AzureRegion */
|
|
152
245
|
KnownLookingGlassSourceType["AzureRegion"] = "AzureRegion";
|
|
153
246
|
})(exports.KnownLookingGlassSourceType || (exports.KnownLookingGlassSourceType = {}));
|
|
154
247
|
/** Known values of {@link Command} that the service accepts. */
|
|
155
248
|
exports.KnownCommand = void 0;
|
|
156
249
|
(function (KnownCommand) {
|
|
250
|
+
/** Traceroute */
|
|
157
251
|
KnownCommand["Traceroute"] = "Traceroute";
|
|
252
|
+
/** Ping */
|
|
158
253
|
KnownCommand["Ping"] = "Ping";
|
|
254
|
+
/** BgpRoute */
|
|
159
255
|
KnownCommand["BgpRoute"] = "BgpRoute";
|
|
160
256
|
})(exports.KnownCommand || (exports.KnownCommand = {}));
|
|
161
257
|
/** Known values of {@link Role} that the service accepts. */
|
|
162
258
|
exports.KnownRole = void 0;
|
|
163
259
|
(function (KnownRole) {
|
|
260
|
+
/** Noc */
|
|
164
261
|
KnownRole["Noc"] = "Noc";
|
|
262
|
+
/** Policy */
|
|
165
263
|
KnownRole["Policy"] = "Policy";
|
|
264
|
+
/** Technical */
|
|
166
265
|
KnownRole["Technical"] = "Technical";
|
|
266
|
+
/** Service */
|
|
167
267
|
KnownRole["Service"] = "Service";
|
|
268
|
+
/** Escalation */
|
|
168
269
|
KnownRole["Escalation"] = "Escalation";
|
|
270
|
+
/** Other */
|
|
169
271
|
KnownRole["Other"] = "Other";
|
|
170
272
|
})(exports.KnownRole || (exports.KnownRole = {}));
|
|
171
273
|
/** Known values of {@link ValidationState} that the service accepts. */
|
|
172
274
|
exports.KnownValidationState = void 0;
|
|
173
275
|
(function (KnownValidationState) {
|
|
276
|
+
/** None */
|
|
174
277
|
KnownValidationState["None"] = "None";
|
|
278
|
+
/** Pending */
|
|
175
279
|
KnownValidationState["Pending"] = "Pending";
|
|
280
|
+
/** Approved */
|
|
176
281
|
KnownValidationState["Approved"] = "Approved";
|
|
282
|
+
/** Failed */
|
|
177
283
|
KnownValidationState["Failed"] = "Failed";
|
|
178
284
|
})(exports.KnownValidationState || (exports.KnownValidationState = {}));
|
|
179
285
|
/** Known values of {@link PeeringLocationsKind} that the service accepts. */
|
|
180
286
|
exports.KnownPeeringLocationsKind = void 0;
|
|
181
287
|
(function (KnownPeeringLocationsKind) {
|
|
288
|
+
/** Direct */
|
|
182
289
|
KnownPeeringLocationsKind["Direct"] = "Direct";
|
|
290
|
+
/** Exchange */
|
|
183
291
|
KnownPeeringLocationsKind["Exchange"] = "Exchange";
|
|
184
292
|
})(exports.KnownPeeringLocationsKind || (exports.KnownPeeringLocationsKind = {}));
|
|
185
293
|
/** Known values of {@link PeeringLocationsDirectPeeringType} that the service accepts. */
|
|
186
294
|
exports.KnownPeeringLocationsDirectPeeringType = void 0;
|
|
187
295
|
(function (KnownPeeringLocationsDirectPeeringType) {
|
|
296
|
+
/** Edge */
|
|
188
297
|
KnownPeeringLocationsDirectPeeringType["Edge"] = "Edge";
|
|
298
|
+
/** Transit */
|
|
189
299
|
KnownPeeringLocationsDirectPeeringType["Transit"] = "Transit";
|
|
300
|
+
/** Cdn */
|
|
190
301
|
KnownPeeringLocationsDirectPeeringType["Cdn"] = "Cdn";
|
|
302
|
+
/** Internal */
|
|
191
303
|
KnownPeeringLocationsDirectPeeringType["Internal"] = "Internal";
|
|
304
|
+
/** Ix */
|
|
192
305
|
KnownPeeringLocationsDirectPeeringType["Ix"] = "Ix";
|
|
306
|
+
/** IxRs */
|
|
193
307
|
KnownPeeringLocationsDirectPeeringType["IxRs"] = "IxRs";
|
|
308
|
+
/** Voice */
|
|
194
309
|
KnownPeeringLocationsDirectPeeringType["Voice"] = "Voice";
|
|
195
310
|
})(exports.KnownPeeringLocationsDirectPeeringType || (exports.KnownPeeringLocationsDirectPeeringType = {}));
|
|
196
311
|
/** Known values of {@link PrefixValidationState} that the service accepts. */
|
|
197
312
|
exports.KnownPrefixValidationState = void 0;
|
|
198
313
|
(function (KnownPrefixValidationState) {
|
|
314
|
+
/** None */
|
|
199
315
|
KnownPrefixValidationState["None"] = "None";
|
|
316
|
+
/** Invalid */
|
|
200
317
|
KnownPrefixValidationState["Invalid"] = "Invalid";
|
|
318
|
+
/** Verified */
|
|
201
319
|
KnownPrefixValidationState["Verified"] = "Verified";
|
|
320
|
+
/** Failed */
|
|
202
321
|
KnownPrefixValidationState["Failed"] = "Failed";
|
|
322
|
+
/** Pending */
|
|
203
323
|
KnownPrefixValidationState["Pending"] = "Pending";
|
|
324
|
+
/** Warning */
|
|
204
325
|
KnownPrefixValidationState["Warning"] = "Warning";
|
|
326
|
+
/** Unknown */
|
|
205
327
|
KnownPrefixValidationState["Unknown"] = "Unknown";
|
|
206
328
|
})(exports.KnownPrefixValidationState || (exports.KnownPrefixValidationState = {}));
|
|
207
329
|
/** Known values of {@link LearnedType} that the service accepts. */
|
|
208
330
|
exports.KnownLearnedType = void 0;
|
|
209
331
|
(function (KnownLearnedType) {
|
|
332
|
+
/** None */
|
|
210
333
|
KnownLearnedType["None"] = "None";
|
|
334
|
+
/** ViaServiceProvider */
|
|
211
335
|
KnownLearnedType["ViaServiceProvider"] = "ViaServiceProvider";
|
|
336
|
+
/** ViaSession */
|
|
212
337
|
KnownLearnedType["ViaSession"] = "ViaSession";
|
|
213
338
|
})(exports.KnownLearnedType || (exports.KnownLearnedType = {}));
|
|
214
339
|
|
|
@@ -2398,20 +2523,31 @@ class CdnPeeringPrefixesImpl {
|
|
|
2398
2523
|
[Symbol.asyncIterator]() {
|
|
2399
2524
|
return this;
|
|
2400
2525
|
},
|
|
2401
|
-
byPage: () => {
|
|
2402
|
-
|
|
2526
|
+
byPage: (settings) => {
|
|
2527
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2528
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2529
|
+
}
|
|
2530
|
+
return this.listPagingPage(peeringLocation, options, settings);
|
|
2403
2531
|
}
|
|
2404
2532
|
};
|
|
2405
2533
|
}
|
|
2406
|
-
listPagingPage(peeringLocation, options) {
|
|
2534
|
+
listPagingPage(peeringLocation, options, settings) {
|
|
2407
2535
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2408
|
-
let result
|
|
2409
|
-
|
|
2410
|
-
|
|
2536
|
+
let result;
|
|
2537
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2538
|
+
if (!continuationToken) {
|
|
2539
|
+
result = yield tslib.__await(this._list(peeringLocation, options));
|
|
2540
|
+
let page = result.value || [];
|
|
2541
|
+
continuationToken = result.nextLink;
|
|
2542
|
+
setContinuationToken(page, continuationToken);
|
|
2543
|
+
yield yield tslib.__await(page);
|
|
2544
|
+
}
|
|
2411
2545
|
while (continuationToken) {
|
|
2412
2546
|
result = yield tslib.__await(this._listNext(peeringLocation, continuationToken, options));
|
|
2413
2547
|
continuationToken = result.nextLink;
|
|
2414
|
-
|
|
2548
|
+
let page = result.value || [];
|
|
2549
|
+
setContinuationToken(page, continuationToken);
|
|
2550
|
+
yield yield tslib.__await(page);
|
|
2415
2551
|
}
|
|
2416
2552
|
});
|
|
2417
2553
|
}
|
|
@@ -2523,20 +2659,31 @@ class LegacyPeeringsImpl {
|
|
|
2523
2659
|
[Symbol.asyncIterator]() {
|
|
2524
2660
|
return this;
|
|
2525
2661
|
},
|
|
2526
|
-
byPage: () => {
|
|
2527
|
-
|
|
2662
|
+
byPage: (settings) => {
|
|
2663
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2664
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2665
|
+
}
|
|
2666
|
+
return this.listPagingPage(peeringLocation, kind, options, settings);
|
|
2528
2667
|
}
|
|
2529
2668
|
};
|
|
2530
2669
|
}
|
|
2531
|
-
listPagingPage(peeringLocation, kind, options) {
|
|
2670
|
+
listPagingPage(peeringLocation, kind, options, settings) {
|
|
2532
2671
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2533
|
-
let result
|
|
2534
|
-
|
|
2535
|
-
|
|
2672
|
+
let result;
|
|
2673
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2674
|
+
if (!continuationToken) {
|
|
2675
|
+
result = yield tslib.__await(this._list(peeringLocation, kind, options));
|
|
2676
|
+
let page = result.value || [];
|
|
2677
|
+
continuationToken = result.nextLink;
|
|
2678
|
+
setContinuationToken(page, continuationToken);
|
|
2679
|
+
yield yield tslib.__await(page);
|
|
2680
|
+
}
|
|
2536
2681
|
while (continuationToken) {
|
|
2537
2682
|
result = yield tslib.__await(this._listNext(peeringLocation, kind, continuationToken, options));
|
|
2538
2683
|
continuationToken = result.nextLink;
|
|
2539
|
-
|
|
2684
|
+
let page = result.value || [];
|
|
2685
|
+
setContinuationToken(page, continuationToken);
|
|
2686
|
+
yield yield tslib.__await(page);
|
|
2540
2687
|
}
|
|
2541
2688
|
});
|
|
2542
2689
|
}
|
|
@@ -2711,20 +2858,31 @@ class OperationsImpl {
|
|
|
2711
2858
|
[Symbol.asyncIterator]() {
|
|
2712
2859
|
return this;
|
|
2713
2860
|
},
|
|
2714
|
-
byPage: () => {
|
|
2715
|
-
|
|
2861
|
+
byPage: (settings) => {
|
|
2862
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2863
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2864
|
+
}
|
|
2865
|
+
return this.listPagingPage(options, settings);
|
|
2716
2866
|
}
|
|
2717
2867
|
};
|
|
2718
2868
|
}
|
|
2719
|
-
listPagingPage(options) {
|
|
2869
|
+
listPagingPage(options, settings) {
|
|
2720
2870
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
2721
|
-
let result
|
|
2722
|
-
|
|
2723
|
-
|
|
2871
|
+
let result;
|
|
2872
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
2873
|
+
if (!continuationToken) {
|
|
2874
|
+
result = yield tslib.__await(this._list(options));
|
|
2875
|
+
let page = result.value || [];
|
|
2876
|
+
continuationToken = result.nextLink;
|
|
2877
|
+
setContinuationToken(page, continuationToken);
|
|
2878
|
+
yield yield tslib.__await(page);
|
|
2879
|
+
}
|
|
2724
2880
|
while (continuationToken) {
|
|
2725
2881
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
2726
2882
|
continuationToken = result.nextLink;
|
|
2727
|
-
|
|
2883
|
+
let page = result.value || [];
|
|
2884
|
+
setContinuationToken(page, continuationToken);
|
|
2885
|
+
yield yield tslib.__await(page);
|
|
2728
2886
|
}
|
|
2729
2887
|
});
|
|
2730
2888
|
}
|
|
@@ -2827,20 +2985,31 @@ class PeerAsnsImpl {
|
|
|
2827
2985
|
[Symbol.asyncIterator]() {
|
|
2828
2986
|
return this;
|
|
2829
2987
|
},
|
|
2830
|
-
byPage: () => {
|
|
2831
|
-
|
|
2988
|
+
byPage: (settings) => {
|
|
2989
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
2990
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
2991
|
+
}
|
|
2992
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
2832
2993
|
}
|
|
2833
2994
|
};
|
|
2834
2995
|
}
|
|
2835
|
-
listBySubscriptionPagingPage(options) {
|
|
2996
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
2836
2997
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
2837
|
-
let result
|
|
2838
|
-
|
|
2839
|
-
|
|
2998
|
+
let result;
|
|
2999
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3000
|
+
if (!continuationToken) {
|
|
3001
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
3002
|
+
let page = result.value || [];
|
|
3003
|
+
continuationToken = result.nextLink;
|
|
3004
|
+
setContinuationToken(page, continuationToken);
|
|
3005
|
+
yield yield tslib.__await(page);
|
|
3006
|
+
}
|
|
2840
3007
|
while (continuationToken) {
|
|
2841
3008
|
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
2842
3009
|
continuationToken = result.nextLink;
|
|
2843
|
-
|
|
3010
|
+
let page = result.value || [];
|
|
3011
|
+
setContinuationToken(page, continuationToken);
|
|
3012
|
+
yield yield tslib.__await(page);
|
|
2844
3013
|
}
|
|
2845
3014
|
});
|
|
2846
3015
|
}
|
|
@@ -3038,20 +3207,31 @@ class PeeringLocationsImpl {
|
|
|
3038
3207
|
[Symbol.asyncIterator]() {
|
|
3039
3208
|
return this;
|
|
3040
3209
|
},
|
|
3041
|
-
byPage: () => {
|
|
3042
|
-
|
|
3210
|
+
byPage: (settings) => {
|
|
3211
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3212
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3213
|
+
}
|
|
3214
|
+
return this.listPagingPage(kind, options, settings);
|
|
3043
3215
|
}
|
|
3044
3216
|
};
|
|
3045
3217
|
}
|
|
3046
|
-
listPagingPage(kind, options) {
|
|
3218
|
+
listPagingPage(kind, options, settings) {
|
|
3047
3219
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
3048
|
-
let result
|
|
3049
|
-
|
|
3050
|
-
|
|
3220
|
+
let result;
|
|
3221
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3222
|
+
if (!continuationToken) {
|
|
3223
|
+
result = yield tslib.__await(this._list(kind, options));
|
|
3224
|
+
let page = result.value || [];
|
|
3225
|
+
continuationToken = result.nextLink;
|
|
3226
|
+
setContinuationToken(page, continuationToken);
|
|
3227
|
+
yield yield tslib.__await(page);
|
|
3228
|
+
}
|
|
3051
3229
|
while (continuationToken) {
|
|
3052
3230
|
result = yield tslib.__await(this._listNext(kind, continuationToken, options));
|
|
3053
3231
|
continuationToken = result.nextLink;
|
|
3054
|
-
|
|
3232
|
+
let page = result.value || [];
|
|
3233
|
+
setContinuationToken(page, continuationToken);
|
|
3234
|
+
yield yield tslib.__await(page);
|
|
3055
3235
|
}
|
|
3056
3236
|
});
|
|
3057
3237
|
}
|
|
@@ -3170,20 +3350,31 @@ class RegisteredAsnsImpl {
|
|
|
3170
3350
|
[Symbol.asyncIterator]() {
|
|
3171
3351
|
return this;
|
|
3172
3352
|
},
|
|
3173
|
-
byPage: () => {
|
|
3174
|
-
|
|
3353
|
+
byPage: (settings) => {
|
|
3354
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3355
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3356
|
+
}
|
|
3357
|
+
return this.listByPeeringPagingPage(resourceGroupName, peeringName, options, settings);
|
|
3175
3358
|
}
|
|
3176
3359
|
};
|
|
3177
3360
|
}
|
|
3178
|
-
listByPeeringPagingPage(resourceGroupName, peeringName, options) {
|
|
3361
|
+
listByPeeringPagingPage(resourceGroupName, peeringName, options, settings) {
|
|
3179
3362
|
return tslib.__asyncGenerator(this, arguments, function* listByPeeringPagingPage_1() {
|
|
3180
|
-
let result
|
|
3181
|
-
|
|
3182
|
-
|
|
3363
|
+
let result;
|
|
3364
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3365
|
+
if (!continuationToken) {
|
|
3366
|
+
result = yield tslib.__await(this._listByPeering(resourceGroupName, peeringName, options));
|
|
3367
|
+
let page = result.value || [];
|
|
3368
|
+
continuationToken = result.nextLink;
|
|
3369
|
+
setContinuationToken(page, continuationToken);
|
|
3370
|
+
yield yield tslib.__await(page);
|
|
3371
|
+
}
|
|
3183
3372
|
while (continuationToken) {
|
|
3184
3373
|
result = yield tslib.__await(this._listByPeeringNext(resourceGroupName, peeringName, continuationToken, options));
|
|
3185
3374
|
continuationToken = result.nextLink;
|
|
3186
|
-
|
|
3375
|
+
let page = result.value || [];
|
|
3376
|
+
setContinuationToken(page, continuationToken);
|
|
3377
|
+
yield yield tslib.__await(page);
|
|
3187
3378
|
}
|
|
3188
3379
|
});
|
|
3189
3380
|
}
|
|
@@ -3413,20 +3604,31 @@ class RegisteredPrefixesImpl {
|
|
|
3413
3604
|
[Symbol.asyncIterator]() {
|
|
3414
3605
|
return this;
|
|
3415
3606
|
},
|
|
3416
|
-
byPage: () => {
|
|
3417
|
-
|
|
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.listByPeeringPagingPage(resourceGroupName, peeringName, options, settings);
|
|
3418
3612
|
}
|
|
3419
3613
|
};
|
|
3420
3614
|
}
|
|
3421
|
-
listByPeeringPagingPage(resourceGroupName, peeringName, options) {
|
|
3615
|
+
listByPeeringPagingPage(resourceGroupName, peeringName, options, settings) {
|
|
3422
3616
|
return tslib.__asyncGenerator(this, arguments, function* listByPeeringPagingPage_1() {
|
|
3423
|
-
let result
|
|
3424
|
-
|
|
3425
|
-
|
|
3617
|
+
let result;
|
|
3618
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3619
|
+
if (!continuationToken) {
|
|
3620
|
+
result = yield tslib.__await(this._listByPeering(resourceGroupName, peeringName, options));
|
|
3621
|
+
let page = result.value || [];
|
|
3622
|
+
continuationToken = result.nextLink;
|
|
3623
|
+
setContinuationToken(page, continuationToken);
|
|
3624
|
+
yield yield tslib.__await(page);
|
|
3625
|
+
}
|
|
3426
3626
|
while (continuationToken) {
|
|
3427
3627
|
result = yield tslib.__await(this._listByPeeringNext(resourceGroupName, peeringName, continuationToken, options));
|
|
3428
3628
|
continuationToken = result.nextLink;
|
|
3429
|
-
|
|
3629
|
+
let page = result.value || [];
|
|
3630
|
+
setContinuationToken(page, continuationToken);
|
|
3631
|
+
yield yield tslib.__await(page);
|
|
3430
3632
|
}
|
|
3431
3633
|
});
|
|
3432
3634
|
}
|
|
@@ -3655,20 +3857,31 @@ class PeeringsImpl {
|
|
|
3655
3857
|
[Symbol.asyncIterator]() {
|
|
3656
3858
|
return this;
|
|
3657
3859
|
},
|
|
3658
|
-
byPage: () => {
|
|
3659
|
-
|
|
3860
|
+
byPage: (settings) => {
|
|
3861
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3862
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3863
|
+
}
|
|
3864
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
3660
3865
|
}
|
|
3661
3866
|
};
|
|
3662
3867
|
}
|
|
3663
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
3868
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
3664
3869
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
3665
|
-
let result
|
|
3666
|
-
|
|
3667
|
-
|
|
3870
|
+
let result;
|
|
3871
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3872
|
+
if (!continuationToken) {
|
|
3873
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
3874
|
+
let page = result.value || [];
|
|
3875
|
+
continuationToken = result.nextLink;
|
|
3876
|
+
setContinuationToken(page, continuationToken);
|
|
3877
|
+
yield yield tslib.__await(page);
|
|
3878
|
+
}
|
|
3668
3879
|
while (continuationToken) {
|
|
3669
3880
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
3670
3881
|
continuationToken = result.nextLink;
|
|
3671
|
-
|
|
3882
|
+
let page = result.value || [];
|
|
3883
|
+
setContinuationToken(page, continuationToken);
|
|
3884
|
+
yield yield tslib.__await(page);
|
|
3672
3885
|
}
|
|
3673
3886
|
});
|
|
3674
3887
|
}
|
|
@@ -3703,20 +3916,31 @@ class PeeringsImpl {
|
|
|
3703
3916
|
[Symbol.asyncIterator]() {
|
|
3704
3917
|
return this;
|
|
3705
3918
|
},
|
|
3706
|
-
byPage: () => {
|
|
3707
|
-
|
|
3919
|
+
byPage: (settings) => {
|
|
3920
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
3921
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
3922
|
+
}
|
|
3923
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
3708
3924
|
}
|
|
3709
3925
|
};
|
|
3710
3926
|
}
|
|
3711
|
-
listBySubscriptionPagingPage(options) {
|
|
3927
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
3712
3928
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
3713
|
-
let result
|
|
3714
|
-
|
|
3715
|
-
|
|
3929
|
+
let result;
|
|
3930
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
3931
|
+
if (!continuationToken) {
|
|
3932
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
3933
|
+
let page = result.value || [];
|
|
3934
|
+
continuationToken = result.nextLink;
|
|
3935
|
+
setContinuationToken(page, continuationToken);
|
|
3936
|
+
yield yield tslib.__await(page);
|
|
3937
|
+
}
|
|
3716
3938
|
while (continuationToken) {
|
|
3717
3939
|
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
3718
3940
|
continuationToken = result.nextLink;
|
|
3719
|
-
|
|
3941
|
+
let page = result.value || [];
|
|
3942
|
+
setContinuationToken(page, continuationToken);
|
|
3943
|
+
yield yield tslib.__await(page);
|
|
3720
3944
|
}
|
|
3721
3945
|
});
|
|
3722
3946
|
}
|
|
@@ -4013,20 +4237,31 @@ class ReceivedRoutesImpl {
|
|
|
4013
4237
|
[Symbol.asyncIterator]() {
|
|
4014
4238
|
return this;
|
|
4015
4239
|
},
|
|
4016
|
-
byPage: () => {
|
|
4017
|
-
|
|
4240
|
+
byPage: (settings) => {
|
|
4241
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4242
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4243
|
+
}
|
|
4244
|
+
return this.listByPeeringPagingPage(resourceGroupName, peeringName, options, settings);
|
|
4018
4245
|
}
|
|
4019
4246
|
};
|
|
4020
4247
|
}
|
|
4021
|
-
listByPeeringPagingPage(resourceGroupName, peeringName, options) {
|
|
4248
|
+
listByPeeringPagingPage(resourceGroupName, peeringName, options, settings) {
|
|
4022
4249
|
return tslib.__asyncGenerator(this, arguments, function* listByPeeringPagingPage_1() {
|
|
4023
|
-
let result
|
|
4024
|
-
|
|
4025
|
-
|
|
4250
|
+
let result;
|
|
4251
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4252
|
+
if (!continuationToken) {
|
|
4253
|
+
result = yield tslib.__await(this._listByPeering(resourceGroupName, peeringName, options));
|
|
4254
|
+
let page = result.value || [];
|
|
4255
|
+
continuationToken = result.nextLink;
|
|
4256
|
+
setContinuationToken(page, continuationToken);
|
|
4257
|
+
yield yield tslib.__await(page);
|
|
4258
|
+
}
|
|
4026
4259
|
while (continuationToken) {
|
|
4027
4260
|
result = yield tslib.__await(this._listByPeeringNext(resourceGroupName, peeringName, continuationToken, options));
|
|
4028
4261
|
continuationToken = result.nextLink;
|
|
4029
|
-
|
|
4262
|
+
let page = result.value || [];
|
|
4263
|
+
setContinuationToken(page, continuationToken);
|
|
4264
|
+
yield yield tslib.__await(page);
|
|
4030
4265
|
}
|
|
4031
4266
|
});
|
|
4032
4267
|
}
|
|
@@ -4161,20 +4396,31 @@ class ConnectionMonitorTestsImpl {
|
|
|
4161
4396
|
[Symbol.asyncIterator]() {
|
|
4162
4397
|
return this;
|
|
4163
4398
|
},
|
|
4164
|
-
byPage: () => {
|
|
4165
|
-
|
|
4399
|
+
byPage: (settings) => {
|
|
4400
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4401
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4402
|
+
}
|
|
4403
|
+
return this.listByPeeringServicePagingPage(resourceGroupName, peeringServiceName, options, settings);
|
|
4166
4404
|
}
|
|
4167
4405
|
};
|
|
4168
4406
|
}
|
|
4169
|
-
listByPeeringServicePagingPage(resourceGroupName, peeringServiceName, options) {
|
|
4407
|
+
listByPeeringServicePagingPage(resourceGroupName, peeringServiceName, options, settings) {
|
|
4170
4408
|
return tslib.__asyncGenerator(this, arguments, function* listByPeeringServicePagingPage_1() {
|
|
4171
|
-
let result
|
|
4172
|
-
|
|
4173
|
-
|
|
4409
|
+
let result;
|
|
4410
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4411
|
+
if (!continuationToken) {
|
|
4412
|
+
result = yield tslib.__await(this._listByPeeringService(resourceGroupName, peeringServiceName, options));
|
|
4413
|
+
let page = result.value || [];
|
|
4414
|
+
continuationToken = result.nextLink;
|
|
4415
|
+
setContinuationToken(page, continuationToken);
|
|
4416
|
+
yield yield tslib.__await(page);
|
|
4417
|
+
}
|
|
4174
4418
|
while (continuationToken) {
|
|
4175
4419
|
result = yield tslib.__await(this._listByPeeringServiceNext(resourceGroupName, peeringServiceName, continuationToken, options));
|
|
4176
4420
|
continuationToken = result.nextLink;
|
|
4177
|
-
|
|
4421
|
+
let page = result.value || [];
|
|
4422
|
+
setContinuationToken(page, continuationToken);
|
|
4423
|
+
yield yield tslib.__await(page);
|
|
4178
4424
|
}
|
|
4179
4425
|
});
|
|
4180
4426
|
}
|
|
@@ -4412,20 +4658,31 @@ class PeeringServiceCountriesImpl {
|
|
|
4412
4658
|
[Symbol.asyncIterator]() {
|
|
4413
4659
|
return this;
|
|
4414
4660
|
},
|
|
4415
|
-
byPage: () => {
|
|
4416
|
-
|
|
4661
|
+
byPage: (settings) => {
|
|
4662
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4663
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4664
|
+
}
|
|
4665
|
+
return this.listPagingPage(options, settings);
|
|
4417
4666
|
}
|
|
4418
4667
|
};
|
|
4419
4668
|
}
|
|
4420
|
-
listPagingPage(options) {
|
|
4669
|
+
listPagingPage(options, settings) {
|
|
4421
4670
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4422
|
-
let result
|
|
4423
|
-
|
|
4424
|
-
|
|
4671
|
+
let result;
|
|
4672
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4673
|
+
if (!continuationToken) {
|
|
4674
|
+
result = yield tslib.__await(this._list(options));
|
|
4675
|
+
let page = result.value || [];
|
|
4676
|
+
continuationToken = result.nextLink;
|
|
4677
|
+
setContinuationToken(page, continuationToken);
|
|
4678
|
+
yield yield tslib.__await(page);
|
|
4679
|
+
}
|
|
4425
4680
|
while (continuationToken) {
|
|
4426
4681
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
4427
4682
|
continuationToken = result.nextLink;
|
|
4428
|
-
|
|
4683
|
+
let page = result.value || [];
|
|
4684
|
+
setContinuationToken(page, continuationToken);
|
|
4685
|
+
yield yield tslib.__await(page);
|
|
4429
4686
|
}
|
|
4430
4687
|
});
|
|
4431
4688
|
}
|
|
@@ -4532,20 +4789,31 @@ class PeeringServiceLocationsImpl {
|
|
|
4532
4789
|
[Symbol.asyncIterator]() {
|
|
4533
4790
|
return this;
|
|
4534
4791
|
},
|
|
4535
|
-
byPage: () => {
|
|
4536
|
-
|
|
4792
|
+
byPage: (settings) => {
|
|
4793
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4794
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4795
|
+
}
|
|
4796
|
+
return this.listPagingPage(options, settings);
|
|
4537
4797
|
}
|
|
4538
4798
|
};
|
|
4539
4799
|
}
|
|
4540
|
-
listPagingPage(options) {
|
|
4800
|
+
listPagingPage(options, settings) {
|
|
4541
4801
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4542
|
-
let result
|
|
4543
|
-
|
|
4544
|
-
|
|
4802
|
+
let result;
|
|
4803
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4804
|
+
if (!continuationToken) {
|
|
4805
|
+
result = yield tslib.__await(this._list(options));
|
|
4806
|
+
let page = result.value || [];
|
|
4807
|
+
continuationToken = result.nextLink;
|
|
4808
|
+
setContinuationToken(page, continuationToken);
|
|
4809
|
+
yield yield tslib.__await(page);
|
|
4810
|
+
}
|
|
4545
4811
|
while (continuationToken) {
|
|
4546
4812
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
4547
4813
|
continuationToken = result.nextLink;
|
|
4548
|
-
|
|
4814
|
+
let page = result.value || [];
|
|
4815
|
+
setContinuationToken(page, continuationToken);
|
|
4816
|
+
yield yield tslib.__await(page);
|
|
4549
4817
|
}
|
|
4550
4818
|
});
|
|
4551
4819
|
}
|
|
@@ -4654,20 +4922,31 @@ class PrefixesImpl {
|
|
|
4654
4922
|
[Symbol.asyncIterator]() {
|
|
4655
4923
|
return this;
|
|
4656
4924
|
},
|
|
4657
|
-
byPage: () => {
|
|
4658
|
-
|
|
4925
|
+
byPage: (settings) => {
|
|
4926
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
4927
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
4928
|
+
}
|
|
4929
|
+
return this.listByPeeringServicePagingPage(resourceGroupName, peeringServiceName, options, settings);
|
|
4659
4930
|
}
|
|
4660
4931
|
};
|
|
4661
4932
|
}
|
|
4662
|
-
listByPeeringServicePagingPage(resourceGroupName, peeringServiceName, options) {
|
|
4933
|
+
listByPeeringServicePagingPage(resourceGroupName, peeringServiceName, options, settings) {
|
|
4663
4934
|
return tslib.__asyncGenerator(this, arguments, function* listByPeeringServicePagingPage_1() {
|
|
4664
|
-
let result
|
|
4665
|
-
|
|
4666
|
-
|
|
4935
|
+
let result;
|
|
4936
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
4937
|
+
if (!continuationToken) {
|
|
4938
|
+
result = yield tslib.__await(this._listByPeeringService(resourceGroupName, peeringServiceName, options));
|
|
4939
|
+
let page = result.value || [];
|
|
4940
|
+
continuationToken = result.nextLink;
|
|
4941
|
+
setContinuationToken(page, continuationToken);
|
|
4942
|
+
yield yield tslib.__await(page);
|
|
4943
|
+
}
|
|
4667
4944
|
while (continuationToken) {
|
|
4668
4945
|
result = yield tslib.__await(this._listByPeeringServiceNext(resourceGroupName, peeringServiceName, continuationToken, options));
|
|
4669
4946
|
continuationToken = result.nextLink;
|
|
4670
|
-
|
|
4947
|
+
let page = result.value || [];
|
|
4948
|
+
setContinuationToken(page, continuationToken);
|
|
4949
|
+
yield yield tslib.__await(page);
|
|
4671
4950
|
}
|
|
4672
4951
|
});
|
|
4673
4952
|
}
|
|
@@ -4895,20 +5174,31 @@ class PeeringServiceProvidersImpl {
|
|
|
4895
5174
|
[Symbol.asyncIterator]() {
|
|
4896
5175
|
return this;
|
|
4897
5176
|
},
|
|
4898
|
-
byPage: () => {
|
|
4899
|
-
|
|
5177
|
+
byPage: (settings) => {
|
|
5178
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5179
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5180
|
+
}
|
|
5181
|
+
return this.listPagingPage(options, settings);
|
|
4900
5182
|
}
|
|
4901
5183
|
};
|
|
4902
5184
|
}
|
|
4903
|
-
listPagingPage(options) {
|
|
5185
|
+
listPagingPage(options, settings) {
|
|
4904
5186
|
return tslib.__asyncGenerator(this, arguments, function* listPagingPage_1() {
|
|
4905
|
-
let result
|
|
4906
|
-
|
|
4907
|
-
|
|
5187
|
+
let result;
|
|
5188
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5189
|
+
if (!continuationToken) {
|
|
5190
|
+
result = yield tslib.__await(this._list(options));
|
|
5191
|
+
let page = result.value || [];
|
|
5192
|
+
continuationToken = result.nextLink;
|
|
5193
|
+
setContinuationToken(page, continuationToken);
|
|
5194
|
+
yield yield tslib.__await(page);
|
|
5195
|
+
}
|
|
4908
5196
|
while (continuationToken) {
|
|
4909
5197
|
result = yield tslib.__await(this._listNext(continuationToken, options));
|
|
4910
5198
|
continuationToken = result.nextLink;
|
|
4911
|
-
|
|
5199
|
+
let page = result.value || [];
|
|
5200
|
+
setContinuationToken(page, continuationToken);
|
|
5201
|
+
yield yield tslib.__await(page);
|
|
4912
5202
|
}
|
|
4913
5203
|
});
|
|
4914
5204
|
}
|
|
@@ -5016,20 +5306,31 @@ class PeeringServicesImpl {
|
|
|
5016
5306
|
[Symbol.asyncIterator]() {
|
|
5017
5307
|
return this;
|
|
5018
5308
|
},
|
|
5019
|
-
byPage: () => {
|
|
5020
|
-
|
|
5309
|
+
byPage: (settings) => {
|
|
5310
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5311
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5312
|
+
}
|
|
5313
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
5021
5314
|
}
|
|
5022
5315
|
};
|
|
5023
5316
|
}
|
|
5024
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
5317
|
+
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
5025
5318
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
5026
|
-
let result
|
|
5027
|
-
|
|
5028
|
-
|
|
5319
|
+
let result;
|
|
5320
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5321
|
+
if (!continuationToken) {
|
|
5322
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
5323
|
+
let page = result.value || [];
|
|
5324
|
+
continuationToken = result.nextLink;
|
|
5325
|
+
setContinuationToken(page, continuationToken);
|
|
5326
|
+
yield yield tslib.__await(page);
|
|
5327
|
+
}
|
|
5029
5328
|
while (continuationToken) {
|
|
5030
5329
|
result = yield tslib.__await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
|
|
5031
5330
|
continuationToken = result.nextLink;
|
|
5032
|
-
|
|
5331
|
+
let page = result.value || [];
|
|
5332
|
+
setContinuationToken(page, continuationToken);
|
|
5333
|
+
yield yield tslib.__await(page);
|
|
5033
5334
|
}
|
|
5034
5335
|
});
|
|
5035
5336
|
}
|
|
@@ -5064,20 +5365,31 @@ class PeeringServicesImpl {
|
|
|
5064
5365
|
[Symbol.asyncIterator]() {
|
|
5065
5366
|
return this;
|
|
5066
5367
|
},
|
|
5067
|
-
byPage: () => {
|
|
5068
|
-
|
|
5368
|
+
byPage: (settings) => {
|
|
5369
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
5370
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
5371
|
+
}
|
|
5372
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
5069
5373
|
}
|
|
5070
5374
|
};
|
|
5071
5375
|
}
|
|
5072
|
-
listBySubscriptionPagingPage(options) {
|
|
5376
|
+
listBySubscriptionPagingPage(options, settings) {
|
|
5073
5377
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
5074
|
-
let result
|
|
5075
|
-
|
|
5076
|
-
|
|
5378
|
+
let result;
|
|
5379
|
+
let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
|
|
5380
|
+
if (!continuationToken) {
|
|
5381
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
5382
|
+
let page = result.value || [];
|
|
5383
|
+
continuationToken = result.nextLink;
|
|
5384
|
+
setContinuationToken(page, continuationToken);
|
|
5385
|
+
yield yield tslib.__await(page);
|
|
5386
|
+
}
|
|
5077
5387
|
while (continuationToken) {
|
|
5078
5388
|
result = yield tslib.__await(this._listBySubscriptionNext(continuationToken, options));
|
|
5079
5389
|
continuationToken = result.nextLink;
|
|
5080
|
-
|
|
5390
|
+
let page = result.value || [];
|
|
5391
|
+
setContinuationToken(page, continuationToken);
|
|
5392
|
+
yield yield tslib.__await(page);
|
|
5081
5393
|
}
|
|
5082
5394
|
});
|
|
5083
5395
|
}
|
|
@@ -5380,7 +5692,7 @@ class PeeringManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
5380
5692
|
* @param options The parameter options
|
|
5381
5693
|
*/
|
|
5382
5694
|
constructor(credentials, subscriptionId, options) {
|
|
5383
|
-
var _a, _b;
|
|
5695
|
+
var _a, _b, _c;
|
|
5384
5696
|
if (credentials === undefined) {
|
|
5385
5697
|
throw new Error("'credentials' cannot be null");
|
|
5386
5698
|
}
|
|
@@ -5395,32 +5707,34 @@ class PeeringManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
5395
5707
|
requestContentType: "application/json; charset=utf-8",
|
|
5396
5708
|
credential: credentials
|
|
5397
5709
|
};
|
|
5398
|
-
const packageDetails = `azsdk-js-arm-peering/2.0
|
|
5710
|
+
const packageDetails = `azsdk-js-arm-peering/2.1.0`;
|
|
5399
5711
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
5400
5712
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
5401
5713
|
: `${packageDetails}`;
|
|
5402
|
-
if (!options.credentialScopes) {
|
|
5403
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
5404
|
-
}
|
|
5405
5714
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
5406
5715
|
userAgentPrefix
|
|
5407
|
-
},
|
|
5716
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
5408
5717
|
super(optionsWithDefaults);
|
|
5718
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
5409
5719
|
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
5410
5720
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
5411
|
-
|
|
5721
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
5412
5722
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5419
|
-
|
|
5420
|
-
|
|
5421
|
-
|
|
5422
|
-
|
|
5423
|
-
|
|
5723
|
+
}
|
|
5724
|
+
if (!options ||
|
|
5725
|
+
!options.pipeline ||
|
|
5726
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
5727
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
5728
|
+
this.pipeline.removePolicy({
|
|
5729
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
5730
|
+
});
|
|
5731
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
5732
|
+
credential: credentials,
|
|
5733
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
5734
|
+
challengeCallbacks: {
|
|
5735
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
5736
|
+
}
|
|
5737
|
+
}));
|
|
5424
5738
|
}
|
|
5425
5739
|
// Parameter assignments
|
|
5426
5740
|
this.subscriptionId = subscriptionId;
|
|
@@ -5443,6 +5757,34 @@ class PeeringManagementClient extends coreClient__namespace.ServiceClient {
|
|
|
5443
5757
|
this.prefixes = new PrefixesImpl(this);
|
|
5444
5758
|
this.peeringServiceProviders = new PeeringServiceProvidersImpl(this);
|
|
5445
5759
|
this.peeringServices = new PeeringServicesImpl(this);
|
|
5760
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
5761
|
+
}
|
|
5762
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
5763
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
5764
|
+
if (!apiVersion) {
|
|
5765
|
+
return;
|
|
5766
|
+
}
|
|
5767
|
+
const apiVersionPolicy = {
|
|
5768
|
+
name: "CustomApiVersionPolicy",
|
|
5769
|
+
sendRequest(request, next) {
|
|
5770
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
5771
|
+
const param = request.url.split("?");
|
|
5772
|
+
if (param.length > 1) {
|
|
5773
|
+
const newParams = param[1].split("&").map((item) => {
|
|
5774
|
+
if (item.indexOf("api-version") > -1) {
|
|
5775
|
+
return "api-version=" + apiVersion;
|
|
5776
|
+
}
|
|
5777
|
+
else {
|
|
5778
|
+
return item;
|
|
5779
|
+
}
|
|
5780
|
+
});
|
|
5781
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
5782
|
+
}
|
|
5783
|
+
return next(request);
|
|
5784
|
+
});
|
|
5785
|
+
}
|
|
5786
|
+
};
|
|
5787
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
5446
5788
|
}
|
|
5447
5789
|
/**
|
|
5448
5790
|
* Checks if the peering service provider is present within 1000 miles of customer's location
|
|
@@ -5476,4 +5818,5 @@ const checkServiceProviderAvailabilityOperationSpec = {
|
|
|
5476
5818
|
};
|
|
5477
5819
|
|
|
5478
5820
|
exports.PeeringManagementClient = PeeringManagementClient;
|
|
5821
|
+
exports.getContinuationToken = getContinuationToken;
|
|
5479
5822
|
//# sourceMappingURL=index.js.map
|