@azure/arm-frontdoor 3.1.0 → 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/LICENSE.txt +1 -1
- package/README.md +75 -73
- 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/dist-esm/src/models/mappers.js +3048 -0
- 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/dist-esm/src/operations/index.d.ts +13 -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 +70 -34
- package/review/arm-frontdoor.api.md +1910 -0
- package/rollup.config.js +184 -27
- package/src/frontDoorManagementClient.ts +124 -0
- package/src/index.ts +12 -0
- package/src/lroImpl.ts +34 -0
- package/src/models/index.ts +2676 -0
- package/src/models/mappers.ts +3311 -0
- package/src/models/parameters.ts +367 -0
- package/src/operations/endpoints.ts +150 -0
- package/src/operations/experiments.ts +608 -0
- package/src/operations/frontDoorNameAvailability.ts +68 -0
- package/src/operations/frontDoorNameAvailabilityWithSubscription.ts +69 -0
- package/src/operations/frontDoors.ts +594 -0
- package/src/operations/frontendEndpoints.ts +471 -0
- package/src/operations/index.ts +20 -0
- package/src/operations/managedRuleSets.ts +142 -0
- package/src/operations/networkExperimentProfiles.ts +672 -0
- package/src/operations/policies.ts +425 -0
- package/src/operations/preconfiguredEndpoints.ts +177 -0
- package/src/operations/reports.ts +160 -0
- package/src/operations/rulesEngines.ts +486 -0
- 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/src/operationsInterfaces/index.ts +20 -0
- 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 +4 -4
- package/types/arm-frontdoor.d.ts +3127 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-frontdoor.js +0 -4289
- 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 -62
- package/esm/frontDoorManagementClient.d.ts.map +0 -1
- package/esm/frontDoorManagementClient.js +0 -105
- package/esm/frontDoorManagementClient.js.map +0 -1
- package/esm/frontDoorManagementClientContext.d.ts +0 -16
- package/esm/frontDoorManagementClientContext.d.ts.map +0 -1
- package/esm/frontDoorManagementClientContext.js +0 -56
- package/esm/frontDoorManagementClientContext.js.map +0 -1
- package/esm/models/backendPoolsMappers.d.ts +0 -2
- package/esm/models/backendPoolsMappers.d.ts.map +0 -1
- package/esm/models/backendPoolsMappers.js +0 -11
- package/esm/models/backendPoolsMappers.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 -11
- package/esm/models/endpointsMappers.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 -11
- 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 -11
- package/esm/models/frontendEndpointsMappers.js.map +0 -1
- package/esm/models/healthProbeSettingsMappers.d.ts +0 -2
- package/esm/models/healthProbeSettingsMappers.d.ts.map +0 -1
- package/esm/models/healthProbeSettingsMappers.js +0 -11
- package/esm/models/healthProbeSettingsMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -2143
- package/esm/models/index.d.ts.map +0 -1
- package/esm/models/index.js +0 -10
- package/esm/models/index.js.map +0 -1
- package/esm/models/loadBalancingSettingsMappers.d.ts +0 -2
- package/esm/models/loadBalancingSettingsMappers.d.ts.map +0 -1
- package/esm/models/loadBalancingSettingsMappers.js +0 -11
- package/esm/models/loadBalancingSettingsMappers.js.map +0 -1
- package/esm/models/mappers.d.ts +0 -53
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js +0 -1653
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -15
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js +0 -181
- 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 -11
- package/esm/models/policiesMappers.js.map +0 -1
- package/esm/models/routingRulesMappers.d.ts +0 -2
- package/esm/models/routingRulesMappers.d.ts.map +0 -1
- package/esm/models/routingRulesMappers.js +0 -11
- package/esm/models/routingRulesMappers.js.map +0 -1
- package/esm/operations/backendPools.d.ts +0 -115
- package/esm/operations/backendPools.d.ts.map +0 -1
- package/esm/operations/backendPools.js +0 -236
- package/esm/operations/backendPools.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/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 -153
- package/esm/operations/frontendEndpoints.d.ts.map +0 -1
- package/esm/operations/frontendEndpoints.js +0 -347
- package/esm/operations/frontendEndpoints.js.map +0 -1
- package/esm/operations/healthProbeSettings.d.ts +0 -124
- package/esm/operations/healthProbeSettings.d.ts.map +0 -1
- package/esm/operations/healthProbeSettings.js +0 -242
- package/esm/operations/healthProbeSettings.js.map +0 -1
- package/esm/operations/index.d.ts +0 -9
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js +0 -18
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/loadBalancingSettings.d.ts +0 -126
- package/esm/operations/loadBalancingSettings.d.ts.map +0 -1
- package/esm/operations/loadBalancingSettings.js +0 -244
- package/esm/operations/loadBalancingSettings.js.map +0 -1
- package/esm/operations/policies.d.ts +0 -111
- package/esm/operations/policies.d.ts.map +0 -1
- package/esm/operations/policies.js +0 -202
- package/esm/operations/policies.js.map +0 -1
- package/esm/operations/routingRules.d.ts +0 -115
- package/esm/operations/routingRules.d.ts.map +0 -1
- package/esm/operations/routingRules.js +0 -236
- package/esm/operations/routingRules.js.map +0 -1
- package/lib/frontDoorManagementClient.ts +0 -171
- package/lib/frontDoorManagementClientContext.ts +0 -61
- package/lib/models/backendPoolsMappers.ts +0 -39
- package/lib/models/endpointsMappers.ts +0 -16
- package/lib/models/frontDoorsMappers.ts +0 -41
- package/lib/models/frontendEndpointsMappers.ts +0 -39
- package/lib/models/healthProbeSettingsMappers.ts +0 -39
- package/lib/models/index.ts +0 -2261
- package/lib/models/loadBalancingSettingsMappers.ts +0 -39
- package/lib/models/mappers.ts +0 -1772
- package/lib/models/parameters.ts +0 -183
- package/lib/models/policiesMappers.ts +0 -40
- package/lib/models/routingRulesMappers.ts +0 -39
- package/lib/operations/backendPools.ts +0 -332
- package/lib/operations/endpoints.ts +0 -99
- package/lib/operations/frontDoors.ts +0 -481
- package/lib/operations/frontendEndpoints.ts +0 -458
- package/lib/operations/healthProbeSettings.ts +0 -341
- package/lib/operations/index.ts +0 -18
- package/lib/operations/loadBalancingSettings.ts +0 -343
- package/lib/operations/policies.ts +0 -315
- package/lib/operations/routingRules.ts +0 -332
|
@@ -0,0 +1,367 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import {
|
|
10
|
+
OperationParameter,
|
|
11
|
+
OperationURLParameter,
|
|
12
|
+
OperationQueryParameter
|
|
13
|
+
} from "@azure/core-client";
|
|
14
|
+
import {
|
|
15
|
+
Profile as ProfileMapper,
|
|
16
|
+
ProfileUpdateModel as ProfileUpdateModelMapper,
|
|
17
|
+
Experiment as ExperimentMapper,
|
|
18
|
+
ExperimentUpdateModel as ExperimentUpdateModelMapper,
|
|
19
|
+
CheckNameAvailabilityInput as CheckNameAvailabilityInputMapper,
|
|
20
|
+
FrontDoor as FrontDoorMapper,
|
|
21
|
+
ValidateCustomDomainInput as ValidateCustomDomainInputMapper,
|
|
22
|
+
CustomHttpsConfiguration as CustomHttpsConfigurationMapper,
|
|
23
|
+
PurgeParameters as PurgeParametersMapper,
|
|
24
|
+
RulesEngine as RulesEngineMapper,
|
|
25
|
+
WebApplicationFirewallPolicy as WebApplicationFirewallPolicyMapper
|
|
26
|
+
} from "../models/mappers";
|
|
27
|
+
|
|
28
|
+
export const accept: OperationParameter = {
|
|
29
|
+
parameterPath: "accept",
|
|
30
|
+
mapper: {
|
|
31
|
+
defaultValue: "application/json",
|
|
32
|
+
isConstant: true,
|
|
33
|
+
serializedName: "Accept",
|
|
34
|
+
type: {
|
|
35
|
+
name: "String"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export const $host: OperationURLParameter = {
|
|
41
|
+
parameterPath: "$host",
|
|
42
|
+
mapper: {
|
|
43
|
+
serializedName: "$host",
|
|
44
|
+
required: true,
|
|
45
|
+
type: {
|
|
46
|
+
name: "String"
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
skipEncoding: true
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export const subscriptionId: OperationURLParameter = {
|
|
53
|
+
parameterPath: "subscriptionId",
|
|
54
|
+
mapper: {
|
|
55
|
+
serializedName: "subscriptionId",
|
|
56
|
+
required: true,
|
|
57
|
+
type: {
|
|
58
|
+
name: "String"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
export const apiVersion: OperationQueryParameter = {
|
|
64
|
+
parameterPath: "apiVersion",
|
|
65
|
+
mapper: {
|
|
66
|
+
defaultValue: "2019-11-01",
|
|
67
|
+
isConstant: true,
|
|
68
|
+
serializedName: "api-version",
|
|
69
|
+
type: {
|
|
70
|
+
name: "String"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
export const resourceGroupName: OperationURLParameter = {
|
|
76
|
+
parameterPath: "resourceGroupName",
|
|
77
|
+
mapper: {
|
|
78
|
+
constraints: {
|
|
79
|
+
Pattern: new RegExp("^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$"),
|
|
80
|
+
MaxLength: 80,
|
|
81
|
+
MinLength: 1
|
|
82
|
+
},
|
|
83
|
+
serializedName: "resourceGroupName",
|
|
84
|
+
required: true,
|
|
85
|
+
type: {
|
|
86
|
+
name: "String"
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
export const profileName: OperationURLParameter = {
|
|
92
|
+
parameterPath: "profileName",
|
|
93
|
+
mapper: {
|
|
94
|
+
constraints: {
|
|
95
|
+
Pattern: new RegExp("^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")
|
|
96
|
+
},
|
|
97
|
+
serializedName: "profileName",
|
|
98
|
+
required: true,
|
|
99
|
+
type: {
|
|
100
|
+
name: "String"
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
export const contentType: OperationParameter = {
|
|
106
|
+
parameterPath: ["options", "contentType"],
|
|
107
|
+
mapper: {
|
|
108
|
+
defaultValue: "application/json",
|
|
109
|
+
isConstant: true,
|
|
110
|
+
serializedName: "Content-Type",
|
|
111
|
+
type: {
|
|
112
|
+
name: "String"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
export const parameters: OperationParameter = {
|
|
118
|
+
parameterPath: "parameters",
|
|
119
|
+
mapper: ProfileMapper
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
export const parameters1: OperationParameter = {
|
|
123
|
+
parameterPath: "parameters",
|
|
124
|
+
mapper: ProfileUpdateModelMapper
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
export const nextLink: OperationURLParameter = {
|
|
128
|
+
parameterPath: "nextLink",
|
|
129
|
+
mapper: {
|
|
130
|
+
serializedName: "nextLink",
|
|
131
|
+
required: true,
|
|
132
|
+
type: {
|
|
133
|
+
name: "String"
|
|
134
|
+
}
|
|
135
|
+
},
|
|
136
|
+
skipEncoding: true
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
export const experimentName: OperationURLParameter = {
|
|
140
|
+
parameterPath: "experimentName",
|
|
141
|
+
mapper: {
|
|
142
|
+
constraints: {
|
|
143
|
+
Pattern: new RegExp("^[a-zA-Z0-9_\\-\\(\\)\\.]*[^\\.]$")
|
|
144
|
+
},
|
|
145
|
+
serializedName: "experimentName",
|
|
146
|
+
required: true,
|
|
147
|
+
type: {
|
|
148
|
+
name: "String"
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
export const parameters2: OperationParameter = {
|
|
154
|
+
parameterPath: "parameters",
|
|
155
|
+
mapper: ExperimentMapper
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
export const parameters3: OperationParameter = {
|
|
159
|
+
parameterPath: "parameters",
|
|
160
|
+
mapper: ExperimentUpdateModelMapper
|
|
161
|
+
};
|
|
162
|
+
|
|
163
|
+
export const endDateTimeUTC: OperationQueryParameter = {
|
|
164
|
+
parameterPath: ["options", "endDateTimeUTC"],
|
|
165
|
+
mapper: {
|
|
166
|
+
serializedName: "endDateTimeUTC",
|
|
167
|
+
type: {
|
|
168
|
+
name: "String"
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
};
|
|
172
|
+
|
|
173
|
+
export const country: OperationQueryParameter = {
|
|
174
|
+
parameterPath: ["options", "country"],
|
|
175
|
+
mapper: {
|
|
176
|
+
serializedName: "country",
|
|
177
|
+
type: {
|
|
178
|
+
name: "String"
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
export const aggregationInterval: OperationQueryParameter = {
|
|
184
|
+
parameterPath: "aggregationInterval",
|
|
185
|
+
mapper: {
|
|
186
|
+
serializedName: "aggregationInterval",
|
|
187
|
+
required: true,
|
|
188
|
+
type: {
|
|
189
|
+
name: "String"
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
export const startDateTimeUTC: OperationQueryParameter = {
|
|
195
|
+
parameterPath: "startDateTimeUTC",
|
|
196
|
+
mapper: {
|
|
197
|
+
serializedName: "startDateTimeUTC",
|
|
198
|
+
required: true,
|
|
199
|
+
type: {
|
|
200
|
+
name: "DateTime"
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
};
|
|
204
|
+
|
|
205
|
+
export const endDateTimeUTC1: OperationQueryParameter = {
|
|
206
|
+
parameterPath: "endDateTimeUTC",
|
|
207
|
+
mapper: {
|
|
208
|
+
serializedName: "endDateTimeUTC",
|
|
209
|
+
required: true,
|
|
210
|
+
type: {
|
|
211
|
+
name: "DateTime"
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
export const aggregationInterval1: OperationQueryParameter = {
|
|
217
|
+
parameterPath: "aggregationInterval",
|
|
218
|
+
mapper: {
|
|
219
|
+
serializedName: "aggregationInterval",
|
|
220
|
+
required: true,
|
|
221
|
+
type: {
|
|
222
|
+
name: "String"
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
export const timeseriesType: OperationQueryParameter = {
|
|
228
|
+
parameterPath: "timeseriesType",
|
|
229
|
+
mapper: {
|
|
230
|
+
serializedName: "timeseriesType",
|
|
231
|
+
required: true,
|
|
232
|
+
type: {
|
|
233
|
+
name: "String"
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
export const endpoint: OperationQueryParameter = {
|
|
239
|
+
parameterPath: ["options", "endpoint"],
|
|
240
|
+
mapper: {
|
|
241
|
+
serializedName: "endpoint",
|
|
242
|
+
type: {
|
|
243
|
+
name: "String"
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
};
|
|
247
|
+
|
|
248
|
+
export const checkFrontDoorNameAvailabilityInput: OperationParameter = {
|
|
249
|
+
parameterPath: "checkFrontDoorNameAvailabilityInput",
|
|
250
|
+
mapper: CheckNameAvailabilityInputMapper
|
|
251
|
+
};
|
|
252
|
+
|
|
253
|
+
export const apiVersion1: OperationQueryParameter = {
|
|
254
|
+
parameterPath: "apiVersion",
|
|
255
|
+
mapper: {
|
|
256
|
+
defaultValue: "2020-05-01",
|
|
257
|
+
isConstant: true,
|
|
258
|
+
serializedName: "api-version",
|
|
259
|
+
type: {
|
|
260
|
+
name: "String"
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
};
|
|
264
|
+
|
|
265
|
+
export const frontDoorName: OperationURLParameter = {
|
|
266
|
+
parameterPath: "frontDoorName",
|
|
267
|
+
mapper: {
|
|
268
|
+
constraints: {
|
|
269
|
+
Pattern: new RegExp("^[a-zA-Z0-9]+([-a-zA-Z0-9]?[a-zA-Z0-9])*$"),
|
|
270
|
+
MaxLength: 64,
|
|
271
|
+
MinLength: 5
|
|
272
|
+
},
|
|
273
|
+
serializedName: "frontDoorName",
|
|
274
|
+
required: true,
|
|
275
|
+
type: {
|
|
276
|
+
name: "String"
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
};
|
|
280
|
+
|
|
281
|
+
export const frontDoorParameters: OperationParameter = {
|
|
282
|
+
parameterPath: "frontDoorParameters",
|
|
283
|
+
mapper: FrontDoorMapper
|
|
284
|
+
};
|
|
285
|
+
|
|
286
|
+
export const customDomainProperties: OperationParameter = {
|
|
287
|
+
parameterPath: "customDomainProperties",
|
|
288
|
+
mapper: ValidateCustomDomainInputMapper
|
|
289
|
+
};
|
|
290
|
+
|
|
291
|
+
export const frontendEndpointName: OperationURLParameter = {
|
|
292
|
+
parameterPath: "frontendEndpointName",
|
|
293
|
+
mapper: {
|
|
294
|
+
constraints: {
|
|
295
|
+
Pattern: new RegExp("^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"),
|
|
296
|
+
MaxLength: 255,
|
|
297
|
+
MinLength: 1
|
|
298
|
+
},
|
|
299
|
+
serializedName: "frontendEndpointName",
|
|
300
|
+
required: true,
|
|
301
|
+
type: {
|
|
302
|
+
name: "String"
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
export const customHttpsConfiguration: OperationParameter = {
|
|
308
|
+
parameterPath: "customHttpsConfiguration",
|
|
309
|
+
mapper: CustomHttpsConfigurationMapper
|
|
310
|
+
};
|
|
311
|
+
|
|
312
|
+
export const contentFilePaths: OperationParameter = {
|
|
313
|
+
parameterPath: "contentFilePaths",
|
|
314
|
+
mapper: PurgeParametersMapper
|
|
315
|
+
};
|
|
316
|
+
|
|
317
|
+
export const rulesEngineName: OperationURLParameter = {
|
|
318
|
+
parameterPath: "rulesEngineName",
|
|
319
|
+
mapper: {
|
|
320
|
+
constraints: {
|
|
321
|
+
Pattern: new RegExp("^[a-zA-Z0-9]+(-*[a-zA-Z0-9])*$"),
|
|
322
|
+
MaxLength: 90,
|
|
323
|
+
MinLength: 1
|
|
324
|
+
},
|
|
325
|
+
serializedName: "rulesEngineName",
|
|
326
|
+
required: true,
|
|
327
|
+
type: {
|
|
328
|
+
name: "String"
|
|
329
|
+
}
|
|
330
|
+
}
|
|
331
|
+
};
|
|
332
|
+
|
|
333
|
+
export const rulesEngineParameters: OperationParameter = {
|
|
334
|
+
parameterPath: "rulesEngineParameters",
|
|
335
|
+
mapper: RulesEngineMapper
|
|
336
|
+
};
|
|
337
|
+
|
|
338
|
+
export const apiVersion2: OperationQueryParameter = {
|
|
339
|
+
parameterPath: "apiVersion",
|
|
340
|
+
mapper: {
|
|
341
|
+
defaultValue: "2020-11-01",
|
|
342
|
+
isConstant: true,
|
|
343
|
+
serializedName: "api-version",
|
|
344
|
+
type: {
|
|
345
|
+
name: "String"
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
};
|
|
349
|
+
|
|
350
|
+
export const policyName: OperationURLParameter = {
|
|
351
|
+
parameterPath: "policyName",
|
|
352
|
+
mapper: {
|
|
353
|
+
constraints: {
|
|
354
|
+
MaxLength: 128
|
|
355
|
+
},
|
|
356
|
+
serializedName: "policyName",
|
|
357
|
+
required: true,
|
|
358
|
+
type: {
|
|
359
|
+
name: "String"
|
|
360
|
+
}
|
|
361
|
+
}
|
|
362
|
+
};
|
|
363
|
+
|
|
364
|
+
export const parameters4: OperationParameter = {
|
|
365
|
+
parameterPath: "parameters",
|
|
366
|
+
mapper: WebApplicationFirewallPolicyMapper
|
|
367
|
+
};
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { Endpoints } from "../operationsInterfaces";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as Mappers from "../models/mappers";
|
|
12
|
+
import * as Parameters from "../models/parameters";
|
|
13
|
+
import { FrontDoorManagementClient } from "../frontDoorManagementClient";
|
|
14
|
+
import { PollerLike, PollOperationState, LroEngine } from "@azure/core-lro";
|
|
15
|
+
import { LroImpl } from "../lroImpl";
|
|
16
|
+
import {
|
|
17
|
+
PurgeParameters,
|
|
18
|
+
EndpointsPurgeContentOptionalParams
|
|
19
|
+
} from "../models";
|
|
20
|
+
|
|
21
|
+
/** Class containing Endpoints operations. */
|
|
22
|
+
export class EndpointsImpl implements Endpoints {
|
|
23
|
+
private readonly client: FrontDoorManagementClient;
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Initialize a new instance of the class Endpoints class.
|
|
27
|
+
* @param client Reference to the service client
|
|
28
|
+
*/
|
|
29
|
+
constructor(client: FrontDoorManagementClient) {
|
|
30
|
+
this.client = client;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Removes a content from Front Door.
|
|
35
|
+
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
36
|
+
* @param frontDoorName Name of the Front Door which is globally unique.
|
|
37
|
+
* @param contentFilePaths The path to the content to be purged. Path can be a full URL, e.g.
|
|
38
|
+
* '/pictures/city.png' which removes a single file, or a directory with a wildcard, e.g. '/pictures/*'
|
|
39
|
+
* which removes all folders and files in the directory.
|
|
40
|
+
* @param options The options parameters.
|
|
41
|
+
*/
|
|
42
|
+
async beginPurgeContent(
|
|
43
|
+
resourceGroupName: string,
|
|
44
|
+
frontDoorName: string,
|
|
45
|
+
contentFilePaths: PurgeParameters,
|
|
46
|
+
options?: EndpointsPurgeContentOptionalParams
|
|
47
|
+
): Promise<PollerLike<PollOperationState<void>, void>> {
|
|
48
|
+
const directSendOperation = async (
|
|
49
|
+
args: coreClient.OperationArguments,
|
|
50
|
+
spec: coreClient.OperationSpec
|
|
51
|
+
): Promise<void> => {
|
|
52
|
+
return this.client.sendOperationRequest(args, spec);
|
|
53
|
+
};
|
|
54
|
+
const sendOperation = async (
|
|
55
|
+
args: coreClient.OperationArguments,
|
|
56
|
+
spec: coreClient.OperationSpec
|
|
57
|
+
) => {
|
|
58
|
+
let currentRawResponse:
|
|
59
|
+
| coreClient.FullOperationResponse
|
|
60
|
+
| undefined = undefined;
|
|
61
|
+
const providedCallback = args.options?.onResponse;
|
|
62
|
+
const callback: coreClient.RawResponseCallback = (
|
|
63
|
+
rawResponse: coreClient.FullOperationResponse,
|
|
64
|
+
flatResponse: unknown
|
|
65
|
+
) => {
|
|
66
|
+
currentRawResponse = rawResponse;
|
|
67
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
68
|
+
};
|
|
69
|
+
const updatedArgs = {
|
|
70
|
+
...args,
|
|
71
|
+
options: {
|
|
72
|
+
...args.options,
|
|
73
|
+
onResponse: callback
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
77
|
+
return {
|
|
78
|
+
flatResponse,
|
|
79
|
+
rawResponse: {
|
|
80
|
+
statusCode: currentRawResponse!.status,
|
|
81
|
+
body: currentRawResponse!.parsedBody,
|
|
82
|
+
headers: currentRawResponse!.headers.toJSON()
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
const lro = new LroImpl(
|
|
88
|
+
sendOperation,
|
|
89
|
+
{ resourceGroupName, frontDoorName, contentFilePaths, options },
|
|
90
|
+
purgeContentOperationSpec
|
|
91
|
+
);
|
|
92
|
+
return new LroEngine(lro, {
|
|
93
|
+
resumeFrom: options?.resumeFrom,
|
|
94
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
95
|
+
lroResourceLocationConfig: "azure-async-operation"
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Removes a content from Front Door.
|
|
101
|
+
* @param resourceGroupName Name of the Resource group within the Azure subscription.
|
|
102
|
+
* @param frontDoorName Name of the Front Door which is globally unique.
|
|
103
|
+
* @param contentFilePaths The path to the content to be purged. Path can be a full URL, e.g.
|
|
104
|
+
* '/pictures/city.png' which removes a single file, or a directory with a wildcard, e.g. '/pictures/*'
|
|
105
|
+
* which removes all folders and files in the directory.
|
|
106
|
+
* @param options The options parameters.
|
|
107
|
+
*/
|
|
108
|
+
async beginPurgeContentAndWait(
|
|
109
|
+
resourceGroupName: string,
|
|
110
|
+
frontDoorName: string,
|
|
111
|
+
contentFilePaths: PurgeParameters,
|
|
112
|
+
options?: EndpointsPurgeContentOptionalParams
|
|
113
|
+
): Promise<void> {
|
|
114
|
+
const poller = await this.beginPurgeContent(
|
|
115
|
+
resourceGroupName,
|
|
116
|
+
frontDoorName,
|
|
117
|
+
contentFilePaths,
|
|
118
|
+
options
|
|
119
|
+
);
|
|
120
|
+
return poller.pollUntilDone();
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
// Operation Specifications
|
|
124
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
125
|
+
|
|
126
|
+
const purgeContentOperationSpec: coreClient.OperationSpec = {
|
|
127
|
+
path:
|
|
128
|
+
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/frontDoors/{frontDoorName}/purge",
|
|
129
|
+
httpMethod: "POST",
|
|
130
|
+
responses: {
|
|
131
|
+
200: {},
|
|
132
|
+
201: {},
|
|
133
|
+
202: {},
|
|
134
|
+
204: {},
|
|
135
|
+
default: {
|
|
136
|
+
bodyMapper: Mappers.ErrorResponse
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
requestBody: Parameters.contentFilePaths,
|
|
140
|
+
queryParameters: [Parameters.apiVersion1],
|
|
141
|
+
urlParameters: [
|
|
142
|
+
Parameters.$host,
|
|
143
|
+
Parameters.subscriptionId,
|
|
144
|
+
Parameters.resourceGroupName,
|
|
145
|
+
Parameters.frontDoorName
|
|
146
|
+
],
|
|
147
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
148
|
+
mediaType: "json",
|
|
149
|
+
serializer
|
|
150
|
+
};
|