@azure/arm-trafficmanager 6.0.0-alpha.20220421.1 → 6.0.2-alpha.20220509.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.
Files changed (78) hide show
  1. package/CHANGELOG.md +17 -1
  2. package/README.md +11 -0
  3. package/dist/index.js +98 -43
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/endpointsCreateOrUpdateSample.d.ts +2 -0
  8. package/dist-esm/samples-dev/endpointsCreateOrUpdateSample.d.ts.map +1 -0
  9. package/dist-esm/samples-dev/endpointsCreateOrUpdateSample.js +128 -0
  10. package/dist-esm/samples-dev/endpointsCreateOrUpdateSample.js.map +1 -0
  11. package/dist-esm/samples-dev/endpointsDeleteSample.d.ts +2 -0
  12. package/dist-esm/samples-dev/endpointsDeleteSample.d.ts.map +1 -0
  13. package/dist-esm/samples-dev/endpointsDeleteSample.js +33 -0
  14. package/dist-esm/samples-dev/endpointsDeleteSample.js.map +1 -0
  15. package/dist-esm/samples-dev/endpointsGetSample.d.ts +2 -0
  16. package/dist-esm/samples-dev/endpointsGetSample.d.ts.map +1 -0
  17. package/dist-esm/samples-dev/endpointsGetSample.js +73 -0
  18. package/dist-esm/samples-dev/endpointsGetSample.js.map +1 -0
  19. package/dist-esm/samples-dev/endpointsUpdateSample.d.ts +2 -0
  20. package/dist-esm/samples-dev/endpointsUpdateSample.d.ts.map +1 -0
  21. package/dist-esm/samples-dev/endpointsUpdateSample.js +39 -0
  22. package/dist-esm/samples-dev/endpointsUpdateSample.js.map +1 -0
  23. package/dist-esm/samples-dev/geographicHierarchiesGetDefaultSample.d.ts +2 -0
  24. package/dist-esm/samples-dev/geographicHierarchiesGetDefaultSample.d.ts.map +1 -0
  25. package/dist-esm/samples-dev/geographicHierarchiesGetDefaultSample.js +29 -0
  26. package/dist-esm/samples-dev/geographicHierarchiesGetDefaultSample.js.map +1 -0
  27. package/dist-esm/samples-dev/heatMapGetSample.d.ts +2 -0
  28. package/dist-esm/samples-dev/heatMapGetSample.d.ts.map +1 -0
  29. package/dist-esm/samples-dev/heatMapGetSample.js +70 -0
  30. package/dist-esm/samples-dev/heatMapGetSample.js.map +1 -0
  31. package/dist-esm/samples-dev/profilesCheckTrafficManagerRelativeDnsNameAvailabilitySample.d.ts +2 -0
  32. package/dist-esm/samples-dev/profilesCheckTrafficManagerRelativeDnsNameAvailabilitySample.d.ts.map +1 -0
  33. package/dist-esm/samples-dev/profilesCheckTrafficManagerRelativeDnsNameAvailabilitySample.js +53 -0
  34. package/dist-esm/samples-dev/profilesCheckTrafficManagerRelativeDnsNameAvailabilitySample.js.map +1 -0
  35. package/dist-esm/samples-dev/profilesCreateOrUpdateSample.d.ts +2 -0
  36. package/dist-esm/samples-dev/profilesCreateOrUpdateSample.d.ts.map +1 -0
  37. package/dist-esm/samples-dev/profilesCreateOrUpdateSample.js +264 -0
  38. package/dist-esm/samples-dev/profilesCreateOrUpdateSample.js.map +1 -0
  39. package/dist-esm/samples-dev/profilesDeleteSample.d.ts +2 -0
  40. package/dist-esm/samples-dev/profilesDeleteSample.d.ts.map +1 -0
  41. package/dist-esm/samples-dev/profilesDeleteSample.js +31 -0
  42. package/dist-esm/samples-dev/profilesDeleteSample.js.map +1 -0
  43. package/dist-esm/samples-dev/profilesGetSample.d.ts +2 -0
  44. package/dist-esm/samples-dev/profilesGetSample.d.ts.map +1 -0
  45. package/dist-esm/samples-dev/profilesGetSample.js +67 -0
  46. package/dist-esm/samples-dev/profilesGetSample.js.map +1 -0
  47. package/dist-esm/samples-dev/profilesListByResourceGroupSample.d.ts +2 -0
  48. package/dist-esm/samples-dev/profilesListByResourceGroupSample.d.ts.map +1 -0
  49. package/dist-esm/samples-dev/profilesListByResourceGroupSample.js +44 -0
  50. package/dist-esm/samples-dev/profilesListByResourceGroupSample.js.map +1 -0
  51. package/dist-esm/samples-dev/profilesListBySubscriptionSample.d.ts +2 -0
  52. package/dist-esm/samples-dev/profilesListBySubscriptionSample.d.ts.map +1 -0
  53. package/dist-esm/samples-dev/profilesListBySubscriptionSample.js +43 -0
  54. package/dist-esm/samples-dev/profilesListBySubscriptionSample.js.map +1 -0
  55. package/dist-esm/samples-dev/profilesUpdateSample.d.ts +2 -0
  56. package/dist-esm/samples-dev/profilesUpdateSample.d.ts.map +1 -0
  57. package/dist-esm/samples-dev/profilesUpdateSample.js +45 -0
  58. package/dist-esm/samples-dev/profilesUpdateSample.js.map +1 -0
  59. package/dist-esm/samples-dev/trafficManagerUserMetricsKeysCreateOrUpdateSample.d.ts +2 -0
  60. package/dist-esm/samples-dev/trafficManagerUserMetricsKeysCreateOrUpdateSample.d.ts.map +1 -0
  61. package/dist-esm/samples-dev/trafficManagerUserMetricsKeysCreateOrUpdateSample.js +29 -0
  62. package/dist-esm/samples-dev/trafficManagerUserMetricsKeysCreateOrUpdateSample.js.map +1 -0
  63. package/dist-esm/samples-dev/trafficManagerUserMetricsKeysDeleteSample.d.ts +2 -0
  64. package/dist-esm/samples-dev/trafficManagerUserMetricsKeysDeleteSample.d.ts.map +1 -0
  65. package/dist-esm/samples-dev/trafficManagerUserMetricsKeysDeleteSample.js +29 -0
  66. package/dist-esm/samples-dev/trafficManagerUserMetricsKeysDeleteSample.js.map +1 -0
  67. package/dist-esm/samples-dev/trafficManagerUserMetricsKeysGetSample.d.ts +2 -0
  68. package/dist-esm/samples-dev/trafficManagerUserMetricsKeysGetSample.d.ts.map +1 -0
  69. package/dist-esm/samples-dev/trafficManagerUserMetricsKeysGetSample.js +29 -0
  70. package/dist-esm/samples-dev/trafficManagerUserMetricsKeysGetSample.js.map +1 -0
  71. package/dist-esm/src/trafficManagerManagementClient.d.ts.map +1 -1
  72. package/dist-esm/src/trafficManagerManagementClient.js +20 -2
  73. package/dist-esm/src/trafficManagerManagementClient.js.map +1 -1
  74. package/package.json +10 -10
  75. package/rollup.config.js +6 -72
  76. package/src/trafficManagerManagementClient.ts +27 -2
  77. package/tsconfig.json +18 -5
  78. package/LICENSE.txt +0 -21
@@ -0,0 +1,29 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { TrafficManagerManagementClient } from "@azure/arm-trafficmanager";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets the default Geographic Hierarchy used by the Geographic traffic routing method.
15
+ *
16
+ * @summary Gets the default Geographic Hierarchy used by the Geographic traffic routing method.
17
+ * x-ms-original-file: specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-08-01/examples/GeographicHierarchy-GET-default.json
18
+ */
19
+ function geographicHierarchyGetDefault() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const credential = new DefaultAzureCredential();
23
+ const client = new TrafficManagerManagementClient(credential, subscriptionId);
24
+ const result = yield client.geographicHierarchies.getDefault();
25
+ console.log(result);
26
+ });
27
+ }
28
+ geographicHierarchyGetDefault().catch(console.error);
29
+ //# sourceMappingURL=geographicHierarchiesGetDefaultSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"geographicHierarchiesGetDefaultSample.js","sourceRoot":"","sources":["../../samples-dev/geographicHierarchiesGetDefaultSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,6BAA6B;;QAC1C,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,qBAAqB,CAAC,UAAU,EAAE,CAAC;QAC/D,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,6BAA6B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=heatMapGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"heatMapGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/heatMapGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,70 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { TrafficManagerManagementClient } from "@azure/arm-trafficmanager";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets latest heatmap for Traffic Manager profile.
15
+ *
16
+ * @summary Gets latest heatmap for Traffic Manager profile.
17
+ * x-ms-original-file: specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-08-01/examples/HeatMap-GET.json
18
+ */
19
+ function heatMapGet() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "{subscription-id}";
22
+ const resourceGroupName = "azuresdkfornetautoresttrafficmanager1323";
23
+ const profileName = "azuresdkfornetautoresttrafficmanager3880";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new TrafficManagerManagementClient(credential, subscriptionId);
26
+ const result = yield client.heatMap.get(resourceGroupName, profileName);
27
+ console.log(result);
28
+ });
29
+ }
30
+ heatMapGet().catch(console.error);
31
+ /**
32
+ * This sample demonstrates how to Gets latest heatmap for Traffic Manager profile.
33
+ *
34
+ * @summary Gets latest heatmap for Traffic Manager profile.
35
+ * x-ms-original-file: specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-08-01/examples/HeatMap-GET-With-Null-Values.json
36
+ */
37
+ function heatMapGetWithNullValues() {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ const subscriptionId = "{subscription-id}";
40
+ const resourceGroupName = "azuresdkfornetautoresttrafficmanager1323";
41
+ const profileName = "azuresdkfornetautoresttrafficmanager3880";
42
+ const credential = new DefaultAzureCredential();
43
+ const client = new TrafficManagerManagementClient(credential, subscriptionId);
44
+ const result = yield client.heatMap.get(resourceGroupName, profileName);
45
+ console.log(result);
46
+ });
47
+ }
48
+ heatMapGetWithNullValues().catch(console.error);
49
+ /**
50
+ * This sample demonstrates how to Gets latest heatmap for Traffic Manager profile.
51
+ *
52
+ * @summary Gets latest heatmap for Traffic Manager profile.
53
+ * x-ms-original-file: specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-08-01/examples/HeatMap-GET-With-TopLeft-BotRight.json
54
+ */
55
+ function heatMapGetWithTopLeftBotRight() {
56
+ return __awaiter(this, void 0, void 0, function* () {
57
+ const subscriptionId = "{subscription-id}";
58
+ const resourceGroupName = "azuresdkfornetautoresttrafficmanager1323";
59
+ const profileName = "azuresdkfornetautoresttrafficmanager3880";
60
+ const topLeft = [10, 50.001];
61
+ const botRight = [-50.001, 80];
62
+ const options = { topLeft, botRight };
63
+ const credential = new DefaultAzureCredential();
64
+ const client = new TrafficManagerManagementClient(credential, subscriptionId);
65
+ const result = yield client.heatMap.get(resourceGroupName, profileName, options);
66
+ console.log(result);
67
+ });
68
+ }
69
+ heatMapGetWithTopLeftBotRight().catch(console.error);
70
+ //# sourceMappingURL=heatMapGetSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,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CAAC,KAAK,CAAC,CAAC;AAEhD;;;;;GAKG;AACH,SAAe,6BAA6B;;QAC1C,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,iBAAiB,GAAG,0CAA0C,CAAC;QACrE,MAAM,WAAW,GAAG,0CAA0C,CAAC;QAC/D,MAAM,OAAO,GAAG,CAAC,EAAE,EAAE,MAAM,CAAC,CAAC;QAC7B,MAAM,QAAQ,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAC/B,MAAM,OAAO,GAA6B,EAAE,OAAO,EAAE,QAAQ,EAAE,CAAC;QAChE,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,GAAG,CACrC,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,6BAA6B,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=profilesCheckTrafficManagerRelativeDnsNameAvailabilitySample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profilesCheckTrafficManagerRelativeDnsNameAvailabilitySample.d.ts","sourceRoot":"","sources":["../../samples-dev/profilesCheckTrafficManagerRelativeDnsNameAvailabilitySample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,53 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { TrafficManagerManagementClient } from "@azure/arm-trafficmanager";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Checks the availability of a Traffic Manager Relative DNS name.
15
+ *
16
+ * @summary Checks the availability of a Traffic Manager Relative DNS name.
17
+ * x-ms-original-file: specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-08-01/examples/NameAvailabilityTest_NameAvailable-POST-example-21.json
18
+ */
19
+ function nameAvailabilityTestNameAvailablePost21() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
22
+ const parameters = {
23
+ name: "azsmnet5403",
24
+ type: "microsoft.network/trafficmanagerprofiles"
25
+ };
26
+ const credential = new DefaultAzureCredential();
27
+ const client = new TrafficManagerManagementClient(credential, subscriptionId);
28
+ const result = yield client.profiles.checkTrafficManagerRelativeDnsNameAvailability(parameters);
29
+ console.log(result);
30
+ });
31
+ }
32
+ nameAvailabilityTestNameAvailablePost21().catch(console.error);
33
+ /**
34
+ * This sample demonstrates how to Checks the availability of a Traffic Manager Relative DNS name.
35
+ *
36
+ * @summary Checks the availability of a Traffic Manager Relative DNS name.
37
+ * x-ms-original-file: specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-08-01/examples/NameAvailabilityTest_NameNotAvailable-POST-example-23.json
38
+ */
39
+ function nameAvailabilityTestNameNotAvailablePost23() {
40
+ return __awaiter(this, void 0, void 0, function* () {
41
+ const subscriptionId = "00000000-0000-0000-0000-000000000000";
42
+ const parameters = {
43
+ name: "azsmnet4696",
44
+ type: "microsoft.network/trafficmanagerprofiles"
45
+ };
46
+ const credential = new DefaultAzureCredential();
47
+ const client = new TrafficManagerManagementClient(credential, subscriptionId);
48
+ const result = yield client.profiles.checkTrafficManagerRelativeDnsNameAvailability(parameters);
49
+ console.log(result);
50
+ });
51
+ }
52
+ nameAvailabilityTestNameNotAvailablePost23().catch(console.error);
53
+ //# sourceMappingURL=profilesCheckTrafficManagerRelativeDnsNameAvailabilitySample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profilesCheckTrafficManagerRelativeDnsNameAvailabilitySample.js","sourceRoot":"","sources":["../../samples-dev/profilesCheckTrafficManagerRelativeDnsNameAvailabilitySample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,8BAA8B,EAC/B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,uCAAuC;;QACpD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAA6D;YAC3E,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,0CAA0C;SACjD,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,8CAA8C,CACjF,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,uCAAuC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAE/D;;;;;GAKG;AACH,SAAe,0CAA0C;;QACvD,MAAM,cAAc,GAAG,sCAAsC,CAAC;QAC9D,MAAM,UAAU,GAA6D;YAC3E,IAAI,EAAE,aAAa;YACnB,IAAI,EAAE,0CAA0C;SACjD,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,8CAA8C,CACjF,UAAU,CACX,CAAC;QACF,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,0CAA0C,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=profilesCreateOrUpdateSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profilesCreateOrUpdateSample.d.ts","sourceRoot":"","sources":["../../samples-dev/profilesCreateOrUpdateSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,264 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { TrafficManagerManagementClient } from "@azure/arm-trafficmanager";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Create or update a Traffic Manager profile.
15
+ *
16
+ * @summary Create or update a Traffic Manager profile.
17
+ * x-ms-original-file: specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-08-01/examples/Profile-PUT-MultiValue.json
18
+ */
19
+ function profilePutMultiValue() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "{subscription-id}";
22
+ const resourceGroupName = "azuresdkfornetautoresttrafficmanager1421";
23
+ const profileName = "azsmnet6386";
24
+ const parameters = {
25
+ dnsConfig: { relativeName: "azsmnet6386", ttl: 35 },
26
+ location: "global",
27
+ maxReturn: 2,
28
+ monitorConfig: { path: "/testpath.aspx", port: 80, protocol: "HTTP" },
29
+ profileStatus: "Enabled",
30
+ trafficRoutingMethod: "MultiValue",
31
+ trafficViewEnrollmentStatus: "Disabled"
32
+ };
33
+ const credential = new DefaultAzureCredential();
34
+ const client = new TrafficManagerManagementClient(credential, subscriptionId);
35
+ const result = yield client.profiles.createOrUpdate(resourceGroupName, profileName, parameters);
36
+ console.log(result);
37
+ });
38
+ }
39
+ profilePutMultiValue().catch(console.error);
40
+ /**
41
+ * This sample demonstrates how to Create or update a Traffic Manager profile.
42
+ *
43
+ * @summary Create or update a Traffic Manager profile.
44
+ * x-ms-original-file: specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-08-01/examples/Profile-PUT-NoEndpoints.json
45
+ */
46
+ function profilePutNoEndpoints() {
47
+ return __awaiter(this, void 0, void 0, function* () {
48
+ const subscriptionId = "{subscription-id}";
49
+ const resourceGroupName = "azuresdkfornetautoresttrafficmanager1421";
50
+ const profileName = "azsmnet6386";
51
+ const parameters = {
52
+ dnsConfig: { relativeName: "azsmnet6386", ttl: 35 },
53
+ location: "global",
54
+ monitorConfig: { path: "/testpath.aspx", port: 80, protocol: "HTTP" },
55
+ profileStatus: "Enabled",
56
+ trafficRoutingMethod: "Performance"
57
+ };
58
+ const credential = new DefaultAzureCredential();
59
+ const client = new TrafficManagerManagementClient(credential, subscriptionId);
60
+ const result = yield client.profiles.createOrUpdate(resourceGroupName, profileName, parameters);
61
+ console.log(result);
62
+ });
63
+ }
64
+ profilePutNoEndpoints().catch(console.error);
65
+ /**
66
+ * This sample demonstrates how to Create or update a Traffic Manager profile.
67
+ *
68
+ * @summary Create or update a Traffic Manager profile.
69
+ * x-ms-original-file: specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-08-01/examples/Profile-PUT-WithAliasing.json
70
+ */
71
+ function profilePutWithAliasing() {
72
+ return __awaiter(this, void 0, void 0, function* () {
73
+ const subscriptionId = "{subscription-id}";
74
+ const resourceGroupName = "azuresdkfornetautoresttrafficmanager2583";
75
+ const profileName = "azuresdkfornetautoresttrafficmanager6192";
76
+ const parameters = {
77
+ allowedEndpointRecordTypes: ["DomainName"],
78
+ dnsConfig: {
79
+ relativeName: "azuresdkfornetautoresttrafficmanager6192",
80
+ ttl: 35
81
+ },
82
+ endpoints: [
83
+ {
84
+ name: "My external endpoint",
85
+ type: "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints",
86
+ endpointLocation: "North Europe",
87
+ endpointStatus: "Enabled",
88
+ target: "foobar.contoso.com"
89
+ }
90
+ ],
91
+ location: "global",
92
+ monitorConfig: {
93
+ path: "/testpath.aspx",
94
+ intervalInSeconds: 10,
95
+ port: 80,
96
+ timeoutInSeconds: 5,
97
+ toleratedNumberOfFailures: 2,
98
+ protocol: "HTTP"
99
+ },
100
+ profileStatus: "Enabled",
101
+ trafficRoutingMethod: "Performance"
102
+ };
103
+ const credential = new DefaultAzureCredential();
104
+ const client = new TrafficManagerManagementClient(credential, subscriptionId);
105
+ const result = yield client.profiles.createOrUpdate(resourceGroupName, profileName, parameters);
106
+ console.log(result);
107
+ });
108
+ }
109
+ profilePutWithAliasing().catch(console.error);
110
+ /**
111
+ * This sample demonstrates how to Create or update a Traffic Manager profile.
112
+ *
113
+ * @summary Create or update a Traffic Manager profile.
114
+ * x-ms-original-file: specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-08-01/examples/Profile-PUT-WithCustomHeaders.json
115
+ */
116
+ function profilePutWithCustomHeaders() {
117
+ return __awaiter(this, void 0, void 0, function* () {
118
+ const subscriptionId = "{subscription-id}";
119
+ const resourceGroupName = "azuresdkfornetautoresttrafficmanager2583";
120
+ const profileName = "azuresdkfornetautoresttrafficmanager6192";
121
+ const parameters = {
122
+ dnsConfig: {
123
+ relativeName: "azuresdkfornetautoresttrafficmanager6192",
124
+ ttl: 35
125
+ },
126
+ endpoints: [
127
+ {
128
+ name: "My external endpoint",
129
+ type: "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints",
130
+ customHeaders: [{ name: "header-2", value: "value-2-overridden" }],
131
+ endpointLocation: "North Europe",
132
+ endpointStatus: "Enabled",
133
+ target: "foobar.contoso.com"
134
+ }
135
+ ],
136
+ location: "global",
137
+ monitorConfig: {
138
+ path: "/testpath.aspx",
139
+ customHeaders: [
140
+ { name: "header-1", value: "value-1" },
141
+ { name: "header-2", value: "value-2" }
142
+ ],
143
+ expectedStatusCodeRanges: [
144
+ { max: 205, min: 200 },
145
+ { max: 410, min: 400 }
146
+ ],
147
+ intervalInSeconds: 10,
148
+ port: 80,
149
+ timeoutInSeconds: 5,
150
+ toleratedNumberOfFailures: 2,
151
+ protocol: "HTTP"
152
+ },
153
+ profileStatus: "Enabled",
154
+ trafficRoutingMethod: "Performance",
155
+ trafficViewEnrollmentStatus: "Disabled"
156
+ };
157
+ const credential = new DefaultAzureCredential();
158
+ const client = new TrafficManagerManagementClient(credential, subscriptionId);
159
+ const result = yield client.profiles.createOrUpdate(resourceGroupName, profileName, parameters);
160
+ console.log(result);
161
+ });
162
+ }
163
+ profilePutWithCustomHeaders().catch(console.error);
164
+ /**
165
+ * This sample demonstrates how to Create or update a Traffic Manager profile.
166
+ *
167
+ * @summary Create or update a Traffic Manager profile.
168
+ * x-ms-original-file: specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-08-01/examples/Profile-PUT-WithEndpoints.json
169
+ */
170
+ function profilePutWithEndpoints() {
171
+ return __awaiter(this, void 0, void 0, function* () {
172
+ const subscriptionId = "{subscription-id}";
173
+ const resourceGroupName = "azuresdkfornetautoresttrafficmanager2583";
174
+ const profileName = "azuresdkfornetautoresttrafficmanager6192";
175
+ const parameters = {
176
+ dnsConfig: {
177
+ relativeName: "azuresdkfornetautoresttrafficmanager6192",
178
+ ttl: 35
179
+ },
180
+ endpoints: [
181
+ {
182
+ name: "My external endpoint",
183
+ type: "Microsoft.network/TrafficManagerProfiles/ExternalEndpoints",
184
+ endpointLocation: "North Europe",
185
+ endpointStatus: "Enabled",
186
+ target: "foobar.contoso.com"
187
+ }
188
+ ],
189
+ location: "global",
190
+ monitorConfig: {
191
+ path: "/testpath.aspx",
192
+ intervalInSeconds: 10,
193
+ port: 80,
194
+ timeoutInSeconds: 5,
195
+ toleratedNumberOfFailures: 2,
196
+ protocol: "HTTP"
197
+ },
198
+ profileStatus: "Enabled",
199
+ trafficRoutingMethod: "Performance"
200
+ };
201
+ const credential = new DefaultAzureCredential();
202
+ const client = new TrafficManagerManagementClient(credential, subscriptionId);
203
+ const result = yield client.profiles.createOrUpdate(resourceGroupName, profileName, parameters);
204
+ console.log(result);
205
+ });
206
+ }
207
+ profilePutWithEndpoints().catch(console.error);
208
+ /**
209
+ * This sample demonstrates how to Create or update a Traffic Manager profile.
210
+ *
211
+ * @summary Create or update a Traffic Manager profile.
212
+ * x-ms-original-file: specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-08-01/examples/Profile-PUT-WithNestedEndpoints.json
213
+ */
214
+ function profilePutWithNestedEndpoints() {
215
+ return __awaiter(this, void 0, void 0, function* () {
216
+ const subscriptionId = "{subscription-id}";
217
+ const resourceGroupName = "myresourcegroup";
218
+ const profileName = "parentprofile";
219
+ const parameters = {
220
+ dnsConfig: { relativeName: "parentprofile", ttl: 35 },
221
+ endpoints: [
222
+ {
223
+ name: "MyFirstNestedEndpoint",
224
+ type: "Microsoft.Network/trafficManagerProfiles/nestedEndpoints",
225
+ endpointStatus: "Enabled",
226
+ minChildEndpoints: 2,
227
+ minChildEndpointsIPv4: 1,
228
+ minChildEndpointsIPv6: 2,
229
+ priority: 1,
230
+ target: "firstnestedprofile.tmpreview.watmtest.azure-test.net",
231
+ weight: 1
232
+ },
233
+ {
234
+ name: "MySecondNestedEndpoint",
235
+ type: "Microsoft.Network/trafficManagerProfiles/nestedEndpoints",
236
+ endpointStatus: "Enabled",
237
+ minChildEndpoints: 2,
238
+ minChildEndpointsIPv4: 2,
239
+ minChildEndpointsIPv6: 1,
240
+ priority: 2,
241
+ target: "secondnestedprofile.tmpreview.watmtest.azure-test.net",
242
+ weight: 1
243
+ }
244
+ ],
245
+ location: "global",
246
+ monitorConfig: {
247
+ path: "/testpath.aspx",
248
+ intervalInSeconds: 10,
249
+ port: 80,
250
+ timeoutInSeconds: 5,
251
+ toleratedNumberOfFailures: 2,
252
+ protocol: "HTTP"
253
+ },
254
+ profileStatus: "Enabled",
255
+ trafficRoutingMethod: "Priority"
256
+ };
257
+ const credential = new DefaultAzureCredential();
258
+ const client = new TrafficManagerManagementClient(credential, subscriptionId);
259
+ const result = yield client.profiles.createOrUpdate(resourceGroupName, profileName, parameters);
260
+ console.log(result);
261
+ });
262
+ }
263
+ profilePutWithNestedEndpoints().catch(console.error);
264
+ //# sourceMappingURL=profilesCreateOrUpdateSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profilesCreateOrUpdateSample.js","sourceRoot":"","sources":["../../samples-dev/profilesCreateOrUpdateSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAEL,8BAA8B,EAC/B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,oBAAoB;;QACjC,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,iBAAiB,GAAG,0CAA0C,CAAC;QACrE,MAAM,WAAW,GAAG,aAAa,CAAC;QAClC,MAAM,UAAU,GAAY;YAC1B,SAAS,EAAE,EAAE,YAAY,EAAE,aAAa,EAAE,GAAG,EAAE,EAAE,EAAE;YACnD,QAAQ,EAAE,QAAQ;YAClB,SAAS,EAAE,CAAC;YACZ,aAAa,EAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE;YACrE,aAAa,EAAE,SAAS;YACxB,oBAAoB,EAAE,YAAY;YAClC,2BAA2B,EAAE,UAAU;SACxC,CAAC;QACF,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,cAAc,CACjD,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 {"version":3,"file":"profilesDeleteSample.d.ts","sourceRoot":"","sources":["../../samples-dev/profilesDeleteSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,31 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { TrafficManagerManagementClient } from "@azure/arm-trafficmanager";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Deletes a Traffic Manager profile.
15
+ *
16
+ * @summary Deletes a Traffic Manager profile.
17
+ * x-ms-original-file: specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-08-01/examples/Profile-DELETE.json
18
+ */
19
+ function profileDelete() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "{subscription-id}";
22
+ const resourceGroupName = "azuresdkfornetautoresttrafficmanager1323";
23
+ const profileName = "azuresdkfornetautoresttrafficmanager3880";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new TrafficManagerManagementClient(credential, subscriptionId);
26
+ const result = yield client.profiles.delete(resourceGroupName, profileName);
27
+ console.log(result);
28
+ });
29
+ }
30
+ profileDelete().catch(console.error);
31
+ //# sourceMappingURL=profilesDeleteSample.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profilesDeleteSample.js","sourceRoot":"","sources":["../../samples-dev/profilesDeleteSample.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,uCAAuC;AACvC,kCAAkC;AAClC,OAAO,EAAE,8BAA8B,EAAE,MAAM,2BAA2B,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,iBAAiB,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,aAAa;;QAC1B,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,iBAAiB,GAAG,0CAA0C,CAAC;QACrE,MAAM,WAAW,GAAG,0CAA0C,CAAC;QAC/D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,iBAAiB,EAAE,WAAW,CAAC,CAAC;QAC5E,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,aAAa,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=profilesGetSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profilesGetSample.d.ts","sourceRoot":"","sources":["../../samples-dev/profilesGetSample.ts"],"names":[],"mappings":""}
@@ -0,0 +1,67 @@
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 { __awaiter } from "tslib";
9
+ // Copyright (c) Microsoft Corporation.
10
+ // Licensed under the MIT License.
11
+ import { TrafficManagerManagementClient } from "@azure/arm-trafficmanager";
12
+ import { DefaultAzureCredential } from "@azure/identity";
13
+ /**
14
+ * This sample demonstrates how to Gets a Traffic Manager profile.
15
+ *
16
+ * @summary Gets a Traffic Manager profile.
17
+ * x-ms-original-file: specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-08-01/examples/Profile-GET-WithEndpoints.json
18
+ */
19
+ function profileGetWithEndpoints() {
20
+ return __awaiter(this, void 0, void 0, function* () {
21
+ const subscriptionId = "{subscription-id}";
22
+ const resourceGroupName = "azuresdkfornetautoresttrafficmanager1323";
23
+ const profileName = "azuresdkfornetautoresttrafficmanager3880";
24
+ const credential = new DefaultAzureCredential();
25
+ const client = new TrafficManagerManagementClient(credential, subscriptionId);
26
+ const result = yield client.profiles.get(resourceGroupName, profileName);
27
+ console.log(result);
28
+ });
29
+ }
30
+ profileGetWithEndpoints().catch(console.error);
31
+ /**
32
+ * This sample demonstrates how to Gets a Traffic Manager profile.
33
+ *
34
+ * @summary Gets a Traffic Manager profile.
35
+ * x-ms-original-file: specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-08-01/examples/Profile-GET-WithTrafficViewDisabled.json
36
+ */
37
+ function profileGetWithTrafficViewDisabled() {
38
+ return __awaiter(this, void 0, void 0, function* () {
39
+ const subscriptionId = "{subscription-id}";
40
+ const resourceGroupName = "azuresdkfornetautoresttrafficmanager1323";
41
+ const profileName = "azuresdkfornetautoresttrafficmanager3880";
42
+ const credential = new DefaultAzureCredential();
43
+ const client = new TrafficManagerManagementClient(credential, subscriptionId);
44
+ const result = yield client.profiles.get(resourceGroupName, profileName);
45
+ console.log(result);
46
+ });
47
+ }
48
+ profileGetWithTrafficViewDisabled().catch(console.error);
49
+ /**
50
+ * This sample demonstrates how to Gets a Traffic Manager profile.
51
+ *
52
+ * @summary Gets a Traffic Manager profile.
53
+ * x-ms-original-file: specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-08-01/examples/Profile-GET-WithTrafficViewEnabled.json
54
+ */
55
+ function profileGetWithTrafficViewEnabled() {
56
+ return __awaiter(this, void 0, void 0, function* () {
57
+ const subscriptionId = "{subscription-id}";
58
+ const resourceGroupName = "azuresdkfornetautoresttrafficmanager1323";
59
+ const profileName = "azuresdkfornetautoresttrafficmanager3880";
60
+ const credential = new DefaultAzureCredential();
61
+ const client = new TrafficManagerManagementClient(credential, subscriptionId);
62
+ const result = yield client.profiles.get(resourceGroupName, profileName);
63
+ console.log(result);
64
+ });
65
+ }
66
+ profileGetWithTrafficViewEnabled().catch(console.error);
67
+ //# sourceMappingURL=profilesGetSample.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ED,iCAAiC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAEzD;;;;;GAKG;AACH,SAAe,gCAAgC;;QAC7C,MAAM,cAAc,GAAG,mBAAmB,CAAC;QAC3C,MAAM,iBAAiB,GAAG,0CAA0C,CAAC;QACrE,MAAM,WAAW,GAAG,0CAA0C,CAAC;QAC/D,MAAM,UAAU,GAAG,IAAI,sBAAsB,EAAE,CAAC;QAChD,MAAM,MAAM,GAAG,IAAI,8BAA8B,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;QAC9E,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,iBAAiB,EAAE,WAAW,CAAC,CAAC;QACzE,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACtB,CAAC;CAAA;AAED,gCAAgC,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=profilesListByResourceGroupSample.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"profilesListByResourceGroupSample.d.ts","sourceRoot":"","sources":["../../samples-dev/profilesListByResourceGroupSample.ts"],"names":[],"mappings":""}