@azure/arm-trafficmanager 5.0.0 → 6.0.0-alpha.20220131.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (297) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +21 -0
  3. package/LICENSE.txt +1 -1
  4. package/README.md +72 -81
  5. package/dist/index.js +1719 -0
  6. package/dist/index.js.map +1 -0
  7. package/dist/index.min.js +1 -0
  8. package/dist/index.min.js.map +1 -0
  9. package/dist-esm/samples-dev/endpointDeleteExternal.d.ts +2 -0
  10. package/dist-esm/samples-dev/endpointDeleteExternal.d.ts.map +1 -0
  11. package/dist-esm/samples-dev/endpointDeleteExternal.js +33 -0
  12. package/dist-esm/samples-dev/endpointDeleteExternal.js.map +1 -0
  13. package/dist-esm/samples-dev/endpointGetExternalWithGeoMapping.d.ts +2 -0
  14. package/dist-esm/samples-dev/endpointGetExternalWithGeoMapping.d.ts.map +1 -0
  15. package/dist-esm/samples-dev/endpointGetExternalWithGeoMapping.js +33 -0
  16. package/dist-esm/samples-dev/endpointGetExternalWithGeoMapping.js.map +1 -0
  17. package/dist-esm/samples-dev/endpointGetExternalWithLocation.d.ts +2 -0
  18. package/dist-esm/samples-dev/endpointGetExternalWithLocation.d.ts.map +1 -0
  19. package/dist-esm/samples-dev/endpointGetExternalWithLocation.js +33 -0
  20. package/dist-esm/samples-dev/endpointGetExternalWithLocation.js.map +1 -0
  21. package/dist-esm/samples-dev/endpointGetExternalWithSubnetMapping.d.ts +2 -0
  22. package/dist-esm/samples-dev/endpointGetExternalWithSubnetMapping.d.ts.map +1 -0
  23. package/dist-esm/samples-dev/endpointGetExternalWithSubnetMapping.js +33 -0
  24. package/dist-esm/samples-dev/endpointGetExternalWithSubnetMapping.js.map +1 -0
  25. package/dist-esm/samples-dev/endpointPatchExternalTarget.d.ts +2 -0
  26. package/dist-esm/samples-dev/endpointPatchExternalTarget.d.ts.map +1 -0
  27. package/dist-esm/samples-dev/endpointPatchExternalTarget.js +39 -0
  28. package/dist-esm/samples-dev/endpointPatchExternalTarget.js.map +1 -0
  29. package/dist-esm/samples-dev/endpointPutExternalWithCustomHeaders.d.ts +2 -0
  30. package/dist-esm/samples-dev/endpointPutExternalWithCustomHeaders.d.ts.map +1 -0
  31. package/dist-esm/samples-dev/endpointPutExternalWithCustomHeaders.js +44 -0
  32. package/dist-esm/samples-dev/endpointPutExternalWithCustomHeaders.js.map +1 -0
  33. package/dist-esm/samples-dev/endpointPutExternalWithGeoMapping.d.ts +2 -0
  34. package/dist-esm/samples-dev/endpointPutExternalWithGeoMapping.d.ts.map +1 -0
  35. package/dist-esm/samples-dev/endpointPutExternalWithGeoMapping.js +40 -0
  36. package/dist-esm/samples-dev/endpointPutExternalWithGeoMapping.js.map +1 -0
  37. package/dist-esm/samples-dev/endpointPutExternalWithLocation.d.ts +2 -0
  38. package/dist-esm/samples-dev/endpointPutExternalWithLocation.d.ts.map +1 -0
  39. package/dist-esm/samples-dev/endpointPutExternalWithLocation.js +40 -0
  40. package/dist-esm/samples-dev/endpointPutExternalWithLocation.js.map +1 -0
  41. package/dist-esm/samples-dev/endpointPutExternalWithSubnetMapping.d.ts +2 -0
  42. package/dist-esm/samples-dev/endpointPutExternalWithSubnetMapping.d.ts.map +1 -0
  43. package/dist-esm/samples-dev/endpointPutExternalWithSubnetMapping.js +43 -0
  44. package/dist-esm/samples-dev/endpointPutExternalWithSubnetMapping.js.map +1 -0
  45. package/dist-esm/samples-dev/geographicHierarchyGetDefault.d.ts +2 -0
  46. package/dist-esm/samples-dev/geographicHierarchyGetDefault.d.ts.map +1 -0
  47. package/dist-esm/samples-dev/geographicHierarchyGetDefault.js +29 -0
  48. package/dist-esm/samples-dev/geographicHierarchyGetDefault.js.map +1 -0
  49. package/dist-esm/samples-dev/heatMapGet.d.ts +2 -0
  50. package/dist-esm/samples-dev/heatMapGet.d.ts.map +1 -0
  51. package/dist-esm/samples-dev/heatMapGet.js +31 -0
  52. package/dist-esm/samples-dev/heatMapGet.js.map +1 -0
  53. package/dist-esm/samples-dev/heatMapGetWithNullValues.d.ts +2 -0
  54. package/dist-esm/samples-dev/heatMapGetWithNullValues.d.ts.map +1 -0
  55. package/dist-esm/samples-dev/heatMapGetWithNullValues.js +31 -0
  56. package/dist-esm/samples-dev/heatMapGetWithNullValues.js.map +1 -0
  57. package/dist-esm/samples-dev/heatMapGetWithTopLeftBotRight.d.ts +2 -0
  58. package/dist-esm/samples-dev/heatMapGetWithTopLeftBotRight.d.ts.map +1 -0
  59. package/dist-esm/samples-dev/heatMapGetWithTopLeftBotRight.js +34 -0
  60. package/dist-esm/samples-dev/heatMapGetWithTopLeftBotRight.js.map +1 -0
  61. package/dist-esm/samples-dev/listBySubscription.d.ts +2 -0
  62. package/dist-esm/samples-dev/listBySubscription.d.ts.map +1 -0
  63. package/dist-esm/samples-dev/listBySubscription.js +43 -0
  64. package/dist-esm/samples-dev/listBySubscription.js.map +1 -0
  65. package/dist-esm/samples-dev/listProfilesByResourceGroup.d.ts +2 -0
  66. package/dist-esm/samples-dev/listProfilesByResourceGroup.d.ts.map +1 -0
  67. package/dist-esm/samples-dev/listProfilesByResourceGroup.js +44 -0
  68. package/dist-esm/samples-dev/listProfilesByResourceGroup.js.map +1 -0
  69. package/dist-esm/samples-dev/nameAvailabilityTestNameAvailablePost21.d.ts +2 -0
  70. package/dist-esm/samples-dev/nameAvailabilityTestNameAvailablePost21.d.ts.map +1 -0
  71. package/dist-esm/samples-dev/nameAvailabilityTestNameAvailablePost21.js +33 -0
  72. package/dist-esm/samples-dev/nameAvailabilityTestNameAvailablePost21.js.map +1 -0
  73. package/dist-esm/samples-dev/nameAvailabilityTestNameNotAvailablePost23.d.ts +2 -0
  74. package/dist-esm/samples-dev/nameAvailabilityTestNameNotAvailablePost23.d.ts.map +1 -0
  75. package/dist-esm/samples-dev/nameAvailabilityTestNameNotAvailablePost23.js +33 -0
  76. package/dist-esm/samples-dev/nameAvailabilityTestNameNotAvailablePost23.js.map +1 -0
  77. package/dist-esm/samples-dev/profileDelete.d.ts +2 -0
  78. package/dist-esm/samples-dev/profileDelete.d.ts.map +1 -0
  79. package/dist-esm/samples-dev/profileDelete.js +31 -0
  80. package/dist-esm/samples-dev/profileDelete.js.map +1 -0
  81. package/dist-esm/samples-dev/profileGetWithEndpoints.d.ts +2 -0
  82. package/dist-esm/samples-dev/profileGetWithEndpoints.d.ts.map +1 -0
  83. package/dist-esm/samples-dev/profileGetWithEndpoints.js +31 -0
  84. package/dist-esm/samples-dev/profileGetWithEndpoints.js.map +1 -0
  85. package/dist-esm/samples-dev/profileGetWithTrafficViewDisabled.d.ts +2 -0
  86. package/dist-esm/samples-dev/profileGetWithTrafficViewDisabled.d.ts.map +1 -0
  87. package/dist-esm/samples-dev/profileGetWithTrafficViewDisabled.js +31 -0
  88. package/dist-esm/samples-dev/profileGetWithTrafficViewDisabled.js.map +1 -0
  89. package/dist-esm/samples-dev/profileGetWithTrafficViewEnabled.d.ts +2 -0
  90. package/dist-esm/samples-dev/profileGetWithTrafficViewEnabled.d.ts.map +1 -0
  91. package/dist-esm/samples-dev/profileGetWithTrafficViewEnabled.js +31 -0
  92. package/dist-esm/samples-dev/profileGetWithTrafficViewEnabled.js.map +1 -0
  93. package/dist-esm/samples-dev/profilePatchMonitorConfig.d.ts +2 -0
  94. package/dist-esm/samples-dev/profilePatchMonitorConfig.d.ts.map +1 -0
  95. package/dist-esm/samples-dev/profilePatchMonitorConfig.js +45 -0
  96. package/dist-esm/samples-dev/profilePatchMonitorConfig.js.map +1 -0
  97. package/dist-esm/samples-dev/profilePutMultiValue.d.ts +2 -0
  98. package/dist-esm/samples-dev/profilePutMultiValue.d.ts.map +1 -0
  99. package/dist-esm/samples-dev/profilePutMultiValue.js +40 -0
  100. package/dist-esm/samples-dev/profilePutMultiValue.js.map +1 -0
  101. package/dist-esm/samples-dev/profilePutNoEndpoints.d.ts +2 -0
  102. package/dist-esm/samples-dev/profilePutNoEndpoints.d.ts.map +1 -0
  103. package/dist-esm/samples-dev/profilePutNoEndpoints.js +38 -0
  104. package/dist-esm/samples-dev/profilePutNoEndpoints.js.map +1 -0
  105. package/dist-esm/samples-dev/profilePutWithAliasing.d.ts +2 -0
  106. package/dist-esm/samples-dev/profilePutWithAliasing.d.ts.map +1 -0
  107. package/dist-esm/samples-dev/profilePutWithAliasing.js +58 -0
  108. package/dist-esm/samples-dev/profilePutWithAliasing.js.map +1 -0
  109. package/dist-esm/samples-dev/profilePutWithCustomHeaders.d.ts +2 -0
  110. package/dist-esm/samples-dev/profilePutWithCustomHeaders.d.ts.map +1 -0
  111. package/dist-esm/samples-dev/profilePutWithCustomHeaders.js +67 -0
  112. package/dist-esm/samples-dev/profilePutWithCustomHeaders.js.map +1 -0
  113. package/dist-esm/samples-dev/profilePutWithEndpoints.d.ts +2 -0
  114. package/dist-esm/samples-dev/profilePutWithEndpoints.d.ts.map +1 -0
  115. package/dist-esm/samples-dev/profilePutWithEndpoints.js +57 -0
  116. package/dist-esm/samples-dev/profilePutWithEndpoints.js.map +1 -0
  117. package/dist-esm/samples-dev/profilePutWithNestedEndpoints.d.ts +2 -0
  118. package/dist-esm/samples-dev/profilePutWithNestedEndpoints.d.ts.map +1 -0
  119. package/dist-esm/samples-dev/profilePutWithNestedEndpoints.js +69 -0
  120. package/dist-esm/samples-dev/profilePutWithNestedEndpoints.js.map +1 -0
  121. package/dist-esm/samples-dev/trafficManagerUserMetricsKeysDelete.d.ts +2 -0
  122. package/dist-esm/samples-dev/trafficManagerUserMetricsKeysDelete.d.ts.map +1 -0
  123. package/dist-esm/samples-dev/trafficManagerUserMetricsKeysDelete.js +29 -0
  124. package/dist-esm/samples-dev/trafficManagerUserMetricsKeysDelete.js.map +1 -0
  125. package/dist-esm/samples-dev/trafficManagerUserMetricsKeysGet.d.ts +2 -0
  126. package/dist-esm/samples-dev/trafficManagerUserMetricsKeysGet.d.ts.map +1 -0
  127. package/dist-esm/samples-dev/trafficManagerUserMetricsKeysGet.js +29 -0
  128. package/dist-esm/samples-dev/trafficManagerUserMetricsKeysGet.js.map +1 -0
  129. package/dist-esm/samples-dev/trafficManagerUserMetricsKeysPut.d.ts +2 -0
  130. package/dist-esm/samples-dev/trafficManagerUserMetricsKeysPut.d.ts.map +1 -0
  131. package/dist-esm/samples-dev/trafficManagerUserMetricsKeysPut.js +29 -0
  132. package/dist-esm/samples-dev/trafficManagerUserMetricsKeysPut.js.map +1 -0
  133. package/dist-esm/src/index.d.ts +5 -0
  134. package/dist-esm/src/index.d.ts.map +1 -0
  135. package/dist-esm/src/index.js +12 -0
  136. package/dist-esm/src/index.js.map +1 -0
  137. package/dist-esm/src/models/index.d.ts +474 -0
  138. package/dist-esm/src/models/index.d.ts.map +1 -0
  139. package/dist-esm/src/models/index.js +70 -0
  140. package/dist-esm/src/models/index.js.map +1 -0
  141. package/dist-esm/src/models/mappers.d.ts +26 -0
  142. package/dist-esm/src/models/mappers.d.ts.map +1 -0
  143. package/{esm → dist-esm/src}/models/mappers.js +370 -327
  144. package/dist-esm/src/models/mappers.js.map +1 -0
  145. package/dist-esm/src/models/parameters.d.ts +17 -0
  146. package/dist-esm/src/models/parameters.d.ts.map +1 -0
  147. package/{esm → dist-esm/src}/models/parameters.js +88 -60
  148. package/dist-esm/src/models/parameters.js.map +1 -0
  149. package/dist-esm/src/operations/endpoints.d.ts +54 -0
  150. package/dist-esm/src/operations/endpoints.d.ts.map +1 -0
  151. package/dist-esm/src/operations/endpoints.js +186 -0
  152. package/dist-esm/src/operations/endpoints.js.map +1 -0
  153. package/dist-esm/src/operations/geographicHierarchies.d.ts +18 -0
  154. package/dist-esm/src/operations/geographicHierarchies.d.ts.map +1 -0
  155. package/dist-esm/src/operations/geographicHierarchies.js +46 -0
  156. package/dist-esm/src/operations/geographicHierarchies.js.map +1 -0
  157. package/dist-esm/src/operations/heatMap.d.ts +20 -0
  158. package/dist-esm/src/operations/heatMap.d.ts.map +1 -0
  159. package/dist-esm/src/operations/heatMap.js +58 -0
  160. package/dist-esm/src/operations/heatMap.js.map +1 -0
  161. package/{esm → dist-esm/src}/operations/index.d.ts +0 -0
  162. package/dist-esm/src/operations/index.d.ts.map +1 -0
  163. package/{esm → dist-esm/src}/operations/index.js +3 -5
  164. package/dist-esm/src/operations/index.js.map +1 -0
  165. package/dist-esm/src/operations/profiles.d.ts +80 -0
  166. package/dist-esm/src/operations/profiles.d.ts.map +1 -0
  167. package/dist-esm/src/operations/profiles.js +321 -0
  168. package/dist-esm/src/operations/profiles.js.map +1 -0
  169. package/dist-esm/src/operations/trafficManagerUserMetricsKeys.d.ts +28 -0
  170. package/dist-esm/src/operations/trafficManagerUserMetricsKeys.d.ts.map +1 -0
  171. package/dist-esm/src/operations/trafficManagerUserMetricsKeys.js +92 -0
  172. package/dist-esm/src/operations/trafficManagerUserMetricsKeys.js.map +1 -0
  173. package/dist-esm/src/operationsInterfaces/endpoints.d.ts +46 -0
  174. package/dist-esm/src/operationsInterfaces/endpoints.d.ts.map +1 -0
  175. package/dist-esm/src/operationsInterfaces/endpoints.js +9 -0
  176. package/dist-esm/src/operationsInterfaces/endpoints.js.map +1 -0
  177. package/dist-esm/src/operationsInterfaces/geographicHierarchies.d.ts +10 -0
  178. package/dist-esm/src/operationsInterfaces/geographicHierarchies.d.ts.map +1 -0
  179. package/dist-esm/src/operationsInterfaces/geographicHierarchies.js +9 -0
  180. package/dist-esm/src/operationsInterfaces/geographicHierarchies.js.map +1 -0
  181. package/dist-esm/src/operationsInterfaces/heatMap.d.ts +12 -0
  182. package/dist-esm/src/operationsInterfaces/heatMap.d.ts.map +1 -0
  183. package/dist-esm/src/operationsInterfaces/heatMap.js +9 -0
  184. package/dist-esm/src/operationsInterfaces/heatMap.js.map +1 -0
  185. package/dist-esm/src/operationsInterfaces/index.d.ts +6 -0
  186. package/dist-esm/src/operationsInterfaces/index.d.ts.map +1 -0
  187. package/dist-esm/src/operationsInterfaces/index.js +13 -0
  188. package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
  189. package/dist-esm/src/operationsInterfaces/profiles.d.ts +56 -0
  190. package/dist-esm/src/operationsInterfaces/profiles.d.ts.map +1 -0
  191. package/dist-esm/src/operationsInterfaces/profiles.js +9 -0
  192. package/dist-esm/src/operationsInterfaces/profiles.js.map +1 -0
  193. package/dist-esm/src/operationsInterfaces/trafficManagerUserMetricsKeys.d.ts +20 -0
  194. package/dist-esm/src/operationsInterfaces/trafficManagerUserMetricsKeys.d.ts.map +1 -0
  195. package/dist-esm/src/operationsInterfaces/trafficManagerUserMetricsKeys.js +9 -0
  196. package/dist-esm/src/operationsInterfaces/trafficManagerUserMetricsKeys.js.map +1 -0
  197. package/dist-esm/src/trafficManagerManagementClient.d.ts +23 -0
  198. package/dist-esm/src/trafficManagerManagementClient.d.ts.map +1 -0
  199. package/dist-esm/src/trafficManagerManagementClient.js +56 -0
  200. package/dist-esm/src/trafficManagerManagementClient.js.map +1 -0
  201. package/dist-esm/test/sampleTest.d.ts +2 -0
  202. package/dist-esm/test/sampleTest.d.ts.map +1 -0
  203. package/dist-esm/test/sampleTest.js +40 -0
  204. package/dist-esm/test/sampleTest.js.map +1 -0
  205. package/package.json +80 -22
  206. package/review/arm-trafficmanager.api.md +486 -0
  207. package/rollup.config.js +181 -30
  208. package/src/index.ts +12 -0
  209. package/src/models/index.ts +438 -740
  210. package/src/models/mappers.ts +372 -324
  211. package/src/models/parameters.ts +111 -60
  212. package/src/operations/endpoints.ts +122 -208
  213. package/src/operations/geographicHierarchies.ts +32 -43
  214. package/src/operations/heatMap.ts +41 -57
  215. package/src/operations/index.ts +3 -5
  216. package/src/operations/profiles.ts +244 -295
  217. package/src/operations/trafficManagerUserMetricsKeys.ts +59 -108
  218. package/src/operationsInterfaces/endpoints.ts +91 -0
  219. package/src/operationsInterfaces/geographicHierarchies.ts +23 -0
  220. package/src/operationsInterfaces/heatMap.ts +24 -0
  221. package/src/operationsInterfaces/index.ts +13 -0
  222. package/src/operationsInterfaces/profiles.ts +106 -0
  223. package/src/operationsInterfaces/trafficManagerUserMetricsKeys.ts +41 -0
  224. package/src/trafficManagerManagementClient.ts +85 -38
  225. package/tsconfig.json +5 -4
  226. package/types/arm-trafficmanager.d.ts +708 -0
  227. package/types/tsdoc-metadata.json +11 -0
  228. package/dist/arm-trafficmanager.js +0 -1802
  229. package/dist/arm-trafficmanager.js.map +0 -1
  230. package/dist/arm-trafficmanager.min.js +0 -1
  231. package/dist/arm-trafficmanager.min.js.map +0 -1
  232. package/esm/models/endpointsMappers.d.ts +0 -2
  233. package/esm/models/endpointsMappers.d.ts.map +0 -1
  234. package/esm/models/endpointsMappers.js +0 -9
  235. package/esm/models/endpointsMappers.js.map +0 -1
  236. package/esm/models/geographicHierarchiesMappers.d.ts +0 -2
  237. package/esm/models/geographicHierarchiesMappers.d.ts.map +0 -1
  238. package/esm/models/geographicHierarchiesMappers.js +0 -9
  239. package/esm/models/geographicHierarchiesMappers.js.map +0 -1
  240. package/esm/models/heatMapMappers.d.ts +0 -2
  241. package/esm/models/heatMapMappers.d.ts.map +0 -1
  242. package/esm/models/heatMapMappers.js +0 -9
  243. package/esm/models/heatMapMappers.js.map +0 -1
  244. package/esm/models/index.d.ts +0 -789
  245. package/esm/models/index.d.ts.map +0 -1
  246. package/esm/models/index.js +0 -8
  247. package/esm/models/index.js.map +0 -1
  248. package/esm/models/mappers.d.ts +0 -26
  249. package/esm/models/mappers.d.ts.map +0 -1
  250. package/esm/models/mappers.js.map +0 -1
  251. package/esm/models/parameters.d.ts +0 -12
  252. package/esm/models/parameters.d.ts.map +0 -1
  253. package/esm/models/parameters.js.map +0 -1
  254. package/esm/models/profilesMappers.d.ts +0 -2
  255. package/esm/models/profilesMappers.d.ts.map +0 -1
  256. package/esm/models/profilesMappers.js +0 -9
  257. package/esm/models/profilesMappers.js.map +0 -1
  258. package/esm/models/trafficManagerUserMetricsKeysMappers.d.ts +0 -2
  259. package/esm/models/trafficManagerUserMetricsKeysMappers.d.ts.map +0 -1
  260. package/esm/models/trafficManagerUserMetricsKeysMappers.js +0 -9
  261. package/esm/models/trafficManagerUserMetricsKeysMappers.js.map +0 -1
  262. package/esm/operations/endpoints.d.ts +0 -139
  263. package/esm/operations/endpoints.d.ts.map +0 -1
  264. package/esm/operations/endpoints.js +0 -182
  265. package/esm/operations/endpoints.js.map +0 -1
  266. package/esm/operations/geographicHierarchies.d.ts +0 -28
  267. package/esm/operations/geographicHierarchies.d.ts.map +0 -1
  268. package/esm/operations/geographicHierarchies.js +0 -51
  269. package/esm/operations/geographicHierarchies.js.map +0 -1
  270. package/esm/operations/heatMap.d.ts +0 -34
  271. package/esm/operations/heatMap.d.ts.map +0 -1
  272. package/esm/operations/heatMap.js +0 -61
  273. package/esm/operations/heatMap.js.map +0 -1
  274. package/esm/operations/index.d.ts.map +0 -1
  275. package/esm/operations/index.js.map +0 -1
  276. package/esm/operations/profiles.d.ts +0 -166
  277. package/esm/operations/profiles.d.ts.map +0 -1
  278. package/esm/operations/profiles.js +0 -251
  279. package/esm/operations/profiles.js.map +0 -1
  280. package/esm/operations/trafficManagerUserMetricsKeys.d.ts +0 -58
  281. package/esm/operations/trafficManagerUserMetricsKeys.d.ts.map +0 -1
  282. package/esm/operations/trafficManagerUserMetricsKeys.js +0 -108
  283. package/esm/operations/trafficManagerUserMetricsKeys.js.map +0 -1
  284. package/esm/trafficManagerManagementClient.d.ts +0 -23
  285. package/esm/trafficManagerManagementClient.d.ts.map +0 -1
  286. package/esm/trafficManagerManagementClient.js +0 -38
  287. package/esm/trafficManagerManagementClient.js.map +0 -1
  288. package/esm/trafficManagerManagementClientContext.d.ts +0 -17
  289. package/esm/trafficManagerManagementClientContext.d.ts.map +0 -1
  290. package/esm/trafficManagerManagementClientContext.js +0 -57
  291. package/esm/trafficManagerManagementClientContext.js.map +0 -1
  292. package/src/models/endpointsMappers.ts +0 -31
  293. package/src/models/geographicHierarchiesMappers.ts +0 -30
  294. package/src/models/heatMapMappers.ts +0 -30
  295. package/src/models/profilesMappers.ts +0 -34
  296. package/src/models/trafficManagerUserMetricsKeysMappers.ts +0 -31
  297. package/src/trafficManagerManagementClientContext.ts +0 -63
@@ -1,858 +1,556 @@
1
1
  /*
2
- * Copyright (c) Microsoft Corporation. All rights reserved.
3
- * Licensed under the MIT License. See License.txt in the project root for license information.
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
4
  *
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
 
9
- import { BaseResource, CloudError, AzureServiceClientOptions } from "@azure/ms-rest-azure-js";
10
- import * as msRest from "@azure/ms-rest-js";
9
+ import * as coreClient from "@azure/core-client";
11
10
 
12
- export { BaseResource, CloudError };
13
-
14
- /**
15
- * The result of the request or operation.
16
- */
17
- export interface DeleteOperationResult {
18
- /**
19
- * The result of the operation or request.
20
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
21
- */
22
- readonly operationResult?: boolean;
23
- }
24
-
25
- /**
26
- * Subnet first address, scope, and/or last address.
27
- */
11
+ /** Subnet first address, scope, and/or last address. */
28
12
  export interface EndpointPropertiesSubnetsItem {
29
- /**
30
- * First address in the subnet.
31
- */
13
+ /** First address in the subnet. */
32
14
  first?: string;
33
- /**
34
- * Last address in the subnet.
35
- */
15
+ /** Last address in the subnet. */
36
16
  last?: string;
37
- /**
38
- * Block size (number of leading bits in the subnet mask).
39
- */
17
+ /** Block size (number of leading bits in the subnet mask). */
40
18
  scope?: number;
41
19
  }
42
20
 
43
- /**
44
- * Custom header name and value.
45
- */
21
+ /** Custom header name and value. */
46
22
  export interface EndpointPropertiesCustomHeadersItem {
47
- /**
48
- * Header name.
49
- */
23
+ /** Header name. */
50
24
  name?: string;
51
- /**
52
- * Header value.
53
- */
25
+ /** Header value. */
54
26
  value?: string;
55
27
  }
56
28
 
57
- /**
58
- * Class which is a sparse representation of a Traffic Manager endpoint.
59
- */
60
- export interface HeatMapEndpoint {
61
- /**
62
- * The ARM Resource ID of this Traffic Manager endpoint.
63
- */
64
- resourceId?: string;
65
- /**
66
- * A number uniquely identifying this endpoint in query experiences.
67
- */
68
- endpointId?: number;
69
- }
70
-
71
- /**
72
- * Class representing a Traffic Manager HeatMap query experience properties.
73
- */
74
- export interface QueryExperience {
75
- /**
76
- * The id of the endpoint from the 'endpoints' array which these queries were routed to.
77
- */
78
- endpointId: number;
79
- /**
80
- * The number of queries originating from this location.
81
- */
82
- queryCount: number;
83
- /**
84
- * The latency experienced by queries originating from this location.
85
- */
86
- latency?: number;
87
- }
88
-
89
- /**
90
- * Class representing a Traffic Manager HeatMap traffic flow properties.
91
- */
92
- export interface TrafficFlow {
93
- /**
94
- * The IP address that this query experience originated from.
95
- */
96
- sourceIp?: string;
97
- /**
98
- * The approximate latitude that these queries originated from.
99
- */
100
- latitude?: number;
101
- /**
102
- * The approximate longitude that these queries originated from.
103
- */
104
- longitude?: number;
105
- /**
106
- * The query experiences produced in this HeatMap calculation.
107
- */
108
- queryExperiences?: QueryExperience[];
109
- }
110
-
111
- /**
112
- * The core properties of ARM resources
113
- */
114
- export interface Resource extends BaseResource {
115
- /**
116
- * Fully qualified resource Id for the resource. Ex -
117
- * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}
118
- */
29
+ /** The core properties of ARM resources */
30
+ export interface Resource {
31
+ /** Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName} */
119
32
  id?: string;
120
- /**
121
- * The name of the resource
122
- */
33
+ /** The name of the resource */
123
34
  name?: string;
124
- /**
125
- * The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.
126
- */
35
+ /** The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles. */
127
36
  type?: string;
128
37
  }
129
38
 
130
- /**
131
- * The resource model definition for a ARM proxy resource. It will have everything other than
132
- * required location and tags
133
- */
134
- export interface ProxyResource extends Resource {
39
+ /** An error returned by the Azure Resource Manager */
40
+ export interface CloudError {
41
+ /** The content of the error. */
42
+ error?: CloudErrorBody;
135
43
  }
136
44
 
137
- /**
138
- * Class representing a Traffic Manager HeatMap.
139
- */
140
- export interface HeatMapModel extends ProxyResource {
141
- /**
142
- * The beginning of the time window for this HeatMap, inclusive.
143
- */
144
- startTime?: Date;
145
- /**
146
- * The ending of the time window for this HeatMap, exclusive.
147
- */
148
- endTime?: Date;
149
- /**
150
- * The endpoints used in this HeatMap calculation.
151
- */
152
- endpoints?: HeatMapEndpoint[];
153
- /**
154
- * The traffic flows produced in this HeatMap calculation.
155
- */
156
- trafficFlows?: TrafficFlow[];
45
+ /** The content of an error returned by the Azure Resource Manager */
46
+ export interface CloudErrorBody {
47
+ /** Error code */
48
+ code?: string;
49
+ /** Error message */
50
+ message?: string;
51
+ /** Error target */
52
+ target?: string;
53
+ /** Error details */
54
+ details?: CloudErrorBody[];
157
55
  }
158
56
 
159
- /**
160
- * Class representing Traffic Manager User Metrics.
161
- */
162
- export interface UserMetricsModel extends ProxyResource {
57
+ /** The result of the request or operation. */
58
+ export interface DeleteOperationResult {
163
59
  /**
164
- * The key returned by the User Metrics operation.
60
+ * The result of the operation or request.
61
+ * NOTE: This property will not be serialized. It can only be populated by the server.
165
62
  */
166
- key?: string;
63
+ readonly operationResult?: boolean;
167
64
  }
168
65
 
169
- /**
170
- * Class representing a Traffic Manager endpoint.
171
- */
172
- export interface Endpoint extends ProxyResource {
173
- /**
174
- * The Azure Resource URI of the of the endpoint. Not applicable to endpoints of type
175
- * 'ExternalEndpoints'.
176
- */
177
- targetResourceId?: string;
178
- /**
179
- * The fully-qualified DNS name or IP address of the endpoint. Traffic Manager returns this value
180
- * in DNS responses to direct traffic to this endpoint.
181
- */
182
- target?: string;
183
- /**
184
- * The status of the endpoint. If the endpoint is Enabled, it is probed for endpoint health and
185
- * is included in the traffic routing method. Possible values include: 'Enabled', 'Disabled'
186
- */
187
- endpointStatus?: EndpointStatus;
188
- /**
189
- * The weight of this endpoint when using the 'Weighted' traffic routing method. Possible values
190
- * are from 1 to 1000.
191
- */
192
- weight?: number;
193
- /**
194
- * The priority of this endpoint when using the 'Priority' traffic routing method. Possible
195
- * values are from 1 to 1000, lower values represent higher priority. This is an optional
196
- * parameter. If specified, it must be specified on all endpoints, and no two endpoints can
197
- * share the same priority value.
198
- */
199
- priority?: number;
200
- /**
201
- * Specifies the location of the external or nested endpoints when using the 'Performance'
202
- * traffic routing method.
203
- */
204
- endpointLocation?: string;
205
- /**
206
- * The monitoring status of the endpoint. Possible values include: 'CheckingEndpoint', 'Online',
207
- * 'Degraded', 'Disabled', 'Inactive', 'Stopped'
208
- */
209
- endpointMonitorStatus?: EndpointMonitorStatus;
210
- /**
211
- * The minimum number of endpoints that must be available in the child profile in order for the
212
- * parent profile to be considered available. Only applicable to endpoint of type
213
- * 'NestedEndpoints'.
214
- */
215
- minChildEndpoints?: number;
216
- /**
217
- * The list of countries/regions mapped to this endpoint when using the 'Geographic' traffic
218
- * routing method. Please consult Traffic Manager Geographic documentation for a full list of
219
- * accepted values.
220
- */
221
- geoMapping?: string[];
222
- /**
223
- * The list of subnets, IP addresses, and/or address ranges mapped to this endpoint when using
224
- * the 'Subnet' traffic routing method. An empty list will match all ranges not covered by other
225
- * endpoints.
226
- */
227
- subnets?: EndpointPropertiesSubnetsItem[];
228
- /**
229
- * List of custom headers.
230
- */
231
- customHeaders?: EndpointPropertiesCustomHeadersItem[];
66
+ /** Parameters supplied to check Traffic Manager name operation. */
67
+ export interface CheckTrafficManagerRelativeDnsNameAvailabilityParameters {
68
+ /** The name of the resource. */
69
+ name?: string;
70
+ /** The type of the resource. */
71
+ type?: string;
232
72
  }
233
73
 
234
- /**
235
- * Parameters supplied to check Traffic Manager name operation.
236
- */
237
- export interface CheckTrafficManagerRelativeDnsNameAvailabilityParameters {
238
- /**
239
- * The name of the resource.
240
- */
74
+ /** Class representing a Traffic Manager Name Availability response. */
75
+ export interface TrafficManagerNameAvailability {
76
+ /** The relative name. */
241
77
  name?: string;
242
- /**
243
- * The type of the resource.
244
- */
78
+ /** Traffic Manager profile resource type. */
245
79
  type?: string;
80
+ /** Describes whether the relative name is available or not. */
81
+ nameAvailable?: boolean;
82
+ /** The reason why the name is not available, when applicable. */
83
+ reason?: string;
84
+ /** Descriptive message that explains why the name is not available, when applicable. */
85
+ message?: string;
246
86
  }
247
87
 
248
- /**
249
- * Class containing DNS settings in a Traffic Manager profile.
250
- */
88
+ /** The list Traffic Manager profiles operation response. */
89
+ export interface ProfileListResult {
90
+ /** Gets the list of Traffic manager profiles. */
91
+ value?: Profile[];
92
+ }
93
+
94
+ /** Class containing DNS settings in a Traffic Manager profile. */
251
95
  export interface DnsConfig {
252
- /**
253
- * The relative DNS name provided by this Traffic Manager profile. This value is combined with
254
- * the DNS domain name used by Azure Traffic Manager to form the fully-qualified domain name
255
- * (FQDN) of the profile.
256
- */
96
+ /** The relative DNS name provided by this Traffic Manager profile. This value is combined with the DNS domain name used by Azure Traffic Manager to form the fully-qualified domain name (FQDN) of the profile. */
257
97
  relativeName?: string;
258
98
  /**
259
- * The fully-qualified domain name (FQDN) of the Traffic Manager profile. This is formed from the
260
- * concatenation of the RelativeName with the DNS domain used by Azure Traffic Manager.
261
- * **NOTE: This property will not be serialized. It can only be populated by the server.**
99
+ * The fully-qualified domain name (FQDN) of the Traffic Manager profile. This is formed from the concatenation of the RelativeName with the DNS domain used by Azure Traffic Manager.
100
+ * NOTE: This property will not be serialized. It can only be populated by the server.
262
101
  */
263
102
  readonly fqdn?: string;
264
- /**
265
- * The DNS Time-To-Live (TTL), in seconds. This informs the local DNS resolvers and DNS clients
266
- * how long to cache DNS responses provided by this Traffic Manager profile.
267
- */
103
+ /** The DNS Time-To-Live (TTL), in seconds. This informs the local DNS resolvers and DNS clients how long to cache DNS responses provided by this Traffic Manager profile. */
268
104
  ttl?: number;
269
105
  }
270
106
 
271
- /**
272
- * Custom header name and value.
273
- */
274
- export interface MonitorConfigCustomHeadersItem {
275
- /**
276
- * Header name.
277
- */
278
- name?: string;
279
- /**
280
- * Header value.
281
- */
282
- value?: string;
283
- }
284
-
285
- /**
286
- * Min and max value of a status code range.
287
- */
288
- export interface MonitorConfigExpectedStatusCodeRangesItem {
289
- /**
290
- * Min status code.
291
- */
292
- min?: number;
293
- /**
294
- * Max status code.
295
- */
296
- max?: number;
297
- }
298
-
299
- /**
300
- * Class containing endpoint monitoring settings in a Traffic Manager profile.
301
- */
107
+ /** Class containing endpoint monitoring settings in a Traffic Manager profile. */
302
108
  export interface MonitorConfig {
303
- /**
304
- * The profile-level monitoring status of the Traffic Manager profile. Possible values include:
305
- * 'CheckingEndpoints', 'Online', 'Degraded', 'Disabled', 'Inactive'
306
- */
109
+ /** The profile-level monitoring status of the Traffic Manager profile. */
307
110
  profileMonitorStatus?: ProfileMonitorStatus;
308
- /**
309
- * The protocol (HTTP, HTTPS or TCP) used to probe for endpoint health. Possible values include:
310
- * 'HTTP', 'HTTPS', 'TCP'
311
- */
111
+ /** The protocol (HTTP, HTTPS or TCP) used to probe for endpoint health. */
312
112
  protocol?: MonitorProtocol;
313
- /**
314
- * The TCP port used to probe for endpoint health.
315
- */
113
+ /** The TCP port used to probe for endpoint health. */
316
114
  port?: number;
317
- /**
318
- * The path relative to the endpoint domain name used to probe for endpoint health.
319
- */
115
+ /** The path relative to the endpoint domain name used to probe for endpoint health. */
320
116
  path?: string;
321
- /**
322
- * The monitor interval for endpoints in this profile. This is the interval at which Traffic
323
- * Manager will check the health of each endpoint in this profile.
324
- */
117
+ /** The monitor interval for endpoints in this profile. This is the interval at which Traffic Manager will check the health of each endpoint in this profile. */
325
118
  intervalInSeconds?: number;
326
- /**
327
- * The monitor timeout for endpoints in this profile. This is the time that Traffic Manager
328
- * allows endpoints in this profile to response to the health check.
329
- */
119
+ /** The monitor timeout for endpoints in this profile. This is the time that Traffic Manager allows endpoints in this profile to response to the health check. */
330
120
  timeoutInSeconds?: number;
331
- /**
332
- * The number of consecutive failed health check that Traffic Manager tolerates before declaring
333
- * an endpoint in this profile Degraded after the next failed health check.
334
- */
121
+ /** The number of consecutive failed health check that Traffic Manager tolerates before declaring an endpoint in this profile Degraded after the next failed health check. */
335
122
  toleratedNumberOfFailures?: number;
336
- /**
337
- * List of custom headers.
338
- */
123
+ /** List of custom headers. */
339
124
  customHeaders?: MonitorConfigCustomHeadersItem[];
340
- /**
341
- * List of expected status code ranges.
342
- */
125
+ /** List of expected status code ranges. */
343
126
  expectedStatusCodeRanges?: MonitorConfigExpectedStatusCodeRangesItem[];
344
127
  }
345
128
 
346
- /**
347
- * The resource model definition for a ARM tracked top level resource
348
- */
349
- export interface TrackedResource extends Resource {
350
- /**
351
- * Resource tags.
352
- */
129
+ /** Custom header name and value. */
130
+ export interface MonitorConfigCustomHeadersItem {
131
+ /** Header name. */
132
+ name?: string;
133
+ /** Header value. */
134
+ value?: string;
135
+ }
136
+
137
+ /** Min and max value of a status code range. */
138
+ export interface MonitorConfigExpectedStatusCodeRangesItem {
139
+ /** Min status code. */
140
+ min?: number;
141
+ /** Max status code. */
142
+ max?: number;
143
+ }
144
+
145
+ /** Class representing a region in the Geographic hierarchy used with the Geographic traffic routing method. */
146
+ export interface Region {
147
+ /** The code of the region */
148
+ code?: string;
149
+ /** The name of the region */
150
+ name?: string;
151
+ /** The list of Regions grouped under this Region in the Geographic Hierarchy. */
152
+ regions?: Region[];
153
+ }
154
+
155
+ /** Class which is a sparse representation of a Traffic Manager endpoint. */
156
+ export interface HeatMapEndpoint {
157
+ /** The ARM Resource ID of this Traffic Manager endpoint. */
158
+ resourceId?: string;
159
+ /** A number uniquely identifying this endpoint in query experiences. */
160
+ endpointId?: number;
161
+ }
162
+
163
+ /** Class representing a Traffic Manager HeatMap traffic flow properties. */
164
+ export interface TrafficFlow {
165
+ /** The IP address that this query experience originated from. */
166
+ sourceIp?: string;
167
+ /** The approximate latitude that these queries originated from. */
168
+ latitude?: number;
169
+ /** The approximate longitude that these queries originated from. */
170
+ longitude?: number;
171
+ /** The query experiences produced in this HeatMap calculation. */
172
+ queryExperiences?: QueryExperience[];
173
+ }
174
+
175
+ /** Class representing a Traffic Manager HeatMap query experience properties. */
176
+ export interface QueryExperience {
177
+ /** The id of the endpoint from the 'endpoints' array which these queries were routed to. */
178
+ endpointId: number;
179
+ /** The number of queries originating from this location. */
180
+ queryCount: number;
181
+ /** The latency experienced by queries originating from this location. */
182
+ latency?: number;
183
+ }
184
+
185
+ /** The resource model definition for a ARM proxy resource. It will have everything other than required location and tags */
186
+ export type ProxyResource = Resource & {};
187
+
188
+ /** The resource model definition for a ARM tracked top level resource */
189
+ export type TrackedResource = Resource & {
190
+ /** Resource tags. */
353
191
  tags?: { [propertyName: string]: string };
354
- /**
355
- * The Azure Region where the resource lives
356
- */
192
+ /** The Azure Region where the resource lives */
357
193
  location?: string;
358
- }
194
+ };
359
195
 
360
- /**
361
- * Class representing a Traffic Manager profile.
362
- */
363
- export interface Profile extends TrackedResource {
364
- /**
365
- * The status of the Traffic Manager profile. Possible values include: 'Enabled', 'Disabled'
366
- */
196
+ /** Class representing a Traffic Manager endpoint. */
197
+ export type Endpoint = ProxyResource & {
198
+ /** The Azure Resource URI of the of the endpoint. Not applicable to endpoints of type 'ExternalEndpoints'. */
199
+ targetResourceId?: string;
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. */
201
+ target?: string;
202
+ /** The status of the endpoint. If the endpoint is Enabled, it is probed for endpoint health and is included in the traffic routing method. */
203
+ endpointStatus?: EndpointStatus;
204
+ /** The weight of this endpoint when using the 'Weighted' traffic routing method. Possible values are from 1 to 1000. */
205
+ weight?: number;
206
+ /** The priority of this endpoint when using the 'Priority' traffic routing method. Possible values are from 1 to 1000, lower values represent higher priority. This is an optional parameter. If specified, it must be specified on all endpoints, and no two endpoints can share the same priority value. */
207
+ priority?: number;
208
+ /** Specifies the location of the external or nested endpoints when using the 'Performance' traffic routing method. */
209
+ endpointLocation?: string;
210
+ /** The monitoring status of the endpoint. */
211
+ endpointMonitorStatus?: EndpointMonitorStatus;
212
+ /** The minimum number of endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'. */
213
+ minChildEndpoints?: number;
214
+ /** The minimum number of IPv4 (DNS record type A) endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'. */
215
+ minChildEndpointsIPv4?: number;
216
+ /** The minimum number of IPv6 (DNS record type AAAA) endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'. */
217
+ minChildEndpointsIPv6?: number;
218
+ /** The list of countries/regions mapped to this endpoint when using the 'Geographic' traffic routing method. Please consult Traffic Manager Geographic documentation for a full list of accepted values. */
219
+ geoMapping?: string[];
220
+ /** The list of subnets, IP addresses, and/or address ranges mapped to this endpoint when using the 'Subnet' traffic routing method. An empty list will match all ranges not covered by other endpoints. */
221
+ subnets?: EndpointPropertiesSubnetsItem[];
222
+ /** List of custom headers. */
223
+ customHeaders?: EndpointPropertiesCustomHeadersItem[];
224
+ };
225
+
226
+ /** Class representing the Geographic hierarchy used with the Geographic traffic routing method. */
227
+ export type TrafficManagerGeographicHierarchy = ProxyResource & {
228
+ /** The region at the root of the hierarchy from all the regions in the hierarchy can be retrieved. */
229
+ geographicHierarchy?: Region;
230
+ };
231
+
232
+ /** Class representing a Traffic Manager HeatMap. */
233
+ export type HeatMapModel = ProxyResource & {
234
+ /** The beginning of the time window for this HeatMap, inclusive. */
235
+ startTime?: Date;
236
+ /** The ending of the time window for this HeatMap, exclusive. */
237
+ endTime?: Date;
238
+ /** The endpoints used in this HeatMap calculation. */
239
+ endpoints?: HeatMapEndpoint[];
240
+ /** The traffic flows produced in this HeatMap calculation. */
241
+ trafficFlows?: TrafficFlow[];
242
+ };
243
+
244
+ /** Class representing Traffic Manager User Metrics. */
245
+ export type UserMetricsModel = ProxyResource & {
246
+ /** The key returned by the User Metrics operation. */
247
+ key?: string;
248
+ };
249
+
250
+ /** Class representing a Traffic Manager profile. */
251
+ export type Profile = TrackedResource & {
252
+ /** The status of the Traffic Manager profile. */
367
253
  profileStatus?: ProfileStatus;
368
- /**
369
- * The traffic routing method of the Traffic Manager profile. Possible values include:
370
- * 'Performance', 'Priority', 'Weighted', 'Geographic', 'MultiValue', 'Subnet'
371
- */
254
+ /** The traffic routing method of the Traffic Manager profile. */
372
255
  trafficRoutingMethod?: TrafficRoutingMethod;
373
- /**
374
- * The DNS settings of the Traffic Manager profile.
375
- */
256
+ /** The DNS settings of the Traffic Manager profile. */
376
257
  dnsConfig?: DnsConfig;
377
- /**
378
- * The endpoint monitoring settings of the Traffic Manager profile.
379
- */
258
+ /** The endpoint monitoring settings of the Traffic Manager profile. */
380
259
  monitorConfig?: MonitorConfig;
381
- /**
382
- * The list of endpoints in the Traffic Manager profile.
383
- */
260
+ /** The list of endpoints in the Traffic Manager profile. */
384
261
  endpoints?: Endpoint[];
385
- /**
386
- * Indicates whether Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile.
387
- * Null, indicates 'Disabled'. Enabling this feature will increase the cost of the Traffic Manage
388
- * profile. Possible values include: 'Enabled', 'Disabled'
389
- */
262
+ /** Indicates whether Traffic View is 'Enabled' or 'Disabled' for the Traffic Manager profile. Null, indicates 'Disabled'. Enabling this feature will increase the cost of the Traffic Manage profile. */
390
263
  trafficViewEnrollmentStatus?: TrafficViewEnrollmentStatus;
391
- /**
392
- * Maximum number of endpoints to be returned for MultiValue routing type.
393
- */
264
+ /** The list of allowed endpoint record types. */
265
+ allowedEndpointRecordTypes?: AllowedEndpointRecordType[];
266
+ /** Maximum number of endpoints to be returned for MultiValue routing type. */
394
267
  maxReturn?: number;
268
+ };
269
+
270
+ /** Known values of {@link EndpointStatus} that the service accepts. */
271
+ export enum KnownEndpointStatus {
272
+ Enabled = "Enabled",
273
+ Disabled = "Disabled"
395
274
  }
396
275
 
397
276
  /**
398
- * Class representing a Traffic Manager Name Availability response.
277
+ * Defines values for EndpointStatus. \
278
+ * {@link KnownEndpointStatus} can be used interchangeably with EndpointStatus,
279
+ * this enum contains the known values that the service supports.
280
+ * ### Known values supported by the service
281
+ * **Enabled** \
282
+ * **Disabled**
399
283
  */
400
- export interface TrafficManagerNameAvailability {
401
- /**
402
- * The relative name.
403
- */
404
- name?: string;
405
- /**
406
- * Traffic Manager profile resource type.
407
- */
408
- type?: string;
409
- /**
410
- * Describes whether the relative name is available or not.
411
- */
412
- nameAvailable?: boolean;
413
- /**
414
- * The reason why the name is not available, when applicable.
415
- */
416
- reason?: string;
417
- /**
418
- * Descriptive message that explains why the name is not available, when applicable.
419
- */
420
- message?: string;
284
+ export type EndpointStatus = string;
285
+
286
+ /** Known values of {@link EndpointMonitorStatus} that the service accepts. */
287
+ export enum KnownEndpointMonitorStatus {
288
+ CheckingEndpoint = "CheckingEndpoint",
289
+ Online = "Online",
290
+ Degraded = "Degraded",
291
+ Disabled = "Disabled",
292
+ Inactive = "Inactive",
293
+ Stopped = "Stopped"
421
294
  }
422
295
 
423
296
  /**
424
- * Class representing a region in the Geographic hierarchy used with the Geographic traffic routing
425
- * method.
297
+ * Defines values for EndpointMonitorStatus. \
298
+ * {@link KnownEndpointMonitorStatus} can be used interchangeably with EndpointMonitorStatus,
299
+ * this enum contains the known values that the service supports.
300
+ * ### Known values supported by the service
301
+ * **CheckingEndpoint** \
302
+ * **Online** \
303
+ * **Degraded** \
304
+ * **Disabled** \
305
+ * **Inactive** \
306
+ * **Stopped**
426
307
  */
427
- export interface Region {
428
- /**
429
- * The code of the region
430
- */
431
- code?: string;
432
- /**
433
- * The name of the region
434
- */
435
- name?: string;
436
- /**
437
- * The list of Regions grouped under this Region in the Geographic Hierarchy.
438
- */
439
- regions?: Region[];
308
+ export type EndpointMonitorStatus = string;
309
+
310
+ /** Known values of {@link ProfileStatus} that the service accepts. */
311
+ export enum KnownProfileStatus {
312
+ Enabled = "Enabled",
313
+ Disabled = "Disabled"
440
314
  }
441
315
 
442
316
  /**
443
- * Class representing the Geographic hierarchy used with the Geographic traffic routing method.
317
+ * Defines values for ProfileStatus. \
318
+ * {@link KnownProfileStatus} can be used interchangeably with ProfileStatus,
319
+ * this enum contains the known values that the service supports.
320
+ * ### Known values supported by the service
321
+ * **Enabled** \
322
+ * **Disabled**
444
323
  */
445
- export interface TrafficManagerGeographicHierarchy extends ProxyResource {
446
- /**
447
- * The region at the root of the hierarchy from all the regions in the hierarchy can be
448
- * retrieved.
449
- */
450
- geographicHierarchy?: Region;
324
+ export type ProfileStatus = string;
325
+
326
+ /** Known values of {@link TrafficRoutingMethod} that the service accepts. */
327
+ export enum KnownTrafficRoutingMethod {
328
+ Performance = "Performance",
329
+ Priority = "Priority",
330
+ Weighted = "Weighted",
331
+ Geographic = "Geographic",
332
+ MultiValue = "MultiValue",
333
+ Subnet = "Subnet"
451
334
  }
452
335
 
453
336
  /**
454
- * Optional Parameters.
455
- */
456
- export interface HeatMapGetOptionalParams extends msRest.RequestOptionsBase {
457
- /**
458
- * The top left latitude,longitude pair of the rectangular viewport to query for.
459
- */
460
- topLeft?: number[];
461
- /**
462
- * The bottom right latitude,longitude pair of the rectangular viewport to query for.
463
- */
464
- botRight?: number[];
337
+ * Defines values for TrafficRoutingMethod. \
338
+ * {@link KnownTrafficRoutingMethod} can be used interchangeably with TrafficRoutingMethod,
339
+ * this enum contains the known values that the service supports.
340
+ * ### Known values supported by the service
341
+ * **Performance** \
342
+ * **Priority** \
343
+ * **Weighted** \
344
+ * **Geographic** \
345
+ * **MultiValue** \
346
+ * **Subnet**
347
+ */
348
+ export type TrafficRoutingMethod = string;
349
+
350
+ /** Known values of {@link ProfileMonitorStatus} that the service accepts. */
351
+ export enum KnownProfileMonitorStatus {
352
+ CheckingEndpoints = "CheckingEndpoints",
353
+ Online = "Online",
354
+ Degraded = "Degraded",
355
+ Disabled = "Disabled",
356
+ Inactive = "Inactive"
465
357
  }
466
358
 
467
359
  /**
468
- * An interface representing TrafficManagerManagementClientOptions.
360
+ * Defines values for ProfileMonitorStatus. \
361
+ * {@link KnownProfileMonitorStatus} can be used interchangeably with ProfileMonitorStatus,
362
+ * this enum contains the known values that the service supports.
363
+ * ### Known values supported by the service
364
+ * **CheckingEndpoints** \
365
+ * **Online** \
366
+ * **Degraded** \
367
+ * **Disabled** \
368
+ * **Inactive**
469
369
  */
470
- export interface TrafficManagerManagementClientOptions extends AzureServiceClientOptions {
471
- baseUri?: string;
370
+ export type ProfileMonitorStatus = string;
371
+
372
+ /** Known values of {@link MonitorProtocol} that the service accepts. */
373
+ export enum KnownMonitorProtocol {
374
+ Http = "HTTP",
375
+ Https = "HTTPS",
376
+ TCP = "TCP"
472
377
  }
473
378
 
474
379
  /**
475
- * @interface
476
- * The list Traffic Manager profiles operation response.
477
- * @extends Array<Profile>
380
+ * Defines values for MonitorProtocol. \
381
+ * {@link KnownMonitorProtocol} can be used interchangeably with MonitorProtocol,
382
+ * this enum contains the known values that the service supports.
383
+ * ### Known values supported by the service
384
+ * **HTTP** \
385
+ * **HTTPS** \
386
+ * **TCP**
478
387
  */
479
- export interface ProfileListResult extends Array<Profile> {
388
+ export type MonitorProtocol = string;
389
+
390
+ /** Known values of {@link TrafficViewEnrollmentStatus} that the service accepts. */
391
+ export enum KnownTrafficViewEnrollmentStatus {
392
+ Enabled = "Enabled",
393
+ Disabled = "Disabled"
480
394
  }
481
395
 
482
396
  /**
483
- * Defines values for EndpointStatus.
484
- * Possible values include: 'Enabled', 'Disabled'
485
- * @readonly
486
- * @enum {string}
397
+ * Defines values for TrafficViewEnrollmentStatus. \
398
+ * {@link KnownTrafficViewEnrollmentStatus} can be used interchangeably with TrafficViewEnrollmentStatus,
399
+ * this enum contains the known values that the service supports.
400
+ * ### Known values supported by the service
401
+ * **Enabled** \
402
+ * **Disabled**
487
403
  */
488
- export type EndpointStatus = 'Enabled' | 'Disabled';
404
+ export type TrafficViewEnrollmentStatus = string;
489
405
 
490
- /**
491
- * Defines values for EndpointMonitorStatus.
492
- * Possible values include: 'CheckingEndpoint', 'Online', 'Degraded', 'Disabled', 'Inactive',
493
- * 'Stopped'
494
- * @readonly
495
- * @enum {string}
496
- */
497
- export type EndpointMonitorStatus = 'CheckingEndpoint' | 'Online' | 'Degraded' | 'Disabled' | 'Inactive' | 'Stopped';
406
+ /** Known values of {@link AllowedEndpointRecordType} that the service accepts. */
407
+ export enum KnownAllowedEndpointRecordType {
408
+ DomainName = "DomainName",
409
+ IPv4Address = "IPv4Address",
410
+ IPv6Address = "IPv6Address",
411
+ Any = "Any"
412
+ }
498
413
 
499
414
  /**
500
- * Defines values for ProfileMonitorStatus.
501
- * Possible values include: 'CheckingEndpoints', 'Online', 'Degraded', 'Disabled', 'Inactive'
502
- * @readonly
503
- * @enum {string}
415
+ * Defines values for AllowedEndpointRecordType. \
416
+ * {@link KnownAllowedEndpointRecordType} can be used interchangeably with AllowedEndpointRecordType,
417
+ * this enum contains the known values that the service supports.
418
+ * ### Known values supported by the service
419
+ * **DomainName** \
420
+ * **IPv4Address** \
421
+ * **IPv6Address** \
422
+ * **Any**
504
423
  */
505
- export type ProfileMonitorStatus = 'CheckingEndpoints' | 'Online' | 'Degraded' | 'Disabled' | 'Inactive';
424
+ export type AllowedEndpointRecordType = string;
425
+ /** Defines values for EndpointType. */
426
+ export type EndpointType =
427
+ | "AzureEndpoints"
428
+ | "ExternalEndpoints"
429
+ | "NestedEndpoints";
506
430
 
507
- /**
508
- * Defines values for MonitorProtocol.
509
- * Possible values include: 'HTTP', 'HTTPS', 'TCP'
510
- * @readonly
511
- * @enum {string}
512
- */
513
- export type MonitorProtocol = 'HTTP' | 'HTTPS' | 'TCP';
431
+ /** Optional parameters. */
432
+ export interface EndpointsUpdateOptionalParams
433
+ extends coreClient.OperationOptions {}
514
434
 
515
- /**
516
- * Defines values for ProfileStatus.
517
- * Possible values include: 'Enabled', 'Disabled'
518
- * @readonly
519
- * @enum {string}
520
- */
521
- export type ProfileStatus = 'Enabled' | 'Disabled';
435
+ /** Contains response data for the update operation. */
436
+ export type EndpointsUpdateResponse = Endpoint;
522
437
 
523
- /**
524
- * Defines values for TrafficRoutingMethod.
525
- * Possible values include: 'Performance', 'Priority', 'Weighted', 'Geographic', 'MultiValue',
526
- * 'Subnet'
527
- * @readonly
528
- * @enum {string}
529
- */
530
- export type TrafficRoutingMethod = 'Performance' | 'Priority' | 'Weighted' | 'Geographic' | 'MultiValue' | 'Subnet';
438
+ /** Optional parameters. */
439
+ export interface EndpointsGetOptionalParams
440
+ extends coreClient.OperationOptions {}
531
441
 
532
- /**
533
- * Defines values for TrafficViewEnrollmentStatus.
534
- * Possible values include: 'Enabled', 'Disabled'
535
- * @readonly
536
- * @enum {string}
537
- */
538
- export type TrafficViewEnrollmentStatus = 'Enabled' | 'Disabled';
442
+ /** Contains response data for the get operation. */
443
+ export type EndpointsGetResponse = Endpoint;
539
444
 
540
- /**
541
- * Contains response data for the update operation.
542
- */
543
- export type EndpointsUpdateResponse = Endpoint & {
544
- /**
545
- * The underlying HTTP response.
546
- */
547
- _response: msRest.HttpResponse & {
548
- /**
549
- * The response body as text (string format)
550
- */
551
- bodyAsText: string;
552
-
553
- /**
554
- * The response body as parsed JSON or XML
555
- */
556
- parsedBody: Endpoint;
557
- };
558
- };
445
+ /** Optional parameters. */
446
+ export interface EndpointsCreateOrUpdateOptionalParams
447
+ extends coreClient.OperationOptions {}
559
448
 
560
- /**
561
- * Contains response data for the get operation.
562
- */
563
- export type EndpointsGetResponse = Endpoint & {
564
- /**
565
- * The underlying HTTP response.
566
- */
567
- _response: msRest.HttpResponse & {
568
- /**
569
- * The response body as text (string format)
570
- */
571
- bodyAsText: string;
572
-
573
- /**
574
- * The response body as parsed JSON or XML
575
- */
576
- parsedBody: Endpoint;
577
- };
578
- };
449
+ /** Contains response data for the createOrUpdate operation. */
450
+ export type EndpointsCreateOrUpdateResponse = Endpoint;
579
451
 
580
- /**
581
- * Contains response data for the createOrUpdate operation.
582
- */
583
- export type EndpointsCreateOrUpdateResponse = Endpoint & {
584
- /**
585
- * The underlying HTTP response.
586
- */
587
- _response: msRest.HttpResponse & {
588
- /**
589
- * The response body as text (string format)
590
- */
591
- bodyAsText: string;
592
-
593
- /**
594
- * The response body as parsed JSON or XML
595
- */
596
- parsedBody: Endpoint;
597
- };
598
- };
452
+ /** Optional parameters. */
453
+ export interface EndpointsDeleteOptionalParams
454
+ extends coreClient.OperationOptions {}
599
455
 
600
- /**
601
- * Contains response data for the deleteMethod operation.
602
- */
603
- export type EndpointsDeleteMethodResponse = DeleteOperationResult & {
604
- /**
605
- * The underlying HTTP response.
606
- */
607
- _response: msRest.HttpResponse & {
608
- /**
609
- * The response body as text (string format)
610
- */
611
- bodyAsText: string;
612
-
613
- /**
614
- * The response body as parsed JSON or XML
615
- */
616
- parsedBody: DeleteOperationResult;
617
- };
618
- };
456
+ /** Contains response data for the delete operation. */
457
+ export type EndpointsDeleteResponse = DeleteOperationResult;
619
458
 
620
- /**
621
- * Contains response data for the checkTrafficManagerRelativeDnsNameAvailability operation.
622
- */
623
- export type ProfilesCheckTrafficManagerRelativeDnsNameAvailabilityResponse = TrafficManagerNameAvailability & {
624
- /**
625
- * The underlying HTTP response.
626
- */
627
- _response: msRest.HttpResponse & {
628
- /**
629
- * The response body as text (string format)
630
- */
631
- bodyAsText: string;
632
-
633
- /**
634
- * The response body as parsed JSON or XML
635
- */
636
- parsedBody: TrafficManagerNameAvailability;
637
- };
638
- };
459
+ /** Optional parameters. */
460
+ export interface ProfilesCheckTrafficManagerRelativeDnsNameAvailabilityOptionalParams
461
+ extends coreClient.OperationOptions {}
639
462
 
640
- /**
641
- * Contains response data for the listByResourceGroup operation.
642
- */
643
- export type ProfilesListByResourceGroupResponse = ProfileListResult & {
644
- /**
645
- * The underlying HTTP response.
646
- */
647
- _response: msRest.HttpResponse & {
648
- /**
649
- * The response body as text (string format)
650
- */
651
- bodyAsText: string;
652
-
653
- /**
654
- * The response body as parsed JSON or XML
655
- */
656
- parsedBody: ProfileListResult;
657
- };
658
- };
463
+ /** Contains response data for the checkTrafficManagerRelativeDnsNameAvailability operation. */
464
+ export type ProfilesCheckTrafficManagerRelativeDnsNameAvailabilityResponse = TrafficManagerNameAvailability;
659
465
 
660
- /**
661
- * Contains response data for the listBySubscription operation.
662
- */
663
- export type ProfilesListBySubscriptionResponse = ProfileListResult & {
664
- /**
665
- * The underlying HTTP response.
666
- */
667
- _response: msRest.HttpResponse & {
668
- /**
669
- * The response body as text (string format)
670
- */
671
- bodyAsText: string;
672
-
673
- /**
674
- * The response body as parsed JSON or XML
675
- */
676
- parsedBody: ProfileListResult;
677
- };
678
- };
466
+ /** Optional parameters. */
467
+ export interface ProfilesListByResourceGroupOptionalParams
468
+ extends coreClient.OperationOptions {}
679
469
 
680
- /**
681
- * Contains response data for the get operation.
682
- */
683
- export type ProfilesGetResponse = Profile & {
684
- /**
685
- * The underlying HTTP response.
686
- */
687
- _response: msRest.HttpResponse & {
688
- /**
689
- * The response body as text (string format)
690
- */
691
- bodyAsText: string;
692
-
693
- /**
694
- * The response body as parsed JSON or XML
695
- */
696
- parsedBody: Profile;
697
- };
698
- };
470
+ /** Contains response data for the listByResourceGroup operation. */
471
+ export type ProfilesListByResourceGroupResponse = ProfileListResult;
699
472
 
700
- /**
701
- * Contains response data for the createOrUpdate operation.
702
- */
703
- export type ProfilesCreateOrUpdateResponse = Profile & {
704
- /**
705
- * The underlying HTTP response.
706
- */
707
- _response: msRest.HttpResponse & {
708
- /**
709
- * The response body as text (string format)
710
- */
711
- bodyAsText: string;
712
-
713
- /**
714
- * The response body as parsed JSON or XML
715
- */
716
- parsedBody: Profile;
717
- };
718
- };
473
+ /** Optional parameters. */
474
+ export interface ProfilesListBySubscriptionOptionalParams
475
+ extends coreClient.OperationOptions {}
719
476
 
720
- /**
721
- * Contains response data for the deleteMethod operation.
722
- */
723
- export type ProfilesDeleteMethodResponse = DeleteOperationResult & {
724
- /**
725
- * The underlying HTTP response.
726
- */
727
- _response: msRest.HttpResponse & {
728
- /**
729
- * The response body as text (string format)
730
- */
731
- bodyAsText: string;
732
-
733
- /**
734
- * The response body as parsed JSON or XML
735
- */
736
- parsedBody: DeleteOperationResult;
737
- };
738
- };
477
+ /** Contains response data for the listBySubscription operation. */
478
+ export type ProfilesListBySubscriptionResponse = ProfileListResult;
739
479
 
740
- /**
741
- * Contains response data for the update operation.
742
- */
743
- export type ProfilesUpdateResponse = Profile & {
744
- /**
745
- * The underlying HTTP response.
746
- */
747
- _response: msRest.HttpResponse & {
748
- /**
749
- * The response body as text (string format)
750
- */
751
- bodyAsText: string;
752
-
753
- /**
754
- * The response body as parsed JSON or XML
755
- */
756
- parsedBody: Profile;
757
- };
758
- };
480
+ /** Optional parameters. */
481
+ export interface ProfilesGetOptionalParams
482
+ extends coreClient.OperationOptions {}
759
483
 
760
- /**
761
- * Contains response data for the getDefault operation.
762
- */
763
- export type GeographicHierarchiesGetDefaultResponse = TrafficManagerGeographicHierarchy & {
764
- /**
765
- * The underlying HTTP response.
766
- */
767
- _response: msRest.HttpResponse & {
768
- /**
769
- * The response body as text (string format)
770
- */
771
- bodyAsText: string;
772
-
773
- /**
774
- * The response body as parsed JSON or XML
775
- */
776
- parsedBody: TrafficManagerGeographicHierarchy;
777
- };
778
- };
484
+ /** Contains response data for the get operation. */
485
+ export type ProfilesGetResponse = Profile;
779
486
 
780
- /**
781
- * Contains response data for the get operation.
782
- */
783
- export type HeatMapGetResponse = HeatMapModel & {
784
- /**
785
- * The underlying HTTP response.
786
- */
787
- _response: msRest.HttpResponse & {
788
- /**
789
- * The response body as text (string format)
790
- */
791
- bodyAsText: string;
792
-
793
- /**
794
- * The response body as parsed JSON or XML
795
- */
796
- parsedBody: HeatMapModel;
797
- };
798
- };
487
+ /** Optional parameters. */
488
+ export interface ProfilesCreateOrUpdateOptionalParams
489
+ extends coreClient.OperationOptions {}
799
490
 
800
- /**
801
- * Contains response data for the get operation.
802
- */
803
- export type TrafficManagerUserMetricsKeysGetResponse = UserMetricsModel & {
804
- /**
805
- * The underlying HTTP response.
806
- */
807
- _response: msRest.HttpResponse & {
808
- /**
809
- * The response body as text (string format)
810
- */
811
- bodyAsText: string;
812
-
813
- /**
814
- * The response body as parsed JSON or XML
815
- */
816
- parsedBody: UserMetricsModel;
817
- };
818
- };
491
+ /** Contains response data for the createOrUpdate operation. */
492
+ export type ProfilesCreateOrUpdateResponse = Profile;
819
493
 
820
- /**
821
- * Contains response data for the createOrUpdate operation.
822
- */
823
- export type TrafficManagerUserMetricsKeysCreateOrUpdateResponse = UserMetricsModel & {
824
- /**
825
- * The underlying HTTP response.
826
- */
827
- _response: msRest.HttpResponse & {
828
- /**
829
- * The response body as text (string format)
830
- */
831
- bodyAsText: string;
832
-
833
- /**
834
- * The response body as parsed JSON or XML
835
- */
836
- parsedBody: UserMetricsModel;
837
- };
838
- };
494
+ /** Optional parameters. */
495
+ export interface ProfilesDeleteOptionalParams
496
+ extends coreClient.OperationOptions {}
839
497
 
840
- /**
841
- * Contains response data for the deleteMethod operation.
842
- */
843
- export type TrafficManagerUserMetricsKeysDeleteMethodResponse = DeleteOperationResult & {
844
- /**
845
- * The underlying HTTP response.
846
- */
847
- _response: msRest.HttpResponse & {
848
- /**
849
- * The response body as text (string format)
850
- */
851
- bodyAsText: string;
852
-
853
- /**
854
- * The response body as parsed JSON or XML
855
- */
856
- parsedBody: DeleteOperationResult;
857
- };
858
- };
498
+ /** Contains response data for the delete operation. */
499
+ export type ProfilesDeleteResponse = DeleteOperationResult;
500
+
501
+ /** Optional parameters. */
502
+ export interface ProfilesUpdateOptionalParams
503
+ extends coreClient.OperationOptions {}
504
+
505
+ /** Contains response data for the update operation. */
506
+ export type ProfilesUpdateResponse = Profile;
507
+
508
+ /** Optional parameters. */
509
+ export interface GeographicHierarchiesGetDefaultOptionalParams
510
+ extends coreClient.OperationOptions {}
511
+
512
+ /** Contains response data for the getDefault operation. */
513
+ export type GeographicHierarchiesGetDefaultResponse = TrafficManagerGeographicHierarchy;
514
+
515
+ /** Optional parameters. */
516
+ export interface HeatMapGetOptionalParams extends coreClient.OperationOptions {
517
+ /** The top left latitude,longitude pair of the rectangular viewport to query for. */
518
+ topLeft?: number[];
519
+ /** The bottom right latitude,longitude pair of the rectangular viewport to query for. */
520
+ botRight?: number[];
521
+ }
522
+
523
+ /** Contains response data for the get operation. */
524
+ export type HeatMapGetResponse = HeatMapModel;
525
+
526
+ /** Optional parameters. */
527
+ export interface TrafficManagerUserMetricsKeysGetOptionalParams
528
+ extends coreClient.OperationOptions {}
529
+
530
+ /** Contains response data for the get operation. */
531
+ export type TrafficManagerUserMetricsKeysGetResponse = UserMetricsModel;
532
+
533
+ /** Optional parameters. */
534
+ export interface TrafficManagerUserMetricsKeysCreateOrUpdateOptionalParams
535
+ extends coreClient.OperationOptions {}
536
+
537
+ /** Contains response data for the createOrUpdate operation. */
538
+ export type TrafficManagerUserMetricsKeysCreateOrUpdateResponse = UserMetricsModel;
539
+
540
+ /** Optional parameters. */
541
+ export interface TrafficManagerUserMetricsKeysDeleteOptionalParams
542
+ extends coreClient.OperationOptions {}
543
+
544
+ /** Contains response data for the delete operation. */
545
+ export type TrafficManagerUserMetricsKeysDeleteResponse = DeleteOperationResult;
546
+
547
+ /** Optional parameters. */
548
+ export interface TrafficManagerManagementClientOptionalParams
549
+ extends coreClient.ServiceClientOptions {
550
+ /** server parameter */
551
+ $host?: string;
552
+ /** Api Version */
553
+ apiVersion?: string;
554
+ /** Overrides client endpoint. */
555
+ endpoint?: string;
556
+ }