@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,289 +1,420 @@
|
|
|
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 { FrontDoors } 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
|
+
FrontDoor,
|
|
19
|
+
FrontDoorsListNextOptionalParams,
|
|
20
|
+
FrontDoorsListOptionalParams,
|
|
21
|
+
FrontDoorsListByResourceGroupNextOptionalParams,
|
|
22
|
+
FrontDoorsListByResourceGroupOptionalParams,
|
|
23
|
+
FrontDoorsListResponse,
|
|
24
|
+
FrontDoorsListByResourceGroupResponse,
|
|
25
|
+
FrontDoorsGetOptionalParams,
|
|
26
|
+
FrontDoorsGetResponse,
|
|
27
|
+
FrontDoorsCreateOrUpdateOptionalParams,
|
|
28
|
+
FrontDoorsCreateOrUpdateResponse,
|
|
29
|
+
FrontDoorsDeleteOptionalParams,
|
|
30
|
+
ValidateCustomDomainInput,
|
|
31
|
+
FrontDoorsValidateCustomDomainOptionalParams,
|
|
32
|
+
FrontDoorsValidateCustomDomainResponse,
|
|
33
|
+
FrontDoorsListNextResponse,
|
|
34
|
+
FrontDoorsListByResourceGroupNextResponse
|
|
35
|
+
} from "../models";
|
|
17
36
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
37
|
+
/// <reference lib="esnext.asynciterable" />
|
|
38
|
+
/** Class containing FrontDoors operations. */
|
|
39
|
+
export class FrontDoorsImpl implements FrontDoors {
|
|
40
|
+
private readonly client: FrontDoorManagementClient;
|
|
21
41
|
|
|
22
42
|
/**
|
|
23
|
-
*
|
|
24
|
-
* @param
|
|
43
|
+
* Initialize a new instance of the class FrontDoors class.
|
|
44
|
+
* @param client Reference to the service client
|
|
25
45
|
*/
|
|
26
|
-
constructor(client:
|
|
46
|
+
constructor(client: FrontDoorManagementClient) {
|
|
27
47
|
this.client = client;
|
|
28
48
|
}
|
|
29
49
|
|
|
30
50
|
/**
|
|
31
51
|
* Lists all of the Front Doors within an Azure subscription.
|
|
32
|
-
* @param
|
|
33
|
-
* @returns Promise<Models.FrontDoorsListResponse>
|
|
52
|
+
* @param options The options parameters.
|
|
34
53
|
*/
|
|
35
|
-
list(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.FrontDoorListResult>, callback?: msRest.ServiceCallback<Models.FrontDoorListResult>): Promise<Models.FrontDoorsListResponse> {
|
|
46
|
-
return this.client.sendOperationRequest(
|
|
47
|
-
{
|
|
48
|
-
options
|
|
54
|
+
public list(
|
|
55
|
+
options?: FrontDoorsListOptionalParams
|
|
56
|
+
): PagedAsyncIterableIterator<FrontDoor> {
|
|
57
|
+
const iter = this.listPagingAll(options);
|
|
58
|
+
return {
|
|
59
|
+
next() {
|
|
60
|
+
return iter.next();
|
|
61
|
+
},
|
|
62
|
+
[Symbol.asyncIterator]() {
|
|
63
|
+
return this;
|
|
49
64
|
},
|
|
50
|
-
|
|
51
|
-
|
|
65
|
+
byPage: () => {
|
|
66
|
+
return this.listPagingPage(options);
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
private async *listPagingPage(
|
|
72
|
+
options?: FrontDoorsListOptionalParams
|
|
73
|
+
): AsyncIterableIterator<FrontDoor[]> {
|
|
74
|
+
let result = await this._list(options);
|
|
75
|
+
yield result.value || [];
|
|
76
|
+
let continuationToken = result.nextLink;
|
|
77
|
+
while (continuationToken) {
|
|
78
|
+
result = await this._listNext(continuationToken, options);
|
|
79
|
+
continuationToken = result.nextLink;
|
|
80
|
+
yield result.value || [];
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
private async *listPagingAll(
|
|
85
|
+
options?: FrontDoorsListOptionalParams
|
|
86
|
+
): AsyncIterableIterator<FrontDoor> {
|
|
87
|
+
for await (const page of this.listPagingPage(options)) {
|
|
88
|
+
yield* page;
|
|
89
|
+
}
|
|
52
90
|
}
|
|
53
91
|
|
|
54
92
|
/**
|
|
55
93
|
* Lists all of the Front Doors within a resource group under a subscription.
|
|
56
94
|
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
57
|
-
* @param
|
|
58
|
-
* @returns Promise<Models.FrontDoorsListByResourceGroupResponse>
|
|
95
|
+
* @param options The options parameters.
|
|
59
96
|
*/
|
|
60
|
-
listByResourceGroup(
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
97
|
+
public listByResourceGroup(
|
|
98
|
+
resourceGroupName: string,
|
|
99
|
+
options?: FrontDoorsListByResourceGroupOptionalParams
|
|
100
|
+
): PagedAsyncIterableIterator<FrontDoor> {
|
|
101
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
102
|
+
return {
|
|
103
|
+
next() {
|
|
104
|
+
return iter.next();
|
|
105
|
+
},
|
|
106
|
+
[Symbol.asyncIterator]() {
|
|
107
|
+
return this;
|
|
108
|
+
},
|
|
109
|
+
byPage: () => {
|
|
110
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
private async *listByResourceGroupPagingPage(
|
|
116
|
+
resourceGroupName: string,
|
|
117
|
+
options?: FrontDoorsListByResourceGroupOptionalParams
|
|
118
|
+
): AsyncIterableIterator<FrontDoor[]> {
|
|
119
|
+
let result = await this._listByResourceGroup(resourceGroupName, options);
|
|
120
|
+
yield result.value || [];
|
|
121
|
+
let continuationToken = result.nextLink;
|
|
122
|
+
while (continuationToken) {
|
|
123
|
+
result = await this._listByResourceGroupNext(
|
|
75
124
|
resourceGroupName,
|
|
125
|
+
continuationToken,
|
|
76
126
|
options
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
127
|
+
);
|
|
128
|
+
continuationToken = result.nextLink;
|
|
129
|
+
yield result.value || [];
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
private async *listByResourceGroupPagingAll(
|
|
134
|
+
resourceGroupName: string,
|
|
135
|
+
options?: FrontDoorsListByResourceGroupOptionalParams
|
|
136
|
+
): AsyncIterableIterator<FrontDoor> {
|
|
137
|
+
for await (const page of this.listByResourceGroupPagingPage(
|
|
138
|
+
resourceGroupName,
|
|
139
|
+
options
|
|
140
|
+
)) {
|
|
141
|
+
yield* page;
|
|
142
|
+
}
|
|
80
143
|
}
|
|
81
144
|
|
|
82
145
|
/**
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
86
|
-
* @param frontDoorName Name of the Front Door which is globally unique.
|
|
87
|
-
* @param [options] The optional parameters
|
|
88
|
-
* @returns Promise<Models.FrontDoorsGetResponse>
|
|
89
|
-
*/
|
|
90
|
-
get(resourceGroupName: string, frontDoorName: string, options?: msRest.RequestOptionsBase): Promise<Models.FrontDoorsGetResponse>;
|
|
91
|
-
/**
|
|
92
|
-
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
93
|
-
* @param frontDoorName Name of the Front Door which is globally unique.
|
|
94
|
-
* @param callback The callback
|
|
146
|
+
* Lists all of the Front Doors within an Azure subscription.
|
|
147
|
+
* @param options The options parameters.
|
|
95
148
|
*/
|
|
96
|
-
|
|
149
|
+
private _list(
|
|
150
|
+
options?: FrontDoorsListOptionalParams
|
|
151
|
+
): Promise<FrontDoorsListResponse> {
|
|
152
|
+
return this.client.sendOperationRequest({ options }, listOperationSpec);
|
|
153
|
+
}
|
|
154
|
+
|
|
97
155
|
/**
|
|
156
|
+
* Lists all of the Front Doors within a resource group under a subscription.
|
|
98
157
|
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
99
|
-
* @param
|
|
100
|
-
* @param options The optional parameters
|
|
101
|
-
* @param callback The callback
|
|
158
|
+
* @param options The options parameters.
|
|
102
159
|
*/
|
|
103
|
-
|
|
104
|
-
|
|
160
|
+
private _listByResourceGroup(
|
|
161
|
+
resourceGroupName: string,
|
|
162
|
+
options?: FrontDoorsListByResourceGroupOptionalParams
|
|
163
|
+
): Promise<FrontDoorsListByResourceGroupResponse> {
|
|
105
164
|
return this.client.sendOperationRequest(
|
|
106
|
-
{
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
options
|
|
110
|
-
},
|
|
111
|
-
getOperationSpec,
|
|
112
|
-
callback) as Promise<Models.FrontDoorsGetResponse>;
|
|
165
|
+
{ resourceGroupName, options },
|
|
166
|
+
listByResourceGroupOperationSpec
|
|
167
|
+
);
|
|
113
168
|
}
|
|
114
169
|
|
|
115
170
|
/**
|
|
116
|
-
*
|
|
171
|
+
* Gets a Front Door with the specified Front Door name under the specified subscription and resource
|
|
117
172
|
* group.
|
|
118
173
|
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
119
174
|
* @param frontDoorName Name of the Front Door which is globally unique.
|
|
120
|
-
* @param
|
|
121
|
-
* @param [options] The optional parameters
|
|
122
|
-
* @returns Promise<Models.FrontDoorsCreateOrUpdateResponse>
|
|
175
|
+
* @param options The options parameters.
|
|
123
176
|
*/
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
177
|
+
get(
|
|
178
|
+
resourceGroupName: string,
|
|
179
|
+
frontDoorName: string,
|
|
180
|
+
options?: FrontDoorsGetOptionalParams
|
|
181
|
+
): Promise<FrontDoorsGetResponse> {
|
|
182
|
+
return this.client.sendOperationRequest(
|
|
183
|
+
{ resourceGroupName, frontDoorName, options },
|
|
184
|
+
getOperationSpec
|
|
185
|
+
);
|
|
127
186
|
}
|
|
128
187
|
|
|
129
188
|
/**
|
|
130
|
-
*
|
|
189
|
+
* Creates a new Front Door with a Front Door name under the specified subscription and resource group.
|
|
131
190
|
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
132
191
|
* @param frontDoorName Name of the Front Door which is globally unique.
|
|
133
|
-
* @param
|
|
134
|
-
* @
|
|
192
|
+
* @param frontDoorParameters Front Door properties needed to create a new Front Door.
|
|
193
|
+
* @param options The options parameters.
|
|
135
194
|
*/
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
195
|
+
async beginCreateOrUpdate(
|
|
196
|
+
resourceGroupName: string,
|
|
197
|
+
frontDoorName: string,
|
|
198
|
+
frontDoorParameters: FrontDoor,
|
|
199
|
+
options?: FrontDoorsCreateOrUpdateOptionalParams
|
|
200
|
+
): Promise<
|
|
201
|
+
PollerLike<
|
|
202
|
+
PollOperationState<FrontDoorsCreateOrUpdateResponse>,
|
|
203
|
+
FrontDoorsCreateOrUpdateResponse
|
|
204
|
+
>
|
|
205
|
+
> {
|
|
206
|
+
const directSendOperation = async (
|
|
207
|
+
args: coreClient.OperationArguments,
|
|
208
|
+
spec: coreClient.OperationSpec
|
|
209
|
+
): Promise<FrontDoorsCreateOrUpdateResponse> => {
|
|
210
|
+
return this.client.sendOperationRequest(args, spec);
|
|
211
|
+
};
|
|
212
|
+
const sendOperation = async (
|
|
213
|
+
args: coreClient.OperationArguments,
|
|
214
|
+
spec: coreClient.OperationSpec
|
|
215
|
+
) => {
|
|
216
|
+
let currentRawResponse:
|
|
217
|
+
| coreClient.FullOperationResponse
|
|
218
|
+
| undefined = undefined;
|
|
219
|
+
const providedCallback = args.options?.onResponse;
|
|
220
|
+
const callback: coreClient.RawResponseCallback = (
|
|
221
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
222
|
+
flatResponse: unknown
|
|
223
|
+
) => {
|
|
224
|
+
currentRawResponse = rawResponse;
|
|
225
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
226
|
+
};
|
|
227
|
+
const updatedArgs = {
|
|
228
|
+
...args,
|
|
229
|
+
options: {
|
|
230
|
+
...args.options,
|
|
231
|
+
onResponse: callback
|
|
232
|
+
}
|
|
233
|
+
};
|
|
234
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
235
|
+
return {
|
|
236
|
+
flatResponse,
|
|
237
|
+
rawResponse: {
|
|
238
|
+
statusCode: currentRawResponse!.status,
|
|
239
|
+
body: currentRawResponse!.parsedBody,
|
|
240
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
241
|
+
}
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
const lro = new LroImpl(
|
|
246
|
+
sendOperation,
|
|
247
|
+
{ resourceGroupName, frontDoorName, frontDoorParameters, options },
|
|
248
|
+
createOrUpdateOperationSpec
|
|
249
|
+
);
|
|
250
|
+
return new LroEngine(lro, {
|
|
251
|
+
resumeFrom: options?.resumeFrom,
|
|
252
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
253
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
254
|
+
});
|
|
139
255
|
}
|
|
140
256
|
|
|
141
257
|
/**
|
|
142
|
-
*
|
|
258
|
+
* Creates a new Front Door with a Front Door name under the specified subscription and resource group.
|
|
143
259
|
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
144
260
|
* @param frontDoorName Name of the Front Door which is globally unique.
|
|
145
|
-
* @param
|
|
146
|
-
* @param
|
|
147
|
-
* @returns Promise<Models.FrontDoorsValidateCustomDomainResponse>
|
|
148
|
-
*/
|
|
149
|
-
validateCustomDomain(resourceGroupName: string, frontDoorName: string, customDomainProperties: Models.ValidateCustomDomainInput, options?: msRest.RequestOptionsBase): Promise<Models.FrontDoorsValidateCustomDomainResponse>;
|
|
150
|
-
/**
|
|
151
|
-
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
152
|
-
* @param frontDoorName Name of the Front Door which is globally unique.
|
|
153
|
-
* @param customDomainProperties Custom domain to be validated.
|
|
154
|
-
* @param callback The callback
|
|
261
|
+
* @param frontDoorParameters Front Door properties needed to create a new Front Door.
|
|
262
|
+
* @param options The options parameters.
|
|
155
263
|
*/
|
|
156
|
-
|
|
264
|
+
async beginCreateOrUpdateAndWait(
|
|
265
|
+
resourceGroupName: string,
|
|
266
|
+
frontDoorName: string,
|
|
267
|
+
frontDoorParameters: FrontDoor,
|
|
268
|
+
options?: FrontDoorsCreateOrUpdateOptionalParams
|
|
269
|
+
): Promise<FrontDoorsCreateOrUpdateResponse> {
|
|
270
|
+
const poller = await this.beginCreateOrUpdate(
|
|
271
|
+
resourceGroupName,
|
|
272
|
+
frontDoorName,
|
|
273
|
+
frontDoorParameters,
|
|
274
|
+
options
|
|
275
|
+
);
|
|
276
|
+
return poller.pollUntilDone();
|
|
277
|
+
}
|
|
278
|
+
|
|
157
279
|
/**
|
|
280
|
+
* Deletes an existing Front Door with the specified parameters.
|
|
158
281
|
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
159
282
|
* @param frontDoorName Name of the Front Door which is globally unique.
|
|
160
|
-
* @param
|
|
161
|
-
* @param options The optional parameters
|
|
162
|
-
* @param callback The callback
|
|
283
|
+
* @param options The options parameters.
|
|
163
284
|
*/
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
285
|
+
async beginDelete(
|
|
286
|
+
resourceGroupName: string,
|
|
287
|
+
frontDoorName: string,
|
|
288
|
+
options?: FrontDoorsDeleteOptionalParams
|
|
289
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
290
|
+
const directSendOperation = async (
|
|
291
|
+
args: coreClient.OperationArguments,
|
|
292
|
+
spec: coreClient.OperationSpec
|
|
293
|
+
): Promise<void> => {
|
|
294
|
+
return this.client.sendOperationRequest(args, spec);
|
|
295
|
+
};
|
|
296
|
+
const sendOperation = async (
|
|
297
|
+
args: coreClient.OperationArguments,
|
|
298
|
+
spec: coreClient.OperationSpec
|
|
299
|
+
) => {
|
|
300
|
+
let currentRawResponse:
|
|
301
|
+
| coreClient.FullOperationResponse
|
|
302
|
+
| undefined = undefined;
|
|
303
|
+
const providedCallback = args.options?.onResponse;
|
|
304
|
+
const callback: coreClient.RawResponseCallback = (
|
|
305
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
306
|
+
flatResponse: unknown
|
|
307
|
+
) => {
|
|
308
|
+
currentRawResponse = rawResponse;
|
|
309
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
310
|
+
};
|
|
311
|
+
const updatedArgs = {
|
|
312
|
+
...args,
|
|
313
|
+
options: {
|
|
314
|
+
...args.options,
|
|
315
|
+
onResponse: callback
|
|
316
|
+
}
|
|
317
|
+
};
|
|
318
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
319
|
+
return {
|
|
320
|
+
flatResponse,
|
|
321
|
+
rawResponse: {
|
|
322
|
+
statusCode: currentRawResponse!.status,
|
|
323
|
+
body: currentRawResponse!.parsedBody,
|
|
324
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
325
|
+
}
|
|
326
|
+
};
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
const lro = new LroImpl(
|
|
330
|
+
sendOperation,
|
|
331
|
+
{ resourceGroupName, frontDoorName, options },
|
|
332
|
+
deleteOperationSpec
|
|
333
|
+
);
|
|
334
|
+
return new LroEngine(lro, {
|
|
335
|
+
resumeFrom: options?.resumeFrom,
|
|
336
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
337
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
338
|
+
});
|
|
175
339
|
}
|
|
176
340
|
|
|
177
341
|
/**
|
|
178
|
-
*
|
|
179
|
-
* group.
|
|
342
|
+
* Deletes an existing Front Door with the specified parameters.
|
|
180
343
|
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
181
344
|
* @param frontDoorName Name of the Front Door which is globally unique.
|
|
182
|
-
* @param
|
|
183
|
-
* @param [options] The optional parameters
|
|
184
|
-
* @returns Promise<msRestAzure.LROPoller>
|
|
345
|
+
* @param options The options parameters.
|
|
185
346
|
*/
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
347
|
+
async beginDeleteAndWait(
|
|
348
|
+
resourceGroupName: string,
|
|
349
|
+
frontDoorName: string,
|
|
350
|
+
options?: FrontDoorsDeleteOptionalParams
|
|
351
|
+
): Promise<void> {
|
|
352
|
+
const poller = await this.beginDelete(
|
|
353
|
+
resourceGroupName,
|
|
354
|
+
frontDoorName,
|
|
355
|
+
options
|
|
356
|
+
);
|
|
357
|
+
return poller.pollUntilDone();
|
|
196
358
|
}
|
|
197
359
|
|
|
198
360
|
/**
|
|
199
|
-
*
|
|
361
|
+
* Validates the custom domain mapping to ensure it maps to the correct Front Door endpoint in DNS.
|
|
200
362
|
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
201
363
|
* @param frontDoorName Name of the Front Door which is globally unique.
|
|
202
|
-
* @param
|
|
203
|
-
* @
|
|
364
|
+
* @param customDomainProperties Custom domain to be validated.
|
|
365
|
+
* @param options The options parameters.
|
|
204
366
|
*/
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
367
|
+
validateCustomDomain(
|
|
368
|
+
resourceGroupName: string,
|
|
369
|
+
frontDoorName: string,
|
|
370
|
+
customDomainProperties: ValidateCustomDomainInput,
|
|
371
|
+
options?: FrontDoorsValidateCustomDomainOptionalParams
|
|
372
|
+
): Promise<FrontDoorsValidateCustomDomainResponse> {
|
|
373
|
+
return this.client.sendOperationRequest(
|
|
374
|
+
{ resourceGroupName, frontDoorName, customDomainProperties, options },
|
|
375
|
+
validateCustomDomainOperationSpec
|
|
376
|
+
);
|
|
214
377
|
}
|
|
215
378
|
|
|
216
379
|
/**
|
|
217
|
-
*
|
|
218
|
-
* @param
|
|
219
|
-
* @param
|
|
220
|
-
* @returns Promise<Models.FrontDoorsListNextResponse>
|
|
221
|
-
*/
|
|
222
|
-
listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.FrontDoorsListNextResponse>;
|
|
223
|
-
/**
|
|
224
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
225
|
-
* @param callback The callback
|
|
226
|
-
*/
|
|
227
|
-
listNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.FrontDoorListResult>): void;
|
|
228
|
-
/**
|
|
229
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
230
|
-
* @param options The optional parameters
|
|
231
|
-
* @param callback The callback
|
|
380
|
+
* ListNext
|
|
381
|
+
* @param nextLink The nextLink from the previous successful call to the List method.
|
|
382
|
+
* @param options The options parameters.
|
|
232
383
|
*/
|
|
233
|
-
|
|
234
|
-
|
|
384
|
+
private _listNext(
|
|
385
|
+
nextLink: string,
|
|
386
|
+
options?: FrontDoorsListNextOptionalParams
|
|
387
|
+
): Promise<FrontDoorsListNextResponse> {
|
|
235
388
|
return this.client.sendOperationRequest(
|
|
236
|
-
{
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
},
|
|
240
|
-
listNextOperationSpec,
|
|
241
|
-
callback) as Promise<Models.FrontDoorsListNextResponse>;
|
|
389
|
+
{ nextLink, options },
|
|
390
|
+
listNextOperationSpec
|
|
391
|
+
);
|
|
242
392
|
}
|
|
243
393
|
|
|
244
394
|
/**
|
|
245
|
-
*
|
|
246
|
-
* @param
|
|
247
|
-
* @param
|
|
248
|
-
* @
|
|
249
|
-
*/
|
|
250
|
-
listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise<Models.FrontDoorsListByResourceGroupNextResponse>;
|
|
251
|
-
/**
|
|
252
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
253
|
-
* @param callback The callback
|
|
254
|
-
*/
|
|
255
|
-
listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback<Models.FrontDoorListResult>): void;
|
|
256
|
-
/**
|
|
257
|
-
* @param nextPageLink The NextLink from the previous successful call to List operation.
|
|
258
|
-
* @param options The optional parameters
|
|
259
|
-
* @param callback The callback
|
|
395
|
+
* ListByResourceGroupNext
|
|
396
|
+
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
397
|
+
* @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.
|
|
398
|
+
* @param options The options parameters.
|
|
260
399
|
*/
|
|
261
|
-
|
|
262
|
-
|
|
400
|
+
private _listByResourceGroupNext(
|
|
401
|
+
resourceGroupName: string,
|
|
402
|
+
nextLink: string,
|
|
403
|
+
options?: FrontDoorsListByResourceGroupNextOptionalParams
|
|
404
|
+
): Promise<FrontDoorsListByResourceGroupNextResponse> {
|
|
263
405
|
return this.client.sendOperationRequest(
|
|
264
|
-
{
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
},
|
|
268
|
-
listByResourceGroupNextOperationSpec,
|
|
269
|
-
callback) as Promise<Models.FrontDoorsListByResourceGroupNextResponse>;
|
|
406
|
+
{ resourceGroupName, nextLink, options },
|
|
407
|
+
listByResourceGroupNextOperationSpec
|
|
408
|
+
);
|
|
270
409
|
}
|
|
271
410
|
}
|
|
272
|
-
|
|
273
411
|
// Operation Specifications
|
|
274
|
-
const serializer =
|
|
275
|
-
|
|
412
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
413
|
+
|
|
414
|
+
const listOperationSpec: coreClient.OperationSpec = {
|
|
415
|
+
path:
|
|
416
|
+
"/subscriptions/{subscriptionId}/providers/Microsoft.Network/frontDoors",
|
|
276
417
|
httpMethod: "GET",
|
|
277
|
-
path: "subscriptions/{subscriptionId}/providers/Microsoft.Network/frontDoors",
|
|
278
|
-
urlParameters: [
|
|
279
|
-
Parameters.subscriptionId
|
|
280
|
-
],
|
|
281
|
-
queryParameters: [
|
|
282
|
-
Parameters.apiVersion1
|
|
283
|
-
],
|
|
284
|
-
headerParameters: [
|
|
285
|
-
Parameters.acceptLanguage
|
|
286
|
-
],
|
|
287
418
|
responses: {
|
|
288
419
|
200: {
|
|
289
420
|
bodyMapper: Mappers.FrontDoorListResult
|
|
@@ -292,22 +423,15 @@ const listOperationSpec: msRest.OperationSpec = {
|
|
|
292
423
|
bodyMapper: Mappers.ErrorResponse
|
|
293
424
|
}
|
|
294
425
|
},
|
|
426
|
+
queryParameters: [Parameters.apiVersion1],
|
|
427
|
+
urlParameters: [Parameters.$host, Parameters.subscriptionId],
|
|
428
|
+
headerParameters: [Parameters.accept],
|
|
295
429
|
serializer
|
|
296
430
|
};
|
|
297
|
-
|
|
298
|
-
|
|
431
|
+
const listByResourceGroupOperationSpec: coreClient.OperationSpec = {
|
|
432
|
+
path:
|
|
433
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors",
|
|
299
434
|
httpMethod: "GET",
|
|
300
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors",
|
|
301
|
-
urlParameters: [
|
|
302
|
-
Parameters.subscriptionId,
|
|
303
|
-
Parameters.resourceGroupName
|
|
304
|
-
],
|
|
305
|
-
queryParameters: [
|
|
306
|
-
Parameters.apiVersion1
|
|
307
|
-
],
|
|
308
|
-
headerParameters: [
|
|
309
|
-
Parameters.acceptLanguage
|
|
310
|
-
],
|
|
311
435
|
responses: {
|
|
312
436
|
200: {
|
|
313
437
|
bodyMapper: Mappers.FrontDoorListResult
|
|
@@ -316,23 +440,19 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = {
|
|
|
316
440
|
bodyMapper: Mappers.ErrorResponse
|
|
317
441
|
}
|
|
318
442
|
},
|
|
319
|
-
|
|
320
|
-
};
|
|
321
|
-
|
|
322
|
-
const getOperationSpec: msRest.OperationSpec = {
|
|
323
|
-
httpMethod: "GET",
|
|
324
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}",
|
|
443
|
+
queryParameters: [Parameters.apiVersion1],
|
|
325
444
|
urlParameters: [
|
|
445
|
+
Parameters.$host,
|
|
326
446
|
Parameters.subscriptionId,
|
|
327
|
-
Parameters.resourceGroupName
|
|
328
|
-
Parameters.frontDoorName
|
|
329
|
-
],
|
|
330
|
-
queryParameters: [
|
|
331
|
-
Parameters.apiVersion1
|
|
332
|
-
],
|
|
333
|
-
headerParameters: [
|
|
334
|
-
Parameters.acceptLanguage
|
|
447
|
+
Parameters.resourceGroupName
|
|
335
448
|
],
|
|
449
|
+
headerParameters: [Parameters.accept],
|
|
450
|
+
serializer
|
|
451
|
+
};
|
|
452
|
+
const getOperationSpec: coreClient.OperationSpec = {
|
|
453
|
+
path:
|
|
454
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}",
|
|
455
|
+
httpMethod: "GET",
|
|
336
456
|
responses: {
|
|
337
457
|
200: {
|
|
338
458
|
bodyMapper: Mappers.FrontDoor
|
|
@@ -341,62 +461,20 @@ const getOperationSpec: msRest.OperationSpec = {
|
|
|
341
461
|
bodyMapper: Mappers.ErrorResponse
|
|
342
462
|
}
|
|
343
463
|
},
|
|
344
|
-
|
|
345
|
-
};
|
|
346
|
-
|
|
347
|
-
const validateCustomDomainOperationSpec: msRest.OperationSpec = {
|
|
348
|
-
httpMethod: "POST",
|
|
349
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/validateCustomDomain",
|
|
464
|
+
queryParameters: [Parameters.apiVersion1],
|
|
350
465
|
urlParameters: [
|
|
466
|
+
Parameters.$host,
|
|
351
467
|
Parameters.subscriptionId,
|
|
352
468
|
Parameters.resourceGroupName,
|
|
353
469
|
Parameters.frontDoorName
|
|
354
470
|
],
|
|
355
|
-
|
|
356
|
-
Parameters.apiVersion1
|
|
357
|
-
],
|
|
358
|
-
headerParameters: [
|
|
359
|
-
Parameters.acceptLanguage
|
|
360
|
-
],
|
|
361
|
-
requestBody: {
|
|
362
|
-
parameterPath: "customDomainProperties",
|
|
363
|
-
mapper: {
|
|
364
|
-
...Mappers.ValidateCustomDomainInput,
|
|
365
|
-
required: true
|
|
366
|
-
}
|
|
367
|
-
},
|
|
368
|
-
responses: {
|
|
369
|
-
200: {
|
|
370
|
-
bodyMapper: Mappers.ValidateCustomDomainOutput
|
|
371
|
-
},
|
|
372
|
-
default: {
|
|
373
|
-
bodyMapper: Mappers.ErrorResponse
|
|
374
|
-
}
|
|
375
|
-
},
|
|
471
|
+
headerParameters: [Parameters.accept],
|
|
376
472
|
serializer
|
|
377
473
|
};
|
|
378
|
-
|
|
379
|
-
|
|
474
|
+
const createOrUpdateOperationSpec: coreClient.OperationSpec = {
|
|
475
|
+
path:
|
|
476
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}",
|
|
380
477
|
httpMethod: "PUT",
|
|
381
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}",
|
|
382
|
-
urlParameters: [
|
|
383
|
-
Parameters.subscriptionId,
|
|
384
|
-
Parameters.resourceGroupName,
|
|
385
|
-
Parameters.frontDoorName
|
|
386
|
-
],
|
|
387
|
-
queryParameters: [
|
|
388
|
-
Parameters.apiVersion1
|
|
389
|
-
],
|
|
390
|
-
headerParameters: [
|
|
391
|
-
Parameters.acceptLanguage
|
|
392
|
-
],
|
|
393
|
-
requestBody: {
|
|
394
|
-
parameterPath: "frontDoorParameters",
|
|
395
|
-
mapper: {
|
|
396
|
-
...Mappers.FrontDoor,
|
|
397
|
-
required: true
|
|
398
|
-
}
|
|
399
|
-
},
|
|
400
478
|
responses: {
|
|
401
479
|
200: {
|
|
402
480
|
bodyMapper: Mappers.FrontDoor
|
|
@@ -407,47 +485,75 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = {
|
|
|
407
485
|
202: {
|
|
408
486
|
bodyMapper: Mappers.FrontDoor
|
|
409
487
|
},
|
|
488
|
+
204: {
|
|
489
|
+
bodyMapper: Mappers.FrontDoor
|
|
490
|
+
},
|
|
410
491
|
default: {
|
|
411
492
|
bodyMapper: Mappers.ErrorResponse
|
|
412
493
|
}
|
|
413
494
|
},
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
const beginDeleteMethodOperationSpec: msRest.OperationSpec = {
|
|
418
|
-
httpMethod: "DELETE",
|
|
419
|
-
path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}",
|
|
495
|
+
requestBody: Parameters.frontDoorParameters,
|
|
496
|
+
queryParameters: [Parameters.apiVersion1],
|
|
420
497
|
urlParameters: [
|
|
498
|
+
Parameters.$host,
|
|
421
499
|
Parameters.subscriptionId,
|
|
422
500
|
Parameters.resourceGroupName,
|
|
423
501
|
Parameters.frontDoorName
|
|
424
502
|
],
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
503
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
504
|
+
mediaType: "json",
|
|
505
|
+
serializer
|
|
506
|
+
};
|
|
507
|
+
const deleteOperationSpec: coreClient.OperationSpec = {
|
|
508
|
+
path:
|
|
509
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}",
|
|
510
|
+
httpMethod: "DELETE",
|
|
431
511
|
responses: {
|
|
512
|
+
200: {},
|
|
513
|
+
201: {},
|
|
432
514
|
202: {},
|
|
433
515
|
204: {},
|
|
434
516
|
default: {
|
|
435
517
|
bodyMapper: Mappers.ErrorResponse
|
|
436
518
|
}
|
|
437
519
|
},
|
|
520
|
+
queryParameters: [Parameters.apiVersion1],
|
|
521
|
+
urlParameters: [
|
|
522
|
+
Parameters.$host,
|
|
523
|
+
Parameters.subscriptionId,
|
|
524
|
+
Parameters.resourceGroupName,
|
|
525
|
+
Parameters.frontDoorName
|
|
526
|
+
],
|
|
527
|
+
headerParameters: [Parameters.accept],
|
|
438
528
|
serializer
|
|
439
529
|
};
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
530
|
+
const validateCustomDomainOperationSpec: coreClient.OperationSpec = {
|
|
531
|
+
path:
|
|
532
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/validateCustomDomain",
|
|
533
|
+
httpMethod: "POST",
|
|
534
|
+
responses: {
|
|
535
|
+
200: {
|
|
536
|
+
bodyMapper: Mappers.ValidateCustomDomainOutput
|
|
537
|
+
},
|
|
538
|
+
default: {
|
|
539
|
+
bodyMapper: Mappers.ErrorResponse
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
requestBody: Parameters.customDomainProperties,
|
|
543
|
+
queryParameters: [Parameters.apiVersion1],
|
|
445
544
|
urlParameters: [
|
|
446
|
-
Parameters
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
Parameters.
|
|
545
|
+
Parameters.$host,
|
|
546
|
+
Parameters.subscriptionId,
|
|
547
|
+
Parameters.resourceGroupName,
|
|
548
|
+
Parameters.frontDoorName
|
|
450
549
|
],
|
|
550
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
551
|
+
mediaType: "json",
|
|
552
|
+
serializer
|
|
553
|
+
};
|
|
554
|
+
const listNextOperationSpec: coreClient.OperationSpec = {
|
|
555
|
+
path: "{nextLink}",
|
|
556
|
+
httpMethod: "GET",
|
|
451
557
|
responses: {
|
|
452
558
|
200: {
|
|
453
559
|
bodyMapper: Mappers.FrontDoorListResult
|
|
@@ -456,19 +562,18 @@ const listNextOperationSpec: msRest.OperationSpec = {
|
|
|
456
562
|
bodyMapper: Mappers.ErrorResponse
|
|
457
563
|
}
|
|
458
564
|
},
|
|
565
|
+
queryParameters: [Parameters.apiVersion1],
|
|
566
|
+
urlParameters: [
|
|
567
|
+
Parameters.$host,
|
|
568
|
+
Parameters.subscriptionId,
|
|
569
|
+
Parameters.nextLink
|
|
570
|
+
],
|
|
571
|
+
headerParameters: [Parameters.accept],
|
|
459
572
|
serializer
|
|
460
573
|
};
|
|
461
|
-
|
|
462
|
-
const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
463
|
-
httpMethod: "GET",
|
|
464
|
-
baseUrl: "https://management.azure.com",
|
|
574
|
+
const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {
|
|
465
575
|
path: "{nextLink}",
|
|
466
|
-
|
|
467
|
-
Parameters.nextPageLink
|
|
468
|
-
],
|
|
469
|
-
headerParameters: [
|
|
470
|
-
Parameters.acceptLanguage
|
|
471
|
-
],
|
|
576
|
+
httpMethod: "GET",
|
|
472
577
|
responses: {
|
|
473
578
|
200: {
|
|
474
579
|
bodyMapper: Mappers.FrontDoorListResult
|
|
@@ -477,5 +582,13 @@ const listByResourceGroupNextOperationSpec: msRest.OperationSpec = {
|
|
|
477
582
|
bodyMapper: Mappers.ErrorResponse
|
|
478
583
|
}
|
|
479
584
|
},
|
|
585
|
+
queryParameters: [Parameters.apiVersion1],
|
|
586
|
+
urlParameters: [
|
|
587
|
+
Parameters.$host,
|
|
588
|
+
Parameters.subscriptionId,
|
|
589
|
+
Parameters.resourceGroupName,
|
|
590
|
+
Parameters.nextLink
|
|
591
|
+
],
|
|
592
|
+
headerParameters: [Parameters.accept],
|
|
480
593
|
serializer
|
|
481
594
|
};
|