@azure/arm-trafficmanager 6.0.2-alpha.20221101.1 → 6.1.0-alpha.20221115.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 +14 -10
- package/README.md +1 -1
- package/dist/index.js +153 -48
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/samples-dev/endpointsCreateOrUpdateSample.js +32 -4
- package/dist-esm/samples-dev/endpointsCreateOrUpdateSample.js.map +1 -1
- package/dist-esm/samples-dev/endpointsDeleteSample.js +1 -1
- package/dist-esm/samples-dev/endpointsGetSample.js +3 -3
- package/dist-esm/samples-dev/endpointsUpdateSample.js +1 -1
- package/dist-esm/samples-dev/geographicHierarchiesGetDefaultSample.js +1 -1
- package/dist-esm/samples-dev/heatMapGetSample.js +3 -3
- package/dist-esm/samples-dev/profilesCheckTrafficManagerRelativeDnsNameAvailabilitySample.js +2 -2
- package/dist-esm/samples-dev/profilesCreateOrUpdateSample.js +6 -6
- package/dist-esm/samples-dev/profilesDeleteSample.js +1 -1
- package/dist-esm/samples-dev/profilesGetSample.js +3 -3
- package/dist-esm/samples-dev/profilesListByResourceGroupSample.js +1 -1
- package/dist-esm/samples-dev/profilesListBySubscriptionSample.js +1 -1
- package/dist-esm/samples-dev/profilesUpdateSample.js +1 -1
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysCreateOrUpdateSample.js +1 -1
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysDeleteSample.js +1 -1
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysGetSample.js +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +62 -13
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +38 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +5 -0
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.d.ts.map +1 -1
- package/dist-esm/src/models/parameters.js +8 -1
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/endpoints.d.ts +4 -7
- package/dist-esm/src/operations/endpoints.d.ts.map +1 -1
- package/dist-esm/src/operations/endpoints.js +4 -7
- package/dist-esm/src/operations/endpoints.js.map +1 -1
- package/dist-esm/src/operations/heatMap.d.ts +1 -1
- package/dist-esm/src/operations/heatMap.js +1 -1
- package/dist-esm/src/operations/profiles.d.ts +6 -9
- package/dist-esm/src/operations/profiles.d.ts.map +1 -1
- package/dist-esm/src/operations/profiles.js +22 -17
- package/dist-esm/src/operations/profiles.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/endpoints.d.ts +4 -7
- package/dist-esm/src/operationsInterfaces/endpoints.d.ts.map +1 -1
- package/dist-esm/src/operationsInterfaces/heatMap.d.ts +1 -1
- package/dist-esm/src/operationsInterfaces/profiles.d.ts +5 -7
- package/dist-esm/src/operationsInterfaces/profiles.d.ts.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/dist-esm/src/trafficManagerManagementClient.d.ts +3 -2
- package/dist-esm/src/trafficManagerManagementClient.d.ts.map +1 -1
- package/dist-esm/src/trafficManagerManagementClient.js +51 -21
- package/dist-esm/src/trafficManagerManagementClient.js.map +1 -1
- package/dist-esm/test/trafficmanager_examples.spec.d.ts +4 -0
- package/dist-esm/test/trafficmanager_examples.spec.d.ts.map +1 -0
- package/dist-esm/test/trafficmanager_examples.spec.js +112 -0
- package/dist-esm/test/trafficmanager_examples.spec.js.map +1 -0
- package/package.json +12 -8
- package/review/arm-trafficmanager.api.md +42 -58
- package/src/index.ts +1 -0
- package/src/models/index.ts +63 -13
- package/src/models/mappers.ts +6 -0
- package/src/models/parameters.ts +8 -1
- package/src/operations/endpoints.ts +4 -7
- package/src/operations/heatMap.ts +1 -1
- package/src/operations/profiles.ts +31 -20
- package/src/operationsInterfaces/endpoints.ts +4 -7
- package/src/operationsInterfaces/heatMap.ts +1 -1
- package/src/operationsInterfaces/profiles.ts +5 -7
- package/src/pagingHelper.ts +39 -0
- package/src/trafficManagerManagementClient.ts +62 -23
- package/types/arm-trafficmanager.d.ts +86 -30
- package/dist-esm/samples-dev/endpointDeleteExternal.d.ts +0 -2
- package/dist-esm/samples-dev/endpointDeleteExternal.d.ts.map +0 -1
- package/dist-esm/samples-dev/endpointDeleteExternal.js +0 -33
- package/dist-esm/samples-dev/endpointDeleteExternal.js.map +0 -1
- package/dist-esm/samples-dev/endpointGetExternalWithGeoMapping.d.ts +0 -2
- package/dist-esm/samples-dev/endpointGetExternalWithGeoMapping.d.ts.map +0 -1
- package/dist-esm/samples-dev/endpointGetExternalWithGeoMapping.js +0 -33
- package/dist-esm/samples-dev/endpointGetExternalWithGeoMapping.js.map +0 -1
- package/dist-esm/samples-dev/endpointGetExternalWithLocation.d.ts +0 -2
- package/dist-esm/samples-dev/endpointGetExternalWithLocation.d.ts.map +0 -1
- package/dist-esm/samples-dev/endpointGetExternalWithLocation.js +0 -33
- package/dist-esm/samples-dev/endpointGetExternalWithLocation.js.map +0 -1
- package/dist-esm/samples-dev/endpointGetExternalWithSubnetMapping.d.ts +0 -2
- package/dist-esm/samples-dev/endpointGetExternalWithSubnetMapping.d.ts.map +0 -1
- package/dist-esm/samples-dev/endpointGetExternalWithSubnetMapping.js +0 -33
- package/dist-esm/samples-dev/endpointGetExternalWithSubnetMapping.js.map +0 -1
- package/dist-esm/samples-dev/endpointPatchExternalTarget.d.ts +0 -2
- package/dist-esm/samples-dev/endpointPatchExternalTarget.d.ts.map +0 -1
- package/dist-esm/samples-dev/endpointPatchExternalTarget.js +0 -39
- package/dist-esm/samples-dev/endpointPatchExternalTarget.js.map +0 -1
- package/dist-esm/samples-dev/endpointPutExternalWithCustomHeaders.d.ts +0 -2
- package/dist-esm/samples-dev/endpointPutExternalWithCustomHeaders.d.ts.map +0 -1
- package/dist-esm/samples-dev/endpointPutExternalWithCustomHeaders.js +0 -44
- package/dist-esm/samples-dev/endpointPutExternalWithCustomHeaders.js.map +0 -1
- package/dist-esm/samples-dev/endpointPutExternalWithGeoMapping.d.ts +0 -2
- package/dist-esm/samples-dev/endpointPutExternalWithGeoMapping.d.ts.map +0 -1
- package/dist-esm/samples-dev/endpointPutExternalWithGeoMapping.js +0 -40
- package/dist-esm/samples-dev/endpointPutExternalWithGeoMapping.js.map +0 -1
- package/dist-esm/samples-dev/endpointPutExternalWithLocation.d.ts +0 -2
- package/dist-esm/samples-dev/endpointPutExternalWithLocation.d.ts.map +0 -1
- package/dist-esm/samples-dev/endpointPutExternalWithLocation.js +0 -40
- package/dist-esm/samples-dev/endpointPutExternalWithLocation.js.map +0 -1
- package/dist-esm/samples-dev/endpointPutExternalWithSubnetMapping.d.ts +0 -2
- package/dist-esm/samples-dev/endpointPutExternalWithSubnetMapping.d.ts.map +0 -1
- package/dist-esm/samples-dev/endpointPutExternalWithSubnetMapping.js +0 -43
- package/dist-esm/samples-dev/endpointPutExternalWithSubnetMapping.js.map +0 -1
- package/dist-esm/samples-dev/geographicHierarchyGetDefault.d.ts +0 -2
- package/dist-esm/samples-dev/geographicHierarchyGetDefault.d.ts.map +0 -1
- package/dist-esm/samples-dev/geographicHierarchyGetDefault.js +0 -29
- package/dist-esm/samples-dev/geographicHierarchyGetDefault.js.map +0 -1
- package/dist-esm/samples-dev/heatMapGet.d.ts +0 -2
- package/dist-esm/samples-dev/heatMapGet.d.ts.map +0 -1
- package/dist-esm/samples-dev/heatMapGet.js +0 -31
- package/dist-esm/samples-dev/heatMapGet.js.map +0 -1
- package/dist-esm/samples-dev/heatMapGetWithNullValues.d.ts +0 -2
- package/dist-esm/samples-dev/heatMapGetWithNullValues.d.ts.map +0 -1
- package/dist-esm/samples-dev/heatMapGetWithNullValues.js +0 -31
- package/dist-esm/samples-dev/heatMapGetWithNullValues.js.map +0 -1
- package/dist-esm/samples-dev/heatMapGetWithTopLeftBotRight.d.ts +0 -2
- package/dist-esm/samples-dev/heatMapGetWithTopLeftBotRight.d.ts.map +0 -1
- package/dist-esm/samples-dev/heatMapGetWithTopLeftBotRight.js +0 -34
- package/dist-esm/samples-dev/heatMapGetWithTopLeftBotRight.js.map +0 -1
- package/dist-esm/samples-dev/listBySubscription.d.ts +0 -2
- package/dist-esm/samples-dev/listBySubscription.d.ts.map +0 -1
- package/dist-esm/samples-dev/listBySubscription.js +0 -43
- package/dist-esm/samples-dev/listBySubscription.js.map +0 -1
- package/dist-esm/samples-dev/listProfilesByResourceGroup.d.ts +0 -2
- package/dist-esm/samples-dev/listProfilesByResourceGroup.d.ts.map +0 -1
- package/dist-esm/samples-dev/listProfilesByResourceGroup.js +0 -44
- package/dist-esm/samples-dev/listProfilesByResourceGroup.js.map +0 -1
- package/dist-esm/samples-dev/nameAvailabilityTestNameAvailablePost21.d.ts +0 -2
- package/dist-esm/samples-dev/nameAvailabilityTestNameAvailablePost21.d.ts.map +0 -1
- package/dist-esm/samples-dev/nameAvailabilityTestNameAvailablePost21.js +0 -33
- package/dist-esm/samples-dev/nameAvailabilityTestNameAvailablePost21.js.map +0 -1
- package/dist-esm/samples-dev/nameAvailabilityTestNameNotAvailablePost23.d.ts +0 -2
- package/dist-esm/samples-dev/nameAvailabilityTestNameNotAvailablePost23.d.ts.map +0 -1
- package/dist-esm/samples-dev/nameAvailabilityTestNameNotAvailablePost23.js +0 -33
- package/dist-esm/samples-dev/nameAvailabilityTestNameNotAvailablePost23.js.map +0 -1
- package/dist-esm/samples-dev/profileDelete.d.ts +0 -2
- package/dist-esm/samples-dev/profileDelete.d.ts.map +0 -1
- package/dist-esm/samples-dev/profileDelete.js +0 -31
- package/dist-esm/samples-dev/profileDelete.js.map +0 -1
- package/dist-esm/samples-dev/profileGetWithEndpoints.d.ts +0 -2
- package/dist-esm/samples-dev/profileGetWithEndpoints.d.ts.map +0 -1
- package/dist-esm/samples-dev/profileGetWithEndpoints.js +0 -31
- package/dist-esm/samples-dev/profileGetWithEndpoints.js.map +0 -1
- package/dist-esm/samples-dev/profileGetWithTrafficViewDisabled.d.ts +0 -2
- package/dist-esm/samples-dev/profileGetWithTrafficViewDisabled.d.ts.map +0 -1
- package/dist-esm/samples-dev/profileGetWithTrafficViewDisabled.js +0 -31
- package/dist-esm/samples-dev/profileGetWithTrafficViewDisabled.js.map +0 -1
- package/dist-esm/samples-dev/profileGetWithTrafficViewEnabled.d.ts +0 -2
- package/dist-esm/samples-dev/profileGetWithTrafficViewEnabled.d.ts.map +0 -1
- package/dist-esm/samples-dev/profileGetWithTrafficViewEnabled.js +0 -31
- package/dist-esm/samples-dev/profileGetWithTrafficViewEnabled.js.map +0 -1
- package/dist-esm/samples-dev/profilePatchMonitorConfig.d.ts +0 -2
- package/dist-esm/samples-dev/profilePatchMonitorConfig.d.ts.map +0 -1
- package/dist-esm/samples-dev/profilePatchMonitorConfig.js +0 -45
- package/dist-esm/samples-dev/profilePatchMonitorConfig.js.map +0 -1
- package/dist-esm/samples-dev/profilePutMultiValue.d.ts +0 -2
- package/dist-esm/samples-dev/profilePutMultiValue.d.ts.map +0 -1
- package/dist-esm/samples-dev/profilePutMultiValue.js +0 -40
- package/dist-esm/samples-dev/profilePutMultiValue.js.map +0 -1
- package/dist-esm/samples-dev/profilePutNoEndpoints.d.ts +0 -2
- package/dist-esm/samples-dev/profilePutNoEndpoints.d.ts.map +0 -1
- package/dist-esm/samples-dev/profilePutNoEndpoints.js +0 -38
- package/dist-esm/samples-dev/profilePutNoEndpoints.js.map +0 -1
- package/dist-esm/samples-dev/profilePutWithAliasing.d.ts +0 -2
- package/dist-esm/samples-dev/profilePutWithAliasing.d.ts.map +0 -1
- package/dist-esm/samples-dev/profilePutWithAliasing.js +0 -58
- package/dist-esm/samples-dev/profilePutWithAliasing.js.map +0 -1
- package/dist-esm/samples-dev/profilePutWithCustomHeaders.d.ts +0 -2
- package/dist-esm/samples-dev/profilePutWithCustomHeaders.d.ts.map +0 -1
- package/dist-esm/samples-dev/profilePutWithCustomHeaders.js +0 -67
- package/dist-esm/samples-dev/profilePutWithCustomHeaders.js.map +0 -1
- package/dist-esm/samples-dev/profilePutWithEndpoints.d.ts +0 -2
- package/dist-esm/samples-dev/profilePutWithEndpoints.d.ts.map +0 -1
- package/dist-esm/samples-dev/profilePutWithEndpoints.js +0 -57
- package/dist-esm/samples-dev/profilePutWithEndpoints.js.map +0 -1
- package/dist-esm/samples-dev/profilePutWithNestedEndpoints.d.ts +0 -2
- package/dist-esm/samples-dev/profilePutWithNestedEndpoints.d.ts.map +0 -1
- package/dist-esm/samples-dev/profilePutWithNestedEndpoints.js +0 -69
- package/dist-esm/samples-dev/profilePutWithNestedEndpoints.js.map +0 -1
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysDelete.d.ts +0 -2
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysDelete.d.ts.map +0 -1
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysDelete.js +0 -29
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysDelete.js.map +0 -1
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysGet.d.ts +0 -2
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysGet.d.ts.map +0 -1
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysGet.js +0 -29
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysGet.js.map +0 -1
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysPut.d.ts +0 -2
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysPut.d.ts.map +0 -1
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysPut.js +0 -29
- package/dist-esm/samples-dev/trafficManagerUserMetricsKeysPut.js.map +0 -1
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -40
- package/dist-esm/test/sampleTest.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
# Release History
|
|
2
|
+
|
|
3
|
+
## 6.1.0-beta.1 (2022-11-15)
|
|
4
|
+
|
|
5
|
+
**Features**
|
|
2
6
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
- Added Interface Endpoint
|
|
8
|
+
- Added Interface HeatMapModel
|
|
9
|
+
- Added Interface Profile
|
|
10
|
+
- Added Interface ProxyResource
|
|
11
|
+
- Added Interface TrackedResource
|
|
12
|
+
- Added Interface TrafficManagerGeographicHierarchy
|
|
13
|
+
- Added Interface UserMetricsModel
|
|
14
|
+
- Added Type Alias AlwaysServe
|
|
15
|
+
- Added Enum KnownAlwaysServe
|
|
16
|
+
|
|
13
17
|
## 6.0.1 (2022-05-05)
|
|
14
18
|
|
|
15
19
|
**Features**
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ This package contains an isomorphic SDK (runs both in Node.js and in browsers) f
|
|
|
6
6
|
|
|
7
7
|
[Source code](https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/trafficmanager/arm-trafficmanager) |
|
|
8
8
|
[Package (NPM)](https://www.npmjs.com/package/@azure/arm-trafficmanager) |
|
|
9
|
-
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-trafficmanager) |
|
|
9
|
+
[API reference documentation](https://docs.microsoft.com/javascript/api/@azure/arm-trafficmanager?view=azure-node-preview) |
|
|
10
10
|
[Samples](https://github.com/Azure-Samples/azure-samples-js-management)
|
|
11
11
|
|
|
12
12
|
## Getting started
|
package/dist/index.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
+
var tslib = require('tslib');
|
|
5
6
|
var coreClient = require('@azure/core-client');
|
|
6
7
|
var coreRestPipeline = require('@azure/core-rest-pipeline');
|
|
7
|
-
var tslib = require('tslib');
|
|
8
8
|
|
|
9
9
|
function _interopNamespace(e) {
|
|
10
10
|
if (e && e.__esModule) return e;
|
|
@@ -27,6 +27,29 @@ function _interopNamespace(e) {
|
|
|
27
27
|
var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
|
|
28
28
|
var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
|
|
29
29
|
|
|
30
|
+
/*
|
|
31
|
+
* Copyright (c) Microsoft Corporation.
|
|
32
|
+
* Licensed under the MIT License.
|
|
33
|
+
*
|
|
34
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
35
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
36
|
+
*/
|
|
37
|
+
const pageMap = new WeakMap();
|
|
38
|
+
/**
|
|
39
|
+
* Given a result page from a pageable operation, returns a
|
|
40
|
+
* continuation token that can be used to begin paging from
|
|
41
|
+
* that point later.
|
|
42
|
+
* @param page A result object from calling .byPage() on a paged operation.
|
|
43
|
+
* @returns The continuation token that can be passed into byPage().
|
|
44
|
+
*/
|
|
45
|
+
function getContinuationToken(page) {
|
|
46
|
+
var _a;
|
|
47
|
+
if (typeof page !== "object" || page === null) {
|
|
48
|
+
return undefined;
|
|
49
|
+
}
|
|
50
|
+
return (_a = pageMap.get(page)) === null || _a === void 0 ? void 0 : _a.continuationToken;
|
|
51
|
+
}
|
|
52
|
+
|
|
30
53
|
/*
|
|
31
54
|
* Copyright (c) Microsoft Corporation.
|
|
32
55
|
* Licensed under the MIT License.
|
|
@@ -37,63 +60,101 @@ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipelin
|
|
|
37
60
|
/** Known values of {@link EndpointStatus} that the service accepts. */
|
|
38
61
|
exports.KnownEndpointStatus = void 0;
|
|
39
62
|
(function (KnownEndpointStatus) {
|
|
63
|
+
/** Enabled */
|
|
40
64
|
KnownEndpointStatus["Enabled"] = "Enabled";
|
|
65
|
+
/** Disabled */
|
|
41
66
|
KnownEndpointStatus["Disabled"] = "Disabled";
|
|
42
67
|
})(exports.KnownEndpointStatus || (exports.KnownEndpointStatus = {}));
|
|
43
68
|
/** Known values of {@link EndpointMonitorStatus} that the service accepts. */
|
|
44
69
|
exports.KnownEndpointMonitorStatus = void 0;
|
|
45
70
|
(function (KnownEndpointMonitorStatus) {
|
|
71
|
+
/** CheckingEndpoint */
|
|
46
72
|
KnownEndpointMonitorStatus["CheckingEndpoint"] = "CheckingEndpoint";
|
|
73
|
+
/** Online */
|
|
47
74
|
KnownEndpointMonitorStatus["Online"] = "Online";
|
|
75
|
+
/** Degraded */
|
|
48
76
|
KnownEndpointMonitorStatus["Degraded"] = "Degraded";
|
|
77
|
+
/** Disabled */
|
|
49
78
|
KnownEndpointMonitorStatus["Disabled"] = "Disabled";
|
|
79
|
+
/** Inactive */
|
|
50
80
|
KnownEndpointMonitorStatus["Inactive"] = "Inactive";
|
|
81
|
+
/** Stopped */
|
|
51
82
|
KnownEndpointMonitorStatus["Stopped"] = "Stopped";
|
|
52
83
|
})(exports.KnownEndpointMonitorStatus || (exports.KnownEndpointMonitorStatus = {}));
|
|
84
|
+
/** Known values of {@link AlwaysServe} that the service accepts. */
|
|
85
|
+
exports.KnownAlwaysServe = void 0;
|
|
86
|
+
(function (KnownAlwaysServe) {
|
|
87
|
+
/** Enabled */
|
|
88
|
+
KnownAlwaysServe["Enabled"] = "Enabled";
|
|
89
|
+
/** Disabled */
|
|
90
|
+
KnownAlwaysServe["Disabled"] = "Disabled";
|
|
91
|
+
})(exports.KnownAlwaysServe || (exports.KnownAlwaysServe = {}));
|
|
53
92
|
/** Known values of {@link ProfileStatus} that the service accepts. */
|
|
54
93
|
exports.KnownProfileStatus = void 0;
|
|
55
94
|
(function (KnownProfileStatus) {
|
|
95
|
+
/** Enabled */
|
|
56
96
|
KnownProfileStatus["Enabled"] = "Enabled";
|
|
97
|
+
/** Disabled */
|
|
57
98
|
KnownProfileStatus["Disabled"] = "Disabled";
|
|
58
99
|
})(exports.KnownProfileStatus || (exports.KnownProfileStatus = {}));
|
|
59
100
|
/** Known values of {@link TrafficRoutingMethod} that the service accepts. */
|
|
60
101
|
exports.KnownTrafficRoutingMethod = void 0;
|
|
61
102
|
(function (KnownTrafficRoutingMethod) {
|
|
103
|
+
/** Performance */
|
|
62
104
|
KnownTrafficRoutingMethod["Performance"] = "Performance";
|
|
105
|
+
/** Priority */
|
|
63
106
|
KnownTrafficRoutingMethod["Priority"] = "Priority";
|
|
107
|
+
/** Weighted */
|
|
64
108
|
KnownTrafficRoutingMethod["Weighted"] = "Weighted";
|
|
109
|
+
/** Geographic */
|
|
65
110
|
KnownTrafficRoutingMethod["Geographic"] = "Geographic";
|
|
111
|
+
/** MultiValue */
|
|
66
112
|
KnownTrafficRoutingMethod["MultiValue"] = "MultiValue";
|
|
113
|
+
/** Subnet */
|
|
67
114
|
KnownTrafficRoutingMethod["Subnet"] = "Subnet";
|
|
68
115
|
})(exports.KnownTrafficRoutingMethod || (exports.KnownTrafficRoutingMethod = {}));
|
|
69
116
|
/** Known values of {@link ProfileMonitorStatus} that the service accepts. */
|
|
70
117
|
exports.KnownProfileMonitorStatus = void 0;
|
|
71
118
|
(function (KnownProfileMonitorStatus) {
|
|
119
|
+
/** CheckingEndpoints */
|
|
72
120
|
KnownProfileMonitorStatus["CheckingEndpoints"] = "CheckingEndpoints";
|
|
121
|
+
/** Online */
|
|
73
122
|
KnownProfileMonitorStatus["Online"] = "Online";
|
|
123
|
+
/** Degraded */
|
|
74
124
|
KnownProfileMonitorStatus["Degraded"] = "Degraded";
|
|
125
|
+
/** Disabled */
|
|
75
126
|
KnownProfileMonitorStatus["Disabled"] = "Disabled";
|
|
127
|
+
/** Inactive */
|
|
76
128
|
KnownProfileMonitorStatus["Inactive"] = "Inactive";
|
|
77
129
|
})(exports.KnownProfileMonitorStatus || (exports.KnownProfileMonitorStatus = {}));
|
|
78
130
|
/** Known values of {@link MonitorProtocol} that the service accepts. */
|
|
79
131
|
exports.KnownMonitorProtocol = void 0;
|
|
80
132
|
(function (KnownMonitorProtocol) {
|
|
133
|
+
/** Http */
|
|
81
134
|
KnownMonitorProtocol["Http"] = "HTTP";
|
|
135
|
+
/** Https */
|
|
82
136
|
KnownMonitorProtocol["Https"] = "HTTPS";
|
|
137
|
+
/** TCP */
|
|
83
138
|
KnownMonitorProtocol["TCP"] = "TCP";
|
|
84
139
|
})(exports.KnownMonitorProtocol || (exports.KnownMonitorProtocol = {}));
|
|
85
140
|
/** Known values of {@link TrafficViewEnrollmentStatus} that the service accepts. */
|
|
86
141
|
exports.KnownTrafficViewEnrollmentStatus = void 0;
|
|
87
142
|
(function (KnownTrafficViewEnrollmentStatus) {
|
|
143
|
+
/** Enabled */
|
|
88
144
|
KnownTrafficViewEnrollmentStatus["Enabled"] = "Enabled";
|
|
145
|
+
/** Disabled */
|
|
89
146
|
KnownTrafficViewEnrollmentStatus["Disabled"] = "Disabled";
|
|
90
147
|
})(exports.KnownTrafficViewEnrollmentStatus || (exports.KnownTrafficViewEnrollmentStatus = {}));
|
|
91
148
|
/** Known values of {@link AllowedEndpointRecordType} that the service accepts. */
|
|
92
149
|
exports.KnownAllowedEndpointRecordType = void 0;
|
|
93
150
|
(function (KnownAllowedEndpointRecordType) {
|
|
151
|
+
/** DomainName */
|
|
94
152
|
KnownAllowedEndpointRecordType["DomainName"] = "DomainName";
|
|
153
|
+
/** IPv4Address */
|
|
95
154
|
KnownAllowedEndpointRecordType["IPv4Address"] = "IPv4Address";
|
|
155
|
+
/** IPv6Address */
|
|
96
156
|
KnownAllowedEndpointRecordType["IPv6Address"] = "IPv6Address";
|
|
157
|
+
/** Any */
|
|
97
158
|
KnownAllowedEndpointRecordType["Any"] = "Any";
|
|
98
159
|
})(exports.KnownAllowedEndpointRecordType || (exports.KnownAllowedEndpointRecordType = {}));
|
|
99
160
|
|
|
@@ -692,6 +753,11 @@ const Endpoint = {
|
|
|
692
753
|
}
|
|
693
754
|
}
|
|
694
755
|
}
|
|
756
|
+
}, alwaysServe: {
|
|
757
|
+
serializedName: "properties.alwaysServe",
|
|
758
|
+
type: {
|
|
759
|
+
name: "String"
|
|
760
|
+
}
|
|
695
761
|
} })
|
|
696
762
|
}
|
|
697
763
|
};
|
|
@@ -895,6 +961,10 @@ const $host = {
|
|
|
895
961
|
const resourceGroupName = {
|
|
896
962
|
parameterPath: "resourceGroupName",
|
|
897
963
|
mapper: {
|
|
964
|
+
constraints: {
|
|
965
|
+
MaxLength: 90,
|
|
966
|
+
MinLength: 1
|
|
967
|
+
},
|
|
898
968
|
serializedName: "resourceGroupName",
|
|
899
969
|
required: true,
|
|
900
970
|
type: {
|
|
@@ -936,7 +1006,7 @@ const endpointName = {
|
|
|
936
1006
|
const apiVersion = {
|
|
937
1007
|
parameterPath: "apiVersion",
|
|
938
1008
|
mapper: {
|
|
939
|
-
defaultValue: "
|
|
1009
|
+
defaultValue: "2022-04-01-preview",
|
|
940
1010
|
isConstant: true,
|
|
941
1011
|
serializedName: "api-version",
|
|
942
1012
|
type: {
|
|
@@ -947,6 +1017,9 @@ const apiVersion = {
|
|
|
947
1017
|
const subscriptionId = {
|
|
948
1018
|
parameterPath: "subscriptionId",
|
|
949
1019
|
mapper: {
|
|
1020
|
+
constraints: {
|
|
1021
|
+
MinLength: 1
|
|
1022
|
+
},
|
|
950
1023
|
serializedName: "subscriptionId",
|
|
951
1024
|
required: true,
|
|
952
1025
|
type: {
|
|
@@ -1030,8 +1103,7 @@ class EndpointsImpl {
|
|
|
1030
1103
|
}
|
|
1031
1104
|
/**
|
|
1032
1105
|
* Update a Traffic Manager endpoint.
|
|
1033
|
-
* @param resourceGroupName The name of the resource group
|
|
1034
|
-
* be updated.
|
|
1106
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1035
1107
|
* @param profileName The name of the Traffic Manager profile.
|
|
1036
1108
|
* @param endpointType The type of the Traffic Manager endpoint to be updated.
|
|
1037
1109
|
* @param endpointName The name of the Traffic Manager endpoint to be updated.
|
|
@@ -1050,7 +1122,7 @@ class EndpointsImpl {
|
|
|
1050
1122
|
}
|
|
1051
1123
|
/**
|
|
1052
1124
|
* Gets a Traffic Manager endpoint.
|
|
1053
|
-
* @param resourceGroupName The name of the resource group
|
|
1125
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1054
1126
|
* @param profileName The name of the Traffic Manager profile.
|
|
1055
1127
|
* @param endpointType The type of the Traffic Manager endpoint.
|
|
1056
1128
|
* @param endpointName The name of the Traffic Manager endpoint.
|
|
@@ -1061,8 +1133,7 @@ class EndpointsImpl {
|
|
|
1061
1133
|
}
|
|
1062
1134
|
/**
|
|
1063
1135
|
* Create or update a Traffic Manager endpoint.
|
|
1064
|
-
* @param resourceGroupName The name of the resource group
|
|
1065
|
-
* be created or updated.
|
|
1136
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1066
1137
|
* @param profileName The name of the Traffic Manager profile.
|
|
1067
1138
|
* @param endpointType The type of the Traffic Manager endpoint to be created or updated.
|
|
1068
1139
|
* @param endpointName The name of the Traffic Manager endpoint to be created or updated.
|
|
@@ -1081,8 +1152,7 @@ class EndpointsImpl {
|
|
|
1081
1152
|
}
|
|
1082
1153
|
/**
|
|
1083
1154
|
* Deletes a Traffic Manager endpoint.
|
|
1084
|
-
* @param resourceGroupName The name of the resource group
|
|
1085
|
-
* be deleted.
|
|
1155
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1086
1156
|
* @param profileName The name of the Traffic Manager profile.
|
|
1087
1157
|
* @param endpointType The type of the Traffic Manager endpoint to be deleted.
|
|
1088
1158
|
* @param endpointName The name of the Traffic Manager endpoint to be deleted.
|
|
@@ -1214,8 +1284,7 @@ class ProfilesImpl {
|
|
|
1214
1284
|
}
|
|
1215
1285
|
/**
|
|
1216
1286
|
* Lists all Traffic Manager profiles within a resource group.
|
|
1217
|
-
* @param resourceGroupName The name of the resource group
|
|
1218
|
-
* be listed.
|
|
1287
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1219
1288
|
* @param options The options parameters.
|
|
1220
1289
|
*/
|
|
1221
1290
|
listByResourceGroup(resourceGroupName, options) {
|
|
@@ -1227,14 +1296,18 @@ class ProfilesImpl {
|
|
|
1227
1296
|
[Symbol.asyncIterator]() {
|
|
1228
1297
|
return this;
|
|
1229
1298
|
},
|
|
1230
|
-
byPage: () => {
|
|
1231
|
-
|
|
1299
|
+
byPage: (settings) => {
|
|
1300
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1301
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1302
|
+
}
|
|
1303
|
+
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
1232
1304
|
}
|
|
1233
1305
|
};
|
|
1234
1306
|
}
|
|
1235
|
-
listByResourceGroupPagingPage(resourceGroupName, options) {
|
|
1307
|
+
listByResourceGroupPagingPage(resourceGroupName, options, _settings) {
|
|
1236
1308
|
return tslib.__asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
|
|
1237
|
-
let result
|
|
1309
|
+
let result;
|
|
1310
|
+
result = yield tslib.__await(this._listByResourceGroup(resourceGroupName, options));
|
|
1238
1311
|
yield yield tslib.__await(result.value || []);
|
|
1239
1312
|
});
|
|
1240
1313
|
}
|
|
@@ -1269,14 +1342,18 @@ class ProfilesImpl {
|
|
|
1269
1342
|
[Symbol.asyncIterator]() {
|
|
1270
1343
|
return this;
|
|
1271
1344
|
},
|
|
1272
|
-
byPage: () => {
|
|
1273
|
-
|
|
1345
|
+
byPage: (settings) => {
|
|
1346
|
+
if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
|
|
1347
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
1348
|
+
}
|
|
1349
|
+
return this.listBySubscriptionPagingPage(options, settings);
|
|
1274
1350
|
}
|
|
1275
1351
|
};
|
|
1276
1352
|
}
|
|
1277
|
-
listBySubscriptionPagingPage(options) {
|
|
1353
|
+
listBySubscriptionPagingPage(options, _settings) {
|
|
1278
1354
|
return tslib.__asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
|
|
1279
|
-
let result
|
|
1355
|
+
let result;
|
|
1356
|
+
result = yield tslib.__await(this._listBySubscription(options));
|
|
1280
1357
|
yield yield tslib.__await(result.value || []);
|
|
1281
1358
|
});
|
|
1282
1359
|
}
|
|
@@ -1309,8 +1386,7 @@ class ProfilesImpl {
|
|
|
1309
1386
|
}
|
|
1310
1387
|
/**
|
|
1311
1388
|
* Lists all Traffic Manager profiles within a resource group.
|
|
1312
|
-
* @param resourceGroupName The name of the resource group
|
|
1313
|
-
* be listed.
|
|
1389
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1314
1390
|
* @param options The options parameters.
|
|
1315
1391
|
*/
|
|
1316
1392
|
_listByResourceGroup(resourceGroupName, options) {
|
|
@@ -1325,7 +1401,7 @@ class ProfilesImpl {
|
|
|
1325
1401
|
}
|
|
1326
1402
|
/**
|
|
1327
1403
|
* Gets a Traffic Manager profile.
|
|
1328
|
-
* @param resourceGroupName The name of the resource group
|
|
1404
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1329
1405
|
* @param profileName The name of the Traffic Manager profile.
|
|
1330
1406
|
* @param options The options parameters.
|
|
1331
1407
|
*/
|
|
@@ -1334,7 +1410,7 @@ class ProfilesImpl {
|
|
|
1334
1410
|
}
|
|
1335
1411
|
/**
|
|
1336
1412
|
* Create or update a Traffic Manager profile.
|
|
1337
|
-
* @param resourceGroupName The name of the resource group
|
|
1413
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1338
1414
|
* @param profileName The name of the Traffic Manager profile.
|
|
1339
1415
|
* @param parameters The Traffic Manager profile parameters supplied to the CreateOrUpdate operation.
|
|
1340
1416
|
* @param options The options parameters.
|
|
@@ -1344,8 +1420,7 @@ class ProfilesImpl {
|
|
|
1344
1420
|
}
|
|
1345
1421
|
/**
|
|
1346
1422
|
* Deletes a Traffic Manager profile.
|
|
1347
|
-
* @param resourceGroupName The name of the resource group
|
|
1348
|
-
* deleted.
|
|
1423
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1349
1424
|
* @param profileName The name of the Traffic Manager profile to be deleted.
|
|
1350
1425
|
* @param options The options parameters.
|
|
1351
1426
|
*/
|
|
@@ -1354,7 +1429,7 @@ class ProfilesImpl {
|
|
|
1354
1429
|
}
|
|
1355
1430
|
/**
|
|
1356
1431
|
* Update a Traffic Manager profile.
|
|
1357
|
-
* @param resourceGroupName The name of the resource group
|
|
1432
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1358
1433
|
* @param profileName The name of the Traffic Manager profile.
|
|
1359
1434
|
* @param parameters The Traffic Manager profile parameters supplied to the Update operation.
|
|
1360
1435
|
* @param options The options parameters.
|
|
@@ -1573,7 +1648,7 @@ class HeatMapImpl {
|
|
|
1573
1648
|
}
|
|
1574
1649
|
/**
|
|
1575
1650
|
* Gets latest heatmap for Traffic Manager profile.
|
|
1576
|
-
* @param resourceGroupName The name of the resource group
|
|
1651
|
+
* @param resourceGroupName The name of the resource group. The name is case insensitive.
|
|
1577
1652
|
* @param profileName The name of the Traffic Manager profile.
|
|
1578
1653
|
* @param options The options parameters.
|
|
1579
1654
|
*/
|
|
@@ -1710,12 +1785,11 @@ class TrafficManagerManagementClient extends coreClient__namespace.ServiceClient
|
|
|
1710
1785
|
/**
|
|
1711
1786
|
* Initializes a new instance of the TrafficManagerManagementClient class.
|
|
1712
1787
|
* @param credentials Subscription credentials which uniquely identify client subscription.
|
|
1713
|
-
* @param subscriptionId
|
|
1714
|
-
* subscription. The subscription ID forms part of the URI for every service call.
|
|
1788
|
+
* @param subscriptionId The ID of the target subscription.
|
|
1715
1789
|
* @param options The parameter options
|
|
1716
1790
|
*/
|
|
1717
1791
|
constructor(credentials, subscriptionId, options) {
|
|
1718
|
-
var _a, _b;
|
|
1792
|
+
var _a, _b, _c;
|
|
1719
1793
|
if (credentials === undefined) {
|
|
1720
1794
|
throw new Error("'credentials' cannot be null");
|
|
1721
1795
|
}
|
|
@@ -1730,45 +1804,76 @@ class TrafficManagerManagementClient extends coreClient__namespace.ServiceClient
|
|
|
1730
1804
|
requestContentType: "application/json; charset=utf-8",
|
|
1731
1805
|
credential: credentials
|
|
1732
1806
|
};
|
|
1733
|
-
const packageDetails = `azsdk-js-arm-trafficmanager/6.0.
|
|
1807
|
+
const packageDetails = `azsdk-js-arm-trafficmanager/6.1.0-beta.1`;
|
|
1734
1808
|
const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
1735
1809
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
1736
1810
|
: `${packageDetails}`;
|
|
1737
|
-
if (!options.credentialScopes) {
|
|
1738
|
-
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
1739
|
-
}
|
|
1740
1811
|
const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
|
|
1741
1812
|
userAgentPrefix
|
|
1742
|
-
},
|
|
1813
|
+
}, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
|
|
1743
1814
|
super(optionsWithDefaults);
|
|
1815
|
+
let bearerTokenAuthenticationPolicyFound = false;
|
|
1744
1816
|
if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
|
|
1745
1817
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
1746
|
-
|
|
1818
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
|
|
1747
1819
|
coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1820
|
+
}
|
|
1821
|
+
if (!options ||
|
|
1822
|
+
!options.pipeline ||
|
|
1823
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
1824
|
+
!bearerTokenAuthenticationPolicyFound) {
|
|
1825
|
+
this.pipeline.removePolicy({
|
|
1826
|
+
name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
|
|
1827
|
+
});
|
|
1828
|
+
this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
|
|
1829
|
+
credential: credentials,
|
|
1830
|
+
scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
|
|
1831
|
+
challengeCallbacks: {
|
|
1832
|
+
authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
|
|
1833
|
+
}
|
|
1834
|
+
}));
|
|
1759
1835
|
}
|
|
1760
1836
|
// Parameter assignments
|
|
1761
1837
|
this.subscriptionId = subscriptionId;
|
|
1762
1838
|
// Assigning values to Constant parameters
|
|
1763
1839
|
this.$host = options.$host || "https://management.azure.com";
|
|
1764
|
-
this.apiVersion = options.apiVersion || "
|
|
1840
|
+
this.apiVersion = options.apiVersion || "2022-04-01-preview";
|
|
1765
1841
|
this.endpoints = new EndpointsImpl(this);
|
|
1766
1842
|
this.profiles = new ProfilesImpl(this);
|
|
1767
1843
|
this.geographicHierarchies = new GeographicHierarchiesImpl(this);
|
|
1768
1844
|
this.heatMap = new HeatMapImpl(this);
|
|
1769
1845
|
this.trafficManagerUserMetricsKeys = new TrafficManagerUserMetricsKeysImpl(this);
|
|
1846
|
+
this.addCustomApiVersionPolicy(options.apiVersion);
|
|
1847
|
+
}
|
|
1848
|
+
/** A function that adds a policy that sets the api-version (or equivalent) to reflect the library version. */
|
|
1849
|
+
addCustomApiVersionPolicy(apiVersion) {
|
|
1850
|
+
if (!apiVersion) {
|
|
1851
|
+
return;
|
|
1852
|
+
}
|
|
1853
|
+
const apiVersionPolicy = {
|
|
1854
|
+
name: "CustomApiVersionPolicy",
|
|
1855
|
+
sendRequest(request, next) {
|
|
1856
|
+
return tslib.__awaiter(this, void 0, void 0, function* () {
|
|
1857
|
+
const param = request.url.split("?");
|
|
1858
|
+
if (param.length > 1) {
|
|
1859
|
+
const newParams = param[1].split("&").map((item) => {
|
|
1860
|
+
if (item.indexOf("api-version") > -1) {
|
|
1861
|
+
return "api-version=" + apiVersion;
|
|
1862
|
+
}
|
|
1863
|
+
else {
|
|
1864
|
+
return item;
|
|
1865
|
+
}
|
|
1866
|
+
});
|
|
1867
|
+
request.url = param[0] + "?" + newParams.join("&");
|
|
1868
|
+
}
|
|
1869
|
+
return next(request);
|
|
1870
|
+
});
|
|
1871
|
+
}
|
|
1872
|
+
};
|
|
1873
|
+
this.pipeline.addPolicy(apiVersionPolicy);
|
|
1770
1874
|
}
|
|
1771
1875
|
}
|
|
1772
1876
|
|
|
1773
1877
|
exports.TrafficManagerManagementClient = TrafficManagerManagementClient;
|
|
1878
|
+
exports.getContinuationToken = getContinuationToken;
|
|
1774
1879
|
//# sourceMappingURL=index.js.map
|