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