@azure/arm-trafficmanager 5.0.0 → 6.0.0-alpha.20220131.1
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 +72 -81
- package/dist/index.js +1719 -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/samples-dev/endpointDeleteExternal.d.ts +2 -0
- package/dist-esm/samples-dev/endpointDeleteExternal.d.ts.map +1 -0
- package/dist-esm/samples-dev/endpointDeleteExternal.js +33 -0
- package/dist-esm/samples-dev/endpointDeleteExternal.js.map +1 -0
- package/dist-esm/samples-dev/endpointGetExternalWithGeoMapping.d.ts +2 -0
- package/dist-esm/samples-dev/endpointGetExternalWithGeoMapping.d.ts.map +1 -0
- package/dist-esm/samples-dev/endpointGetExternalWithGeoMapping.js +33 -0
- package/dist-esm/samples-dev/endpointGetExternalWithGeoMapping.js.map +1 -0
- package/dist-esm/samples-dev/endpointGetExternalWithLocation.d.ts +2 -0
- package/dist-esm/samples-dev/endpointGetExternalWithLocation.d.ts.map +1 -0
- package/dist-esm/samples-dev/endpointGetExternalWithLocation.js +33 -0
- package/dist-esm/samples-dev/endpointGetExternalWithLocation.js.map +1 -0
- package/dist-esm/samples-dev/endpointGetExternalWithSubnetMapping.d.ts +2 -0
- package/dist-esm/samples-dev/endpointGetExternalWithSubnetMapping.d.ts.map +1 -0
- package/dist-esm/samples-dev/endpointGetExternalWithSubnetMapping.js +33 -0
- package/dist-esm/samples-dev/endpointGetExternalWithSubnetMapping.js.map +1 -0
- package/dist-esm/samples-dev/endpointPatchExternalTarget.d.ts +2 -0
- package/dist-esm/samples-dev/endpointPatchExternalTarget.d.ts.map +1 -0
- package/dist-esm/samples-dev/endpointPatchExternalTarget.js +39 -0
- package/dist-esm/samples-dev/endpointPatchExternalTarget.js.map +1 -0
- package/dist-esm/samples-dev/endpointPutExternalWithCustomHeaders.d.ts +2 -0
- package/dist-esm/samples-dev/endpointPutExternalWithCustomHeaders.d.ts.map +1 -0
- package/dist-esm/samples-dev/endpointPutExternalWithCustomHeaders.js +44 -0
- package/dist-esm/samples-dev/endpointPutExternalWithCustomHeaders.js.map +1 -0
- package/dist-esm/samples-dev/endpointPutExternalWithGeoMapping.d.ts +2 -0
- package/dist-esm/samples-dev/endpointPutExternalWithGeoMapping.d.ts.map +1 -0
- package/dist-esm/samples-dev/endpointPutExternalWithGeoMapping.js +40 -0
- package/dist-esm/samples-dev/endpointPutExternalWithGeoMapping.js.map +1 -0
- package/dist-esm/samples-dev/endpointPutExternalWithLocation.d.ts +2 -0
- package/dist-esm/samples-dev/endpointPutExternalWithLocation.d.ts.map +1 -0
- package/dist-esm/samples-dev/endpointPutExternalWithLocation.js +40 -0
- package/dist-esm/samples-dev/endpointPutExternalWithLocation.js.map +1 -0
- package/dist-esm/samples-dev/endpointPutExternalWithSubnetMapping.d.ts +2 -0
- package/dist-esm/samples-dev/endpointPutExternalWithSubnetMapping.d.ts.map +1 -0
- package/dist-esm/samples-dev/endpointPutExternalWithSubnetMapping.js +43 -0
- package/dist-esm/samples-dev/endpointPutExternalWithSubnetMapping.js.map +1 -0
- package/dist-esm/samples-dev/geographicHierarchyGetDefault.d.ts +2 -0
- package/dist-esm/samples-dev/geographicHierarchyGetDefault.d.ts.map +1 -0
- package/dist-esm/samples-dev/geographicHierarchyGetDefault.js +29 -0
- package/dist-esm/samples-dev/geographicHierarchyGetDefault.js.map +1 -0
- package/dist-esm/samples-dev/heatMapGet.d.ts +2 -0
- package/dist-esm/samples-dev/heatMapGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/heatMapGet.js +31 -0
- package/dist-esm/samples-dev/heatMapGet.js.map +1 -0
- package/dist-esm/samples-dev/heatMapGetWithNullValues.d.ts +2 -0
- package/dist-esm/samples-dev/heatMapGetWithNullValues.d.ts.map +1 -0
- package/dist-esm/samples-dev/heatMapGetWithNullValues.js +31 -0
- package/dist-esm/samples-dev/heatMapGetWithNullValues.js.map +1 -0
- package/dist-esm/samples-dev/heatMapGetWithTopLeftBotRight.d.ts +2 -0
- package/dist-esm/samples-dev/heatMapGetWithTopLeftBotRight.d.ts.map +1 -0
- package/dist-esm/samples-dev/heatMapGetWithTopLeftBotRight.js +34 -0
- package/dist-esm/samples-dev/heatMapGetWithTopLeftBotRight.js.map +1 -0
- package/dist-esm/samples-dev/listBySubscription.d.ts +2 -0
- package/dist-esm/samples-dev/listBySubscription.d.ts.map +1 -0
- package/dist-esm/samples-dev/listBySubscription.js +43 -0
- package/dist-esm/samples-dev/listBySubscription.js.map +1 -0
- package/dist-esm/samples-dev/listProfilesByResourceGroup.d.ts +2 -0
- package/dist-esm/samples-dev/listProfilesByResourceGroup.d.ts.map +1 -0
- package/dist-esm/samples-dev/listProfilesByResourceGroup.js +44 -0
- package/dist-esm/samples-dev/listProfilesByResourceGroup.js.map +1 -0
- package/dist-esm/samples-dev/nameAvailabilityTestNameAvailablePost21.d.ts +2 -0
- package/dist-esm/samples-dev/nameAvailabilityTestNameAvailablePost21.d.ts.map +1 -0
- package/dist-esm/samples-dev/nameAvailabilityTestNameAvailablePost21.js +33 -0
- package/dist-esm/samples-dev/nameAvailabilityTestNameAvailablePost21.js.map +1 -0
- package/dist-esm/samples-dev/nameAvailabilityTestNameNotAvailablePost23.d.ts +2 -0
- package/dist-esm/samples-dev/nameAvailabilityTestNameNotAvailablePost23.d.ts.map +1 -0
- package/dist-esm/samples-dev/nameAvailabilityTestNameNotAvailablePost23.js +33 -0
- package/dist-esm/samples-dev/nameAvailabilityTestNameNotAvailablePost23.js.map +1 -0
- package/dist-esm/samples-dev/profileDelete.d.ts +2 -0
- package/dist-esm/samples-dev/profileDelete.d.ts.map +1 -0
- package/dist-esm/samples-dev/profileDelete.js +31 -0
- package/dist-esm/samples-dev/profileDelete.js.map +1 -0
- package/dist-esm/samples-dev/profileGetWithEndpoints.d.ts +2 -0
- package/dist-esm/samples-dev/profileGetWithEndpoints.d.ts.map +1 -0
- package/dist-esm/samples-dev/profileGetWithEndpoints.js +31 -0
- package/dist-esm/samples-dev/profileGetWithEndpoints.js.map +1 -0
- package/dist-esm/samples-dev/profileGetWithTrafficViewDisabled.d.ts +2 -0
- package/dist-esm/samples-dev/profileGetWithTrafficViewDisabled.d.ts.map +1 -0
- package/dist-esm/samples-dev/profileGetWithTrafficViewDisabled.js +31 -0
- package/dist-esm/samples-dev/profileGetWithTrafficViewDisabled.js.map +1 -0
- package/dist-esm/samples-dev/profileGetWithTrafficViewEnabled.d.ts +2 -0
- package/dist-esm/samples-dev/profileGetWithTrafficViewEnabled.d.ts.map +1 -0
- package/dist-esm/samples-dev/profileGetWithTrafficViewEnabled.js +31 -0
- package/dist-esm/samples-dev/profileGetWithTrafficViewEnabled.js.map +1 -0
- package/dist-esm/samples-dev/profilePatchMonitorConfig.d.ts +2 -0
- package/dist-esm/samples-dev/profilePatchMonitorConfig.d.ts.map +1 -0
- package/dist-esm/samples-dev/profilePatchMonitorConfig.js +45 -0
- package/dist-esm/samples-dev/profilePatchMonitorConfig.js.map +1 -0
- package/dist-esm/samples-dev/profilePutMultiValue.d.ts +2 -0
- package/dist-esm/samples-dev/profilePutMultiValue.d.ts.map +1 -0
- package/dist-esm/samples-dev/profilePutMultiValue.js +40 -0
- package/dist-esm/samples-dev/profilePutMultiValue.js.map +1 -0
- package/dist-esm/samples-dev/profilePutNoEndpoints.d.ts +2 -0
- package/dist-esm/samples-dev/profilePutNoEndpoints.d.ts.map +1 -0
- package/dist-esm/samples-dev/profilePutNoEndpoints.js +38 -0
- package/dist-esm/samples-dev/profilePutNoEndpoints.js.map +1 -0
- package/dist-esm/samples-dev/profilePutWithAliasing.d.ts +2 -0
- package/dist-esm/samples-dev/profilePutWithAliasing.d.ts.map +1 -0
- package/dist-esm/samples-dev/profilePutWithAliasing.js +58 -0
- package/dist-esm/samples-dev/profilePutWithAliasing.js.map +1 -0
- package/dist-esm/samples-dev/profilePutWithCustomHeaders.d.ts +2 -0
- package/dist-esm/samples-dev/profilePutWithCustomHeaders.d.ts.map +1 -0
- package/dist-esm/samples-dev/profilePutWithCustomHeaders.js +67 -0
- package/dist-esm/samples-dev/profilePutWithCustomHeaders.js.map +1 -0
- package/dist-esm/samples-dev/profilePutWithEndpoints.d.ts +2 -0
- package/dist-esm/samples-dev/profilePutWithEndpoints.d.ts.map +1 -0
- package/dist-esm/samples-dev/profilePutWithEndpoints.js +57 -0
- package/dist-esm/samples-dev/profilePutWithEndpoints.js.map +1 -0
- package/dist-esm/samples-dev/profilePutWithNestedEndpoints.d.ts +2 -0
- package/dist-esm/samples-dev/profilePutWithNestedEndpoints.d.ts.map +1 -0
- package/dist-esm/samples-dev/profilePutWithNestedEndpoints.js +69 -0
- package/dist-esm/samples-dev/profilePutWithNestedEndpoints.js.map +1 -0
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysDelete.d.ts +2 -0
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysDelete.d.ts.map +1 -0
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysDelete.js +29 -0
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysDelete.js.map +1 -0
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysGet.d.ts +2 -0
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysGet.d.ts.map +1 -0
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysGet.js +29 -0
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysGet.js.map +1 -0
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysPut.d.ts +2 -0
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysPut.d.ts.map +1 -0
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysPut.js +29 -0
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysPut.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/models/index.d.ts +474 -0
- package/dist-esm/src/models/index.d.ts.map +1 -0
- package/dist-esm/src/models/index.js +70 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.d.ts +26 -0
- package/dist-esm/src/models/mappers.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/mappers.js +370 -327
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.d.ts +17 -0
- package/dist-esm/src/models/parameters.d.ts.map +1 -0
- package/{esm → dist-esm/src}/models/parameters.js +88 -60
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/endpoints.d.ts +54 -0
- package/dist-esm/src/operations/endpoints.d.ts.map +1 -0
- package/dist-esm/src/operations/endpoints.js +186 -0
- package/dist-esm/src/operations/endpoints.js.map +1 -0
- package/dist-esm/src/operations/geographicHierarchies.d.ts +18 -0
- package/dist-esm/src/operations/geographicHierarchies.d.ts.map +1 -0
- package/dist-esm/src/operations/geographicHierarchies.js +46 -0
- package/dist-esm/src/operations/geographicHierarchies.js.map +1 -0
- package/dist-esm/src/operations/heatMap.d.ts +20 -0
- package/dist-esm/src/operations/heatMap.d.ts.map +1 -0
- package/dist-esm/src/operations/heatMap.js +58 -0
- package/dist-esm/src/operations/heatMap.js.map +1 -0
- package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
- package/dist-esm/src/operations/index.d.ts.map +1 -0
- package/{esm → dist-esm/src}/operations/index.js +3 -5
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/profiles.d.ts +80 -0
- package/dist-esm/src/operations/profiles.d.ts.map +1 -0
- package/dist-esm/src/operations/profiles.js +321 -0
- package/dist-esm/src/operations/profiles.js.map +1 -0
- package/dist-esm/src/operations/trafficManagerUserMetricsKeys.d.ts +28 -0
- package/dist-esm/src/operations/trafficManagerUserMetricsKeys.d.ts.map +1 -0
- package/dist-esm/src/operations/trafficManagerUserMetricsKeys.js +92 -0
- package/dist-esm/src/operations/trafficManagerUserMetricsKeys.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/endpoints.d.ts +46 -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/geographicHierarchies.d.ts +10 -0
- package/dist-esm/src/operationsInterfaces/geographicHierarchies.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/geographicHierarchies.js +9 -0
- package/dist-esm/src/operationsInterfaces/geographicHierarchies.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/heatMap.d.ts +12 -0
- package/dist-esm/src/operationsInterfaces/heatMap.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/heatMap.js +9 -0
- package/dist-esm/src/operationsInterfaces/heatMap.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
- package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +13 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/profiles.d.ts +56 -0
- package/dist-esm/src/operationsInterfaces/profiles.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/profiles.js +9 -0
- package/dist-esm/src/operationsInterfaces/profiles.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/trafficManagerUserMetricsKeys.d.ts +20 -0
- package/dist-esm/src/operationsInterfaces/trafficManagerUserMetricsKeys.d.ts.map +1 -0
- package/dist-esm/src/operationsInterfaces/trafficManagerUserMetricsKeys.js +9 -0
- package/dist-esm/src/operationsInterfaces/trafficManagerUserMetricsKeys.js.map +1 -0
- package/dist-esm/src/trafficManagerManagementClient.d.ts +23 -0
- package/dist-esm/src/trafficManagerManagementClient.d.ts.map +1 -0
- package/dist-esm/src/trafficManagerManagementClient.js +56 -0
- package/dist-esm/src/trafficManagerManagementClient.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 +80 -22
- package/review/arm-trafficmanager.api.md +486 -0
- package/rollup.config.js +181 -30
- package/src/index.ts +12 -0
- package/src/models/index.ts +438 -740
- package/src/models/mappers.ts +372 -324
- package/src/models/parameters.ts +111 -60
- package/src/operations/endpoints.ts +122 -208
- package/src/operations/geographicHierarchies.ts +32 -43
- package/src/operations/heatMap.ts +41 -57
- package/src/operations/index.ts +3 -5
- package/src/operations/profiles.ts +244 -295
- package/src/operations/trafficManagerUserMetricsKeys.ts +59 -108
- package/src/operationsInterfaces/endpoints.ts +91 -0
- package/src/operationsInterfaces/geographicHierarchies.ts +23 -0
- package/src/operationsInterfaces/heatMap.ts +24 -0
- package/src/operationsInterfaces/index.ts +13 -0
- package/src/operationsInterfaces/profiles.ts +106 -0
- package/src/operationsInterfaces/trafficManagerUserMetricsKeys.ts +41 -0
- package/src/trafficManagerManagementClient.ts +85 -38
- package/tsconfig.json +5 -4
- package/types/arm-trafficmanager.d.ts +708 -0
- package/types/tsdoc-metadata.json +11 -0
- package/dist/arm-trafficmanager.js +0 -1802
- package/dist/arm-trafficmanager.js.map +0 -1
- package/dist/arm-trafficmanager.min.js +0 -1
- package/dist/arm-trafficmanager.min.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/geographicHierarchiesMappers.d.ts +0 -2
- package/esm/models/geographicHierarchiesMappers.d.ts.map +0 -1
- package/esm/models/geographicHierarchiesMappers.js +0 -9
- package/esm/models/geographicHierarchiesMappers.js.map +0 -1
- package/esm/models/heatMapMappers.d.ts +0 -2
- package/esm/models/heatMapMappers.d.ts.map +0 -1
- package/esm/models/heatMapMappers.js +0 -9
- package/esm/models/heatMapMappers.js.map +0 -1
- package/esm/models/index.d.ts +0 -789
- 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/mappers.d.ts +0 -26
- package/esm/models/mappers.d.ts.map +0 -1
- package/esm/models/mappers.js.map +0 -1
- package/esm/models/parameters.d.ts +0 -12
- package/esm/models/parameters.d.ts.map +0 -1
- package/esm/models/parameters.js.map +0 -1
- package/esm/models/profilesMappers.d.ts +0 -2
- package/esm/models/profilesMappers.d.ts.map +0 -1
- package/esm/models/profilesMappers.js +0 -9
- package/esm/models/profilesMappers.js.map +0 -1
- package/esm/models/trafficManagerUserMetricsKeysMappers.d.ts +0 -2
- package/esm/models/trafficManagerUserMetricsKeysMappers.d.ts.map +0 -1
- package/esm/models/trafficManagerUserMetricsKeysMappers.js +0 -9
- package/esm/models/trafficManagerUserMetricsKeysMappers.js.map +0 -1
- package/esm/operations/endpoints.d.ts +0 -139
- package/esm/operations/endpoints.d.ts.map +0 -1
- package/esm/operations/endpoints.js +0 -182
- package/esm/operations/endpoints.js.map +0 -1
- package/esm/operations/geographicHierarchies.d.ts +0 -28
- package/esm/operations/geographicHierarchies.d.ts.map +0 -1
- package/esm/operations/geographicHierarchies.js +0 -51
- package/esm/operations/geographicHierarchies.js.map +0 -1
- package/esm/operations/heatMap.d.ts +0 -34
- package/esm/operations/heatMap.d.ts.map +0 -1
- package/esm/operations/heatMap.js +0 -61
- package/esm/operations/heatMap.js.map +0 -1
- package/esm/operations/index.d.ts.map +0 -1
- package/esm/operations/index.js.map +0 -1
- package/esm/operations/profiles.d.ts +0 -166
- package/esm/operations/profiles.d.ts.map +0 -1
- package/esm/operations/profiles.js +0 -251
- package/esm/operations/profiles.js.map +0 -1
- package/esm/operations/trafficManagerUserMetricsKeys.d.ts +0 -58
- package/esm/operations/trafficManagerUserMetricsKeys.d.ts.map +0 -1
- package/esm/operations/trafficManagerUserMetricsKeys.js +0 -108
- package/esm/operations/trafficManagerUserMetricsKeys.js.map +0 -1
- package/esm/trafficManagerManagementClient.d.ts +0 -23
- package/esm/trafficManagerManagementClient.d.ts.map +0 -1
- package/esm/trafficManagerManagementClient.js +0 -38
- package/esm/trafficManagerManagementClient.js.map +0 -1
- package/esm/trafficManagerManagementClientContext.d.ts +0 -17
- package/esm/trafficManagerManagementClientContext.d.ts.map +0 -1
- package/esm/trafficManagerManagementClientContext.js +0 -57
- package/esm/trafficManagerManagementClientContext.js.map +0 -1
- package/src/models/endpointsMappers.ts +0 -31
- package/src/models/geographicHierarchiesMappers.ts +0 -30
- package/src/models/heatMapMappers.ts +0 -30
- package/src/models/profilesMappers.ts +0 -34
- package/src/models/trafficManagerUserMetricsKeysMappers.ts +0 -31
- package/src/trafficManagerManagementClientContext.ts +0 -63
package/dist/index.js
ADDED
|
@@ -0,0 +1,1719 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var coreClient = require('@azure/core-client');
|
|
6
|
+
var tslib = require('tslib');
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
* Copyright (c) Microsoft Corporation.
|
|
10
|
+
* Licensed under the MIT License.
|
|
11
|
+
*
|
|
12
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
13
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
14
|
+
*/
|
|
15
|
+
(function (KnownEndpointStatus) {
|
|
16
|
+
KnownEndpointStatus["Enabled"] = "Enabled";
|
|
17
|
+
KnownEndpointStatus["Disabled"] = "Disabled";
|
|
18
|
+
})(exports.KnownEndpointStatus || (exports.KnownEndpointStatus = {}));
|
|
19
|
+
(function (KnownEndpointMonitorStatus) {
|
|
20
|
+
KnownEndpointMonitorStatus["CheckingEndpoint"] = "CheckingEndpoint";
|
|
21
|
+
KnownEndpointMonitorStatus["Online"] = "Online";
|
|
22
|
+
KnownEndpointMonitorStatus["Degraded"] = "Degraded";
|
|
23
|
+
KnownEndpointMonitorStatus["Disabled"] = "Disabled";
|
|
24
|
+
KnownEndpointMonitorStatus["Inactive"] = "Inactive";
|
|
25
|
+
KnownEndpointMonitorStatus["Stopped"] = "Stopped";
|
|
26
|
+
})(exports.KnownEndpointMonitorStatus || (exports.KnownEndpointMonitorStatus = {}));
|
|
27
|
+
(function (KnownProfileStatus) {
|
|
28
|
+
KnownProfileStatus["Enabled"] = "Enabled";
|
|
29
|
+
KnownProfileStatus["Disabled"] = "Disabled";
|
|
30
|
+
})(exports.KnownProfileStatus || (exports.KnownProfileStatus = {}));
|
|
31
|
+
(function (KnownTrafficRoutingMethod) {
|
|
32
|
+
KnownTrafficRoutingMethod["Performance"] = "Performance";
|
|
33
|
+
KnownTrafficRoutingMethod["Priority"] = "Priority";
|
|
34
|
+
KnownTrafficRoutingMethod["Weighted"] = "Weighted";
|
|
35
|
+
KnownTrafficRoutingMethod["Geographic"] = "Geographic";
|
|
36
|
+
KnownTrafficRoutingMethod["MultiValue"] = "MultiValue";
|
|
37
|
+
KnownTrafficRoutingMethod["Subnet"] = "Subnet";
|
|
38
|
+
})(exports.KnownTrafficRoutingMethod || (exports.KnownTrafficRoutingMethod = {}));
|
|
39
|
+
(function (KnownProfileMonitorStatus) {
|
|
40
|
+
KnownProfileMonitorStatus["CheckingEndpoints"] = "CheckingEndpoints";
|
|
41
|
+
KnownProfileMonitorStatus["Online"] = "Online";
|
|
42
|
+
KnownProfileMonitorStatus["Degraded"] = "Degraded";
|
|
43
|
+
KnownProfileMonitorStatus["Disabled"] = "Disabled";
|
|
44
|
+
KnownProfileMonitorStatus["Inactive"] = "Inactive";
|
|
45
|
+
})(exports.KnownProfileMonitorStatus || (exports.KnownProfileMonitorStatus = {}));
|
|
46
|
+
(function (KnownMonitorProtocol) {
|
|
47
|
+
KnownMonitorProtocol["Http"] = "HTTP";
|
|
48
|
+
KnownMonitorProtocol["Https"] = "HTTPS";
|
|
49
|
+
KnownMonitorProtocol["TCP"] = "TCP";
|
|
50
|
+
})(exports.KnownMonitorProtocol || (exports.KnownMonitorProtocol = {}));
|
|
51
|
+
(function (KnownTrafficViewEnrollmentStatus) {
|
|
52
|
+
KnownTrafficViewEnrollmentStatus["Enabled"] = "Enabled";
|
|
53
|
+
KnownTrafficViewEnrollmentStatus["Disabled"] = "Disabled";
|
|
54
|
+
})(exports.KnownTrafficViewEnrollmentStatus || (exports.KnownTrafficViewEnrollmentStatus = {}));
|
|
55
|
+
(function (KnownAllowedEndpointRecordType) {
|
|
56
|
+
KnownAllowedEndpointRecordType["DomainName"] = "DomainName";
|
|
57
|
+
KnownAllowedEndpointRecordType["IPv4Address"] = "IPv4Address";
|
|
58
|
+
KnownAllowedEndpointRecordType["IPv6Address"] = "IPv6Address";
|
|
59
|
+
KnownAllowedEndpointRecordType["Any"] = "Any";
|
|
60
|
+
})(exports.KnownAllowedEndpointRecordType || (exports.KnownAllowedEndpointRecordType = {}));
|
|
61
|
+
|
|
62
|
+
/*
|
|
63
|
+
* Copyright (c) Microsoft Corporation.
|
|
64
|
+
* Licensed under the MIT License.
|
|
65
|
+
*
|
|
66
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
67
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
68
|
+
*/
|
|
69
|
+
const EndpointPropertiesSubnetsItem = {
|
|
70
|
+
type: {
|
|
71
|
+
name: "Composite",
|
|
72
|
+
className: "EndpointPropertiesSubnetsItem",
|
|
73
|
+
modelProperties: {
|
|
74
|
+
first: {
|
|
75
|
+
serializedName: "first",
|
|
76
|
+
type: {
|
|
77
|
+
name: "String"
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
last: {
|
|
81
|
+
serializedName: "last",
|
|
82
|
+
type: {
|
|
83
|
+
name: "String"
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
scope: {
|
|
87
|
+
serializedName: "scope",
|
|
88
|
+
type: {
|
|
89
|
+
name: "Number"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
const EndpointPropertiesCustomHeadersItem = {
|
|
96
|
+
type: {
|
|
97
|
+
name: "Composite",
|
|
98
|
+
className: "EndpointPropertiesCustomHeadersItem",
|
|
99
|
+
modelProperties: {
|
|
100
|
+
name: {
|
|
101
|
+
serializedName: "name",
|
|
102
|
+
type: {
|
|
103
|
+
name: "String"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
value: {
|
|
107
|
+
serializedName: "value",
|
|
108
|
+
type: {
|
|
109
|
+
name: "String"
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
const Resource = {
|
|
116
|
+
type: {
|
|
117
|
+
name: "Composite",
|
|
118
|
+
className: "Resource",
|
|
119
|
+
modelProperties: {
|
|
120
|
+
id: {
|
|
121
|
+
serializedName: "id",
|
|
122
|
+
type: {
|
|
123
|
+
name: "String"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
name: {
|
|
127
|
+
serializedName: "name",
|
|
128
|
+
type: {
|
|
129
|
+
name: "String"
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
type: {
|
|
133
|
+
serializedName: "type",
|
|
134
|
+
type: {
|
|
135
|
+
name: "String"
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
};
|
|
141
|
+
const CloudError = {
|
|
142
|
+
type: {
|
|
143
|
+
name: "Composite",
|
|
144
|
+
className: "CloudError",
|
|
145
|
+
modelProperties: {
|
|
146
|
+
error: {
|
|
147
|
+
serializedName: "error",
|
|
148
|
+
type: {
|
|
149
|
+
name: "Composite",
|
|
150
|
+
className: "CloudErrorBody"
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
};
|
|
156
|
+
const CloudErrorBody = {
|
|
157
|
+
type: {
|
|
158
|
+
name: "Composite",
|
|
159
|
+
className: "CloudErrorBody",
|
|
160
|
+
modelProperties: {
|
|
161
|
+
code: {
|
|
162
|
+
serializedName: "code",
|
|
163
|
+
type: {
|
|
164
|
+
name: "String"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
message: {
|
|
168
|
+
serializedName: "message",
|
|
169
|
+
type: {
|
|
170
|
+
name: "String"
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
target: {
|
|
174
|
+
serializedName: "target",
|
|
175
|
+
type: {
|
|
176
|
+
name: "String"
|
|
177
|
+
}
|
|
178
|
+
},
|
|
179
|
+
details: {
|
|
180
|
+
serializedName: "details",
|
|
181
|
+
type: {
|
|
182
|
+
name: "Sequence",
|
|
183
|
+
element: {
|
|
184
|
+
type: {
|
|
185
|
+
name: "Composite",
|
|
186
|
+
className: "CloudErrorBody"
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
};
|
|
194
|
+
const DeleteOperationResult = {
|
|
195
|
+
type: {
|
|
196
|
+
name: "Composite",
|
|
197
|
+
className: "DeleteOperationResult",
|
|
198
|
+
modelProperties: {
|
|
199
|
+
operationResult: {
|
|
200
|
+
serializedName: "boolean",
|
|
201
|
+
readOnly: true,
|
|
202
|
+
type: {
|
|
203
|
+
name: "Boolean"
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
const CheckTrafficManagerRelativeDnsNameAvailabilityParameters = {
|
|
210
|
+
type: {
|
|
211
|
+
name: "Composite",
|
|
212
|
+
className: "CheckTrafficManagerRelativeDnsNameAvailabilityParameters",
|
|
213
|
+
modelProperties: {
|
|
214
|
+
name: {
|
|
215
|
+
serializedName: "name",
|
|
216
|
+
type: {
|
|
217
|
+
name: "String"
|
|
218
|
+
}
|
|
219
|
+
},
|
|
220
|
+
type: {
|
|
221
|
+
serializedName: "type",
|
|
222
|
+
type: {
|
|
223
|
+
name: "String"
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
};
|
|
229
|
+
const TrafficManagerNameAvailability = {
|
|
230
|
+
type: {
|
|
231
|
+
name: "Composite",
|
|
232
|
+
className: "TrafficManagerNameAvailability",
|
|
233
|
+
modelProperties: {
|
|
234
|
+
name: {
|
|
235
|
+
serializedName: "name",
|
|
236
|
+
type: {
|
|
237
|
+
name: "String"
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
type: {
|
|
241
|
+
serializedName: "type",
|
|
242
|
+
type: {
|
|
243
|
+
name: "String"
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
nameAvailable: {
|
|
247
|
+
serializedName: "nameAvailable",
|
|
248
|
+
type: {
|
|
249
|
+
name: "Boolean"
|
|
250
|
+
}
|
|
251
|
+
},
|
|
252
|
+
reason: {
|
|
253
|
+
serializedName: "reason",
|
|
254
|
+
type: {
|
|
255
|
+
name: "String"
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
message: {
|
|
259
|
+
serializedName: "message",
|
|
260
|
+
type: {
|
|
261
|
+
name: "String"
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
};
|
|
267
|
+
const ProfileListResult = {
|
|
268
|
+
type: {
|
|
269
|
+
name: "Composite",
|
|
270
|
+
className: "ProfileListResult",
|
|
271
|
+
modelProperties: {
|
|
272
|
+
value: {
|
|
273
|
+
serializedName: "value",
|
|
274
|
+
type: {
|
|
275
|
+
name: "Sequence",
|
|
276
|
+
element: {
|
|
277
|
+
type: {
|
|
278
|
+
name: "Composite",
|
|
279
|
+
className: "Profile"
|
|
280
|
+
}
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
const DnsConfig = {
|
|
288
|
+
type: {
|
|
289
|
+
name: "Composite",
|
|
290
|
+
className: "DnsConfig",
|
|
291
|
+
modelProperties: {
|
|
292
|
+
relativeName: {
|
|
293
|
+
serializedName: "relativeName",
|
|
294
|
+
type: {
|
|
295
|
+
name: "String"
|
|
296
|
+
}
|
|
297
|
+
},
|
|
298
|
+
fqdn: {
|
|
299
|
+
serializedName: "fqdn",
|
|
300
|
+
readOnly: true,
|
|
301
|
+
type: {
|
|
302
|
+
name: "String"
|
|
303
|
+
}
|
|
304
|
+
},
|
|
305
|
+
ttl: {
|
|
306
|
+
serializedName: "ttl",
|
|
307
|
+
type: {
|
|
308
|
+
name: "Number"
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
};
|
|
314
|
+
const MonitorConfig = {
|
|
315
|
+
type: {
|
|
316
|
+
name: "Composite",
|
|
317
|
+
className: "MonitorConfig",
|
|
318
|
+
modelProperties: {
|
|
319
|
+
profileMonitorStatus: {
|
|
320
|
+
serializedName: "profileMonitorStatus",
|
|
321
|
+
type: {
|
|
322
|
+
name: "String"
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
protocol: {
|
|
326
|
+
serializedName: "protocol",
|
|
327
|
+
type: {
|
|
328
|
+
name: "String"
|
|
329
|
+
}
|
|
330
|
+
},
|
|
331
|
+
port: {
|
|
332
|
+
serializedName: "port",
|
|
333
|
+
type: {
|
|
334
|
+
name: "Number"
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
path: {
|
|
338
|
+
serializedName: "path",
|
|
339
|
+
type: {
|
|
340
|
+
name: "String"
|
|
341
|
+
}
|
|
342
|
+
},
|
|
343
|
+
intervalInSeconds: {
|
|
344
|
+
serializedName: "intervalInSeconds",
|
|
345
|
+
type: {
|
|
346
|
+
name: "Number"
|
|
347
|
+
}
|
|
348
|
+
},
|
|
349
|
+
timeoutInSeconds: {
|
|
350
|
+
serializedName: "timeoutInSeconds",
|
|
351
|
+
type: {
|
|
352
|
+
name: "Number"
|
|
353
|
+
}
|
|
354
|
+
},
|
|
355
|
+
toleratedNumberOfFailures: {
|
|
356
|
+
serializedName: "toleratedNumberOfFailures",
|
|
357
|
+
type: {
|
|
358
|
+
name: "Number"
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
customHeaders: {
|
|
362
|
+
serializedName: "customHeaders",
|
|
363
|
+
type: {
|
|
364
|
+
name: "Sequence",
|
|
365
|
+
element: {
|
|
366
|
+
type: {
|
|
367
|
+
name: "Composite",
|
|
368
|
+
className: "MonitorConfigCustomHeadersItem"
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
expectedStatusCodeRanges: {
|
|
374
|
+
serializedName: "expectedStatusCodeRanges",
|
|
375
|
+
type: {
|
|
376
|
+
name: "Sequence",
|
|
377
|
+
element: {
|
|
378
|
+
type: {
|
|
379
|
+
name: "Composite",
|
|
380
|
+
className: "MonitorConfigExpectedStatusCodeRangesItem"
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
}
|
|
384
|
+
}
|
|
385
|
+
}
|
|
386
|
+
}
|
|
387
|
+
};
|
|
388
|
+
const MonitorConfigCustomHeadersItem = {
|
|
389
|
+
type: {
|
|
390
|
+
name: "Composite",
|
|
391
|
+
className: "MonitorConfigCustomHeadersItem",
|
|
392
|
+
modelProperties: {
|
|
393
|
+
name: {
|
|
394
|
+
serializedName: "name",
|
|
395
|
+
type: {
|
|
396
|
+
name: "String"
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
value: {
|
|
400
|
+
serializedName: "value",
|
|
401
|
+
type: {
|
|
402
|
+
name: "String"
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
};
|
|
408
|
+
const MonitorConfigExpectedStatusCodeRangesItem = {
|
|
409
|
+
type: {
|
|
410
|
+
name: "Composite",
|
|
411
|
+
className: "MonitorConfigExpectedStatusCodeRangesItem",
|
|
412
|
+
modelProperties: {
|
|
413
|
+
min: {
|
|
414
|
+
serializedName: "min",
|
|
415
|
+
type: {
|
|
416
|
+
name: "Number"
|
|
417
|
+
}
|
|
418
|
+
},
|
|
419
|
+
max: {
|
|
420
|
+
serializedName: "max",
|
|
421
|
+
type: {
|
|
422
|
+
name: "Number"
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
};
|
|
428
|
+
const Region = {
|
|
429
|
+
type: {
|
|
430
|
+
name: "Composite",
|
|
431
|
+
className: "Region",
|
|
432
|
+
modelProperties: {
|
|
433
|
+
code: {
|
|
434
|
+
serializedName: "code",
|
|
435
|
+
type: {
|
|
436
|
+
name: "String"
|
|
437
|
+
}
|
|
438
|
+
},
|
|
439
|
+
name: {
|
|
440
|
+
serializedName: "name",
|
|
441
|
+
type: {
|
|
442
|
+
name: "String"
|
|
443
|
+
}
|
|
444
|
+
},
|
|
445
|
+
regions: {
|
|
446
|
+
serializedName: "regions",
|
|
447
|
+
type: {
|
|
448
|
+
name: "Sequence",
|
|
449
|
+
element: {
|
|
450
|
+
type: {
|
|
451
|
+
name: "Composite",
|
|
452
|
+
className: "Region"
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
};
|
|
460
|
+
const HeatMapEndpoint = {
|
|
461
|
+
type: {
|
|
462
|
+
name: "Composite",
|
|
463
|
+
className: "HeatMapEndpoint",
|
|
464
|
+
modelProperties: {
|
|
465
|
+
resourceId: {
|
|
466
|
+
serializedName: "resourceId",
|
|
467
|
+
type: {
|
|
468
|
+
name: "String"
|
|
469
|
+
}
|
|
470
|
+
},
|
|
471
|
+
endpointId: {
|
|
472
|
+
serializedName: "endpointId",
|
|
473
|
+
type: {
|
|
474
|
+
name: "Number"
|
|
475
|
+
}
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
};
|
|
480
|
+
const TrafficFlow = {
|
|
481
|
+
type: {
|
|
482
|
+
name: "Composite",
|
|
483
|
+
className: "TrafficFlow",
|
|
484
|
+
modelProperties: {
|
|
485
|
+
sourceIp: {
|
|
486
|
+
serializedName: "sourceIp",
|
|
487
|
+
type: {
|
|
488
|
+
name: "String"
|
|
489
|
+
}
|
|
490
|
+
},
|
|
491
|
+
latitude: {
|
|
492
|
+
serializedName: "latitude",
|
|
493
|
+
type: {
|
|
494
|
+
name: "Number"
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
longitude: {
|
|
498
|
+
serializedName: "longitude",
|
|
499
|
+
type: {
|
|
500
|
+
name: "Number"
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
queryExperiences: {
|
|
504
|
+
serializedName: "queryExperiences",
|
|
505
|
+
type: {
|
|
506
|
+
name: "Sequence",
|
|
507
|
+
element: {
|
|
508
|
+
type: {
|
|
509
|
+
name: "Composite",
|
|
510
|
+
className: "QueryExperience"
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
};
|
|
518
|
+
const QueryExperience = {
|
|
519
|
+
type: {
|
|
520
|
+
name: "Composite",
|
|
521
|
+
className: "QueryExperience",
|
|
522
|
+
modelProperties: {
|
|
523
|
+
endpointId: {
|
|
524
|
+
serializedName: "endpointId",
|
|
525
|
+
required: true,
|
|
526
|
+
type: {
|
|
527
|
+
name: "Number"
|
|
528
|
+
}
|
|
529
|
+
},
|
|
530
|
+
queryCount: {
|
|
531
|
+
serializedName: "queryCount",
|
|
532
|
+
required: true,
|
|
533
|
+
type: {
|
|
534
|
+
name: "Number"
|
|
535
|
+
}
|
|
536
|
+
},
|
|
537
|
+
latency: {
|
|
538
|
+
serializedName: "latency",
|
|
539
|
+
type: {
|
|
540
|
+
name: "Number"
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
};
|
|
546
|
+
const ProxyResource = {
|
|
547
|
+
type: {
|
|
548
|
+
name: "Composite",
|
|
549
|
+
className: "ProxyResource",
|
|
550
|
+
modelProperties: Object.assign({}, Resource.type.modelProperties)
|
|
551
|
+
}
|
|
552
|
+
};
|
|
553
|
+
const TrackedResource = {
|
|
554
|
+
type: {
|
|
555
|
+
name: "Composite",
|
|
556
|
+
className: "TrackedResource",
|
|
557
|
+
modelProperties: Object.assign(Object.assign({}, Resource.type.modelProperties), { tags: {
|
|
558
|
+
serializedName: "tags",
|
|
559
|
+
type: {
|
|
560
|
+
name: "Dictionary",
|
|
561
|
+
value: { type: { name: "String" } }
|
|
562
|
+
}
|
|
563
|
+
}, location: {
|
|
564
|
+
serializedName: "location",
|
|
565
|
+
type: {
|
|
566
|
+
name: "String"
|
|
567
|
+
}
|
|
568
|
+
} })
|
|
569
|
+
}
|
|
570
|
+
};
|
|
571
|
+
const Endpoint = {
|
|
572
|
+
type: {
|
|
573
|
+
name: "Composite",
|
|
574
|
+
className: "Endpoint",
|
|
575
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { targetResourceId: {
|
|
576
|
+
serializedName: "properties.targetResourceId",
|
|
577
|
+
type: {
|
|
578
|
+
name: "String"
|
|
579
|
+
}
|
|
580
|
+
}, target: {
|
|
581
|
+
serializedName: "properties.target",
|
|
582
|
+
type: {
|
|
583
|
+
name: "String"
|
|
584
|
+
}
|
|
585
|
+
}, endpointStatus: {
|
|
586
|
+
serializedName: "properties.endpointStatus",
|
|
587
|
+
type: {
|
|
588
|
+
name: "String"
|
|
589
|
+
}
|
|
590
|
+
}, weight: {
|
|
591
|
+
serializedName: "properties.weight",
|
|
592
|
+
type: {
|
|
593
|
+
name: "Number"
|
|
594
|
+
}
|
|
595
|
+
}, priority: {
|
|
596
|
+
serializedName: "properties.priority",
|
|
597
|
+
type: {
|
|
598
|
+
name: "Number"
|
|
599
|
+
}
|
|
600
|
+
}, endpointLocation: {
|
|
601
|
+
serializedName: "properties.endpointLocation",
|
|
602
|
+
type: {
|
|
603
|
+
name: "String"
|
|
604
|
+
}
|
|
605
|
+
}, endpointMonitorStatus: {
|
|
606
|
+
serializedName: "properties.endpointMonitorStatus",
|
|
607
|
+
type: {
|
|
608
|
+
name: "String"
|
|
609
|
+
}
|
|
610
|
+
}, minChildEndpoints: {
|
|
611
|
+
serializedName: "properties.minChildEndpoints",
|
|
612
|
+
type: {
|
|
613
|
+
name: "Number"
|
|
614
|
+
}
|
|
615
|
+
}, minChildEndpointsIPv4: {
|
|
616
|
+
serializedName: "properties.minChildEndpointsIPv4",
|
|
617
|
+
type: {
|
|
618
|
+
name: "Number"
|
|
619
|
+
}
|
|
620
|
+
}, minChildEndpointsIPv6: {
|
|
621
|
+
serializedName: "properties.minChildEndpointsIPv6",
|
|
622
|
+
type: {
|
|
623
|
+
name: "Number"
|
|
624
|
+
}
|
|
625
|
+
}, geoMapping: {
|
|
626
|
+
serializedName: "properties.geoMapping",
|
|
627
|
+
type: {
|
|
628
|
+
name: "Sequence",
|
|
629
|
+
element: {
|
|
630
|
+
type: {
|
|
631
|
+
name: "String"
|
|
632
|
+
}
|
|
633
|
+
}
|
|
634
|
+
}
|
|
635
|
+
}, subnets: {
|
|
636
|
+
serializedName: "properties.subnets",
|
|
637
|
+
type: {
|
|
638
|
+
name: "Sequence",
|
|
639
|
+
element: {
|
|
640
|
+
type: {
|
|
641
|
+
name: "Composite",
|
|
642
|
+
className: "EndpointPropertiesSubnetsItem"
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
}, customHeaders: {
|
|
647
|
+
serializedName: "properties.customHeaders",
|
|
648
|
+
type: {
|
|
649
|
+
name: "Sequence",
|
|
650
|
+
element: {
|
|
651
|
+
type: {
|
|
652
|
+
name: "Composite",
|
|
653
|
+
className: "EndpointPropertiesCustomHeadersItem"
|
|
654
|
+
}
|
|
655
|
+
}
|
|
656
|
+
}
|
|
657
|
+
} })
|
|
658
|
+
}
|
|
659
|
+
};
|
|
660
|
+
const TrafficManagerGeographicHierarchy = {
|
|
661
|
+
type: {
|
|
662
|
+
name: "Composite",
|
|
663
|
+
className: "TrafficManagerGeographicHierarchy",
|
|
664
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { geographicHierarchy: {
|
|
665
|
+
serializedName: "properties.geographicHierarchy",
|
|
666
|
+
type: {
|
|
667
|
+
name: "Composite",
|
|
668
|
+
className: "Region"
|
|
669
|
+
}
|
|
670
|
+
} })
|
|
671
|
+
}
|
|
672
|
+
};
|
|
673
|
+
const HeatMapModel = {
|
|
674
|
+
type: {
|
|
675
|
+
name: "Composite",
|
|
676
|
+
className: "HeatMapModel",
|
|
677
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { startTime: {
|
|
678
|
+
serializedName: "properties.startTime",
|
|
679
|
+
type: {
|
|
680
|
+
name: "DateTime"
|
|
681
|
+
}
|
|
682
|
+
}, endTime: {
|
|
683
|
+
serializedName: "properties.endTime",
|
|
684
|
+
type: {
|
|
685
|
+
name: "DateTime"
|
|
686
|
+
}
|
|
687
|
+
}, endpoints: {
|
|
688
|
+
serializedName: "properties.endpoints",
|
|
689
|
+
type: {
|
|
690
|
+
name: "Sequence",
|
|
691
|
+
element: {
|
|
692
|
+
type: {
|
|
693
|
+
name: "Composite",
|
|
694
|
+
className: "HeatMapEndpoint"
|
|
695
|
+
}
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
}, trafficFlows: {
|
|
699
|
+
serializedName: "properties.trafficFlows",
|
|
700
|
+
type: {
|
|
701
|
+
name: "Sequence",
|
|
702
|
+
element: {
|
|
703
|
+
type: {
|
|
704
|
+
name: "Composite",
|
|
705
|
+
className: "TrafficFlow"
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
}
|
|
709
|
+
} })
|
|
710
|
+
}
|
|
711
|
+
};
|
|
712
|
+
const UserMetricsModel = {
|
|
713
|
+
type: {
|
|
714
|
+
name: "Composite",
|
|
715
|
+
className: "UserMetricsModel",
|
|
716
|
+
modelProperties: Object.assign(Object.assign({}, ProxyResource.type.modelProperties), { key: {
|
|
717
|
+
serializedName: "properties.key",
|
|
718
|
+
type: {
|
|
719
|
+
name: "String"
|
|
720
|
+
}
|
|
721
|
+
} })
|
|
722
|
+
}
|
|
723
|
+
};
|
|
724
|
+
const Profile = {
|
|
725
|
+
type: {
|
|
726
|
+
name: "Composite",
|
|
727
|
+
className: "Profile",
|
|
728
|
+
modelProperties: Object.assign(Object.assign({}, TrackedResource.type.modelProperties), { profileStatus: {
|
|
729
|
+
serializedName: "properties.profileStatus",
|
|
730
|
+
type: {
|
|
731
|
+
name: "String"
|
|
732
|
+
}
|
|
733
|
+
}, trafficRoutingMethod: {
|
|
734
|
+
serializedName: "properties.trafficRoutingMethod",
|
|
735
|
+
type: {
|
|
736
|
+
name: "String"
|
|
737
|
+
}
|
|
738
|
+
}, dnsConfig: {
|
|
739
|
+
serializedName: "properties.dnsConfig",
|
|
740
|
+
type: {
|
|
741
|
+
name: "Composite",
|
|
742
|
+
className: "DnsConfig"
|
|
743
|
+
}
|
|
744
|
+
}, monitorConfig: {
|
|
745
|
+
serializedName: "properties.monitorConfig",
|
|
746
|
+
type: {
|
|
747
|
+
name: "Composite",
|
|
748
|
+
className: "MonitorConfig"
|
|
749
|
+
}
|
|
750
|
+
}, endpoints: {
|
|
751
|
+
serializedName: "properties.endpoints",
|
|
752
|
+
type: {
|
|
753
|
+
name: "Sequence",
|
|
754
|
+
element: {
|
|
755
|
+
type: {
|
|
756
|
+
name: "Composite",
|
|
757
|
+
className: "Endpoint"
|
|
758
|
+
}
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
}, trafficViewEnrollmentStatus: {
|
|
762
|
+
serializedName: "properties.trafficViewEnrollmentStatus",
|
|
763
|
+
type: {
|
|
764
|
+
name: "String"
|
|
765
|
+
}
|
|
766
|
+
}, allowedEndpointRecordTypes: {
|
|
767
|
+
serializedName: "properties.allowedEndpointRecordTypes",
|
|
768
|
+
type: {
|
|
769
|
+
name: "Sequence",
|
|
770
|
+
element: {
|
|
771
|
+
type: {
|
|
772
|
+
name: "String"
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
}, maxReturn: {
|
|
777
|
+
serializedName: "properties.maxReturn",
|
|
778
|
+
type: {
|
|
779
|
+
name: "Number"
|
|
780
|
+
}
|
|
781
|
+
} })
|
|
782
|
+
}
|
|
783
|
+
};
|
|
784
|
+
|
|
785
|
+
var Mappers = /*#__PURE__*/Object.freeze({
|
|
786
|
+
__proto__: null,
|
|
787
|
+
EndpointPropertiesSubnetsItem: EndpointPropertiesSubnetsItem,
|
|
788
|
+
EndpointPropertiesCustomHeadersItem: EndpointPropertiesCustomHeadersItem,
|
|
789
|
+
Resource: Resource,
|
|
790
|
+
CloudError: CloudError,
|
|
791
|
+
CloudErrorBody: CloudErrorBody,
|
|
792
|
+
DeleteOperationResult: DeleteOperationResult,
|
|
793
|
+
CheckTrafficManagerRelativeDnsNameAvailabilityParameters: CheckTrafficManagerRelativeDnsNameAvailabilityParameters,
|
|
794
|
+
TrafficManagerNameAvailability: TrafficManagerNameAvailability,
|
|
795
|
+
ProfileListResult: ProfileListResult,
|
|
796
|
+
DnsConfig: DnsConfig,
|
|
797
|
+
MonitorConfig: MonitorConfig,
|
|
798
|
+
MonitorConfigCustomHeadersItem: MonitorConfigCustomHeadersItem,
|
|
799
|
+
MonitorConfigExpectedStatusCodeRangesItem: MonitorConfigExpectedStatusCodeRangesItem,
|
|
800
|
+
Region: Region,
|
|
801
|
+
HeatMapEndpoint: HeatMapEndpoint,
|
|
802
|
+
TrafficFlow: TrafficFlow,
|
|
803
|
+
QueryExperience: QueryExperience,
|
|
804
|
+
ProxyResource: ProxyResource,
|
|
805
|
+
TrackedResource: TrackedResource,
|
|
806
|
+
Endpoint: Endpoint,
|
|
807
|
+
TrafficManagerGeographicHierarchy: TrafficManagerGeographicHierarchy,
|
|
808
|
+
HeatMapModel: HeatMapModel,
|
|
809
|
+
UserMetricsModel: UserMetricsModel,
|
|
810
|
+
Profile: Profile
|
|
811
|
+
});
|
|
812
|
+
|
|
813
|
+
/*
|
|
814
|
+
* Copyright (c) Microsoft Corporation.
|
|
815
|
+
* Licensed under the MIT License.
|
|
816
|
+
*
|
|
817
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
818
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
819
|
+
*/
|
|
820
|
+
const contentType = {
|
|
821
|
+
parameterPath: ["options", "contentType"],
|
|
822
|
+
mapper: {
|
|
823
|
+
defaultValue: "application/json",
|
|
824
|
+
isConstant: true,
|
|
825
|
+
serializedName: "Content-Type",
|
|
826
|
+
type: {
|
|
827
|
+
name: "String"
|
|
828
|
+
}
|
|
829
|
+
}
|
|
830
|
+
};
|
|
831
|
+
const parameters = {
|
|
832
|
+
parameterPath: "parameters",
|
|
833
|
+
mapper: Endpoint
|
|
834
|
+
};
|
|
835
|
+
const accept = {
|
|
836
|
+
parameterPath: "accept",
|
|
837
|
+
mapper: {
|
|
838
|
+
defaultValue: "application/json",
|
|
839
|
+
isConstant: true,
|
|
840
|
+
serializedName: "Accept",
|
|
841
|
+
type: {
|
|
842
|
+
name: "String"
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
};
|
|
846
|
+
const $host = {
|
|
847
|
+
parameterPath: "$host",
|
|
848
|
+
mapper: {
|
|
849
|
+
serializedName: "$host",
|
|
850
|
+
required: true,
|
|
851
|
+
type: {
|
|
852
|
+
name: "String"
|
|
853
|
+
}
|
|
854
|
+
},
|
|
855
|
+
skipEncoding: true
|
|
856
|
+
};
|
|
857
|
+
const resourceGroupName = {
|
|
858
|
+
parameterPath: "resourceGroupName",
|
|
859
|
+
mapper: {
|
|
860
|
+
serializedName: "resourceGroupName",
|
|
861
|
+
required: true,
|
|
862
|
+
type: {
|
|
863
|
+
name: "String"
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
};
|
|
867
|
+
const profileName = {
|
|
868
|
+
parameterPath: "profileName",
|
|
869
|
+
mapper: {
|
|
870
|
+
serializedName: "profileName",
|
|
871
|
+
required: true,
|
|
872
|
+
type: {
|
|
873
|
+
name: "String"
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
};
|
|
877
|
+
const endpointType = {
|
|
878
|
+
parameterPath: "endpointType",
|
|
879
|
+
mapper: {
|
|
880
|
+
serializedName: "endpointType",
|
|
881
|
+
required: true,
|
|
882
|
+
type: {
|
|
883
|
+
name: "Enum",
|
|
884
|
+
allowedValues: ["AzureEndpoints", "ExternalEndpoints", "NestedEndpoints"]
|
|
885
|
+
}
|
|
886
|
+
}
|
|
887
|
+
};
|
|
888
|
+
const endpointName = {
|
|
889
|
+
parameterPath: "endpointName",
|
|
890
|
+
mapper: {
|
|
891
|
+
serializedName: "endpointName",
|
|
892
|
+
required: true,
|
|
893
|
+
type: {
|
|
894
|
+
name: "String"
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
};
|
|
898
|
+
const apiVersion = {
|
|
899
|
+
parameterPath: "apiVersion",
|
|
900
|
+
mapper: {
|
|
901
|
+
defaultValue: "2018-08-01",
|
|
902
|
+
isConstant: true,
|
|
903
|
+
serializedName: "api-version",
|
|
904
|
+
type: {
|
|
905
|
+
name: "String"
|
|
906
|
+
}
|
|
907
|
+
}
|
|
908
|
+
};
|
|
909
|
+
const subscriptionId = {
|
|
910
|
+
parameterPath: "subscriptionId",
|
|
911
|
+
mapper: {
|
|
912
|
+
serializedName: "subscriptionId",
|
|
913
|
+
required: true,
|
|
914
|
+
type: {
|
|
915
|
+
name: "String"
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
};
|
|
919
|
+
const parameters1 = {
|
|
920
|
+
parameterPath: "parameters",
|
|
921
|
+
mapper: CheckTrafficManagerRelativeDnsNameAvailabilityParameters
|
|
922
|
+
};
|
|
923
|
+
const parameters2 = {
|
|
924
|
+
parameterPath: "parameters",
|
|
925
|
+
mapper: Profile
|
|
926
|
+
};
|
|
927
|
+
const heatMapType = {
|
|
928
|
+
parameterPath: "heatMapType",
|
|
929
|
+
mapper: {
|
|
930
|
+
defaultValue: "default",
|
|
931
|
+
isConstant: true,
|
|
932
|
+
serializedName: "heatMapType",
|
|
933
|
+
type: {
|
|
934
|
+
name: "String"
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
};
|
|
938
|
+
const topLeft = {
|
|
939
|
+
parameterPath: ["options", "topLeft"],
|
|
940
|
+
mapper: {
|
|
941
|
+
constraints: {
|
|
942
|
+
MinItems: 2,
|
|
943
|
+
MaxItems: 2
|
|
944
|
+
},
|
|
945
|
+
serializedName: "topLeft",
|
|
946
|
+
type: {
|
|
947
|
+
name: "Sequence",
|
|
948
|
+
element: {
|
|
949
|
+
type: {
|
|
950
|
+
name: "Number"
|
|
951
|
+
}
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
},
|
|
955
|
+
collectionFormat: "CSV"
|
|
956
|
+
};
|
|
957
|
+
const botRight = {
|
|
958
|
+
parameterPath: ["options", "botRight"],
|
|
959
|
+
mapper: {
|
|
960
|
+
constraints: {
|
|
961
|
+
MinItems: 2,
|
|
962
|
+
MaxItems: 2
|
|
963
|
+
},
|
|
964
|
+
serializedName: "botRight",
|
|
965
|
+
type: {
|
|
966
|
+
name: "Sequence",
|
|
967
|
+
element: {
|
|
968
|
+
type: {
|
|
969
|
+
name: "Number"
|
|
970
|
+
}
|
|
971
|
+
}
|
|
972
|
+
}
|
|
973
|
+
},
|
|
974
|
+
collectionFormat: "CSV"
|
|
975
|
+
};
|
|
976
|
+
|
|
977
|
+
/*
|
|
978
|
+
* Copyright (c) Microsoft Corporation.
|
|
979
|
+
* Licensed under the MIT License.
|
|
980
|
+
*
|
|
981
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
982
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
983
|
+
*/
|
|
984
|
+
/** Class containing Endpoints operations. */
|
|
985
|
+
class EndpointsImpl {
|
|
986
|
+
/**
|
|
987
|
+
* Initialize a new instance of the class Endpoints class.
|
|
988
|
+
* @param client Reference to the service client
|
|
989
|
+
*/
|
|
990
|
+
constructor(client) {
|
|
991
|
+
this.client = client;
|
|
992
|
+
}
|
|
993
|
+
/**
|
|
994
|
+
* Update a Traffic Manager endpoint.
|
|
995
|
+
* @param resourceGroupName The name of the resource group containing the Traffic Manager endpoint to
|
|
996
|
+
* be updated.
|
|
997
|
+
* @param profileName The name of the Traffic Manager profile.
|
|
998
|
+
* @param endpointType The type of the Traffic Manager endpoint to be updated.
|
|
999
|
+
* @param endpointName The name of the Traffic Manager endpoint to be updated.
|
|
1000
|
+
* @param parameters The Traffic Manager endpoint parameters supplied to the Update operation.
|
|
1001
|
+
* @param options The options parameters.
|
|
1002
|
+
*/
|
|
1003
|
+
update(resourceGroupName, profileName, endpointType, endpointName, parameters, options) {
|
|
1004
|
+
return this.client.sendOperationRequest({
|
|
1005
|
+
resourceGroupName,
|
|
1006
|
+
profileName,
|
|
1007
|
+
endpointType,
|
|
1008
|
+
endpointName,
|
|
1009
|
+
parameters,
|
|
1010
|
+
options
|
|
1011
|
+
}, updateOperationSpec);
|
|
1012
|
+
}
|
|
1013
|
+
/**
|
|
1014
|
+
* Gets a Traffic Manager endpoint.
|
|
1015
|
+
* @param resourceGroupName The name of the resource group containing the Traffic Manager endpoint.
|
|
1016
|
+
* @param profileName The name of the Traffic Manager profile.
|
|
1017
|
+
* @param endpointType The type of the Traffic Manager endpoint.
|
|
1018
|
+
* @param endpointName The name of the Traffic Manager endpoint.
|
|
1019
|
+
* @param options The options parameters.
|
|
1020
|
+
*/
|
|
1021
|
+
get(resourceGroupName, profileName, endpointType, endpointName, options) {
|
|
1022
|
+
return this.client.sendOperationRequest({ resourceGroupName, profileName, endpointType, endpointName, options }, getOperationSpec);
|
|
1023
|
+
}
|
|
1024
|
+
/**
|
|
1025
|
+
* Create or update a Traffic Manager endpoint.
|
|
1026
|
+
* @param resourceGroupName The name of the resource group containing the Traffic Manager endpoint to
|
|
1027
|
+
* be created or updated.
|
|
1028
|
+
* @param profileName The name of the Traffic Manager profile.
|
|
1029
|
+
* @param endpointType The type of the Traffic Manager endpoint to be created or updated.
|
|
1030
|
+
* @param endpointName The name of the Traffic Manager endpoint to be created or updated.
|
|
1031
|
+
* @param parameters The Traffic Manager endpoint parameters supplied to the CreateOrUpdate operation.
|
|
1032
|
+
* @param options The options parameters.
|
|
1033
|
+
*/
|
|
1034
|
+
createOrUpdate(resourceGroupName, profileName, endpointType, endpointName, parameters, options) {
|
|
1035
|
+
return this.client.sendOperationRequest({
|
|
1036
|
+
resourceGroupName,
|
|
1037
|
+
profileName,
|
|
1038
|
+
endpointType,
|
|
1039
|
+
endpointName,
|
|
1040
|
+
parameters,
|
|
1041
|
+
options
|
|
1042
|
+
}, createOrUpdateOperationSpec);
|
|
1043
|
+
}
|
|
1044
|
+
/**
|
|
1045
|
+
* Deletes a Traffic Manager endpoint.
|
|
1046
|
+
* @param resourceGroupName The name of the resource group containing the Traffic Manager endpoint to
|
|
1047
|
+
* be deleted.
|
|
1048
|
+
* @param profileName The name of the Traffic Manager profile.
|
|
1049
|
+
* @param endpointType The type of the Traffic Manager endpoint to be deleted.
|
|
1050
|
+
* @param endpointName The name of the Traffic Manager endpoint to be deleted.
|
|
1051
|
+
* @param options The options parameters.
|
|
1052
|
+
*/
|
|
1053
|
+
delete(resourceGroupName, profileName, endpointType, endpointName, options) {
|
|
1054
|
+
return this.client.sendOperationRequest({ resourceGroupName, profileName, endpointType, endpointName, options }, deleteOperationSpec);
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
1057
|
+
// Operation Specifications
|
|
1058
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1059
|
+
const updateOperationSpec = {
|
|
1060
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}/{endpointType}/{endpointName}",
|
|
1061
|
+
httpMethod: "PATCH",
|
|
1062
|
+
responses: {
|
|
1063
|
+
200: {
|
|
1064
|
+
bodyMapper: Endpoint
|
|
1065
|
+
},
|
|
1066
|
+
default: {
|
|
1067
|
+
bodyMapper: CloudError
|
|
1068
|
+
}
|
|
1069
|
+
},
|
|
1070
|
+
requestBody: parameters,
|
|
1071
|
+
queryParameters: [apiVersion],
|
|
1072
|
+
urlParameters: [
|
|
1073
|
+
$host,
|
|
1074
|
+
resourceGroupName,
|
|
1075
|
+
profileName,
|
|
1076
|
+
endpointType,
|
|
1077
|
+
endpointName,
|
|
1078
|
+
subscriptionId
|
|
1079
|
+
],
|
|
1080
|
+
headerParameters: [contentType, accept],
|
|
1081
|
+
mediaType: "json",
|
|
1082
|
+
serializer
|
|
1083
|
+
};
|
|
1084
|
+
const getOperationSpec = {
|
|
1085
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}/{endpointType}/{endpointName}",
|
|
1086
|
+
httpMethod: "GET",
|
|
1087
|
+
responses: {
|
|
1088
|
+
200: {
|
|
1089
|
+
bodyMapper: Endpoint
|
|
1090
|
+
},
|
|
1091
|
+
default: {
|
|
1092
|
+
bodyMapper: CloudError
|
|
1093
|
+
}
|
|
1094
|
+
},
|
|
1095
|
+
queryParameters: [apiVersion],
|
|
1096
|
+
urlParameters: [
|
|
1097
|
+
$host,
|
|
1098
|
+
resourceGroupName,
|
|
1099
|
+
profileName,
|
|
1100
|
+
endpointType,
|
|
1101
|
+
endpointName,
|
|
1102
|
+
subscriptionId
|
|
1103
|
+
],
|
|
1104
|
+
headerParameters: [accept],
|
|
1105
|
+
serializer
|
|
1106
|
+
};
|
|
1107
|
+
const createOrUpdateOperationSpec = {
|
|
1108
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}/{endpointType}/{endpointName}",
|
|
1109
|
+
httpMethod: "PUT",
|
|
1110
|
+
responses: {
|
|
1111
|
+
200: {
|
|
1112
|
+
bodyMapper: Endpoint
|
|
1113
|
+
},
|
|
1114
|
+
201: {
|
|
1115
|
+
bodyMapper: Endpoint
|
|
1116
|
+
},
|
|
1117
|
+
default: {
|
|
1118
|
+
bodyMapper: CloudError
|
|
1119
|
+
}
|
|
1120
|
+
},
|
|
1121
|
+
requestBody: parameters,
|
|
1122
|
+
queryParameters: [apiVersion],
|
|
1123
|
+
urlParameters: [
|
|
1124
|
+
$host,
|
|
1125
|
+
resourceGroupName,
|
|
1126
|
+
profileName,
|
|
1127
|
+
endpointType,
|
|
1128
|
+
endpointName,
|
|
1129
|
+
subscriptionId
|
|
1130
|
+
],
|
|
1131
|
+
headerParameters: [contentType, accept],
|
|
1132
|
+
mediaType: "json",
|
|
1133
|
+
serializer
|
|
1134
|
+
};
|
|
1135
|
+
const deleteOperationSpec = {
|
|
1136
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}/{endpointType}/{endpointName}",
|
|
1137
|
+
httpMethod: "DELETE",
|
|
1138
|
+
responses: {
|
|
1139
|
+
200: {
|
|
1140
|
+
bodyMapper: DeleteOperationResult
|
|
1141
|
+
},
|
|
1142
|
+
204: {},
|
|
1143
|
+
default: {
|
|
1144
|
+
bodyMapper: CloudError
|
|
1145
|
+
}
|
|
1146
|
+
},
|
|
1147
|
+
queryParameters: [apiVersion],
|
|
1148
|
+
urlParameters: [
|
|
1149
|
+
$host,
|
|
1150
|
+
resourceGroupName,
|
|
1151
|
+
profileName,
|
|
1152
|
+
endpointType,
|
|
1153
|
+
endpointName,
|
|
1154
|
+
subscriptionId
|
|
1155
|
+
],
|
|
1156
|
+
headerParameters: [accept],
|
|
1157
|
+
serializer
|
|
1158
|
+
};
|
|
1159
|
+
|
|
1160
|
+
/*
|
|
1161
|
+
* Copyright (c) Microsoft Corporation.
|
|
1162
|
+
* Licensed under the MIT License.
|
|
1163
|
+
*
|
|
1164
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1165
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1166
|
+
*/
|
|
1167
|
+
/// <reference lib="esnext.asynciterable" />
|
|
1168
|
+
/** Class containing Profiles operations. */
|
|
1169
|
+
class ProfilesImpl {
|
|
1170
|
+
/**
|
|
1171
|
+
* Initialize a new instance of the class Profiles class.
|
|
1172
|
+
* @param client Reference to the service client
|
|
1173
|
+
*/
|
|
1174
|
+
constructor(client) {
|
|
1175
|
+
this.client = client;
|
|
1176
|
+
}
|
|
1177
|
+
/**
|
|
1178
|
+
* Lists all Traffic Manager profiles within a resource group.
|
|
1179
|
+
* @param resourceGroupName The name of the resource group containing the Traffic Manager profiles to
|
|
1180
|
+
* be listed.
|
|
1181
|
+
* @param options The options parameters.
|
|
1182
|
+
*/
|
|
1183
|
+
listByResourceGroup(resourceGroupName, options) {
|
|
1184
|
+
const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);
|
|
1185
|
+
return {
|
|
1186
|
+
next() {
|
|
1187
|
+
return iter.next();
|
|
1188
|
+
},
|
|
1189
|
+
[Symbol.asyncIterator]() {
|
|
1190
|
+
return this;
|
|
1191
|
+
},
|
|
1192
|
+
byPage: () => {
|
|
1193
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options);
|
|
1194
|
+
}
|
|
1195
|
+
};
|
|
1196
|
+
}
|
|
1197
|
+
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
1198
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
1199
|
+
let result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
1200
|
+
yield yield tslib.__await(result.value || []);
|
|
1201
|
+
});
|
|
1202
|
+
}
|
|
1203
|
+
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
1204
|
+
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
|
|
1205
|
+
var e_1, _a;
|
|
1206
|
+
try {
|
|
1207
|
+
for (var _b = tslib.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1208
|
+
const page = _c.value;
|
|
1209
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1213
|
+
finally {
|
|
1214
|
+
try {
|
|
1215
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1216
|
+
}
|
|
1217
|
+
finally { if (e_1) throw e_1.error; }
|
|
1218
|
+
}
|
|
1219
|
+
});
|
|
1220
|
+
}
|
|
1221
|
+
/**
|
|
1222
|
+
* Lists all Traffic Manager profiles within a subscription.
|
|
1223
|
+
* @param options The options parameters.
|
|
1224
|
+
*/
|
|
1225
|
+
listBySubscription(options) {
|
|
1226
|
+
const iter = this.listBySubscriptionPagingAll(options);
|
|
1227
|
+
return {
|
|
1228
|
+
next() {
|
|
1229
|
+
return iter.next();
|
|
1230
|
+
},
|
|
1231
|
+
[Symbol.asyncIterator]() {
|
|
1232
|
+
return this;
|
|
1233
|
+
},
|
|
1234
|
+
byPage: () => {
|
|
1235
|
+
return this.listBySubscriptionPagingPage(options);
|
|
1236
|
+
}
|
|
1237
|
+
};
|
|
1238
|
+
}
|
|
1239
|
+
listBySubscriptionPagingPage(options) {
|
|
1240
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
1241
|
+
let result = yield tslib.__await(this._listBySubscription(options));
|
|
1242
|
+
yield yield tslib.__await(result.value || []);
|
|
1243
|
+
});
|
|
1244
|
+
}
|
|
1245
|
+
listBySubscriptionPagingAll(options) {
|
|
1246
|
+
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
|
|
1247
|
+
var e_2, _a;
|
|
1248
|
+
try {
|
|
1249
|
+
for (var _b = tslib.__asyncValues(this.listBySubscriptionPagingPage(options)), _c; _c = yield tslib.__await(_b.next()), !_c.done;) {
|
|
1250
|
+
const page = _c.value;
|
|
1251
|
+
yield tslib.__await(yield* tslib.__asyncDelegator(tslib.__asyncValues(page)));
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
1255
|
+
finally {
|
|
1256
|
+
try {
|
|
1257
|
+
if (_c && !_c.done && (_a = _b.return)) yield tslib.__await(_a.call(_b));
|
|
1258
|
+
}
|
|
1259
|
+
finally { if (e_2) throw e_2.error; }
|
|
1260
|
+
}
|
|
1261
|
+
});
|
|
1262
|
+
}
|
|
1263
|
+
/**
|
|
1264
|
+
* Checks the availability of a Traffic Manager Relative DNS name.
|
|
1265
|
+
* @param parameters The Traffic Manager name parameters supplied to the
|
|
1266
|
+
* CheckTrafficManagerNameAvailability operation.
|
|
1267
|
+
* @param options The options parameters.
|
|
1268
|
+
*/
|
|
1269
|
+
checkTrafficManagerRelativeDnsNameAvailability(parameters, options) {
|
|
1270
|
+
return this.client.sendOperationRequest({ parameters, options }, checkTrafficManagerRelativeDnsNameAvailabilityOperationSpec);
|
|
1271
|
+
}
|
|
1272
|
+
/**
|
|
1273
|
+
* Lists all Traffic Manager profiles within a resource group.
|
|
1274
|
+
* @param resourceGroupName The name of the resource group containing the Traffic Manager profiles to
|
|
1275
|
+
* be listed.
|
|
1276
|
+
* @param options The options parameters.
|
|
1277
|
+
*/
|
|
1278
|
+
_listByResourceGroup(resourceGroupName, options) {
|
|
1279
|
+
return this.client.sendOperationRequest({ resourceGroupName, options }, listByResourceGroupOperationSpec);
|
|
1280
|
+
}
|
|
1281
|
+
/**
|
|
1282
|
+
* Lists all Traffic Manager profiles within a subscription.
|
|
1283
|
+
* @param options The options parameters.
|
|
1284
|
+
*/
|
|
1285
|
+
_listBySubscription(options) {
|
|
1286
|
+
return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec);
|
|
1287
|
+
}
|
|
1288
|
+
/**
|
|
1289
|
+
* Gets a Traffic Manager profile.
|
|
1290
|
+
* @param resourceGroupName The name of the resource group containing the Traffic Manager profile.
|
|
1291
|
+
* @param profileName The name of the Traffic Manager profile.
|
|
1292
|
+
* @param options The options parameters.
|
|
1293
|
+
*/
|
|
1294
|
+
get(resourceGroupName, profileName, options) {
|
|
1295
|
+
return this.client.sendOperationRequest({ resourceGroupName, profileName, options }, getOperationSpec$1);
|
|
1296
|
+
}
|
|
1297
|
+
/**
|
|
1298
|
+
* Create or update a Traffic Manager profile.
|
|
1299
|
+
* @param resourceGroupName The name of the resource group containing the Traffic Manager profile.
|
|
1300
|
+
* @param profileName The name of the Traffic Manager profile.
|
|
1301
|
+
* @param parameters The Traffic Manager profile parameters supplied to the CreateOrUpdate operation.
|
|
1302
|
+
* @param options The options parameters.
|
|
1303
|
+
*/
|
|
1304
|
+
createOrUpdate(resourceGroupName, profileName, parameters, options) {
|
|
1305
|
+
return this.client.sendOperationRequest({ resourceGroupName, profileName, parameters, options }, createOrUpdateOperationSpec$1);
|
|
1306
|
+
}
|
|
1307
|
+
/**
|
|
1308
|
+
* Deletes a Traffic Manager profile.
|
|
1309
|
+
* @param resourceGroupName The name of the resource group containing the Traffic Manager profile to be
|
|
1310
|
+
* deleted.
|
|
1311
|
+
* @param profileName The name of the Traffic Manager profile to be deleted.
|
|
1312
|
+
* @param options The options parameters.
|
|
1313
|
+
*/
|
|
1314
|
+
delete(resourceGroupName, profileName, options) {
|
|
1315
|
+
return this.client.sendOperationRequest({ resourceGroupName, profileName, options }, deleteOperationSpec$1);
|
|
1316
|
+
}
|
|
1317
|
+
/**
|
|
1318
|
+
* Update a Traffic Manager profile.
|
|
1319
|
+
* @param resourceGroupName The name of the resource group containing the Traffic Manager profile.
|
|
1320
|
+
* @param profileName The name of the Traffic Manager profile.
|
|
1321
|
+
* @param parameters The Traffic Manager profile parameters supplied to the Update operation.
|
|
1322
|
+
* @param options The options parameters.
|
|
1323
|
+
*/
|
|
1324
|
+
update(resourceGroupName, profileName, parameters, options) {
|
|
1325
|
+
return this.client.sendOperationRequest({ resourceGroupName, profileName, parameters, options }, updateOperationSpec$1);
|
|
1326
|
+
}
|
|
1327
|
+
}
|
|
1328
|
+
// Operation Specifications
|
|
1329
|
+
const serializer$1 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1330
|
+
const checkTrafficManagerRelativeDnsNameAvailabilityOperationSpec = {
|
|
1331
|
+
path: "/providers/Microsoft.Network/checkTrafficManagerNameAvailability",
|
|
1332
|
+
httpMethod: "POST",
|
|
1333
|
+
responses: {
|
|
1334
|
+
200: {
|
|
1335
|
+
bodyMapper: TrafficManagerNameAvailability
|
|
1336
|
+
},
|
|
1337
|
+
default: {
|
|
1338
|
+
bodyMapper: CloudError
|
|
1339
|
+
}
|
|
1340
|
+
},
|
|
1341
|
+
requestBody: parameters1,
|
|
1342
|
+
queryParameters: [apiVersion],
|
|
1343
|
+
urlParameters: [$host],
|
|
1344
|
+
headerParameters: [contentType, accept],
|
|
1345
|
+
mediaType: "json",
|
|
1346
|
+
serializer: serializer$1
|
|
1347
|
+
};
|
|
1348
|
+
const listByResourceGroupOperationSpec = {
|
|
1349
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles",
|
|
1350
|
+
httpMethod: "GET",
|
|
1351
|
+
responses: {
|
|
1352
|
+
200: {
|
|
1353
|
+
bodyMapper: ProfileListResult
|
|
1354
|
+
},
|
|
1355
|
+
default: {
|
|
1356
|
+
bodyMapper: CloudError
|
|
1357
|
+
}
|
|
1358
|
+
},
|
|
1359
|
+
queryParameters: [apiVersion],
|
|
1360
|
+
urlParameters: [
|
|
1361
|
+
$host,
|
|
1362
|
+
resourceGroupName,
|
|
1363
|
+
subscriptionId
|
|
1364
|
+
],
|
|
1365
|
+
headerParameters: [accept],
|
|
1366
|
+
serializer: serializer$1
|
|
1367
|
+
};
|
|
1368
|
+
const listBySubscriptionOperationSpec = {
|
|
1369
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficmanagerprofiles",
|
|
1370
|
+
httpMethod: "GET",
|
|
1371
|
+
responses: {
|
|
1372
|
+
200: {
|
|
1373
|
+
bodyMapper: ProfileListResult
|
|
1374
|
+
},
|
|
1375
|
+
default: {
|
|
1376
|
+
bodyMapper: CloudError
|
|
1377
|
+
}
|
|
1378
|
+
},
|
|
1379
|
+
queryParameters: [apiVersion],
|
|
1380
|
+
urlParameters: [$host, subscriptionId],
|
|
1381
|
+
headerParameters: [accept],
|
|
1382
|
+
serializer: serializer$1
|
|
1383
|
+
};
|
|
1384
|
+
const getOperationSpec$1 = {
|
|
1385
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}",
|
|
1386
|
+
httpMethod: "GET",
|
|
1387
|
+
responses: {
|
|
1388
|
+
200: {
|
|
1389
|
+
bodyMapper: Profile
|
|
1390
|
+
},
|
|
1391
|
+
default: {
|
|
1392
|
+
bodyMapper: CloudError
|
|
1393
|
+
}
|
|
1394
|
+
},
|
|
1395
|
+
queryParameters: [apiVersion],
|
|
1396
|
+
urlParameters: [
|
|
1397
|
+
$host,
|
|
1398
|
+
resourceGroupName,
|
|
1399
|
+
profileName,
|
|
1400
|
+
subscriptionId
|
|
1401
|
+
],
|
|
1402
|
+
headerParameters: [accept],
|
|
1403
|
+
serializer: serializer$1
|
|
1404
|
+
};
|
|
1405
|
+
const createOrUpdateOperationSpec$1 = {
|
|
1406
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}",
|
|
1407
|
+
httpMethod: "PUT",
|
|
1408
|
+
responses: {
|
|
1409
|
+
200: {
|
|
1410
|
+
bodyMapper: Profile
|
|
1411
|
+
},
|
|
1412
|
+
201: {
|
|
1413
|
+
bodyMapper: Profile
|
|
1414
|
+
},
|
|
1415
|
+
default: {
|
|
1416
|
+
bodyMapper: CloudError
|
|
1417
|
+
}
|
|
1418
|
+
},
|
|
1419
|
+
requestBody: parameters2,
|
|
1420
|
+
queryParameters: [apiVersion],
|
|
1421
|
+
urlParameters: [
|
|
1422
|
+
$host,
|
|
1423
|
+
resourceGroupName,
|
|
1424
|
+
profileName,
|
|
1425
|
+
subscriptionId
|
|
1426
|
+
],
|
|
1427
|
+
headerParameters: [contentType, accept],
|
|
1428
|
+
mediaType: "json",
|
|
1429
|
+
serializer: serializer$1
|
|
1430
|
+
};
|
|
1431
|
+
const deleteOperationSpec$1 = {
|
|
1432
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}",
|
|
1433
|
+
httpMethod: "DELETE",
|
|
1434
|
+
responses: {
|
|
1435
|
+
200: {
|
|
1436
|
+
bodyMapper: DeleteOperationResult
|
|
1437
|
+
},
|
|
1438
|
+
204: {},
|
|
1439
|
+
default: {
|
|
1440
|
+
bodyMapper: CloudError
|
|
1441
|
+
}
|
|
1442
|
+
},
|
|
1443
|
+
queryParameters: [apiVersion],
|
|
1444
|
+
urlParameters: [
|
|
1445
|
+
$host,
|
|
1446
|
+
resourceGroupName,
|
|
1447
|
+
profileName,
|
|
1448
|
+
subscriptionId
|
|
1449
|
+
],
|
|
1450
|
+
headerParameters: [accept],
|
|
1451
|
+
serializer: serializer$1
|
|
1452
|
+
};
|
|
1453
|
+
const updateOperationSpec$1 = {
|
|
1454
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}",
|
|
1455
|
+
httpMethod: "PATCH",
|
|
1456
|
+
responses: {
|
|
1457
|
+
200: {
|
|
1458
|
+
bodyMapper: Profile
|
|
1459
|
+
},
|
|
1460
|
+
default: {
|
|
1461
|
+
bodyMapper: CloudError
|
|
1462
|
+
}
|
|
1463
|
+
},
|
|
1464
|
+
requestBody: parameters2,
|
|
1465
|
+
queryParameters: [apiVersion],
|
|
1466
|
+
urlParameters: [
|
|
1467
|
+
$host,
|
|
1468
|
+
resourceGroupName,
|
|
1469
|
+
profileName,
|
|
1470
|
+
subscriptionId
|
|
1471
|
+
],
|
|
1472
|
+
headerParameters: [contentType, accept],
|
|
1473
|
+
mediaType: "json",
|
|
1474
|
+
serializer: serializer$1
|
|
1475
|
+
};
|
|
1476
|
+
|
|
1477
|
+
/*
|
|
1478
|
+
* Copyright (c) Microsoft Corporation.
|
|
1479
|
+
* Licensed under the MIT License.
|
|
1480
|
+
*
|
|
1481
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1482
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1483
|
+
*/
|
|
1484
|
+
/** Class containing GeographicHierarchies operations. */
|
|
1485
|
+
class GeographicHierarchiesImpl {
|
|
1486
|
+
/**
|
|
1487
|
+
* Initialize a new instance of the class GeographicHierarchies class.
|
|
1488
|
+
* @param client Reference to the service client
|
|
1489
|
+
*/
|
|
1490
|
+
constructor(client) {
|
|
1491
|
+
this.client = client;
|
|
1492
|
+
}
|
|
1493
|
+
/**
|
|
1494
|
+
* Gets the default Geographic Hierarchy used by the Geographic traffic routing method.
|
|
1495
|
+
* @param options The options parameters.
|
|
1496
|
+
*/
|
|
1497
|
+
getDefault(options) {
|
|
1498
|
+
return this.client.sendOperationRequest({ options }, getDefaultOperationSpec);
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1501
|
+
// Operation Specifications
|
|
1502
|
+
const serializer$2 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1503
|
+
const getDefaultOperationSpec = {
|
|
1504
|
+
path: "/providers/Microsoft.Network/trafficManagerGeographicHierarchies/default",
|
|
1505
|
+
httpMethod: "GET",
|
|
1506
|
+
responses: {
|
|
1507
|
+
200: {
|
|
1508
|
+
bodyMapper: TrafficManagerGeographicHierarchy
|
|
1509
|
+
},
|
|
1510
|
+
default: {
|
|
1511
|
+
bodyMapper: CloudError
|
|
1512
|
+
}
|
|
1513
|
+
},
|
|
1514
|
+
queryParameters: [apiVersion],
|
|
1515
|
+
urlParameters: [$host],
|
|
1516
|
+
headerParameters: [accept],
|
|
1517
|
+
serializer: serializer$2
|
|
1518
|
+
};
|
|
1519
|
+
|
|
1520
|
+
/*
|
|
1521
|
+
* Copyright (c) Microsoft Corporation.
|
|
1522
|
+
* Licensed under the MIT License.
|
|
1523
|
+
*
|
|
1524
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1525
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1526
|
+
*/
|
|
1527
|
+
/** Class containing HeatMap operations. */
|
|
1528
|
+
class HeatMapImpl {
|
|
1529
|
+
/**
|
|
1530
|
+
* Initialize a new instance of the class HeatMap class.
|
|
1531
|
+
* @param client Reference to the service client
|
|
1532
|
+
*/
|
|
1533
|
+
constructor(client) {
|
|
1534
|
+
this.client = client;
|
|
1535
|
+
}
|
|
1536
|
+
/**
|
|
1537
|
+
* Gets latest heatmap for Traffic Manager profile.
|
|
1538
|
+
* @param resourceGroupName The name of the resource group containing the Traffic Manager endpoint.
|
|
1539
|
+
* @param profileName The name of the Traffic Manager profile.
|
|
1540
|
+
* @param options The options parameters.
|
|
1541
|
+
*/
|
|
1542
|
+
get(resourceGroupName, profileName, options) {
|
|
1543
|
+
return this.client.sendOperationRequest({ resourceGroupName, profileName, options }, getOperationSpec$2);
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
// Operation Specifications
|
|
1547
|
+
const serializer$3 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1548
|
+
const getOperationSpec$2 = {
|
|
1549
|
+
path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}/heatMaps/{heatMapType}",
|
|
1550
|
+
httpMethod: "GET",
|
|
1551
|
+
responses: {
|
|
1552
|
+
200: {
|
|
1553
|
+
bodyMapper: HeatMapModel
|
|
1554
|
+
},
|
|
1555
|
+
default: {
|
|
1556
|
+
bodyMapper: CloudError
|
|
1557
|
+
}
|
|
1558
|
+
},
|
|
1559
|
+
queryParameters: [
|
|
1560
|
+
apiVersion,
|
|
1561
|
+
topLeft,
|
|
1562
|
+
botRight
|
|
1563
|
+
],
|
|
1564
|
+
urlParameters: [
|
|
1565
|
+
$host,
|
|
1566
|
+
resourceGroupName,
|
|
1567
|
+
profileName,
|
|
1568
|
+
subscriptionId,
|
|
1569
|
+
heatMapType
|
|
1570
|
+
],
|
|
1571
|
+
headerParameters: [accept],
|
|
1572
|
+
serializer: serializer$3
|
|
1573
|
+
};
|
|
1574
|
+
|
|
1575
|
+
/*
|
|
1576
|
+
* Copyright (c) Microsoft Corporation.
|
|
1577
|
+
* Licensed under the MIT License.
|
|
1578
|
+
*
|
|
1579
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1580
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1581
|
+
*/
|
|
1582
|
+
/** Class containing TrafficManagerUserMetricsKeys operations. */
|
|
1583
|
+
class TrafficManagerUserMetricsKeysImpl {
|
|
1584
|
+
/**
|
|
1585
|
+
* Initialize a new instance of the class TrafficManagerUserMetricsKeys class.
|
|
1586
|
+
* @param client Reference to the service client
|
|
1587
|
+
*/
|
|
1588
|
+
constructor(client) {
|
|
1589
|
+
this.client = client;
|
|
1590
|
+
}
|
|
1591
|
+
/**
|
|
1592
|
+
* Get the subscription-level key used for Real User Metrics collection.
|
|
1593
|
+
* @param options The options parameters.
|
|
1594
|
+
*/
|
|
1595
|
+
get(options) {
|
|
1596
|
+
return this.client.sendOperationRequest({ options }, getOperationSpec$3);
|
|
1597
|
+
}
|
|
1598
|
+
/**
|
|
1599
|
+
* Create or update a subscription-level key used for Real User Metrics collection.
|
|
1600
|
+
* @param options The options parameters.
|
|
1601
|
+
*/
|
|
1602
|
+
createOrUpdate(options) {
|
|
1603
|
+
return this.client.sendOperationRequest({ options }, createOrUpdateOperationSpec$2);
|
|
1604
|
+
}
|
|
1605
|
+
/**
|
|
1606
|
+
* Delete a subscription-level key used for Real User Metrics collection.
|
|
1607
|
+
* @param options The options parameters.
|
|
1608
|
+
*/
|
|
1609
|
+
delete(options) {
|
|
1610
|
+
return this.client.sendOperationRequest({ options }, deleteOperationSpec$2);
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
// Operation Specifications
|
|
1614
|
+
const serializer$4 = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
1615
|
+
const getOperationSpec$3 = {
|
|
1616
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default",
|
|
1617
|
+
httpMethod: "GET",
|
|
1618
|
+
responses: {
|
|
1619
|
+
200: {
|
|
1620
|
+
bodyMapper: UserMetricsModel
|
|
1621
|
+
},
|
|
1622
|
+
default: {
|
|
1623
|
+
bodyMapper: CloudError
|
|
1624
|
+
}
|
|
1625
|
+
},
|
|
1626
|
+
queryParameters: [apiVersion],
|
|
1627
|
+
urlParameters: [$host, subscriptionId],
|
|
1628
|
+
headerParameters: [accept],
|
|
1629
|
+
serializer: serializer$4
|
|
1630
|
+
};
|
|
1631
|
+
const createOrUpdateOperationSpec$2 = {
|
|
1632
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default",
|
|
1633
|
+
httpMethod: "PUT",
|
|
1634
|
+
responses: {
|
|
1635
|
+
201: {
|
|
1636
|
+
bodyMapper: UserMetricsModel
|
|
1637
|
+
},
|
|
1638
|
+
default: {
|
|
1639
|
+
bodyMapper: CloudError
|
|
1640
|
+
}
|
|
1641
|
+
},
|
|
1642
|
+
queryParameters: [apiVersion],
|
|
1643
|
+
urlParameters: [$host, subscriptionId],
|
|
1644
|
+
headerParameters: [accept],
|
|
1645
|
+
serializer: serializer$4
|
|
1646
|
+
};
|
|
1647
|
+
const deleteOperationSpec$2 = {
|
|
1648
|
+
path: "/subscriptions/{subscriptionId}/providers/Microsoft.Network/trafficManagerUserMetricsKeys/default",
|
|
1649
|
+
httpMethod: "DELETE",
|
|
1650
|
+
responses: {
|
|
1651
|
+
200: {
|
|
1652
|
+
bodyMapper: DeleteOperationResult
|
|
1653
|
+
},
|
|
1654
|
+
default: {
|
|
1655
|
+
bodyMapper: CloudError
|
|
1656
|
+
}
|
|
1657
|
+
},
|
|
1658
|
+
queryParameters: [apiVersion],
|
|
1659
|
+
urlParameters: [$host, subscriptionId],
|
|
1660
|
+
headerParameters: [accept],
|
|
1661
|
+
serializer: serializer$4
|
|
1662
|
+
};
|
|
1663
|
+
|
|
1664
|
+
/*
|
|
1665
|
+
* Copyright (c) Microsoft Corporation.
|
|
1666
|
+
* Licensed under the MIT License.
|
|
1667
|
+
*
|
|
1668
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
1669
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
1670
|
+
*/
|
|
1671
|
+
class TrafficManagerManagementClient extends coreClient.ServiceClient {
|
|
1672
|
+
/**
|
|
1673
|
+
* Initializes a new instance of the TrafficManagerManagementClient class.
|
|
1674
|
+
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
1675
|
+
* @param subscriptionId Gets subscription credentials which uniquely identify Microsoft Azure
|
|
1676
|
+
* subscription. The subscription ID forms part of the URI for every service call.
|
|
1677
|
+
* @param options The parameter options
|
|
1678
|
+
*/
|
|
1679
|
+
constructor(credentials, subscriptionId, options) {
|
|
1680
|
+
if (credentials === undefined) {
|
|
1681
|
+
throw new Error("'credentials' cannot be null");
|
|
1682
|
+
}
|
|
1683
|
+
if (subscriptionId === undefined) {
|
|
1684
|
+
throw new Error("'subscriptionId' cannot be null");
|
|
1685
|
+
}
|
|
1686
|
+
// Initializing default values for options
|
|
1687
|
+
if (!options) {
|
|
1688
|
+
options = {};
|
|
1689
|
+
}
|
|
1690
|
+
const defaults = {
|
|
1691
|
+
requestContentType: "application/json; charset=utf-8",
|
|
1692
|
+
credential: credentials
|
|
1693
|
+
};
|
|
1694
|
+
const packageDetails = `azsdk-js-arm-trafficmanager/6.0.0`;
|
|
1695
|
+
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1696
|
+
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1697
|
+
: `${packageDetails}`;
|
|
1698
|
+
if (!options.credentialScopes) {
|
|
1699
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
1700
|
+
}
|
|
1701
|
+
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
1702
|
+
userAgentPrefix
|
|
1703
|
+
}, baseUri: options.endpoint || "https://management.azure.com" });
|
|
1704
|
+
super(optionsWithDefaults);
|
|
1705
|
+
// Parameter assignments
|
|
1706
|
+
this.subscriptionId = subscriptionId;
|
|
1707
|
+
// Assigning values to Constant parameters
|
|
1708
|
+
this.$host = options.$host || "https://management.azure.com";
|
|
1709
|
+
this.apiVersion = options.apiVersion || "2018-08-01";
|
|
1710
|
+
this.endpoints = new EndpointsImpl(this);
|
|
1711
|
+
this.profiles = new ProfilesImpl(this);
|
|
1712
|
+
this.geographicHierarchies = new GeographicHierarchiesImpl(this);
|
|
1713
|
+
this.heatMap = new HeatMapImpl(this);
|
|
1714
|
+
this.trafficManagerUserMetricsKeys = new TrafficManagerUserMetricsKeysImpl(this);
|
|
1715
|
+
}
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1718
|
+
exports.TrafficManagerManagementClient = TrafficManagerManagementClient;
|
|
1719
|
+
//# sourceMappingURL=index.js.map
|