@azure/arm-frontdoor 5.2.1-alpha.20240412.1 → 5.3.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 +24 -10
- package/LICENSE +1 -1
- package/dist/index.js +1619 -1476
- 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/endpointsPurgeContentSample.js +2 -2
- package/dist-esm/samples-dev/endpointsPurgeContentSample.js.map +1 -1
- package/dist-esm/samples-dev/experimentsCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/experimentsListByProfileSample.js +1 -1
- package/dist-esm/samples-dev/experimentsListByProfileSample.js.map +1 -1
- package/dist-esm/samples-dev/experimentsUpdateSample.js +2 -2
- package/dist-esm/samples-dev/experimentsUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/frontDoorNameAvailabilityCheckSample.js +3 -5
- package/dist-esm/samples-dev/frontDoorNameAvailabilityCheckSample.js.map +1 -1
- package/dist-esm/samples-dev/frontDoorNameAvailabilityWithSubscriptionCheckSample.js +2 -2
- package/dist-esm/samples-dev/frontDoorNameAvailabilityWithSubscriptionCheckSample.js.map +1 -1
- package/dist-esm/samples-dev/frontDoorsCreateOrUpdateSample.js +26 -26
- package/dist-esm/samples-dev/frontDoorsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/frontDoorsListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/frontDoorsListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/frontDoorsListSample.js +1 -1
- package/dist-esm/samples-dev/frontDoorsListSample.js.map +1 -1
- package/dist-esm/samples-dev/frontDoorsValidateCustomDomainSample.js +2 -2
- package/dist-esm/samples-dev/frontDoorsValidateCustomDomainSample.js.map +1 -1
- package/dist-esm/samples-dev/frontendEndpointsEnableHttpsSample.js +3 -3
- package/dist-esm/samples-dev/frontendEndpointsEnableHttpsSample.js.map +1 -1
- package/dist-esm/samples-dev/frontendEndpointsListByFrontDoorSample.js +1 -1
- package/dist-esm/samples-dev/frontendEndpointsListByFrontDoorSample.js.map +1 -1
- package/dist-esm/samples-dev/managedRuleSetsListSample.js +2 -2
- package/dist-esm/samples-dev/managedRuleSetsListSample.js.map +1 -1
- package/dist-esm/samples-dev/networkExperimentProfilesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/networkExperimentProfilesListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/networkExperimentProfilesListByResourceGroupSample.js.map +1 -1
- package/dist-esm/samples-dev/networkExperimentProfilesListSample.js +1 -1
- package/dist-esm/samples-dev/networkExperimentProfilesListSample.js.map +1 -1
- package/dist-esm/samples-dev/networkExperimentProfilesUpdateSample.js +2 -2
- package/dist-esm/samples-dev/networkExperimentProfilesUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/policiesCreateOrUpdateSample.js +37 -27
- package/dist-esm/samples-dev/policiesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/policiesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/policiesGetSample.js +1 -1
- package/dist-esm/samples-dev/policiesListBySubscriptionSample.js +2 -2
- package/dist-esm/samples-dev/policiesListBySubscriptionSample.js.map +1 -1
- package/dist-esm/samples-dev/policiesListSample.js +2 -2
- package/dist-esm/samples-dev/policiesListSample.js.map +1 -1
- package/dist-esm/samples-dev/policiesUpdateSample.js +1 -1
- package/dist-esm/samples-dev/preconfiguredEndpointsListSample.js +1 -1
- package/dist-esm/samples-dev/preconfiguredEndpointsListSample.js.map +1 -1
- package/dist-esm/samples-dev/rulesEnginesCreateOrUpdateSample.js +20 -20
- package/dist-esm/samples-dev/rulesEnginesCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/rulesEnginesListByFrontDoorSample.js +1 -1
- package/dist-esm/samples-dev/rulesEnginesListByFrontDoorSample.js.map +1 -1
- package/dist-esm/src/frontDoorManagementClient.d.ts +2 -1
- package/dist-esm/src/frontDoorManagementClient.d.ts.map +1 -1
- package/dist-esm/src/frontDoorManagementClient.js +16 -18
- package/dist-esm/src/frontDoorManagementClient.js.map +1 -1
- package/dist-esm/src/lroImpl.js +1 -1
- package/dist-esm/src/models/index.d.ts +127 -2
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +54 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +2 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +1117 -1028
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +90 -90
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/endpoints.d.ts.map +1 -1
- package/dist-esm/src/operations/endpoints.js +9 -9
- package/dist-esm/src/operations/endpoints.js.map +1 -1
- package/dist-esm/src/operations/experiments.d.ts.map +1 -1
- package/dist-esm/src/operations/experiments.js +51 -51
- package/dist-esm/src/operations/experiments.js.map +1 -1
- package/dist-esm/src/operations/frontDoorNameAvailability.d.ts.map +1 -1
- package/dist-esm/src/operations/frontDoorNameAvailability.js +4 -4
- package/dist-esm/src/operations/frontDoorNameAvailability.js.map +1 -1
- package/dist-esm/src/operations/frontDoorNameAvailabilityWithSubscription.d.ts.map +1 -1
- package/dist-esm/src/operations/frontDoorNameAvailabilityWithSubscription.js +4 -4
- package/dist-esm/src/operations/frontDoorNameAvailabilityWithSubscription.js.map +1 -1
- package/dist-esm/src/operations/frontDoors.d.ts.map +1 -1
- package/dist-esm/src/operations/frontDoors.js +52 -52
- package/dist-esm/src/operations/frontDoors.js.map +1 -1
- package/dist-esm/src/operations/frontendEndpoints.d.ts.map +1 -1
- package/dist-esm/src/operations/frontendEndpoints.js +34 -34
- package/dist-esm/src/operations/frontendEndpoints.js.map +1 -1
- package/dist-esm/src/operations/managedRuleSets.js +10 -10
- package/dist-esm/src/operations/managedRuleSets.js.map +1 -1
- package/dist-esm/src/operations/networkExperimentProfiles.d.ts.map +1 -1
- package/dist-esm/src/operations/networkExperimentProfiles.js +59 -59
- package/dist-esm/src/operations/networkExperimentProfiles.js.map +1 -1
- package/dist-esm/src/operations/policies.d.ts.map +1 -1
- package/dist-esm/src/operations/policies.js +57 -57
- package/dist-esm/src/operations/policies.js.map +1 -1
- package/dist-esm/src/operations/preconfiguredEndpoints.js +11 -11
- package/dist-esm/src/operations/preconfiguredEndpoints.js.map +1 -1
- package/dist-esm/src/operations/reports.js +14 -14
- package/dist-esm/src/operations/reports.js.map +1 -1
- package/dist-esm/src/operations/rulesEngines.d.ts.map +1 -1
- package/dist-esm/src/operations/rulesEngines.js +38 -38
- package/dist-esm/src/operations/rulesEngines.js.map +1 -1
- package/dist-esm/test/frontdoor_operations_test.spec.js +1 -1
- package/dist-esm/test/frontdoor_operations_test.spec.js.map +1 -1
- package/package.json +10 -10
- package/review/arm-frontdoor.api.md +71 -1
- package/src/frontDoorManagementClient.ts +33 -19
- package/src/lroImpl.ts +3 -3
- package/src/models/index.ts +202 -58
- package/src/models/mappers.ts +1201 -1103
- package/src/models/parameters.ts +91 -91
- package/src/operations/endpoints.ts +21 -23
- package/src/operations/experiments.ts +101 -109
- package/src/operations/frontDoorNameAvailability.ts +9 -8
- package/src/operations/frontDoorNameAvailabilityWithSubscription.ts +10 -10
- package/src/operations/frontDoors.ts +99 -107
- package/src/operations/frontendEndpoints.ts +73 -79
- package/src/operations/managedRuleSets.ts +18 -19
- package/src/operations/networkExperimentProfiles.ts +116 -124
- package/src/operations/policies.ts +111 -120
- package/src/operations/preconfiguredEndpoints.ts +23 -24
- package/src/operations/reports.ts +21 -23
- package/src/operations/rulesEngines.ts +77 -83
- package/src/operationsInterfaces/endpoints.ts +3 -3
- package/src/operationsInterfaces/experiments.ts +9 -9
- package/src/operationsInterfaces/frontDoorNameAvailability.ts +2 -2
- package/src/operationsInterfaces/frontDoorNameAvailabilityWithSubscription.ts +2 -2
- package/src/operationsInterfaces/frontDoors.ts +9 -9
- package/src/operationsInterfaces/frontendEndpoints.ts +7 -7
- package/src/operationsInterfaces/managedRuleSets.ts +2 -2
- package/src/operationsInterfaces/networkExperimentProfiles.ts +10 -10
- package/src/operationsInterfaces/policies.ts +10 -10
- package/src/operationsInterfaces/preconfiguredEndpoints.ts +2 -2
- package/src/operationsInterfaces/reports.ts +3 -3
- package/src/operationsInterfaces/rulesEngines.ts +7 -7
- package/src/pagingHelper.ts +1 -1
- package/types/arm-frontdoor.d.ts +141 -3
|
@@ -16,7 +16,7 @@ import { FrontDoorManagementClient } from "../frontDoorManagementClient";
|
|
|
16
16
|
import {
|
|
17
17
|
SimplePollerLike,
|
|
18
18
|
OperationState,
|
|
19
|
-
createHttpPoller
|
|
19
|
+
createHttpPoller,
|
|
20
20
|
} from "@azure/core-lro";
|
|
21
21
|
import { createLroSpec } from "../lroImpl";
|
|
22
22
|
import {
|
|
@@ -32,7 +32,7 @@ import {
|
|
|
32
32
|
ExperimentsUpdateOptionalParams,
|
|
33
33
|
ExperimentsUpdateResponse,
|
|
34
34
|
ExperimentsDeleteOptionalParams,
|
|
35
|
-
ExperimentsListByProfileNextResponse
|
|
35
|
+
ExperimentsListByProfileNextResponse,
|
|
36
36
|
} from "../models";
|
|
37
37
|
|
|
38
38
|
/// <reference lib="esnext.asynciterable" />
|
|
@@ -57,12 +57,12 @@ export class ExperimentsImpl implements Experiments {
|
|
|
57
57
|
public listByProfile(
|
|
58
58
|
resourceGroupName: string,
|
|
59
59
|
profileName: string,
|
|
60
|
-
options?: ExperimentsListByProfileOptionalParams
|
|
60
|
+
options?: ExperimentsListByProfileOptionalParams,
|
|
61
61
|
): PagedAsyncIterableIterator<Experiment> {
|
|
62
62
|
const iter = this.listByProfilePagingAll(
|
|
63
63
|
resourceGroupName,
|
|
64
64
|
profileName,
|
|
65
|
-
options
|
|
65
|
+
options,
|
|
66
66
|
);
|
|
67
67
|
return {
|
|
68
68
|
next() {
|
|
@@ -79,9 +79,9 @@ export class ExperimentsImpl implements Experiments {
|
|
|
79
79
|
resourceGroupName,
|
|
80
80
|
profileName,
|
|
81
81
|
options,
|
|
82
|
-
settings
|
|
82
|
+
settings,
|
|
83
83
|
);
|
|
84
|
-
}
|
|
84
|
+
},
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
87
|
|
|
@@ -89,7 +89,7 @@ export class ExperimentsImpl implements Experiments {
|
|
|
89
89
|
resourceGroupName: string,
|
|
90
90
|
profileName: string,
|
|
91
91
|
options?: ExperimentsListByProfileOptionalParams,
|
|
92
|
-
settings?: PageSettings
|
|
92
|
+
settings?: PageSettings,
|
|
93
93
|
): AsyncIterableIterator<Experiment[]> {
|
|
94
94
|
let result: ExperimentsListByProfileResponse;
|
|
95
95
|
let continuationToken = settings?.continuationToken;
|
|
@@ -97,7 +97,7 @@ export class ExperimentsImpl implements Experiments {
|
|
|
97
97
|
result = await this._listByProfile(
|
|
98
98
|
resourceGroupName,
|
|
99
99
|
profileName,
|
|
100
|
-
options
|
|
100
|
+
options,
|
|
101
101
|
);
|
|
102
102
|
let page = result.value || [];
|
|
103
103
|
continuationToken = result.nextLink;
|
|
@@ -109,7 +109,7 @@ export class ExperimentsImpl implements Experiments {
|
|
|
109
109
|
resourceGroupName,
|
|
110
110
|
profileName,
|
|
111
111
|
continuationToken,
|
|
112
|
-
options
|
|
112
|
+
options,
|
|
113
113
|
);
|
|
114
114
|
continuationToken = result.nextLink;
|
|
115
115
|
let page = result.value || [];
|
|
@@ -121,12 +121,12 @@ export class ExperimentsImpl implements Experiments {
|
|
|
121
121
|
private async *listByProfilePagingAll(
|
|
122
122
|
resourceGroupName: string,
|
|
123
123
|
profileName: string,
|
|
124
|
-
options?: ExperimentsListByProfileOptionalParams
|
|
124
|
+
options?: ExperimentsListByProfileOptionalParams,
|
|
125
125
|
): AsyncIterableIterator<Experiment> {
|
|
126
126
|
for await (const page of this.listByProfilePagingPage(
|
|
127
127
|
resourceGroupName,
|
|
128
128
|
profileName,
|
|
129
|
-
options
|
|
129
|
+
options,
|
|
130
130
|
)) {
|
|
131
131
|
yield* page;
|
|
132
132
|
}
|
|
@@ -141,11 +141,11 @@ export class ExperimentsImpl implements Experiments {
|
|
|
141
141
|
private _listByProfile(
|
|
142
142
|
resourceGroupName: string,
|
|
143
143
|
profileName: string,
|
|
144
|
-
options?: ExperimentsListByProfileOptionalParams
|
|
144
|
+
options?: ExperimentsListByProfileOptionalParams,
|
|
145
145
|
): Promise<ExperimentsListByProfileResponse> {
|
|
146
146
|
return this.client.sendOperationRequest(
|
|
147
147
|
{ resourceGroupName, profileName, options },
|
|
148
|
-
listByProfileOperationSpec
|
|
148
|
+
listByProfileOperationSpec,
|
|
149
149
|
);
|
|
150
150
|
}
|
|
151
151
|
|
|
@@ -160,11 +160,11 @@ export class ExperimentsImpl implements Experiments {
|
|
|
160
160
|
resourceGroupName: string,
|
|
161
161
|
profileName: string,
|
|
162
162
|
experimentName: string,
|
|
163
|
-
options?: ExperimentsGetOptionalParams
|
|
163
|
+
options?: ExperimentsGetOptionalParams,
|
|
164
164
|
): Promise<ExperimentsGetResponse> {
|
|
165
165
|
return this.client.sendOperationRequest(
|
|
166
166
|
{ resourceGroupName, profileName, experimentName, options },
|
|
167
|
-
getOperationSpec
|
|
167
|
+
getOperationSpec,
|
|
168
168
|
);
|
|
169
169
|
}
|
|
170
170
|
|
|
@@ -181,7 +181,7 @@ export class ExperimentsImpl implements Experiments {
|
|
|
181
181
|
profileName: string,
|
|
182
182
|
experimentName: string,
|
|
183
183
|
parameters: Experiment,
|
|
184
|
-
options?: ExperimentsCreateOrUpdateOptionalParams
|
|
184
|
+
options?: ExperimentsCreateOrUpdateOptionalParams,
|
|
185
185
|
): Promise<
|
|
186
186
|
SimplePollerLike<
|
|
187
187
|
OperationState<ExperimentsCreateOrUpdateResponse>,
|
|
@@ -190,21 +190,20 @@ export class ExperimentsImpl implements Experiments {
|
|
|
190
190
|
> {
|
|
191
191
|
const directSendOperation = async (
|
|
192
192
|
args: coreClient.OperationArguments,
|
|
193
|
-
spec: coreClient.OperationSpec
|
|
193
|
+
spec: coreClient.OperationSpec,
|
|
194
194
|
): Promise<ExperimentsCreateOrUpdateResponse> => {
|
|
195
195
|
return this.client.sendOperationRequest(args, spec);
|
|
196
196
|
};
|
|
197
197
|
const sendOperationFn = async (
|
|
198
198
|
args: coreClient.OperationArguments,
|
|
199
|
-
spec: coreClient.OperationSpec
|
|
199
|
+
spec: coreClient.OperationSpec,
|
|
200
200
|
) => {
|
|
201
|
-
let currentRawResponse:
|
|
202
|
-
|
|
203
|
-
| undefined = undefined;
|
|
201
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
202
|
+
undefined;
|
|
204
203
|
const providedCallback = args.options?.onResponse;
|
|
205
204
|
const callback: coreClient.RawResponseCallback = (
|
|
206
205
|
rawResponse: coreClient.FullOperationResponse,
|
|
207
|
-
flatResponse: unknown
|
|
206
|
+
flatResponse: unknown,
|
|
208
207
|
) => {
|
|
209
208
|
currentRawResponse = rawResponse;
|
|
210
209
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -213,8 +212,8 @@ export class ExperimentsImpl implements Experiments {
|
|
|
213
212
|
...args,
|
|
214
213
|
options: {
|
|
215
214
|
...args.options,
|
|
216
|
-
onResponse: callback
|
|
217
|
-
}
|
|
215
|
+
onResponse: callback,
|
|
216
|
+
},
|
|
218
217
|
};
|
|
219
218
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
220
219
|
return {
|
|
@@ -222,8 +221,8 @@ export class ExperimentsImpl implements Experiments {
|
|
|
222
221
|
rawResponse: {
|
|
223
222
|
statusCode: currentRawResponse!.status,
|
|
224
223
|
body: currentRawResponse!.parsedBody,
|
|
225
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
226
|
-
}
|
|
224
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
225
|
+
},
|
|
227
226
|
};
|
|
228
227
|
};
|
|
229
228
|
|
|
@@ -234,16 +233,16 @@ export class ExperimentsImpl implements Experiments {
|
|
|
234
233
|
profileName,
|
|
235
234
|
experimentName,
|
|
236
235
|
parameters,
|
|
237
|
-
options
|
|
236
|
+
options,
|
|
238
237
|
},
|
|
239
|
-
spec: createOrUpdateOperationSpec
|
|
238
|
+
spec: createOrUpdateOperationSpec,
|
|
240
239
|
});
|
|
241
240
|
const poller = await createHttpPoller<
|
|
242
241
|
ExperimentsCreateOrUpdateResponse,
|
|
243
242
|
OperationState<ExperimentsCreateOrUpdateResponse>
|
|
244
243
|
>(lro, {
|
|
245
244
|
restoreFrom: options?.resumeFrom,
|
|
246
|
-
intervalInMs: options?.updateIntervalInMs
|
|
245
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
247
246
|
});
|
|
248
247
|
await poller.poll();
|
|
249
248
|
return poller;
|
|
@@ -262,14 +261,14 @@ export class ExperimentsImpl implements Experiments {
|
|
|
262
261
|
profileName: string,
|
|
263
262
|
experimentName: string,
|
|
264
263
|
parameters: Experiment,
|
|
265
|
-
options?: ExperimentsCreateOrUpdateOptionalParams
|
|
264
|
+
options?: ExperimentsCreateOrUpdateOptionalParams,
|
|
266
265
|
): Promise<ExperimentsCreateOrUpdateResponse> {
|
|
267
266
|
const poller = await this.beginCreateOrUpdate(
|
|
268
267
|
resourceGroupName,
|
|
269
268
|
profileName,
|
|
270
269
|
experimentName,
|
|
271
270
|
parameters,
|
|
272
|
-
options
|
|
271
|
+
options,
|
|
273
272
|
);
|
|
274
273
|
return poller.pollUntilDone();
|
|
275
274
|
}
|
|
@@ -287,7 +286,7 @@ export class ExperimentsImpl implements Experiments {
|
|
|
287
286
|
profileName: string,
|
|
288
287
|
experimentName: string,
|
|
289
288
|
parameters: ExperimentUpdateModel,
|
|
290
|
-
options?: ExperimentsUpdateOptionalParams
|
|
289
|
+
options?: ExperimentsUpdateOptionalParams,
|
|
291
290
|
): Promise<
|
|
292
291
|
SimplePollerLike<
|
|
293
292
|
OperationState<ExperimentsUpdateResponse>,
|
|
@@ -296,21 +295,20 @@ export class ExperimentsImpl implements Experiments {
|
|
|
296
295
|
> {
|
|
297
296
|
const directSendOperation = async (
|
|
298
297
|
args: coreClient.OperationArguments,
|
|
299
|
-
spec: coreClient.OperationSpec
|
|
298
|
+
spec: coreClient.OperationSpec,
|
|
300
299
|
): Promise<ExperimentsUpdateResponse> => {
|
|
301
300
|
return this.client.sendOperationRequest(args, spec);
|
|
302
301
|
};
|
|
303
302
|
const sendOperationFn = async (
|
|
304
303
|
args: coreClient.OperationArguments,
|
|
305
|
-
spec: coreClient.OperationSpec
|
|
304
|
+
spec: coreClient.OperationSpec,
|
|
306
305
|
) => {
|
|
307
|
-
let currentRawResponse:
|
|
308
|
-
|
|
309
|
-
| undefined = undefined;
|
|
306
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
307
|
+
undefined;
|
|
310
308
|
const providedCallback = args.options?.onResponse;
|
|
311
309
|
const callback: coreClient.RawResponseCallback = (
|
|
312
310
|
rawResponse: coreClient.FullOperationResponse,
|
|
313
|
-
flatResponse: unknown
|
|
311
|
+
flatResponse: unknown,
|
|
314
312
|
) => {
|
|
315
313
|
currentRawResponse = rawResponse;
|
|
316
314
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -319,8 +317,8 @@ export class ExperimentsImpl implements Experiments {
|
|
|
319
317
|
...args,
|
|
320
318
|
options: {
|
|
321
319
|
...args.options,
|
|
322
|
-
onResponse: callback
|
|
323
|
-
}
|
|
320
|
+
onResponse: callback,
|
|
321
|
+
},
|
|
324
322
|
};
|
|
325
323
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
326
324
|
return {
|
|
@@ -328,8 +326,8 @@ export class ExperimentsImpl implements Experiments {
|
|
|
328
326
|
rawResponse: {
|
|
329
327
|
statusCode: currentRawResponse!.status,
|
|
330
328
|
body: currentRawResponse!.parsedBody,
|
|
331
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
332
|
-
}
|
|
329
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
330
|
+
},
|
|
333
331
|
};
|
|
334
332
|
};
|
|
335
333
|
|
|
@@ -340,16 +338,16 @@ export class ExperimentsImpl implements Experiments {
|
|
|
340
338
|
profileName,
|
|
341
339
|
experimentName,
|
|
342
340
|
parameters,
|
|
343
|
-
options
|
|
341
|
+
options,
|
|
344
342
|
},
|
|
345
|
-
spec: updateOperationSpec
|
|
343
|
+
spec: updateOperationSpec,
|
|
346
344
|
});
|
|
347
345
|
const poller = await createHttpPoller<
|
|
348
346
|
ExperimentsUpdateResponse,
|
|
349
347
|
OperationState<ExperimentsUpdateResponse>
|
|
350
348
|
>(lro, {
|
|
351
349
|
restoreFrom: options?.resumeFrom,
|
|
352
|
-
intervalInMs: options?.updateIntervalInMs
|
|
350
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
353
351
|
});
|
|
354
352
|
await poller.poll();
|
|
355
353
|
return poller;
|
|
@@ -368,14 +366,14 @@ export class ExperimentsImpl implements Experiments {
|
|
|
368
366
|
profileName: string,
|
|
369
367
|
experimentName: string,
|
|
370
368
|
parameters: ExperimentUpdateModel,
|
|
371
|
-
options?: ExperimentsUpdateOptionalParams
|
|
369
|
+
options?: ExperimentsUpdateOptionalParams,
|
|
372
370
|
): Promise<ExperimentsUpdateResponse> {
|
|
373
371
|
const poller = await this.beginUpdate(
|
|
374
372
|
resourceGroupName,
|
|
375
373
|
profileName,
|
|
376
374
|
experimentName,
|
|
377
375
|
parameters,
|
|
378
|
-
options
|
|
376
|
+
options,
|
|
379
377
|
);
|
|
380
378
|
return poller.pollUntilDone();
|
|
381
379
|
}
|
|
@@ -391,25 +389,24 @@ export class ExperimentsImpl implements Experiments {
|
|
|
391
389
|
resourceGroupName: string,
|
|
392
390
|
profileName: string,
|
|
393
391
|
experimentName: string,
|
|
394
|
-
options?: ExperimentsDeleteOptionalParams
|
|
392
|
+
options?: ExperimentsDeleteOptionalParams,
|
|
395
393
|
): Promise<SimplePollerLike<OperationState<void>, void>> {
|
|
396
394
|
const directSendOperation = async (
|
|
397
395
|
args: coreClient.OperationArguments,
|
|
398
|
-
spec: coreClient.OperationSpec
|
|
396
|
+
spec: coreClient.OperationSpec,
|
|
399
397
|
): Promise<void> => {
|
|
400
398
|
return this.client.sendOperationRequest(args, spec);
|
|
401
399
|
};
|
|
402
400
|
const sendOperationFn = async (
|
|
403
401
|
args: coreClient.OperationArguments,
|
|
404
|
-
spec: coreClient.OperationSpec
|
|
402
|
+
spec: coreClient.OperationSpec,
|
|
405
403
|
) => {
|
|
406
|
-
let currentRawResponse:
|
|
407
|
-
|
|
408
|
-
| undefined = undefined;
|
|
404
|
+
let currentRawResponse: coreClient.FullOperationResponse | undefined =
|
|
405
|
+
undefined;
|
|
409
406
|
const providedCallback = args.options?.onResponse;
|
|
410
407
|
const callback: coreClient.RawResponseCallback = (
|
|
411
408
|
rawResponse: coreClient.FullOperationResponse,
|
|
412
|
-
flatResponse: unknown
|
|
409
|
+
flatResponse: unknown,
|
|
413
410
|
) => {
|
|
414
411
|
currentRawResponse = rawResponse;
|
|
415
412
|
providedCallback?.(rawResponse, flatResponse);
|
|
@@ -418,8 +415,8 @@ export class ExperimentsImpl implements Experiments {
|
|
|
418
415
|
...args,
|
|
419
416
|
options: {
|
|
420
417
|
...args.options,
|
|
421
|
-
onResponse: callback
|
|
422
|
-
}
|
|
418
|
+
onResponse: callback,
|
|
419
|
+
},
|
|
423
420
|
};
|
|
424
421
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
425
422
|
return {
|
|
@@ -427,19 +424,19 @@ export class ExperimentsImpl implements Experiments {
|
|
|
427
424
|
rawResponse: {
|
|
428
425
|
statusCode: currentRawResponse!.status,
|
|
429
426
|
body: currentRawResponse!.parsedBody,
|
|
430
|
-
headers: currentRawResponse!.headers.toJSON()
|
|
431
|
-
}
|
|
427
|
+
headers: currentRawResponse!.headers.toJSON(),
|
|
428
|
+
},
|
|
432
429
|
};
|
|
433
430
|
};
|
|
434
431
|
|
|
435
432
|
const lro = createLroSpec({
|
|
436
433
|
sendOperationFn,
|
|
437
434
|
args: { resourceGroupName, profileName, experimentName, options },
|
|
438
|
-
spec: deleteOperationSpec
|
|
435
|
+
spec: deleteOperationSpec,
|
|
439
436
|
});
|
|
440
437
|
const poller = await createHttpPoller<void, OperationState<void>>(lro, {
|
|
441
438
|
restoreFrom: options?.resumeFrom,
|
|
442
|
-
intervalInMs: options?.updateIntervalInMs
|
|
439
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
443
440
|
});
|
|
444
441
|
await poller.poll();
|
|
445
442
|
return poller;
|
|
@@ -456,13 +453,13 @@ export class ExperimentsImpl implements Experiments {
|
|
|
456
453
|
resourceGroupName: string,
|
|
457
454
|
profileName: string,
|
|
458
455
|
experimentName: string,
|
|
459
|
-
options?: ExperimentsDeleteOptionalParams
|
|
456
|
+
options?: ExperimentsDeleteOptionalParams,
|
|
460
457
|
): Promise<void> {
|
|
461
458
|
const poller = await this.beginDelete(
|
|
462
459
|
resourceGroupName,
|
|
463
460
|
profileName,
|
|
464
461
|
experimentName,
|
|
465
|
-
options
|
|
462
|
+
options,
|
|
466
463
|
);
|
|
467
464
|
return poller.pollUntilDone();
|
|
468
465
|
}
|
|
@@ -478,11 +475,11 @@ export class ExperimentsImpl implements Experiments {
|
|
|
478
475
|
resourceGroupName: string,
|
|
479
476
|
profileName: string,
|
|
480
477
|
nextLink: string,
|
|
481
|
-
options?: ExperimentsListByProfileNextOptionalParams
|
|
478
|
+
options?: ExperimentsListByProfileNextOptionalParams,
|
|
482
479
|
): Promise<ExperimentsListByProfileNextResponse> {
|
|
483
480
|
return this.client.sendOperationRequest(
|
|
484
481
|
{ resourceGroupName, profileName, nextLink, options },
|
|
485
|
-
listByProfileNextOperationSpec
|
|
482
|
+
listByProfileNextOperationSpec,
|
|
486
483
|
);
|
|
487
484
|
}
|
|
488
485
|
}
|
|
@@ -490,38 +487,36 @@ export class ExperimentsImpl implements Experiments {
|
|
|
490
487
|
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
491
488
|
|
|
492
489
|
const listByProfileOperationSpec: coreClient.OperationSpec = {
|
|
493
|
-
path:
|
|
494
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments",
|
|
490
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments",
|
|
495
491
|
httpMethod: "GET",
|
|
496
492
|
responses: {
|
|
497
493
|
200: {
|
|
498
|
-
bodyMapper: Mappers.ExperimentList
|
|
494
|
+
bodyMapper: Mappers.ExperimentList,
|
|
499
495
|
},
|
|
500
496
|
default: {
|
|
501
|
-
bodyMapper: Mappers.ErrorResponse
|
|
502
|
-
}
|
|
497
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
498
|
+
},
|
|
503
499
|
},
|
|
504
500
|
queryParameters: [Parameters.apiVersion2],
|
|
505
501
|
urlParameters: [
|
|
506
502
|
Parameters.$host,
|
|
507
503
|
Parameters.resourceGroupName,
|
|
508
504
|
Parameters.subscriptionId,
|
|
509
|
-
Parameters.profileName
|
|
505
|
+
Parameters.profileName,
|
|
510
506
|
],
|
|
511
507
|
headerParameters: [Parameters.accept],
|
|
512
|
-
serializer
|
|
508
|
+
serializer,
|
|
513
509
|
};
|
|
514
510
|
const getOperationSpec: coreClient.OperationSpec = {
|
|
515
|
-
path:
|
|
516
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}",
|
|
511
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}",
|
|
517
512
|
httpMethod: "GET",
|
|
518
513
|
responses: {
|
|
519
514
|
200: {
|
|
520
|
-
bodyMapper: Mappers.Experiment
|
|
515
|
+
bodyMapper: Mappers.Experiment,
|
|
521
516
|
},
|
|
522
517
|
default: {
|
|
523
|
-
bodyMapper: Mappers.ErrorResponse
|
|
524
|
-
}
|
|
518
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
519
|
+
},
|
|
525
520
|
},
|
|
526
521
|
queryParameters: [Parameters.apiVersion2],
|
|
527
522
|
urlParameters: [
|
|
@@ -529,31 +524,30 @@ const getOperationSpec: coreClient.OperationSpec = {
|
|
|
529
524
|
Parameters.resourceGroupName,
|
|
530
525
|
Parameters.subscriptionId,
|
|
531
526
|
Parameters.profileName,
|
|
532
|
-
Parameters.experimentName
|
|
527
|
+
Parameters.experimentName,
|
|
533
528
|
],
|
|
534
529
|
headerParameters: [Parameters.accept],
|
|
535
|
-
serializer
|
|
530
|
+
serializer,
|
|
536
531
|
};
|
|
537
532
|
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
538
|
-
path:
|
|
539
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}",
|
|
533
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}",
|
|
540
534
|
httpMethod: "PUT",
|
|
541
535
|
responses: {
|
|
542
536
|
200: {
|
|
543
|
-
bodyMapper: Mappers.Experiment
|
|
537
|
+
bodyMapper: Mappers.Experiment,
|
|
544
538
|
},
|
|
545
539
|
201: {
|
|
546
|
-
bodyMapper: Mappers.Experiment
|
|
540
|
+
bodyMapper: Mappers.Experiment,
|
|
547
541
|
},
|
|
548
542
|
202: {
|
|
549
|
-
bodyMapper: Mappers.Experiment
|
|
543
|
+
bodyMapper: Mappers.Experiment,
|
|
550
544
|
},
|
|
551
545
|
204: {
|
|
552
|
-
bodyMapper: Mappers.Experiment
|
|
546
|
+
bodyMapper: Mappers.Experiment,
|
|
553
547
|
},
|
|
554
548
|
default: {
|
|
555
|
-
bodyMapper: Mappers.ErrorResponse
|
|
556
|
-
}
|
|
549
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
550
|
+
},
|
|
557
551
|
},
|
|
558
552
|
requestBody: Parameters.parameters4,
|
|
559
553
|
queryParameters: [Parameters.apiVersion2],
|
|
@@ -562,32 +556,31 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
|
562
556
|
Parameters.resourceGroupName,
|
|
563
557
|
Parameters.subscriptionId,
|
|
564
558
|
Parameters.profileName,
|
|
565
|
-
Parameters.experimentName
|
|
559
|
+
Parameters.experimentName,
|
|
566
560
|
],
|
|
567
561
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
568
562
|
mediaType: "json",
|
|
569
|
-
serializer
|
|
563
|
+
serializer,
|
|
570
564
|
};
|
|
571
565
|
const updateOperationSpec: coreClient.OperationSpec = {
|
|
572
|
-
path:
|
|
573
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}",
|
|
566
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}",
|
|
574
567
|
httpMethod: "PATCH",
|
|
575
568
|
responses: {
|
|
576
569
|
200: {
|
|
577
|
-
bodyMapper: Mappers.Experiment
|
|
570
|
+
bodyMapper: Mappers.Experiment,
|
|
578
571
|
},
|
|
579
572
|
201: {
|
|
580
|
-
bodyMapper: Mappers.Experiment
|
|
573
|
+
bodyMapper: Mappers.Experiment,
|
|
581
574
|
},
|
|
582
575
|
202: {
|
|
583
|
-
bodyMapper: Mappers.Experiment
|
|
576
|
+
bodyMapper: Mappers.Experiment,
|
|
584
577
|
},
|
|
585
578
|
204: {
|
|
586
|
-
bodyMapper: Mappers.Experiment
|
|
579
|
+
bodyMapper: Mappers.Experiment,
|
|
587
580
|
},
|
|
588
581
|
default: {
|
|
589
|
-
bodyMapper: Mappers.ErrorResponse
|
|
590
|
-
}
|
|
582
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
583
|
+
},
|
|
591
584
|
},
|
|
592
585
|
requestBody: Parameters.parameters5,
|
|
593
586
|
queryParameters: [Parameters.apiVersion2],
|
|
@@ -596,15 +589,14 @@ const updateOperationSpec: coreClient.OperationSpec = {
|
|
|
596
589
|
Parameters.resourceGroupName,
|
|
597
590
|
Parameters.subscriptionId,
|
|
598
591
|
Parameters.profileName,
|
|
599
|
-
Parameters.experimentName
|
|
592
|
+
Parameters.experimentName,
|
|
600
593
|
],
|
|
601
594
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
602
595
|
mediaType: "json",
|
|
603
|
-
serializer
|
|
596
|
+
serializer,
|
|
604
597
|
};
|
|
605
598
|
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
606
|
-
path:
|
|
607
|
-
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}",
|
|
599
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/NetworkExperimentProfiles/{profileName}/Experiments/{experimentName}",
|
|
608
600
|
httpMethod: "DELETE",
|
|
609
601
|
responses: {
|
|
610
602
|
200: {},
|
|
@@ -612,8 +604,8 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
612
604
|
202: {},
|
|
613
605
|
204: {},
|
|
614
606
|
default: {
|
|
615
|
-
bodyMapper: Mappers.ErrorResponse
|
|
616
|
-
}
|
|
607
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
608
|
+
},
|
|
617
609
|
},
|
|
618
610
|
queryParameters: [Parameters.apiVersion2],
|
|
619
611
|
urlParameters: [
|
|
@@ -621,29 +613,29 @@ const deleteOperationSpec: coreClient.OperationSpec = {
|
|
|
621
613
|
Parameters.resourceGroupName,
|
|
622
614
|
Parameters.subscriptionId,
|
|
623
615
|
Parameters.profileName,
|
|
624
|
-
Parameters.experimentName
|
|
616
|
+
Parameters.experimentName,
|
|
625
617
|
],
|
|
626
618
|
headerParameters: [Parameters.accept],
|
|
627
|
-
serializer
|
|
619
|
+
serializer,
|
|
628
620
|
};
|
|
629
621
|
const listByProfileNextOperationSpec: coreClient.OperationSpec = {
|
|
630
622
|
path: "{nextLink}",
|
|
631
623
|
httpMethod: "GET",
|
|
632
624
|
responses: {
|
|
633
625
|
200: {
|
|
634
|
-
bodyMapper: Mappers.ExperimentList
|
|
626
|
+
bodyMapper: Mappers.ExperimentList,
|
|
635
627
|
},
|
|
636
628
|
default: {
|
|
637
|
-
bodyMapper: Mappers.ErrorResponse
|
|
638
|
-
}
|
|
629
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
630
|
+
},
|
|
639
631
|
},
|
|
640
632
|
urlParameters: [
|
|
641
633
|
Parameters.$host,
|
|
642
634
|
Parameters.resourceGroupName,
|
|
643
635
|
Parameters.subscriptionId,
|
|
644
636
|
Parameters.nextLink,
|
|
645
|
-
Parameters.profileName
|
|
637
|
+
Parameters.profileName,
|
|
646
638
|
],
|
|
647
639
|
headerParameters: [Parameters.accept],
|
|
648
|
-
serializer
|
|
640
|
+
serializer,
|
|
649
641
|
};
|
|
@@ -14,12 +14,13 @@ import { FrontDoorManagementClient } from "../frontDoorManagementClient";
|
|
|
14
14
|
import {
|
|
15
15
|
CheckNameAvailabilityInput,
|
|
16
16
|
FrontDoorNameAvailabilityCheckOptionalParams,
|
|
17
|
-
FrontDoorNameAvailabilityCheckResponse
|
|
17
|
+
FrontDoorNameAvailabilityCheckResponse,
|
|
18
18
|
} from "../models";
|
|
19
19
|
|
|
20
20
|
/** Class containing FrontDoorNameAvailability operations. */
|
|
21
21
|
export class FrontDoorNameAvailabilityImpl
|
|
22
|
-
implements FrontDoorNameAvailability
|
|
22
|
+
implements FrontDoorNameAvailability
|
|
23
|
+
{
|
|
23
24
|
private readonly client: FrontDoorManagementClient;
|
|
24
25
|
|
|
25
26
|
/**
|
|
@@ -37,11 +38,11 @@ export class FrontDoorNameAvailabilityImpl
|
|
|
37
38
|
*/
|
|
38
39
|
check(
|
|
39
40
|
checkFrontDoorNameAvailabilityInput: CheckNameAvailabilityInput,
|
|
40
|
-
options?: FrontDoorNameAvailabilityCheckOptionalParams
|
|
41
|
+
options?: FrontDoorNameAvailabilityCheckOptionalParams,
|
|
41
42
|
): Promise<FrontDoorNameAvailabilityCheckResponse> {
|
|
42
43
|
return this.client.sendOperationRequest(
|
|
43
44
|
{ checkFrontDoorNameAvailabilityInput, options },
|
|
44
|
-
checkOperationSpec
|
|
45
|
+
checkOperationSpec,
|
|
45
46
|
);
|
|
46
47
|
}
|
|
47
48
|
}
|
|
@@ -53,16 +54,16 @@ const checkOperationSpec: coreClient.OperationSpec = {
|
|
|
53
54
|
httpMethod: "POST",
|
|
54
55
|
responses: {
|
|
55
56
|
200: {
|
|
56
|
-
bodyMapper: Mappers.CheckNameAvailabilityOutput
|
|
57
|
+
bodyMapper: Mappers.CheckNameAvailabilityOutput,
|
|
57
58
|
},
|
|
58
59
|
default: {
|
|
59
|
-
bodyMapper: Mappers.ErrorResponse
|
|
60
|
-
}
|
|
60
|
+
bodyMapper: Mappers.ErrorResponse,
|
|
61
|
+
},
|
|
61
62
|
},
|
|
62
63
|
requestBody: Parameters.checkFrontDoorNameAvailabilityInput,
|
|
63
64
|
queryParameters: [Parameters.apiVersion1],
|
|
64
65
|
urlParameters: [Parameters.$host],
|
|
65
66
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
66
67
|
mediaType: "json",
|
|
67
|
-
serializer
|
|
68
|
+
serializer,
|
|
68
69
|
};
|