@azure/arm-trafficmanager 6.0.2-alpha.20221026.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/types/tsdoc-metadata.json +1 -1
- 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
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
|
9
|
+
import { env, Recorder, isPlaybackMode, } from "@azure-tools/test-recorder";
|
|
10
|
+
import { createTestCredential } from "@azure-tools/test-credential";
|
|
11
|
+
import { assert } from "chai";
|
|
12
|
+
import { TrafficManagerManagementClient } from "../src/trafficManagerManagementClient";
|
|
13
|
+
const replaceableVariables = {
|
|
14
|
+
AZURE_CLIENT_ID: "azure_client_id",
|
|
15
|
+
AZURE_CLIENT_SECRET: "azure_client_secret",
|
|
16
|
+
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
|
17
|
+
SUBSCRIPTION_ID: "azure_subscription_id"
|
|
18
|
+
};
|
|
19
|
+
const recorderOptions = {
|
|
20
|
+
envSetupForPlayback: replaceableVariables
|
|
21
|
+
};
|
|
22
|
+
export const testPollingOptions = {
|
|
23
|
+
updateIntervalInMs: isPlaybackMode() ? 0 : undefined,
|
|
24
|
+
};
|
|
25
|
+
describe("TrafficManager test", () => {
|
|
26
|
+
let recorder;
|
|
27
|
+
let subscriptionId;
|
|
28
|
+
let client;
|
|
29
|
+
let location;
|
|
30
|
+
let resourceGroup;
|
|
31
|
+
let profileName;
|
|
32
|
+
beforeEach(function () {
|
|
33
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
34
|
+
recorder = new Recorder(this.currentTest);
|
|
35
|
+
yield recorder.start(recorderOptions);
|
|
36
|
+
subscriptionId = env.SUBSCRIPTION_ID || '';
|
|
37
|
+
// This is an example of how the environment variables are used
|
|
38
|
+
const credential = createTestCredential();
|
|
39
|
+
client = new TrafficManagerManagementClient(credential, subscriptionId, recorder.configureClientOptions({}));
|
|
40
|
+
location = "global";
|
|
41
|
+
resourceGroup = "myjstest";
|
|
42
|
+
profileName = "azsmnet6386";
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
afterEach(function () {
|
|
46
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
yield recorder.stop();
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
it("profiles create test", function () {
|
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
const res = yield client.profiles.createOrUpdate(resourceGroup, profileName, {
|
|
53
|
+
dnsConfig: { relativeName: "azsmnet6386", ttl: 35 },
|
|
54
|
+
location,
|
|
55
|
+
maxReturn: 2,
|
|
56
|
+
monitorConfig: { path: "/testpath.aspx", port: 80, protocol: "HTTP" },
|
|
57
|
+
profileStatus: "Enabled",
|
|
58
|
+
trafficRoutingMethod: "MultiValue",
|
|
59
|
+
trafficViewEnrollmentStatus: "Disabled"
|
|
60
|
+
});
|
|
61
|
+
assert.equal(res.name, profileName);
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
it("profiles get test", function () {
|
|
65
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
+
const res = yield client.profiles.get(resourceGroup, profileName);
|
|
67
|
+
assert.equal(res.name, profileName);
|
|
68
|
+
});
|
|
69
|
+
});
|
|
70
|
+
it("profiles list test", function () {
|
|
71
|
+
var e_1, _a;
|
|
72
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
73
|
+
const resArray = new Array();
|
|
74
|
+
try {
|
|
75
|
+
for (var _b = __asyncValues(client.profiles.listByResourceGroup(resourceGroup)), _c; _c = yield _b.next(), !_c.done;) {
|
|
76
|
+
let item = _c.value;
|
|
77
|
+
resArray.push(item);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
81
|
+
finally {
|
|
82
|
+
try {
|
|
83
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
84
|
+
}
|
|
85
|
+
finally { if (e_1) throw e_1.error; }
|
|
86
|
+
}
|
|
87
|
+
assert.equal(resArray.length, 1);
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
it("profiles delete test", function () {
|
|
91
|
+
var e_2, _a;
|
|
92
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
93
|
+
const resArray = new Array();
|
|
94
|
+
const res = yield client.profiles.delete(resourceGroup, profileName);
|
|
95
|
+
try {
|
|
96
|
+
for (var _b = __asyncValues(client.profiles.listByResourceGroup(resourceGroup)), _c; _c = yield _b.next(), !_c.done;) {
|
|
97
|
+
let item = _c.value;
|
|
98
|
+
resArray.push(item);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
102
|
+
finally {
|
|
103
|
+
try {
|
|
104
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
105
|
+
}
|
|
106
|
+
finally { if (e_2) throw e_2.error; }
|
|
107
|
+
}
|
|
108
|
+
assert.equal(resArray.length, 0);
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
});
|
|
112
|
+
//# sourceMappingURL=trafficmanager_examples.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trafficmanager_examples.spec.js","sourceRoot":"","sources":["../../test/trafficmanager_examples.spec.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for TrafficManagerManagementClient.",
|
|
6
|
-
"version": "6.0
|
|
6
|
+
"version": "6.1.0-alpha.20221115.1",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=14.0.0"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"@azure/core-paging": "^1.2.0",
|
|
12
|
-
"@azure/core-client": "^1.
|
|
12
|
+
"@azure/core-client": "^1.6.1",
|
|
13
13
|
"@azure/core-auth": "^1.3.0",
|
|
14
14
|
"@azure/core-rest-pipeline": "^1.8.0",
|
|
15
15
|
"tslib": "^2.2.0"
|
|
@@ -34,13 +34,18 @@
|
|
|
34
34
|
"mkdirp": "^1.0.4",
|
|
35
35
|
"rollup": "^2.66.1",
|
|
36
36
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
37
|
-
"typescript": "~4.
|
|
37
|
+
"typescript": "~4.8.0",
|
|
38
38
|
"uglify-js": "^3.4.9",
|
|
39
39
|
"rimraf": "^3.0.0",
|
|
40
40
|
"@azure/identity": "^2.0.1",
|
|
41
|
-
"@azure-tools/test-recorder": "^
|
|
41
|
+
"@azure-tools/test-recorder": "^2.0.0",
|
|
42
|
+
"@azure-tools/test-credential": ">=1.0.0-alpha <1.0.0-alphb",
|
|
42
43
|
"mocha": "^7.1.1",
|
|
43
|
-
"
|
|
44
|
+
"@types/chai": "^4.2.8",
|
|
45
|
+
"chai": "^4.2.0",
|
|
46
|
+
"cross-env": "^7.0.2",
|
|
47
|
+
"@types/node": "^14.0.0",
|
|
48
|
+
"@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb"
|
|
44
49
|
},
|
|
45
50
|
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/trafficmanager/arm-trafficmanager",
|
|
46
51
|
"repository": {
|
|
@@ -91,9 +96,8 @@
|
|
|
91
96
|
"unit-test:node": "cross-env TEST_MODE=playback npm run integration-test:node",
|
|
92
97
|
"unit-test:browser": "echo skipped",
|
|
93
98
|
"integration-test": "npm run integration-test:node && npm run integration-test:browser",
|
|
94
|
-
"integration-test:node": "
|
|
95
|
-
"integration-test:browser": "echo skipped"
|
|
96
|
-
"docs": "echo skipped"
|
|
99
|
+
"integration-test:node": "dev-tool run test:node-ts-input -- --timeout 1200000 'test/*.ts'",
|
|
100
|
+
"integration-test:browser": "echo skipped"
|
|
97
101
|
},
|
|
98
102
|
"sideEffects": false,
|
|
99
103
|
"//metadata": {
|
|
@@ -11,6 +11,9 @@ import { PagedAsyncIterableIterator } from '@azure/core-paging';
|
|
|
11
11
|
// @public
|
|
12
12
|
export type AllowedEndpointRecordType = string;
|
|
13
13
|
|
|
14
|
+
// @public
|
|
15
|
+
export type AlwaysServe = string;
|
|
16
|
+
|
|
14
17
|
// @public
|
|
15
18
|
export interface CheckTrafficManagerRelativeDnsNameAvailabilityParameters {
|
|
16
19
|
name?: string;
|
|
@@ -43,21 +46,22 @@ export interface DnsConfig {
|
|
|
43
46
|
}
|
|
44
47
|
|
|
45
48
|
// @public
|
|
46
|
-
export
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
endpointStatus?: EndpointStatus;
|
|
50
|
-
weight?: number;
|
|
51
|
-
priority?: number;
|
|
49
|
+
export interface Endpoint extends ProxyResource {
|
|
50
|
+
alwaysServe?: AlwaysServe;
|
|
51
|
+
customHeaders?: EndpointPropertiesCustomHeadersItem[];
|
|
52
52
|
endpointLocation?: string;
|
|
53
53
|
endpointMonitorStatus?: EndpointMonitorStatus;
|
|
54
|
+
endpointStatus?: EndpointStatus;
|
|
55
|
+
geoMapping?: string[];
|
|
54
56
|
minChildEndpoints?: number;
|
|
55
57
|
minChildEndpointsIPv4?: number;
|
|
56
58
|
minChildEndpointsIPv6?: number;
|
|
57
|
-
|
|
59
|
+
priority?: number;
|
|
58
60
|
subnets?: EndpointPropertiesSubnetsItem[];
|
|
59
|
-
|
|
60
|
-
|
|
61
|
+
target?: string;
|
|
62
|
+
targetResourceId?: string;
|
|
63
|
+
weight?: number;
|
|
64
|
+
}
|
|
61
65
|
|
|
62
66
|
// @public
|
|
63
67
|
export type EndpointMonitorStatus = string;
|
|
@@ -129,6 +133,9 @@ export interface GeographicHierarchiesGetDefaultOptionalParams extends coreClien
|
|
|
129
133
|
// @public
|
|
130
134
|
export type GeographicHierarchiesGetDefaultResponse = TrafficManagerGeographicHierarchy;
|
|
131
135
|
|
|
136
|
+
// @public
|
|
137
|
+
export function getContinuationToken(page: unknown): string | undefined;
|
|
138
|
+
|
|
132
139
|
// @public
|
|
133
140
|
export interface HeatMap {
|
|
134
141
|
get(resourceGroupName: string, profileName: string, options?: HeatMapGetOptionalParams): Promise<HeatMapGetResponse>;
|
|
@@ -150,102 +157,78 @@ export interface HeatMapGetOptionalParams extends coreClient.OperationOptions {
|
|
|
150
157
|
export type HeatMapGetResponse = HeatMapModel;
|
|
151
158
|
|
|
152
159
|
// @public
|
|
153
|
-
export
|
|
154
|
-
startTime?: Date;
|
|
155
|
-
endTime?: Date;
|
|
160
|
+
export interface HeatMapModel extends ProxyResource {
|
|
156
161
|
endpoints?: HeatMapEndpoint[];
|
|
162
|
+
endTime?: Date;
|
|
163
|
+
startTime?: Date;
|
|
157
164
|
trafficFlows?: TrafficFlow[];
|
|
158
|
-
}
|
|
165
|
+
}
|
|
159
166
|
|
|
160
167
|
// @public
|
|
161
168
|
export enum KnownAllowedEndpointRecordType {
|
|
162
|
-
// (undocumented)
|
|
163
169
|
Any = "Any",
|
|
164
|
-
// (undocumented)
|
|
165
170
|
DomainName = "DomainName",
|
|
166
|
-
// (undocumented)
|
|
167
171
|
IPv4Address = "IPv4Address",
|
|
168
|
-
// (undocumented)
|
|
169
172
|
IPv6Address = "IPv6Address"
|
|
170
173
|
}
|
|
171
174
|
|
|
175
|
+
// @public
|
|
176
|
+
export enum KnownAlwaysServe {
|
|
177
|
+
Disabled = "Disabled",
|
|
178
|
+
Enabled = "Enabled"
|
|
179
|
+
}
|
|
180
|
+
|
|
172
181
|
// @public
|
|
173
182
|
export enum KnownEndpointMonitorStatus {
|
|
174
|
-
// (undocumented)
|
|
175
183
|
CheckingEndpoint = "CheckingEndpoint",
|
|
176
|
-
// (undocumented)
|
|
177
184
|
Degraded = "Degraded",
|
|
178
|
-
// (undocumented)
|
|
179
185
|
Disabled = "Disabled",
|
|
180
|
-
// (undocumented)
|
|
181
186
|
Inactive = "Inactive",
|
|
182
|
-
// (undocumented)
|
|
183
187
|
Online = "Online",
|
|
184
|
-
// (undocumented)
|
|
185
188
|
Stopped = "Stopped"
|
|
186
189
|
}
|
|
187
190
|
|
|
188
191
|
// @public
|
|
189
192
|
export enum KnownEndpointStatus {
|
|
190
|
-
// (undocumented)
|
|
191
193
|
Disabled = "Disabled",
|
|
192
|
-
// (undocumented)
|
|
193
194
|
Enabled = "Enabled"
|
|
194
195
|
}
|
|
195
196
|
|
|
196
197
|
// @public
|
|
197
198
|
export enum KnownMonitorProtocol {
|
|
198
|
-
// (undocumented)
|
|
199
199
|
Http = "HTTP",
|
|
200
|
-
// (undocumented)
|
|
201
200
|
Https = "HTTPS",
|
|
202
|
-
// (undocumented)
|
|
203
201
|
TCP = "TCP"
|
|
204
202
|
}
|
|
205
203
|
|
|
206
204
|
// @public
|
|
207
205
|
export enum KnownProfileMonitorStatus {
|
|
208
|
-
// (undocumented)
|
|
209
206
|
CheckingEndpoints = "CheckingEndpoints",
|
|
210
|
-
// (undocumented)
|
|
211
207
|
Degraded = "Degraded",
|
|
212
|
-
// (undocumented)
|
|
213
208
|
Disabled = "Disabled",
|
|
214
|
-
// (undocumented)
|
|
215
209
|
Inactive = "Inactive",
|
|
216
|
-
// (undocumented)
|
|
217
210
|
Online = "Online"
|
|
218
211
|
}
|
|
219
212
|
|
|
220
213
|
// @public
|
|
221
214
|
export enum KnownProfileStatus {
|
|
222
|
-
// (undocumented)
|
|
223
215
|
Disabled = "Disabled",
|
|
224
|
-
// (undocumented)
|
|
225
216
|
Enabled = "Enabled"
|
|
226
217
|
}
|
|
227
218
|
|
|
228
219
|
// @public
|
|
229
220
|
export enum KnownTrafficRoutingMethod {
|
|
230
|
-
// (undocumented)
|
|
231
221
|
Geographic = "Geographic",
|
|
232
|
-
// (undocumented)
|
|
233
222
|
MultiValue = "MultiValue",
|
|
234
|
-
// (undocumented)
|
|
235
223
|
Performance = "Performance",
|
|
236
|
-
// (undocumented)
|
|
237
224
|
Priority = "Priority",
|
|
238
|
-
// (undocumented)
|
|
239
225
|
Subnet = "Subnet",
|
|
240
|
-
// (undocumented)
|
|
241
226
|
Weighted = "Weighted"
|
|
242
227
|
}
|
|
243
228
|
|
|
244
229
|
// @public
|
|
245
230
|
export enum KnownTrafficViewEnrollmentStatus {
|
|
246
|
-
// (undocumented)
|
|
247
231
|
Disabled = "Disabled",
|
|
248
|
-
// (undocumented)
|
|
249
232
|
Enabled = "Enabled"
|
|
250
233
|
}
|
|
251
234
|
|
|
@@ -278,16 +261,16 @@ export interface MonitorConfigExpectedStatusCodeRangesItem {
|
|
|
278
261
|
export type MonitorProtocol = string;
|
|
279
262
|
|
|
280
263
|
// @public
|
|
281
|
-
export
|
|
282
|
-
|
|
283
|
-
trafficRoutingMethod?: TrafficRoutingMethod;
|
|
264
|
+
export interface Profile extends TrackedResource {
|
|
265
|
+
allowedEndpointRecordTypes?: AllowedEndpointRecordType[];
|
|
284
266
|
dnsConfig?: DnsConfig;
|
|
285
|
-
monitorConfig?: MonitorConfig;
|
|
286
267
|
endpoints?: Endpoint[];
|
|
287
|
-
trafficViewEnrollmentStatus?: TrafficViewEnrollmentStatus;
|
|
288
|
-
allowedEndpointRecordTypes?: AllowedEndpointRecordType[];
|
|
289
268
|
maxReturn?: number;
|
|
290
|
-
|
|
269
|
+
monitorConfig?: MonitorConfig;
|
|
270
|
+
profileStatus?: ProfileStatus;
|
|
271
|
+
trafficRoutingMethod?: TrafficRoutingMethod;
|
|
272
|
+
trafficViewEnrollmentStatus?: TrafficViewEnrollmentStatus;
|
|
273
|
+
}
|
|
291
274
|
|
|
292
275
|
// @public
|
|
293
276
|
export interface ProfileListResult {
|
|
@@ -361,7 +344,8 @@ export interface ProfilesUpdateOptionalParams extends coreClient.OperationOption
|
|
|
361
344
|
export type ProfilesUpdateResponse = Profile;
|
|
362
345
|
|
|
363
346
|
// @public
|
|
364
|
-
export
|
|
347
|
+
export interface ProxyResource extends Resource {
|
|
348
|
+
}
|
|
365
349
|
|
|
366
350
|
// @public
|
|
367
351
|
export interface QueryExperience {
|
|
@@ -385,12 +369,12 @@ export interface Resource {
|
|
|
385
369
|
}
|
|
386
370
|
|
|
387
371
|
// @public
|
|
388
|
-
export
|
|
372
|
+
export interface TrackedResource extends Resource {
|
|
373
|
+
location?: string;
|
|
389
374
|
tags?: {
|
|
390
375
|
[propertyName: string]: string;
|
|
391
376
|
};
|
|
392
|
-
|
|
393
|
-
};
|
|
377
|
+
}
|
|
394
378
|
|
|
395
379
|
// @public
|
|
396
380
|
export interface TrafficFlow {
|
|
@@ -401,9 +385,9 @@ export interface TrafficFlow {
|
|
|
401
385
|
}
|
|
402
386
|
|
|
403
387
|
// @public
|
|
404
|
-
export
|
|
388
|
+
export interface TrafficManagerGeographicHierarchy extends ProxyResource {
|
|
405
389
|
geographicHierarchy?: Region;
|
|
406
|
-
}
|
|
390
|
+
}
|
|
407
391
|
|
|
408
392
|
// @public (undocumented)
|
|
409
393
|
export class TrafficManagerManagementClient extends coreClient.ServiceClient {
|
|
@@ -477,9 +461,9 @@ export type TrafficRoutingMethod = string;
|
|
|
477
461
|
export type TrafficViewEnrollmentStatus = string;
|
|
478
462
|
|
|
479
463
|
// @public
|
|
480
|
-
export
|
|
464
|
+
export interface UserMetricsModel extends ProxyResource {
|
|
481
465
|
key?: string;
|
|
482
|
-
}
|
|
466
|
+
}
|
|
483
467
|
|
|
484
468
|
// (No @packageDocumentation comment for this package)
|
|
485
469
|
|
package/src/index.ts
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
/// <reference lib="esnext.asynciterable" />
|
|
10
|
+
export { getContinuationToken } from "./pagingHelper";
|
|
10
11
|
export * from "./models";
|
|
11
12
|
export { TrafficManagerManagementClient } from "./trafficManagerManagementClient";
|
|
12
13
|
export * from "./operationsInterfaces";
|
package/src/models/index.ts
CHANGED
|
@@ -183,18 +183,18 @@ export interface QueryExperience {
|
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
/** The resource model definition for a ARM proxy resource. It will have everything other than required location and tags */
|
|
186
|
-
export
|
|
186
|
+
export interface ProxyResource extends Resource {}
|
|
187
187
|
|
|
188
188
|
/** The resource model definition for a ARM tracked top level resource */
|
|
189
|
-
export
|
|
189
|
+
export interface TrackedResource extends Resource {
|
|
190
190
|
/** Resource tags. */
|
|
191
191
|
tags?: { [propertyName: string]: string };
|
|
192
192
|
/** The Azure Region where the resource lives */
|
|
193
193
|
location?: string;
|
|
194
|
-
}
|
|
194
|
+
}
|
|
195
195
|
|
|
196
196
|
/** Class representing a Traffic Manager endpoint. */
|
|
197
|
-
export
|
|
197
|
+
export interface Endpoint extends ProxyResource {
|
|
198
198
|
/** The Azure Resource URI of the of the endpoint. Not applicable to endpoints of type 'ExternalEndpoints'. */
|
|
199
199
|
targetResourceId?: string;
|
|
200
200
|
/** The fully-qualified DNS name or IP address of the endpoint. Traffic Manager returns this value in DNS responses to direct traffic to this endpoint. */
|
|
@@ -221,16 +221,18 @@ export type Endpoint = ProxyResource & {
|
|
|
221
221
|
subnets?: EndpointPropertiesSubnetsItem[];
|
|
222
222
|
/** List of custom headers. */
|
|
223
223
|
customHeaders?: EndpointPropertiesCustomHeadersItem[];
|
|
224
|
-
|
|
224
|
+
/** If Always Serve is enabled, probing for endpoint health will be disabled and endpoints will be included in the traffic routing method. */
|
|
225
|
+
alwaysServe?: AlwaysServe;
|
|
226
|
+
}
|
|
225
227
|
|
|
226
228
|
/** Class representing the Geographic hierarchy used with the Geographic traffic routing method. */
|
|
227
|
-
export
|
|
229
|
+
export interface TrafficManagerGeographicHierarchy extends ProxyResource {
|
|
228
230
|
/** The region at the root of the hierarchy from all the regions in the hierarchy can be retrieved. */
|
|
229
231
|
geographicHierarchy?: Region;
|
|
230
|
-
}
|
|
232
|
+
}
|
|
231
233
|
|
|
232
234
|
/** Class representing a Traffic Manager HeatMap. */
|
|
233
|
-
export
|
|
235
|
+
export interface HeatMapModel extends ProxyResource {
|
|
234
236
|
/** The beginning of the time window for this HeatMap, inclusive. */
|
|
235
237
|
startTime?: Date;
|
|
236
238
|
/** The ending of the time window for this HeatMap, exclusive. */
|
|
@@ -239,16 +241,16 @@ export type HeatMapModel = ProxyResource & {
|
|
|
239
241
|
endpoints?: HeatMapEndpoint[];
|
|
240
242
|
/** The traffic flows produced in this HeatMap calculation. */
|
|
241
243
|
trafficFlows?: TrafficFlow[];
|
|
242
|
-
}
|
|
244
|
+
}
|
|
243
245
|
|
|
244
246
|
/** Class representing Traffic Manager User Metrics. */
|
|
245
|
-
export
|
|
247
|
+
export interface UserMetricsModel extends ProxyResource {
|
|
246
248
|
/** The key returned by the User Metrics operation. */
|
|
247
249
|
key?: string;
|
|
248
|
-
}
|
|
250
|
+
}
|
|
249
251
|
|
|
250
252
|
/** Class representing a Traffic Manager profile. */
|
|
251
|
-
export
|
|
253
|
+
export interface Profile extends TrackedResource {
|
|
252
254
|
/** The status of the Traffic Manager profile. */
|
|
253
255
|
profileStatus?: ProfileStatus;
|
|
254
256
|
/** The traffic routing method of the Traffic Manager profile. */
|
|
@@ -265,11 +267,13 @@ export type Profile = TrackedResource & {
|
|
|
265
267
|
allowedEndpointRecordTypes?: AllowedEndpointRecordType[];
|
|
266
268
|
/** Maximum number of endpoints to be returned for MultiValue routing type. */
|
|
267
269
|
maxReturn?: number;
|
|
268
|
-
}
|
|
270
|
+
}
|
|
269
271
|
|
|
270
272
|
/** Known values of {@link EndpointStatus} that the service accepts. */
|
|
271
273
|
export enum KnownEndpointStatus {
|
|
274
|
+
/** Enabled */
|
|
272
275
|
Enabled = "Enabled",
|
|
276
|
+
/** Disabled */
|
|
273
277
|
Disabled = "Disabled"
|
|
274
278
|
}
|
|
275
279
|
|
|
@@ -285,11 +289,17 @@ export type EndpointStatus = string;
|
|
|
285
289
|
|
|
286
290
|
/** Known values of {@link EndpointMonitorStatus} that the service accepts. */
|
|
287
291
|
export enum KnownEndpointMonitorStatus {
|
|
292
|
+
/** CheckingEndpoint */
|
|
288
293
|
CheckingEndpoint = "CheckingEndpoint",
|
|
294
|
+
/** Online */
|
|
289
295
|
Online = "Online",
|
|
296
|
+
/** Degraded */
|
|
290
297
|
Degraded = "Degraded",
|
|
298
|
+
/** Disabled */
|
|
291
299
|
Disabled = "Disabled",
|
|
300
|
+
/** Inactive */
|
|
292
301
|
Inactive = "Inactive",
|
|
302
|
+
/** Stopped */
|
|
293
303
|
Stopped = "Stopped"
|
|
294
304
|
}
|
|
295
305
|
|
|
@@ -307,9 +317,29 @@ export enum KnownEndpointMonitorStatus {
|
|
|
307
317
|
*/
|
|
308
318
|
export type EndpointMonitorStatus = string;
|
|
309
319
|
|
|
320
|
+
/** Known values of {@link AlwaysServe} that the service accepts. */
|
|
321
|
+
export enum KnownAlwaysServe {
|
|
322
|
+
/** Enabled */
|
|
323
|
+
Enabled = "Enabled",
|
|
324
|
+
/** Disabled */
|
|
325
|
+
Disabled = "Disabled"
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
/**
|
|
329
|
+
* Defines values for AlwaysServe. \
|
|
330
|
+
* {@link KnownAlwaysServe} can be used interchangeably with AlwaysServe,
|
|
331
|
+
* this enum contains the known values that the service supports.
|
|
332
|
+
* ### Known values supported by the service
|
|
333
|
+
* **Enabled** \
|
|
334
|
+
* **Disabled**
|
|
335
|
+
*/
|
|
336
|
+
export type AlwaysServe = string;
|
|
337
|
+
|
|
310
338
|
/** Known values of {@link ProfileStatus} that the service accepts. */
|
|
311
339
|
export enum KnownProfileStatus {
|
|
340
|
+
/** Enabled */
|
|
312
341
|
Enabled = "Enabled",
|
|
342
|
+
/** Disabled */
|
|
313
343
|
Disabled = "Disabled"
|
|
314
344
|
}
|
|
315
345
|
|
|
@@ -325,11 +355,17 @@ export type ProfileStatus = string;
|
|
|
325
355
|
|
|
326
356
|
/** Known values of {@link TrafficRoutingMethod} that the service accepts. */
|
|
327
357
|
export enum KnownTrafficRoutingMethod {
|
|
358
|
+
/** Performance */
|
|
328
359
|
Performance = "Performance",
|
|
360
|
+
/** Priority */
|
|
329
361
|
Priority = "Priority",
|
|
362
|
+
/** Weighted */
|
|
330
363
|
Weighted = "Weighted",
|
|
364
|
+
/** Geographic */
|
|
331
365
|
Geographic = "Geographic",
|
|
366
|
+
/** MultiValue */
|
|
332
367
|
MultiValue = "MultiValue",
|
|
368
|
+
/** Subnet */
|
|
333
369
|
Subnet = "Subnet"
|
|
334
370
|
}
|
|
335
371
|
|
|
@@ -349,10 +385,15 @@ export type TrafficRoutingMethod = string;
|
|
|
349
385
|
|
|
350
386
|
/** Known values of {@link ProfileMonitorStatus} that the service accepts. */
|
|
351
387
|
export enum KnownProfileMonitorStatus {
|
|
388
|
+
/** CheckingEndpoints */
|
|
352
389
|
CheckingEndpoints = "CheckingEndpoints",
|
|
390
|
+
/** Online */
|
|
353
391
|
Online = "Online",
|
|
392
|
+
/** Degraded */
|
|
354
393
|
Degraded = "Degraded",
|
|
394
|
+
/** Disabled */
|
|
355
395
|
Disabled = "Disabled",
|
|
396
|
+
/** Inactive */
|
|
356
397
|
Inactive = "Inactive"
|
|
357
398
|
}
|
|
358
399
|
|
|
@@ -371,8 +412,11 @@ export type ProfileMonitorStatus = string;
|
|
|
371
412
|
|
|
372
413
|
/** Known values of {@link MonitorProtocol} that the service accepts. */
|
|
373
414
|
export enum KnownMonitorProtocol {
|
|
415
|
+
/** Http */
|
|
374
416
|
Http = "HTTP",
|
|
417
|
+
/** Https */
|
|
375
418
|
Https = "HTTPS",
|
|
419
|
+
/** TCP */
|
|
376
420
|
TCP = "TCP"
|
|
377
421
|
}
|
|
378
422
|
|
|
@@ -389,7 +433,9 @@ export type MonitorProtocol = string;
|
|
|
389
433
|
|
|
390
434
|
/** Known values of {@link TrafficViewEnrollmentStatus} that the service accepts. */
|
|
391
435
|
export enum KnownTrafficViewEnrollmentStatus {
|
|
436
|
+
/** Enabled */
|
|
392
437
|
Enabled = "Enabled",
|
|
438
|
+
/** Disabled */
|
|
393
439
|
Disabled = "Disabled"
|
|
394
440
|
}
|
|
395
441
|
|
|
@@ -405,9 +451,13 @@ export type TrafficViewEnrollmentStatus = string;
|
|
|
405
451
|
|
|
406
452
|
/** Known values of {@link AllowedEndpointRecordType} that the service accepts. */
|
|
407
453
|
export enum KnownAllowedEndpointRecordType {
|
|
454
|
+
/** DomainName */
|
|
408
455
|
DomainName = "DomainName",
|
|
456
|
+
/** IPv4Address */
|
|
409
457
|
IPv4Address = "IPv4Address",
|
|
458
|
+
/** IPv6Address */
|
|
410
459
|
IPv6Address = "IPv6Address",
|
|
460
|
+
/** Any */
|
|
411
461
|
Any = "Any"
|
|
412
462
|
}
|
|
413
463
|
|
package/src/models/mappers.ts
CHANGED
package/src/models/parameters.ts
CHANGED
|
@@ -61,6 +61,10 @@ export const $host: OperationURLParameter = {
|
|
|
61
61
|
export const resourceGroupName: OperationURLParameter = {
|
|
62
62
|
parameterPath: "resourceGroupName",
|
|
63
63
|
mapper: {
|
|
64
|
+
constraints: {
|
|
65
|
+
MaxLength: 90,
|
|
66
|
+
MinLength: 1
|
|
67
|
+
},
|
|
64
68
|
serializedName: "resourceGroupName",
|
|
65
69
|
required: true,
|
|
66
70
|
type: {
|
|
@@ -106,7 +110,7 @@ export const endpointName: OperationURLParameter = {
|
|
|
106
110
|
export const apiVersion: OperationQueryParameter = {
|
|
107
111
|
parameterPath: "apiVersion",
|
|
108
112
|
mapper: {
|
|
109
|
-
defaultValue: "
|
|
113
|
+
defaultValue: "2022-04-01-preview",
|
|
110
114
|
isConstant: true,
|
|
111
115
|
serializedName: "api-version",
|
|
112
116
|
type: {
|
|
@@ -118,6 +122,9 @@ export const apiVersion: OperationQueryParameter = {
|
|
|
118
122
|
export const subscriptionId: OperationURLParameter = {
|
|
119
123
|
parameterPath: "subscriptionId",
|
|
120
124
|
mapper: {
|
|
125
|
+
constraints: {
|
|
126
|
+
MinLength: 1
|
|
127
|
+
},
|
|
121
128
|
serializedName: "subscriptionId",
|
|
122
129
|
required: true,
|
|
123
130
|
type: {
|