@azure/arm-frontdoor 4.1.1 → 5.0.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 +11 -0
- package/LICENSE +21 -0
- package/README.md +69 -80
- package/dist/index.js +6728 -0
- package/dist/index.js.map +1 -0
- package/dist/index.min.js +1 -0
- package/dist/index.min.js.map +1 -0
- package/dist-esm/src/frontDoorManagementClient.d.ts +29 -0
- package/dist-esm/src/frontDoorManagementClient.d.ts.map +1 -0
- package/dist-esm/src/frontDoorManagementClient.js +62 -0
- package/dist-esm/src/frontDoorManagementClient.js.map +1 -0
- package/dist-esm/src/index.d.ts +5 -0
- package/dist-esm/src/index.d.ts.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.d.ts +16 -0
- package/dist-esm/src/lroImpl.d.ts.map +1 -0
- package/dist-esm/src/lroImpl.js +29 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.d.ts +2380 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +399 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +93 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +1812 -1645
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +36 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/dist-esm/src/models/parameters.js +316 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/endpoints.d.ts +34 -0
- package/dist-esm/src/operations/endpoints.d.ts.map +1 -0
- package/dist-esm/src/operations/endpoints.js +106 -0
- package/dist-esm/src/operations/endpoints.js.map +1 -0
- package/dist-esm/src/operations/experiments.d.ts +99 -0
- package/dist-esm/src/operations/experiments.d.ts.map +1 -0
- package/dist-esm/src/operations/experiments.js +417 -0
- package/dist-esm/src/operations/experiments.js.map +1 -0
- package/dist-esm/src/operations/frontDoorNameAvailability.d.ts +19 -0
- package/dist-esm/src/operations/frontDoorNameAvailability.d.ts.map +1 -0
- package/dist-esm/src/operations/frontDoorNameAvailability.js +49 -0
- package/dist-esm/src/operations/frontDoorNameAvailability.js.map +1 -0
- package/dist-esm/src/operations/frontDoorNameAvailabilityWithSubscription.d.ts +19 -0
- package/dist-esm/src/operations/frontDoorNameAvailabilityWithSubscription.d.ts.map +1 -0
- package/dist-esm/src/operations/frontDoorNameAvailabilityWithSubscription.js +49 -0
- package/dist-esm/src/operations/frontDoorNameAvailabilityWithSubscription.js.map +1 -0
- package/dist-esm/src/operations/frontDoors.d.ts +100 -0
- package/dist-esm/src/operations/frontDoors.d.ts.map +1 -0
- package/dist-esm/src/operations/frontDoors.js +453 -0
- package/dist-esm/src/operations/frontDoors.js.map +1 -0
- package/dist-esm/src/operations/frontendEndpoints.d.ts +81 -0
- package/dist-esm/src/operations/frontendEndpoints.d.ts.map +1 -0
- package/dist-esm/src/operations/frontendEndpoints.js +331 -0
- package/dist-esm/src/operations/frontendEndpoints.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +2 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/dist-esm/src/operations/index.js +20 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/managedRuleSets.d.ts +32 -0
- package/dist-esm/src/operations/managedRuleSets.d.ts.map +1 -0
- package/dist-esm/src/operations/managedRuleSets.js +124 -0
- package/dist-esm/src/operations/managedRuleSets.js.map +1 -0
- package/dist-esm/src/operations/networkExperimentProfiles.d.ts +107 -0
- package/dist-esm/src/operations/networkExperimentProfiles.d.ts.map +1 -0
- package/dist-esm/src/operations/networkExperimentProfiles.js +500 -0
- package/dist-esm/src/operations/networkExperimentProfiles.js.map +1 -0
- package/dist-esm/src/operations/policies.d.ts +73 -0
- package/dist-esm/src/operations/policies.d.ts.map +1 -0
- package/dist-esm/src/operations/policies.js +309 -0
- package/dist-esm/src/operations/policies.js.map +1 -0
- package/dist-esm/src/operations/preconfiguredEndpoints.d.ts +38 -0
- package/dist-esm/src/operations/preconfiguredEndpoints.d.ts.map +1 -0
- package/dist-esm/src/operations/preconfiguredEndpoints.js +137 -0
- package/dist-esm/src/operations/preconfiguredEndpoints.js.map +1 -0
- package/dist-esm/src/operations/reports.d.ts +34 -0
- package/dist-esm/src/operations/reports.d.ts.map +1 -0
- package/dist-esm/src/operations/reports.js +120 -0
- package/dist-esm/src/operations/reports.js.map +1 -0
- package/dist-esm/src/operations/rulesEngines.d.ts +83 -0
- package/dist-esm/src/operations/rulesEngines.d.ts.map +1 -0
- package/dist-esm/src/operations/rulesEngines.js +341 -0
- package/dist-esm/src/operations/rulesEngines.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/endpoints.d.ts +26 -0
- package/dist-esm/src/operationsInterfaces/endpoints.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/endpoints.js +9 -0
- package/dist-esm/src/operationsInterfaces/endpoints.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/experiments.d.ts +74 -0
- package/dist-esm/src/operationsInterfaces/experiments.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/experiments.js +9 -0
- package/dist-esm/src/operationsInterfaces/experiments.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/frontDoorNameAvailability.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/frontDoorNameAvailability.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/frontDoorNameAvailability.js +9 -0
- package/dist-esm/src/operationsInterfaces/frontDoorNameAvailability.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/frontDoorNameAvailabilityWithSubscription.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/frontDoorNameAvailabilityWithSubscription.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/frontDoorNameAvailabilityWithSubscription.js +9 -0
- package/dist-esm/src/operationsInterfaces/frontDoorNameAvailabilityWithSubscription.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/frontDoors.d.ts +64 -0
- package/dist-esm/src/operationsInterfaces/frontDoors.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/frontDoors.js +9 -0
- package/dist-esm/src/operationsInterfaces/frontDoors.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/frontendEndpoints.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/frontendEndpoints.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/frontendEndpoints.js +9 -0
- package/dist-esm/src/operationsInterfaces/frontendEndpoints.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +20 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/managedRuleSets.d.ts +11 -0
- package/dist-esm/src/operationsInterfaces/managedRuleSets.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/managedRuleSets.js +9 -0
- package/dist-esm/src/operationsInterfaces/managedRuleSets.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/networkExperimentProfiles.d.ts +71 -0
- package/dist-esm/src/operationsInterfaces/networkExperimentProfiles.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/networkExperimentProfiles.js +9 -0
- package/dist-esm/src/operationsInterfaces/networkExperimentProfiles.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/policies.d.ts +50 -0
- package/dist-esm/src/operationsInterfaces/policies.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/policies.js +9 -0
- package/dist-esm/src/operationsInterfaces/policies.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/preconfiguredEndpoints.d.ts +13 -0
- package/dist-esm/src/operationsInterfaces/preconfiguredEndpoints.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/preconfiguredEndpoints.js +9 -0
- package/dist-esm/src/operationsInterfaces/preconfiguredEndpoints.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/reports.d.ts +26 -0
- package/dist-esm/src/operationsInterfaces/reports.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/reports.js +9 -0
- package/dist-esm/src/operationsInterfaces/reports.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/rulesEngines.d.ts +58 -0
- package/dist-esm/src/operationsInterfaces/rulesEngines.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/rulesEngines.js +9 -0
- package/dist-esm/src/operationsInterfaces/rulesEngines.js.map +1 -0
- package/dist-esm/test/sampleTest.d.ts +2 -0
- package/dist-esm/test/sampleTest.d.ts.map +1 -0
- package/dist-esm/test/sampleTest.js +40 -0
- package/dist-esm/test/sampleTest.js.map +1 -0
- package/package.json +65 -32
- package/review/arm-frontdoor.api.md +1910 -0
- package/rollup.config.js +181 -30
- package/src/frontDoorManagementClient.ts +107 -164
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +2184 -2625
- package/src/models/mappers.ts +1796 -1578
- package/src/models/parameters.ts +228 -115
- package/src/operations/endpoints.ts +110 -59
- package/src/operations/experiments.ts +439 -238
- package/src/operations/frontDoorNameAvailability.ts +68 -0
- package/src/operations/frontDoorNameAvailabilityWithSubscription.ts +69 -0
- package/src/operations/frontDoors.ts +423 -310
- package/src/operations/frontendEndpoints.ts +334 -188
- package/src/operations/index.ts +5 -5
- package/src/operations/managedRuleSets.ts +92 -76
- package/src/operations/networkExperimentProfiles.ts +488 -297
- package/src/operations/policies.ts +305 -195
- package/src/operations/preconfiguredEndpoints.ts +125 -84
- package/src/operations/reports.ts +86 -118
- package/src/operations/rulesEngines.ts +343 -193
- package/src/operationsInterfaces/endpoints.ts +47 -0
- package/src/operationsInterfaces/experiments.ts +147 -0
- package/src/operationsInterfaces/frontDoorNameAvailability.ts +26 -0
- package/src/operationsInterfaces/frontDoorNameAvailabilityWithSubscription.ts +26 -0
- package/src/operationsInterfaces/frontDoors.ts +122 -0
- package/src/operationsInterfaces/frontendEndpoints.ts +104 -0
- package/{esm/operations/index.js → src/operationsInterfaces/index.ts} +6 -6
- package/src/operationsInterfaces/managedRuleSets.ts +25 -0
- package/src/operationsInterfaces/networkExperimentProfiles.ts +139 -0
- package/src/operationsInterfaces/policies.ts +97 -0
- package/src/operationsInterfaces/preconfiguredEndpoints.ts +29 -0
- package/src/operationsInterfaces/reports.ts +57 -0
- package/src/operationsInterfaces/rulesEngines.ts +111 -0
- package/tsconfig.json +3 -3
- package/types/arm-frontdoor.d.ts +3127 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-frontdoor.js +0 -5978
- package/dist/arm-frontdoor.js.map +0 -1
- package/dist/arm-frontdoor.min.js +0 -1
- package/dist/arm-frontdoor.min.js.map +0 -1
- package/esm/frontDoorManagementClient.d.ts +0 -70
- package/esm/frontDoorManagementClient.d.ts.map +0 -1
- package/esm/frontDoorManagementClient.js +0 -112
- package/esm/frontDoorManagementClient.js.map +0 -1
- package/esm/frontDoorManagementClientContext.d.ts +0 -22
- package/esm/frontDoorManagementClientContext.d.ts.map +0 -1
- package/esm/frontDoorManagementClientContext.js +0 -61
- package/esm/frontDoorManagementClientContext.js.map +0 -1
- package/esm/models/endpointsMappers.d.ts +0 -2
- package/esm/models/endpointsMappers.d.ts.map +0 -1
- package/esm/models/endpointsMappers.js +0 -9
- package/esm/models/endpointsMappers.js.map +0 -1
- package/esm/models/experimentsMappers.d.ts +0 -2
- package/esm/models/experimentsMappers.d.ts.map +0 -1
- package/esm/models/experimentsMappers.js +0 -9
- package/esm/models/experimentsMappers.js.map +0 -1
- package/esm/models/frontDoorsMappers.d.ts +0 -2
- package/esm/models/frontDoorsMappers.d.ts.map +0 -1
- package/esm/models/frontDoorsMappers.js +0 -9
- package/esm/models/frontDoorsMappers.js.map +0 -1
- package/esm/models/frontendEndpointsMappers.d.ts +0 -2
- package/esm/models/frontendEndpointsMappers.d.ts.map +0 -1
- package/esm/models/frontendEndpointsMappers.js +0 -9
- package/esm/models/frontendEndpointsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -2901
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -8
- package/esm/models/index.js.map +0 -1
- package/esm/models/managedRuleSetsMappers.d.ts +0 -2
- package/esm/models/managedRuleSetsMappers.d.ts.map +0 -1
- package/esm/models/managedRuleSetsMappers.js +0 -9
- package/esm/models/managedRuleSetsMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -84
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/networkExperimentProfilesMappers.d.ts +0 -2
- package/esm/models/networkExperimentProfilesMappers.d.ts.map +0 -1
- package/esm/models/networkExperimentProfilesMappers.js +0 -9
- package/esm/models/networkExperimentProfilesMappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -22
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -252
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/policiesMappers.d.ts +0 -2
- package/esm/models/policiesMappers.d.ts.map +0 -1
- package/esm/models/policiesMappers.js +0 -9
- package/esm/models/policiesMappers.js.map +0 -1
- package/esm/models/preconfiguredEndpointsMappers.d.ts +0 -2
- package/esm/models/preconfiguredEndpointsMappers.d.ts.map +0 -1
- package/esm/models/preconfiguredEndpointsMappers.js +0 -9
- package/esm/models/preconfiguredEndpointsMappers.js.map +0 -1
- package/esm/models/reportsMappers.d.ts +0 -2
- package/esm/models/reportsMappers.d.ts.map +0 -1
- package/esm/models/reportsMappers.js +0 -9
- package/esm/models/reportsMappers.js.map +0 -1
- package/esm/models/rulesEnginesMappers.d.ts +0 -2
- package/esm/models/rulesEnginesMappers.d.ts.map +0 -1
- package/esm/models/rulesEnginesMappers.js +0 -9
- package/esm/models/rulesEnginesMappers.js.map +0 -1
- package/esm/operations/endpoints.d.ts +0 -36
- package/esm/operations/endpoints.d.ts.map +0 -1
- package/esm/operations/endpoints.js +0 -87
- package/esm/operations/endpoints.js.map +0 -1
- package/esm/operations/experiments.d.ts +0 -137
- package/esm/operations/experiments.d.ts.map +0 -1
- package/esm/operations/experiments.js +0 -302
- package/esm/operations/experiments.js.map +0 -1
- package/esm/operations/frontDoors.d.ts +0 -165
- package/esm/operations/frontDoors.d.ts.map +0 -1
- package/esm/operations/frontDoors.js +0 -315
- package/esm/operations/frontDoors.js.map +0 -1
- package/esm/operations/frontendEndpoints.d.ts +0 -115
- package/esm/operations/frontendEndpoints.d.ts.map +0 -1
- package/esm/operations/frontendEndpoints.js +0 -229
- package/esm/operations/frontendEndpoints.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/managedRuleSets.d.ts +0 -46
- package/esm/operations/managedRuleSets.d.ts.map +0 -1
- package/esm/operations/managedRuleSets.js +0 -80
- package/esm/operations/managedRuleSets.js.map +0 -1
- package/esm/operations/networkExperimentProfiles.d.ts +0 -158
- package/esm/operations/networkExperimentProfiles.d.ts.map +0 -1
- package/esm/operations/networkExperimentProfiles.js +0 -339
- package/esm/operations/networkExperimentProfiles.js.map +0 -1
- package/esm/operations/policies.d.ts +0 -105
- package/esm/operations/policies.d.ts.map +0 -1
- package/esm/operations/policies.js +0 -225
- package/esm/operations/policies.js.map +0 -1
- package/esm/operations/preconfiguredEndpoints.d.ts +0 -52
- package/esm/operations/preconfiguredEndpoints.d.ts.map +0 -1
- package/esm/operations/preconfiguredEndpoints.js +0 -84
- package/esm/operations/preconfiguredEndpoints.js.map +0 -1
- package/esm/operations/reports.d.ts +0 -85
- package/esm/operations/reports.d.ts.map +0 -1
- package/esm/operations/reports.js +0 -107
- package/esm/operations/reports.js.map +0 -1
- package/esm/operations/rulesEngines.d.ts +0 -119
- package/esm/operations/rulesEngines.d.ts.map +0 -1
- package/esm/operations/rulesEngines.js +0 -240
- package/esm/operations/rulesEngines.js.map +0 -1
- package/src/frontDoorManagementClientContext.ts +0 -67
- package/src/models/endpointsMappers.ts +0 -13
- package/src/models/experimentsMappers.ts +0 -59
- package/src/models/frontDoorsMappers.ts +0 -60
- package/src/models/frontendEndpointsMappers.ts +0 -58
- package/src/models/managedRuleSetsMappers.ts +0 -58
- package/src/models/networkExperimentProfilesMappers.ts +0 -59
- package/src/models/policiesMappers.ts +0 -59
- package/src/models/preconfiguredEndpointsMappers.ts +0 -58
- package/src/models/reportsMappers.ts +0 -57
- package/src/models/rulesEnginesMappers.ts +0 -58
|
@@ -1,90 +1,125 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (c) Microsoft Corporation.
|
|
3
|
-
* Licensed under the MIT License.
|
|
4
|
-
* license information.
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
5
4
|
*
|
|
6
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
7
|
-
* Changes may cause incorrect behavior and will be lost if the code is
|
|
8
|
-
* regenerated.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
9
7
|
*/
|
|
10
8
|
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import * as
|
|
14
|
-
import * as Mappers from "../models/
|
|
9
|
+
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
10
|
+
import { Policies } from "../operationsInterfaces";
|
|
11
|
+
import * as coreClient from "@azure/core-client";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
15
13
|
import * as Parameters from "../models/parameters";
|
|
16
|
-
import {
|
|
14
|
+
import { FrontDoorManagementClient } from "../frontDoorManagementClient";
|
|
15
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
16
|
+
import { LroImpl } from "../lroImpl";
|
|
17
|
+
import {
|
|
18
|
+
WebApplicationFirewallPolicy,
|
|
19
|
+
PoliciesListNextOptionalParams,
|
|
20
|
+
PoliciesListOptionalParams,
|
|
21
|
+
PoliciesListResponse,
|
|
22
|
+
PoliciesGetOptionalParams,
|
|
23
|
+
PoliciesGetResponse,
|
|
24
|
+
PoliciesCreateOrUpdateOptionalParams,
|
|
25
|
+
PoliciesCreateOrUpdateResponse,
|
|
26
|
+
PoliciesDeleteOptionalParams,
|
|
27
|
+
PoliciesListNextResponse
|
|
28
|
+
} from "../models";
|
|
17
29
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
30
|
+
/// <reference lib="esnext.asynciterable" />
|
|
31
|
+
/** Class containing Policies operations. */
|
|
32
|
+
export class PoliciesImpl implements Policies {
|
|
33
|
+
private readonly client: FrontDoorManagementClient;
|
|
21
34
|
|
|
22
35
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @param
|
|
36
|
+
* Initialize a new instance of the class Policies class.
|
|
37
|
+
* @param client Reference to the service client
|
|
25
38
|
*/
|
|
26
|
-
constructor(client:
|
|
39
|
+
constructor(client: FrontDoorManagementClient) {
|
|
27
40
|
this.client = client;
|
|
28
41
|
}
|
|
29
42
|
|
|
30
43
|
/**
|
|
31
44
|
* Lists all of the protection policies within a resource group.
|
|
32
45
|
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
33
|
-
* @param
|
|
34
|
-
* @returns Promise<Models.PoliciesListResponse>
|
|
46
|
+
* @param options The options parameters.
|
|
35
47
|
*/
|
|
36
|
-
list(
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
48
|
+
public list(
|
|
49
|
+
resourceGroupName: string,
|
|
50
|
+
options?: PoliciesListOptionalParams
|
|
51
|
+
): PagedAsyncIterableIterator<WebApplicationFirewallPolicy> {
|
|
52
|
+
const iter = this.listPagingAll(resourceGroupName, options);
|
|
53
|
+
return {
|
|
54
|
+
next() {
|
|
55
|
+
return iter.next();
|
|
56
|
+
},
|
|
57
|
+
[Symbol.asyncIterator]() {
|
|
58
|
+
return this;
|
|
59
|
+
},
|
|
60
|
+
byPage: () => {
|
|
61
|
+
return this.listPagingPage(resourceGroupName, options);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
private async *listPagingPage(
|
|
67
|
+
resourceGroupName: string,
|
|
68
|
+
options?: PoliciesListOptionalParams
|
|
69
|
+
): AsyncIterableIterator<WebApplicationFirewallPolicy[]> {
|
|
70
|
+
let result = await this._list(resourceGroupName, options);
|
|
71
|
+
yield result.value || [];
|
|
72
|
+
let continuationToken = result.nextLink;
|
|
73
|
+
while (continuationToken) {
|
|
74
|
+
result = await this._listNext(
|
|
51
75
|
resourceGroupName,
|
|
76
|
+
continuationToken,
|
|
52
77
|
options
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
78
|
+
);
|
|
79
|
+
continuationToken = result.nextLink;
|
|
80
|
+
yield result.value || [];
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
private async *listPagingAll(
|
|
85
|
+
resourceGroupName: string,
|
|
86
|
+
options?: PoliciesListOptionalParams
|
|
87
|
+
): AsyncIterableIterator<WebApplicationFirewallPolicy> {
|
|
88
|
+
for await (const page of this.listPagingPage(resourceGroupName, options)) {
|
|
89
|
+
yield* page;
|
|
90
|
+
}
|
|
56
91
|
}
|
|
57
92
|
|
|
58
93
|
/**
|
|
59
|
-
*
|
|
60
|
-
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
61
|
-
* @param policyName The name of the Web Application Firewall Policy.
|
|
62
|
-
* @param [options] The optional parameters
|
|
63
|
-
* @returns Promise<Models.PoliciesGetResponse>
|
|
64
|
-
*/
|
|
65
|
-
get(resourceGroupName: string, policyName: string, options?: msRest.RequestOptionsBase): Promise<Models.PoliciesGetResponse>;
|
|
66
|
-
/**
|
|
94
|
+
* Lists all of the protection policies within a resource group.
|
|
67
95
|
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
68
|
-
* @param
|
|
69
|
-
* @param callback The callback
|
|
96
|
+
* @param options The options parameters.
|
|
70
97
|
*/
|
|
71
|
-
|
|
98
|
+
private _list(
|
|
99
|
+
resourceGroupName: string,
|
|
100
|
+
options?: PoliciesListOptionalParams
|
|
101
|
+
): Promise<PoliciesListResponse> {
|
|
102
|
+
return this.client.sendOperationRequest(
|
|
103
|
+
{ resourceGroupName, options },
|
|
104
|
+
listOperationSpec
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
|
|
72
108
|
/**
|
|
109
|
+
* Retrieve protection policy with specified name within a resource group.
|
|
73
110
|
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
74
111
|
* @param policyName The name of the Web Application Firewall Policy.
|
|
75
|
-
* @param options The
|
|
76
|
-
* @param callback The callback
|
|
112
|
+
* @param options The options parameters.
|
|
77
113
|
*/
|
|
78
|
-
get(
|
|
79
|
-
|
|
114
|
+
get(
|
|
115
|
+
resourceGroupName: string,
|
|
116
|
+
policyName: string,
|
|
117
|
+
options?: PoliciesGetOptionalParams
|
|
118
|
+
): Promise<PoliciesGetResponse> {
|
|
80
119
|
return this.client.sendOperationRequest(
|
|
81
|
-
{
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
options
|
|
85
|
-
},
|
|
86
|
-
getOperationSpec,
|
|
87
|
-
callback) as Promise<Models.PoliciesGetResponse>;
|
|
120
|
+
{ resourceGroupName, policyName, options },
|
|
121
|
+
getOperationSpec
|
|
122
|
+
);
|
|
88
123
|
}
|
|
89
124
|
|
|
90
125
|
/**
|
|
@@ -92,108 +127,195 @@ export class Policies {
|
|
|
92
127
|
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
93
128
|
* @param policyName The name of the Web Application Firewall Policy.
|
|
94
129
|
* @param parameters Policy to be created.
|
|
95
|
-
* @param
|
|
96
|
-
* @returns Promise<Models.PoliciesCreateOrUpdateResponse>
|
|
130
|
+
* @param options The options parameters.
|
|
97
131
|
*/
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
132
|
+
async beginCreateOrUpdate(
|
|
133
|
+
resourceGroupName: string,
|
|
134
|
+
policyName: string,
|
|
135
|
+
parameters: WebApplicationFirewallPolicy,
|
|
136
|
+
options?: PoliciesCreateOrUpdateOptionalParams
|
|
137
|
+
): Promise<
|
|
138
|
+
PollerLike<
|
|
139
|
+
PollOperationState<PoliciesCreateOrUpdateResponse>,
|
|
140
|
+
PoliciesCreateOrUpdateResponse
|
|
141
|
+
>
|
|
142
|
+
> {
|
|
143
|
+
const directSendOperation = async (
|
|
144
|
+
args: coreClient.OperationArguments,
|
|
145
|
+
spec: coreClient.OperationSpec
|
|
146
|
+
): Promise<PoliciesCreateOrUpdateResponse> => {
|
|
147
|
+
return this.client.sendOperationRequest(args, spec);
|
|
148
|
+
};
|
|
149
|
+
const sendOperation = async (
|
|
150
|
+
args: coreClient.OperationArguments,
|
|
151
|
+
spec: coreClient.OperationSpec
|
|
152
|
+
) => {
|
|
153
|
+
let currentRawResponse:
|
|
154
|
+
| coreClient.FullOperationResponse
|
|
155
|
+
| undefined = undefined;
|
|
156
|
+
const providedCallback = args.options?.onResponse;
|
|
157
|
+
const callback: coreClient.RawResponseCallback = (
|
|
158
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
159
|
+
flatResponse: unknown
|
|
160
|
+
) => {
|
|
161
|
+
currentRawResponse = rawResponse;
|
|
162
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
163
|
+
};
|
|
164
|
+
const updatedArgs = {
|
|
165
|
+
...args,
|
|
166
|
+
options: {
|
|
167
|
+
...args.options,
|
|
168
|
+
onResponse: callback
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
172
|
+
return {
|
|
173
|
+
flatResponse,
|
|
174
|
+
rawResponse: {
|
|
175
|
+
statusCode: currentRawResponse!.status,
|
|
176
|
+
body: currentRawResponse!.parsedBody,
|
|
177
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
178
|
+
}
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
const lro = new LroImpl(
|
|
183
|
+
sendOperation,
|
|
184
|
+
{ resourceGroupName, policyName, parameters, options },
|
|
185
|
+
createOrUpdateOperationSpec
|
|
186
|
+
);
|
|
187
|
+
return new LroEngine(lro, {
|
|
188
|
+
resumeFrom: options?.resumeFrom,
|
|
189
|
+
intervalInMs: options?.updateIntervalInMs
|
|
190
|
+
});
|
|
101
191
|
}
|
|
102
192
|
|
|
103
193
|
/**
|
|
104
|
-
*
|
|
194
|
+
* Create or update policy with specified rule set name within a resource group.
|
|
105
195
|
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
106
196
|
* @param policyName The name of the Web Application Firewall Policy.
|
|
107
|
-
* @param
|
|
108
|
-
* @
|
|
197
|
+
* @param parameters Policy to be created.
|
|
198
|
+
* @param options The options parameters.
|
|
109
199
|
*/
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
200
|
+
async beginCreateOrUpdateAndWait(
|
|
201
|
+
resourceGroupName: string,
|
|
202
|
+
policyName: string,
|
|
203
|
+
parameters: WebApplicationFirewallPolicy,
|
|
204
|
+
options?: PoliciesCreateOrUpdateOptionalParams
|
|
205
|
+
): Promise<PoliciesCreateOrUpdateResponse> {
|
|
206
|
+
const poller = await this.beginCreateOrUpdate(
|
|
207
|
+
resourceGroupName,
|
|
208
|
+
policyName,
|
|
209
|
+
parameters,
|
|
210
|
+
options
|
|
211
|
+
);
|
|
212
|
+
return poller.pollUntilDone();
|
|
113
213
|
}
|
|
114
214
|
|
|
115
215
|
/**
|
|
116
|
-
*
|
|
216
|
+
* Deletes Policy
|
|
117
217
|
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
118
218
|
* @param policyName The name of the Web Application Firewall Policy.
|
|
119
|
-
* @param
|
|
120
|
-
* @param [options] The optional parameters
|
|
121
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
219
|
+
* @param options The options parameters.
|
|
122
220
|
*/
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
221
|
+
async beginDelete(
|
|
222
|
+
resourceGroupName: string,
|
|
223
|
+
policyName: string,
|
|
224
|
+
options?: PoliciesDeleteOptionalParams
|
|
225
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
226
|
+
const directSendOperation = async (
|
|
227
|
+
args: coreClient.OperationArguments,
|
|
228
|
+
spec: coreClient.OperationSpec
|
|
229
|
+
): Promise<void> => {
|
|
230
|
+
return this.client.sendOperationRequest(args, spec);
|
|
231
|
+
};
|
|
232
|
+
const sendOperation = async (
|
|
233
|
+
args: coreClient.OperationArguments,
|
|
234
|
+
spec: coreClient.OperationSpec
|
|
235
|
+
) => {
|
|
236
|
+
let currentRawResponse:
|
|
237
|
+
| coreClient.FullOperationResponse
|
|
238
|
+
| undefined = undefined;
|
|
239
|
+
const providedCallback = args.options?.onResponse;
|
|
240
|
+
const callback: coreClient.RawResponseCallback = (
|
|
241
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
242
|
+
flatResponse: unknown
|
|
243
|
+
) => {
|
|
244
|
+
currentRawResponse = rawResponse;
|
|
245
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
246
|
+
};
|
|
247
|
+
const updatedArgs = {
|
|
248
|
+
...args,
|
|
249
|
+
options: {
|
|
250
|
+
...args.options,
|
|
251
|
+
onResponse: callback
|
|
252
|
+
}
|
|
253
|
+
};
|
|
254
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
255
|
+
return {
|
|
256
|
+
flatResponse,
|
|
257
|
+
rawResponse: {
|
|
258
|
+
statusCode: currentRawResponse!.status,
|
|
259
|
+
body: currentRawResponse!.parsedBody,
|
|
260
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
const lro = new LroImpl(
|
|
266
|
+
sendOperation,
|
|
267
|
+
{ resourceGroupName, policyName, options },
|
|
268
|
+
deleteOperationSpec
|
|
269
|
+
);
|
|
270
|
+
return new LroEngine(lro, {
|
|
271
|
+
resumeFrom: options?.resumeFrom,
|
|
272
|
+
intervalInMs: options?.updateIntervalInMs
|
|
273
|
+
});
|
|
133
274
|
}
|
|
134
275
|
|
|
135
276
|
/**
|
|
136
277
|
* Deletes Policy
|
|
137
278
|
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
138
279
|
* @param policyName The name of the Web Application Firewall Policy.
|
|
139
|
-
* @param
|
|
140
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
280
|
+
* @param options The options parameters.
|
|
141
281
|
*/
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
options
|
|
282
|
+
async beginDeleteAndWait(
|
|
283
|
+
resourceGroupName: string,
|
|
284
|
+
policyName: string,
|
|
285
|
+
options?: PoliciesDeleteOptionalParams
|
|
286
|
+
): Promise<void> {
|
|
287
|
+
const poller = await this.beginDelete(
|
|
288
|
+
resourceGroupName,
|
|
289
|
+
policyName,
|
|
290
|
+
options
|
|
291
|
+
);
|
|
292
|
+
return poller.pollUntilDone();
|
|
151
293
|
}
|
|
152
294
|
|
|
153
295
|
/**
|
|
154
|
-
*
|
|
155
|
-
* @param
|
|
156
|
-
* @param
|
|
157
|
-
* @
|
|
158
|
-
*/
|
|
159
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.PoliciesListNextResponse>;
|
|
160
|
-
/**
|
|
161
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
162
|
-
* @param callback The callback
|
|
163
|
-
*/
|
|
164
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.WebApplicationFirewallPolicyList>): void;
|
|
165
|
-
/**
|
|
166
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
167
|
-
* @param options The optional parameters
|
|
168
|
-
* @param callback The callback
|
|
296
|
+
* ListNext
|
|
297
|
+
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
298
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
299
|
+
* @param options The options parameters.
|
|
169
300
|
*/
|
|
170
|
-
|
|
171
|
-
|
|
301
|
+
private _listNext(
|
|
302
|
+
resourceGroupName: string,
|
|
303
|
+
nextLink: string,
|
|
304
|
+
options?: PoliciesListNextOptionalParams
|
|
305
|
+
): Promise<PoliciesListNextResponse> {
|
|
172
306
|
return this.client.sendOperationRequest(
|
|
173
|
-
{
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
},
|
|
177
|
-
listNextOperationSpec,
|
|
178
|
-
callback) as Promise<Models.PoliciesListNextResponse>;
|
|
307
|
+
{ resourceGroupName, nextLink, options },
|
|
308
|
+
listNextOperationSpec
|
|
309
|
+
);
|
|
179
310
|
}
|
|
180
311
|
}
|
|
181
|
-
|
|
182
312
|
// Operation Specifications
|
|
183
|
-
const serializer =
|
|
184
|
-
|
|
313
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
314
|
+
|
|
315
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
316
|
+
path:
|
|
317
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoorWebApplicationFirewallPolicies",
|
|
185
318
|
httpMethod: "GET",
|
|
186
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies",
|
|
187
|
-
urlParameters: [
|
|
188
|
-
Parameters.resourceGroupName,
|
|
189
|
-
Parameters.subscriptionId
|
|
190
|
-
],
|
|
191
|
-
queryParameters: [
|
|
192
|
-
Parameters.apiVersion2
|
|
193
|
-
],
|
|
194
|
-
headerParameters: [
|
|
195
|
-
Parameters.acceptLanguage
|
|
196
|
-
],
|
|
197
319
|
responses: {
|
|
198
320
|
200: {
|
|
199
321
|
bodyMapper: Mappers.WebApplicationFirewallPolicyList
|
|
@@ -202,23 +324,19 @@ const listOperationSpec: msRest.OperationSpec = {
|
|
|
202
324
|
bodyMapper: Mappers.ErrorResponse
|
|
203
325
|
}
|
|
204
326
|
},
|
|
327
|
+
queryParameters: [Parameters.apiVersion2],
|
|
328
|
+
urlParameters: [
|
|
329
|
+
Parameters.$host,
|
|
330
|
+
Parameters.subscriptionId,
|
|
331
|
+
Parameters.resourceGroupName
|
|
332
|
+
],
|
|
333
|
+
headerParameters: [Parameters.accept],
|
|
205
334
|
serializer
|
|
206
335
|
};
|
|
207
|
-
|
|
208
|
-
|
|
336
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
337
|
+
path:
|
|
338
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}",
|
|
209
339
|
httpMethod: "GET",
|
|
210
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}",
|
|
211
|
-
urlParameters: [
|
|
212
|
-
Parameters.resourceGroupName,
|
|
213
|
-
Parameters.policyName,
|
|
214
|
-
Parameters.subscriptionId
|
|
215
|
-
],
|
|
216
|
-
queryParameters: [
|
|
217
|
-
Parameters.apiVersion2
|
|
218
|
-
],
|
|
219
|
-
headerParameters: [
|
|
220
|
-
Parameters.acceptLanguage
|
|
221
|
-
],
|
|
222
340
|
responses: {
|
|
223
341
|
200: {
|
|
224
342
|
bodyMapper: Mappers.WebApplicationFirewallPolicy
|
|
@@ -227,30 +345,20 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
|
227
345
|
bodyMapper: Mappers.ErrorResponse
|
|
228
346
|
}
|
|
229
347
|
},
|
|
230
|
-
|
|
231
|
-
};
|
|
232
|
-
|
|
233
|
-
const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
234
|
-
httpMethod: "PUT",
|
|
235
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}",
|
|
348
|
+
queryParameters: [Parameters.apiVersion2],
|
|
236
349
|
urlParameters: [
|
|
350
|
+
Parameters.$host,
|
|
351
|
+
Parameters.subscriptionId,
|
|
237
352
|
Parameters.resourceGroupName,
|
|
238
|
-
Parameters.policyName
|
|
239
|
-
Parameters.subscriptionId
|
|
240
|
-
],
|
|
241
|
-
queryParameters: [
|
|
242
|
-
Parameters.apiVersion2
|
|
353
|
+
Parameters.policyName
|
|
243
354
|
],
|
|
244
|
-
headerParameters: [
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
required: true
|
|
252
|
-
}
|
|
253
|
-
},
|
|
355
|
+
headerParameters: [Parameters.accept],
|
|
356
|
+
serializer
|
|
357
|
+
};
|
|
358
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
359
|
+
path:
|
|
360
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}",
|
|
361
|
+
httpMethod: "PUT",
|
|
254
362
|
responses: {
|
|
255
363
|
200: {
|
|
256
364
|
bodyMapper: Mappers.WebApplicationFirewallPolicy
|
|
@@ -261,48 +369,42 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
|
261
369
|
202: {
|
|
262
370
|
bodyMapper: Mappers.WebApplicationFirewallPolicy
|
|
263
371
|
},
|
|
372
|
+
204: {
|
|
373
|
+
bodyMapper: Mappers.WebApplicationFirewallPolicy
|
|
374
|
+
},
|
|
264
375
|
default: {
|
|
265
376
|
bodyMapper: Mappers.ErrorResponse
|
|
266
377
|
}
|
|
267
378
|
},
|
|
379
|
+
requestBody: Parameters.parameters4,
|
|
380
|
+
queryParameters: [Parameters.apiVersion2],
|
|
381
|
+
urlParameters: [
|
|
382
|
+
Parameters.$host,
|
|
383
|
+
Parameters.subscriptionId,
|
|
384
|
+
Parameters.resourceGroupName,
|
|
385
|
+
Parameters.policyName
|
|
386
|
+
],
|
|
387
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
388
|
+
mediaType: "json",
|
|
268
389
|
serializer
|
|
269
390
|
};
|
|
270
|
-
|
|
271
|
-
|
|
391
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
392
|
+
path:
|
|
393
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/FrontDoorWebApplicationFirewallPolicies/{policyName}",
|
|
272
394
|
httpMethod: "DELETE",
|
|
273
|
-
|
|
395
|
+
responses: { 200: {}, 201: {}, 202: {}, 204: {} },
|
|
396
|
+
queryParameters: [Parameters.apiVersion2],
|
|
274
397
|
urlParameters: [
|
|
398
|
+
Parameters.$host,
|
|
399
|
+
Parameters.subscriptionId,
|
|
275
400
|
Parameters.resourceGroupName,
|
|
276
|
-
Parameters.policyName
|
|
277
|
-
Parameters.subscriptionId
|
|
401
|
+
Parameters.policyName
|
|
278
402
|
],
|
|
279
|
-
queryParameters: [
|
|
280
|
-
Parameters.apiVersion2
|
|
281
|
-
],
|
|
282
|
-
headerParameters: [
|
|
283
|
-
Parameters.acceptLanguage
|
|
284
|
-
],
|
|
285
|
-
responses: {
|
|
286
|
-
200: {},
|
|
287
|
-
202: {},
|
|
288
|
-
204: {},
|
|
289
|
-
default: {
|
|
290
|
-
bodyMapper: Mappers.CloudError
|
|
291
|
-
}
|
|
292
|
-
},
|
|
293
403
|
serializer
|
|
294
404
|
};
|
|
295
|
-
|
|
296
|
-
const listNextOperationSpec: msRest.OperationSpec = {
|
|
297
|
-
httpMethod: "GET",
|
|
298
|
-
baseUrl: "https://management.azure.com",
|
|
405
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
299
406
|
path: "{nextLink}",
|
|
300
|
-
|
|
301
|
-
Parameters.nextPageLink
|
|
302
|
-
],
|
|
303
|
-
headerParameters: [
|
|
304
|
-
Parameters.acceptLanguage
|
|
305
|
-
],
|
|
407
|
+
httpMethod: "GET",
|
|
306
408
|
responses: {
|
|
307
409
|
200: {
|
|
308
410
|
bodyMapper: Mappers.WebApplicationFirewallPolicyList
|
|
@@ -311,5 +413,13 @@ const listNextOperationSpec: msRest.OperationSpec = {
|
|
|
311
413
|
bodyMapper: Mappers.ErrorResponse
|
|
312
414
|
}
|
|
313
415
|
},
|
|
416
|
+
queryParameters: [Parameters.apiVersion2],
|
|
417
|
+
urlParameters: [
|
|
418
|
+
Parameters.$host,
|
|
419
|
+
Parameters.subscriptionId,
|
|
420
|
+
Parameters.resourceGroupName,
|
|
421
|
+
Parameters.nextLink
|
|
422
|
+
],
|
|
423
|
+
headerParameters: [Parameters.accept],
|
|
314
424
|
serializer
|
|
315
425
|
};
|