@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
package/rollup.config.js
CHANGED
|
@@ -1,37 +1,188 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
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 nodeResolve from "@rollup/plugin-node-resolve";
|
|
10
|
+
import cjs from "@rollup/plugin-commonjs";
|
|
3
11
|
import sourcemaps from "rollup-plugin-sourcemaps";
|
|
12
|
+
import multiEntry from "@rollup/plugin-multi-entry";
|
|
13
|
+
import json from "@rollup/plugin-json";
|
|
14
|
+
|
|
15
|
+
import nodeBuiltins from "builtin-modules";
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Gets the proper configuration needed for rollup's commonJS plugin for @opentelemetry/api.
|
|
19
|
+
*
|
|
20
|
+
* NOTE: this manual configuration is only needed because OpenTelemetry uses an
|
|
21
|
+
* __exportStar downleveled helper function to declare its exports which confuses
|
|
22
|
+
* rollup's automatic discovery mechanism.
|
|
23
|
+
*
|
|
24
|
+
* @returns an object reference that can be `...`'d into your cjs() configuration.
|
|
25
|
+
*/
|
|
26
|
+
export function openTelemetryCommonJs() {
|
|
27
|
+
const namedExports = {};
|
|
28
|
+
|
|
29
|
+
for (const key of [
|
|
30
|
+
"@opentelemetry/api",
|
|
31
|
+
"@azure/core-tracing/node_modules/@opentelemetry/api"
|
|
32
|
+
]) {
|
|
33
|
+
namedExports[key] = [
|
|
34
|
+
"SpanKind",
|
|
35
|
+
"TraceFlags",
|
|
36
|
+
"getSpan",
|
|
37
|
+
"setSpan",
|
|
38
|
+
"SpanStatusCode",
|
|
39
|
+
"getSpanContext",
|
|
40
|
+
"setSpanContext"
|
|
41
|
+
];
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
const releasedOpenTelemetryVersions = ["0.10.2", "1.0.0-rc.0"];
|
|
45
|
+
|
|
46
|
+
for (const version of releasedOpenTelemetryVersions) {
|
|
47
|
+
namedExports[
|
|
48
|
+
// working around a limitation in the rollup common.js plugin - it's not able to resolve these modules so the named exports listed above will not get applied. We have to drill down to the actual path.
|
|
49
|
+
`../../../common/temp/node_modules/.pnpm/@opentelemetry/api@${version}/node_modules/@opentelemetry/api/build/src/index.js`
|
|
50
|
+
] = [
|
|
51
|
+
"SpanKind",
|
|
52
|
+
"TraceFlags",
|
|
53
|
+
"getSpan",
|
|
54
|
+
"setSpan",
|
|
55
|
+
"StatusCode",
|
|
56
|
+
"CanonicalCode",
|
|
57
|
+
"getSpanContext",
|
|
58
|
+
"setSpanContext"
|
|
59
|
+
];
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
return namedExports;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
// #region Warning Handler
|
|
4
66
|
|
|
5
67
|
/**
|
|
6
|
-
*
|
|
68
|
+
* A function that can determine whether a rollupwarning should be ignored. If
|
|
69
|
+
* the function returns `true`, then the warning will not be displayed.
|
|
7
70
|
*/
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
71
|
+
|
|
72
|
+
function ignoreNiseSinonEvalWarnings(warning) {
|
|
73
|
+
return (
|
|
74
|
+
warning.code === "EVAL" &&
|
|
75
|
+
warning.id &&
|
|
76
|
+
(warning.id.includes("node_modules/nise") ||
|
|
77
|
+
warning.id.includes("node_modules/sinon")) === true
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
function ignoreChaiCircularDependencyWarnings(warning) {
|
|
82
|
+
return (
|
|
83
|
+
warning.code === "CIRCULAR_DEPENDENCY" &&
|
|
84
|
+
warning.importer && warning.importer.includes("node_modules/chai") === true
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
const warningInhibitors = [
|
|
89
|
+
ignoreChaiCircularDependencyWarnings,
|
|
90
|
+
ignoreNiseSinonEvalWarnings
|
|
91
|
+
];
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Construct a warning handler for the shared rollup configuration
|
|
95
|
+
* that ignores certain warnings that are not relevant to testing.
|
|
96
|
+
*/
|
|
97
|
+
function makeOnWarnForTesting() {
|
|
98
|
+
return (warning, warn) => {
|
|
99
|
+
// If every inhibitor returns false (i.e. no inhibitors), then show the warning
|
|
100
|
+
if (warningInhibitors.every((inhib) => !inhib(warning))) {
|
|
101
|
+
warn(warning);
|
|
102
|
+
}
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
// #endregion
|
|
107
|
+
|
|
108
|
+
function makeBrowserTestConfig() {
|
|
109
|
+
const config = {
|
|
110
|
+
input: {
|
|
111
|
+
include: ["dist-esm/test/**/*.spec.js"],
|
|
112
|
+
exclude: ["dist-esm/test/**/node/**"]
|
|
22
113
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
114
|
+
output: {
|
|
115
|
+
file: `dist-test/index.browser.js`,
|
|
116
|
+
format: "umd",
|
|
117
|
+
sourcemap: true
|
|
118
|
+
},
|
|
119
|
+
preserveSymlinks: false,
|
|
120
|
+
plugins: [
|
|
121
|
+
multiEntry({ exports: false }),
|
|
122
|
+
nodeResolve({
|
|
123
|
+
mainFields: ["module", "browser"]
|
|
124
|
+
}),
|
|
125
|
+
cjs({
|
|
126
|
+
namedExports: {
|
|
127
|
+
// Chai's strange internal architecture makes it impossible to statically
|
|
128
|
+
// analyze its exports.
|
|
129
|
+
chai: [
|
|
130
|
+
"version",
|
|
131
|
+
"use",
|
|
132
|
+
"util",
|
|
133
|
+
"config",
|
|
134
|
+
"expect",
|
|
135
|
+
"should",
|
|
136
|
+
"assert"
|
|
137
|
+
],
|
|
138
|
+
...openTelemetryCommonJs()
|
|
139
|
+
}
|
|
140
|
+
}),
|
|
141
|
+
json(),
|
|
142
|
+
sourcemaps()
|
|
143
|
+
//viz({ filename: "dist-test/browser-stats.html", sourcemap: true })
|
|
144
|
+
],
|
|
145
|
+
onwarn: makeOnWarnForTesting(),
|
|
146
|
+
// Disable tree-shaking of test code. In rollup-plugin-node-resolve@5.0.0,
|
|
147
|
+
// rollup started respecting the "sideEffects" field in package.json. Since
|
|
148
|
+
// our package.json sets "sideEffects=false", this also applies to test
|
|
149
|
+
// code, which causes all tests to be removed by tree-shaking.
|
|
150
|
+
treeshake: false
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
return config;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
const defaultConfigurationOptions = {
|
|
157
|
+
disableBrowserBundle: false
|
|
35
158
|
};
|
|
36
159
|
|
|
37
|
-
export
|
|
160
|
+
export function makeConfig(pkg, options) {
|
|
161
|
+
options = {
|
|
162
|
+
...defaultConfigurationOptions,
|
|
163
|
+
...(options || {})
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
const baseConfig = {
|
|
167
|
+
// Use the package's module field if it has one
|
|
168
|
+
input: pkg["module"] || "dist-esm/src/index.js",
|
|
169
|
+
external: [
|
|
170
|
+
...nodeBuiltins,
|
|
171
|
+
...Object.keys(pkg.dependencies),
|
|
172
|
+
...Object.keys(pkg.devDependencies)
|
|
173
|
+
],
|
|
174
|
+
output: { file: "dist/index.js", format: "cjs", sourcemap: true },
|
|
175
|
+
preserveSymlinks: false,
|
|
176
|
+
plugins: [sourcemaps(), nodeResolve(), cjs()]
|
|
177
|
+
};
|
|
178
|
+
|
|
179
|
+
const config = [baseConfig];
|
|
180
|
+
|
|
181
|
+
if (!options.disableBrowserBundle) {
|
|
182
|
+
config.push(makeBrowserTestConfig());
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
return config;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export default makeConfig(require("./package.json"));
|
|
@@ -1,181 +1,124 @@
|
|
|
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 * as
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
import * as coreClient from "@azure/core-client";
|
|
10
|
+
import * as coreAuth from "@azure/core-auth";
|
|
11
|
+
import {
|
|
12
|
+
NetworkExperimentProfilesImpl,
|
|
13
|
+
PreconfiguredEndpointsImpl,
|
|
14
|
+
ExperimentsImpl,
|
|
15
|
+
ReportsImpl,
|
|
16
|
+
FrontDoorNameAvailabilityImpl,
|
|
17
|
+
FrontDoorNameAvailabilityWithSubscriptionImpl,
|
|
18
|
+
FrontDoorsImpl,
|
|
19
|
+
FrontendEndpointsImpl,
|
|
20
|
+
EndpointsImpl,
|
|
21
|
+
RulesEnginesImpl,
|
|
22
|
+
PoliciesImpl,
|
|
23
|
+
ManagedRuleSetsImpl
|
|
24
|
+
} from "./operations";
|
|
25
|
+
import {
|
|
26
|
+
NetworkExperimentProfiles,
|
|
27
|
+
PreconfiguredEndpoints,
|
|
28
|
+
Experiments,
|
|
29
|
+
Reports,
|
|
30
|
+
FrontDoorNameAvailability,
|
|
31
|
+
FrontDoorNameAvailabilityWithSubscription,
|
|
32
|
+
FrontDoors,
|
|
33
|
+
FrontendEndpoints,
|
|
34
|
+
Endpoints,
|
|
35
|
+
RulesEngines,
|
|
36
|
+
Policies,
|
|
37
|
+
ManagedRuleSets
|
|
38
|
+
} from "./operationsInterfaces";
|
|
39
|
+
import { FrontDoorManagementClientOptionalParams } from "./models";
|
|
18
40
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
networkExperimentProfiles: operations.NetworkExperimentProfiles;
|
|
23
|
-
preconfiguredEndpoints: operations.PreconfiguredEndpoints;
|
|
24
|
-
experiments: operations.Experiments;
|
|
25
|
-
reports: operations.Reports;
|
|
26
|
-
frontDoors: operations.FrontDoors;
|
|
27
|
-
frontendEndpoints: operations.FrontendEndpoints;
|
|
28
|
-
endpoints: operations.Endpoints;
|
|
29
|
-
rulesEngines: operations.RulesEngines;
|
|
30
|
-
policies: operations.Policies;
|
|
31
|
-
managedRuleSets: operations.ManagedRuleSets;
|
|
41
|
+
export class FrontDoorManagementClient extends coreClient.ServiceClient {
|
|
42
|
+
$host: string;
|
|
43
|
+
subscriptionId: string;
|
|
32
44
|
|
|
33
45
|
/**
|
|
34
46
|
* Initializes a new instance of the FrontDoorManagementClient class.
|
|
35
|
-
* @param credentials
|
|
36
|
-
* implementing the TokenCredential interface from the @azure/identity package are recommended. For
|
|
37
|
-
* more information about these credentials, see
|
|
38
|
-
* {@link https://www.npmjs.com/package/@azure/identity}. Credentials implementing the
|
|
39
|
-
* ServiceClientCredentials interface from the older packages @azure/ms-rest-nodeauth and
|
|
40
|
-
* @azure/ms-rest-browserauth are also supported.
|
|
47
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
41
48
|
* @param subscriptionId The subscription credentials which uniquely identify the Microsoft Azure
|
|
42
|
-
*
|
|
43
|
-
* @param
|
|
44
|
-
*/
|
|
45
|
-
constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.FrontDoorManagementClientOptions) {
|
|
46
|
-
super(credentials, subscriptionId, options);
|
|
47
|
-
this.networkExperimentProfiles = new operations.NetworkExperimentProfiles(this);
|
|
48
|
-
this.preconfiguredEndpoints = new operations.PreconfiguredEndpoints(this);
|
|
49
|
-
this.experiments = new operations.Experiments(this);
|
|
50
|
-
this.reports = new operations.Reports(this);
|
|
51
|
-
this.frontDoors = new operations.FrontDoors(this);
|
|
52
|
-
this.frontendEndpoints = new operations.FrontendEndpoints(this);
|
|
53
|
-
this.endpoints = new operations.Endpoints(this);
|
|
54
|
-
this.rulesEngines = new operations.RulesEngines(this);
|
|
55
|
-
this.policies = new operations.Policies(this);
|
|
56
|
-
this.managedRuleSets = new operations.ManagedRuleSets(this);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Check the availability of a Front Door resource name.
|
|
61
|
-
* @param checkFrontDoorNameAvailabilityInput Input to check.
|
|
62
|
-
* @param [options] The optional parameters
|
|
63
|
-
* @returns Promise<Models.CheckFrontDoorNameAvailabilityResponse>
|
|
64
|
-
*/
|
|
65
|
-
checkFrontDoorNameAvailability(checkFrontDoorNameAvailabilityInput: Models.CheckNameAvailabilityInput, options?: msRest.RequestOptionsBase): Promise<Models.CheckFrontDoorNameAvailabilityResponse>;
|
|
66
|
-
/**
|
|
67
|
-
* @param checkFrontDoorNameAvailabilityInput Input to check.
|
|
68
|
-
* @param callback The callback
|
|
69
|
-
*/
|
|
70
|
-
checkFrontDoorNameAvailability(checkFrontDoorNameAvailabilityInput: Models.CheckNameAvailabilityInput, callback: msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>): void;
|
|
71
|
-
/**
|
|
72
|
-
* @param checkFrontDoorNameAvailabilityInput Input to check.
|
|
73
|
-
* @param options The optional parameters
|
|
74
|
-
* @param callback The callback
|
|
75
|
-
*/
|
|
76
|
-
checkFrontDoorNameAvailability(checkFrontDoorNameAvailabilityInput: Models.CheckNameAvailabilityInput, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>): void;
|
|
77
|
-
checkFrontDoorNameAvailability(checkFrontDoorNameAvailabilityInput: Models.CheckNameAvailabilityInput, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>, callback?: msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>): Promise<Models.CheckFrontDoorNameAvailabilityResponse> {
|
|
78
|
-
return this.sendOperationRequest(
|
|
79
|
-
{
|
|
80
|
-
checkFrontDoorNameAvailabilityInput,
|
|
81
|
-
options
|
|
82
|
-
},
|
|
83
|
-
checkFrontDoorNameAvailabilityOperationSpec,
|
|
84
|
-
callback) as Promise<Models.CheckFrontDoorNameAvailabilityResponse>;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Check the availability of a Front Door subdomain.
|
|
89
|
-
* @param checkFrontDoorNameAvailabilityInput Input to check.
|
|
90
|
-
* @param [options] The optional parameters
|
|
91
|
-
* @returns Promise<Models.CheckFrontDoorNameAvailabilityWithSubscriptionResponse>
|
|
49
|
+
* subscription. The subscription ID forms part of the URI for every service call.
|
|
50
|
+
* @param options The parameter options
|
|
92
51
|
*/
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
* @param checkFrontDoorNameAvailabilityInput Input to check.
|
|
101
|
-
* @param options The optional parameters
|
|
102
|
-
* @param callback The callback
|
|
103
|
-
*/
|
|
104
|
-
checkFrontDoorNameAvailabilityWithSubscription(checkFrontDoorNameAvailabilityInput: Models.CheckNameAvailabilityInput, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>): void;
|
|
105
|
-
checkFrontDoorNameAvailabilityWithSubscription(checkFrontDoorNameAvailabilityInput: Models.CheckNameAvailabilityInput, options?: msRest.RequestOptionsBase | msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>, callback?: msRest.ServiceCallback<Models.CheckNameAvailabilityOutput>): Promise<Models.CheckFrontDoorNameAvailabilityWithSubscriptionResponse> {
|
|
106
|
-
return this.sendOperationRequest(
|
|
107
|
-
{
|
|
108
|
-
checkFrontDoorNameAvailabilityInput,
|
|
109
|
-
options
|
|
110
|
-
},
|
|
111
|
-
checkFrontDoorNameAvailabilityWithSubscriptionOperationSpec,
|
|
112
|
-
callback) as Promise<Models.CheckFrontDoorNameAvailabilityWithSubscriptionResponse>;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
// Operation Specifications
|
|
117
|
-
const serializer = new msRest.Serializer(Mappers);
|
|
118
|
-
const checkFrontDoorNameAvailabilityOperationSpec: msRest.OperationSpec = {
|
|
119
|
-
httpMethod: "POST",
|
|
120
|
-
path: "providers/Microsoft.Network/checkFrontDoorNameAvailability",
|
|
121
|
-
queryParameters: [
|
|
122
|
-
Parameters.apiVersion1
|
|
123
|
-
],
|
|
124
|
-
headerParameters: [
|
|
125
|
-
Parameters.acceptLanguage
|
|
126
|
-
],
|
|
127
|
-
requestBody: {
|
|
128
|
-
parameterPath: "checkFrontDoorNameAvailabilityInput",
|
|
129
|
-
mapper: {
|
|
130
|
-
...Mappers.CheckNameAvailabilityInput,
|
|
131
|
-
required: true
|
|
52
|
+
constructor(
|
|
53
|
+
credentials: coreAuth.TokenCredential,
|
|
54
|
+
subscriptionId: string,
|
|
55
|
+
options?: FrontDoorManagementClientOptionalParams
|
|
56
|
+
) {
|
|
57
|
+
if (credentials === undefined) {
|
|
58
|
+
throw new Error("'credentials' cannot be null");
|
|
132
59
|
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
200: {
|
|
136
|
-
bodyMapper: Mappers.CheckNameAvailabilityOutput
|
|
137
|
-
},
|
|
138
|
-
default: {
|
|
139
|
-
bodyMapper: Mappers.ErrorResponse
|
|
60
|
+
if (subscriptionId === undefined) {
|
|
61
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
140
62
|
}
|
|
141
|
-
},
|
|
142
|
-
serializer
|
|
143
|
-
};
|
|
144
63
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
urlParameters: [
|
|
149
|
-
Parameters.subscriptionId
|
|
150
|
-
],
|
|
151
|
-
queryParameters: [
|
|
152
|
-
Parameters.apiVersion1
|
|
153
|
-
],
|
|
154
|
-
headerParameters: [
|
|
155
|
-
Parameters.acceptLanguage
|
|
156
|
-
],
|
|
157
|
-
requestBody: {
|
|
158
|
-
parameterPath: "checkFrontDoorNameAvailabilityInput",
|
|
159
|
-
mapper: {
|
|
160
|
-
...Mappers.CheckNameAvailabilityInput,
|
|
161
|
-
required: true
|
|
64
|
+
// Initializing default values for options
|
|
65
|
+
if (!options) {
|
|
66
|
+
options = {};
|
|
162
67
|
}
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
68
|
+
const defaults: FrontDoorManagementClientOptionalParams = {
|
|
69
|
+
requestContentType: "application/json; charset=utf-8",
|
|
70
|
+
credential: credentials
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
const packageDetails = `azsdk-js-arm-frontdoor/5.0.0`;
|
|
74
|
+
const userAgentPrefix =
|
|
75
|
+
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
76
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
77
|
+
: `${packageDetails}`;
|
|
78
|
+
|
|
79
|
+
if (!options.credentialScopes) {
|
|
80
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
170
81
|
}
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
82
|
+
const optionsWithDefaults = {
|
|
83
|
+
...defaults,
|
|
84
|
+
...options,
|
|
85
|
+
userAgentOptions: {
|
|
86
|
+
userAgentPrefix
|
|
87
|
+
},
|
|
88
|
+
baseUri: options.endpoint || "https://management.azure.com"
|
|
89
|
+
};
|
|
90
|
+
super(optionsWithDefaults);
|
|
91
|
+
// Parameter assignments
|
|
92
|
+
this.subscriptionId = subscriptionId;
|
|
174
93
|
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
94
|
+
// Assigning values to Constant parameters
|
|
95
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
96
|
+
this.networkExperimentProfiles = new NetworkExperimentProfilesImpl(this);
|
|
97
|
+
this.preconfiguredEndpoints = new PreconfiguredEndpointsImpl(this);
|
|
98
|
+
this.experiments = new ExperimentsImpl(this);
|
|
99
|
+
this.reports = new ReportsImpl(this);
|
|
100
|
+
this.frontDoorNameAvailability = new FrontDoorNameAvailabilityImpl(this);
|
|
101
|
+
this.frontDoorNameAvailabilityWithSubscription = new FrontDoorNameAvailabilityWithSubscriptionImpl(
|
|
102
|
+
this
|
|
103
|
+
);
|
|
104
|
+
this.frontDoors = new FrontDoorsImpl(this);
|
|
105
|
+
this.frontendEndpoints = new FrontendEndpointsImpl(this);
|
|
106
|
+
this.endpoints = new EndpointsImpl(this);
|
|
107
|
+
this.rulesEngines = new RulesEnginesImpl(this);
|
|
108
|
+
this.policies = new PoliciesImpl(this);
|
|
109
|
+
this.managedRuleSets = new ManagedRuleSetsImpl(this);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
networkExperimentProfiles: NetworkExperimentProfiles;
|
|
113
|
+
preconfiguredEndpoints: PreconfiguredEndpoints;
|
|
114
|
+
experiments: Experiments;
|
|
115
|
+
reports: Reports;
|
|
116
|
+
frontDoorNameAvailability: FrontDoorNameAvailability;
|
|
117
|
+
frontDoorNameAvailabilityWithSubscription: FrontDoorNameAvailabilityWithSubscription;
|
|
118
|
+
frontDoors: FrontDoors;
|
|
119
|
+
frontendEndpoints: FrontendEndpoints;
|
|
120
|
+
endpoints: Endpoints;
|
|
121
|
+
rulesEngines: RulesEngines;
|
|
122
|
+
policies: Policies;
|
|
123
|
+
managedRuleSets: ManagedRuleSets;
|
|
124
|
+
}
|
package/src/index.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
/// <reference lib="esnext.asynciterable" />
|
|
10
|
+
export * from "./models";
|
|
11
|
+
export { FrontDoorManagementClient } from "./frontDoorManagementClient";
|
|
12
|
+
export * from "./operationsInterfaces";
|
package/src/lroImpl.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
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 { LongRunningOperation, LroResponse } from "@azure/core-lro";
|
|
10
|
+
|
|
11
|
+
export class LroImpl<T> implements LongRunningOperation<T> {
|
|
12
|
+
constructor(
|
|
13
|
+
private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,
|
|
14
|
+
private args: Record<string, unknown>,
|
|
15
|
+
private spec: {
|
|
16
|
+
readonly requestBody?: unknown;
|
|
17
|
+
readonly path?: string;
|
|
18
|
+
readonly httpMethod: string;
|
|
19
|
+
} & Record<string, any>,
|
|
20
|
+
public requestPath: string = spec.path!,
|
|
21
|
+
public requestMethod: string = spec.httpMethod
|
|
22
|
+
) {}
|
|
23
|
+
public async sendInitialRequest(): Promise<LroResponse<T>> {
|
|
24
|
+
return this.sendOperationFn(this.args, this.spec);
|
|
25
|
+
}
|
|
26
|
+
public async sendPollRequest(path: string): Promise<LroResponse<T>> {
|
|
27
|
+
const { requestBody, ...restSpec } = this.spec;
|
|
28
|
+
return this.sendOperationFn(this.args, {
|
|
29
|
+
...restSpec,
|
|
30
|
+
path,
|
|
31
|
+
httpMethod: "GET"
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
}
|