@azure/arm-edgezones 1.0.0-beta.2 → 1.0.0-beta.4

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 (390) hide show
  1. package/CHANGELOG.md +17 -1
  2. package/LICENSE +4 -4
  3. package/README.md +24 -15
  4. package/dist/browser/api/edgeZonesContext.d.ts +3 -3
  5. package/dist/browser/api/edgeZonesContext.d.ts.map +1 -1
  6. package/dist/browser/api/edgeZonesContext.js +32 -6
  7. package/dist/browser/api/edgeZonesContext.js.map +1 -1
  8. package/dist/browser/api/extendedZones/index.d.ts +11 -12
  9. package/dist/browser/api/extendedZones/index.d.ts.map +1 -1
  10. package/dist/browser/api/extendedZones/index.js +21 -158
  11. package/dist/browser/api/extendedZones/index.js.map +1 -1
  12. package/dist/browser/api/index.d.ts +2 -1
  13. package/dist/browser/api/index.d.ts.map +1 -1
  14. package/dist/browser/api/index.js +1 -1
  15. package/dist/browser/api/index.js.map +1 -1
  16. package/dist/browser/api/operations/index.d.ts +6 -7
  17. package/dist/browser/api/operations/index.d.ts.map +1 -1
  18. package/dist/browser/api/operations/index.js +9 -27
  19. package/dist/browser/api/operations/index.js.map +1 -1
  20. package/dist/browser/api/options.d.ts.map +1 -0
  21. package/dist/browser/api/options.js +4 -0
  22. package/dist/browser/api/options.js.map +1 -0
  23. package/dist/browser/classic/extendedZones/index.d.ts +3 -3
  24. package/dist/browser/classic/extendedZones/index.d.ts.map +1 -1
  25. package/dist/browser/classic/extendedZones/index.js +4 -2
  26. package/dist/browser/classic/extendedZones/index.js.map +1 -1
  27. package/dist/browser/classic/index.js +1 -1
  28. package/dist/browser/classic/index.js.map +1 -1
  29. package/dist/browser/classic/operations/index.d.ts +3 -3
  30. package/dist/browser/classic/operations/index.d.ts.map +1 -1
  31. package/dist/browser/classic/operations/index.js +4 -2
  32. package/dist/browser/classic/operations/index.js.map +1 -1
  33. package/dist/browser/edgeZonesClient.d.ts +2 -2
  34. package/dist/browser/edgeZonesClient.d.ts.map +1 -1
  35. package/dist/browser/edgeZonesClient.js +14 -5
  36. package/dist/browser/edgeZonesClient.js.map +1 -1
  37. package/dist/browser/helpers/serializerHelpers.js +1 -1
  38. package/dist/browser/helpers/serializerHelpers.js.map +1 -1
  39. package/dist/browser/index.d.ts +5 -2
  40. package/dist/browser/index.d.ts.map +1 -1
  41. package/dist/browser/index.js +2 -2
  42. package/dist/browser/index.js.map +1 -1
  43. package/dist/browser/logger.js +1 -1
  44. package/dist/browser/logger.js.map +1 -1
  45. package/dist/browser/models/index.d.ts +1 -3
  46. package/dist/browser/models/index.d.ts.map +1 -1
  47. package/dist/browser/models/index.js +2 -2
  48. package/dist/browser/models/index.js.map +1 -1
  49. package/dist/browser/models/models.d.ts +101 -79
  50. package/dist/browser/models/models.d.ts.map +1 -1
  51. package/dist/browser/models/models.js +170 -28
  52. package/dist/browser/models/models.js.map +1 -1
  53. package/dist/{commonjs/models/pagingTypes.d.ts → browser/static-helpers/pagingHelpers.d.ts} +6 -1
  54. package/dist/browser/static-helpers/pagingHelpers.d.ts.map +1 -0
  55. package/dist/browser/static-helpers/pagingHelpers.js +118 -0
  56. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
  57. package/dist/commonjs/api/edgeZonesContext.d.ts +3 -3
  58. package/dist/commonjs/api/edgeZonesContext.d.ts.map +1 -1
  59. package/dist/commonjs/api/edgeZonesContext.js +32 -7
  60. package/dist/commonjs/api/edgeZonesContext.js.map +1 -1
  61. package/dist/commonjs/api/extendedZones/index.d.ts +11 -12
  62. package/dist/commonjs/api/extendedZones/index.d.ts.map +1 -1
  63. package/dist/commonjs/api/extendedZones/index.js +20 -157
  64. package/dist/commonjs/api/extendedZones/index.js.map +1 -1
  65. package/dist/commonjs/api/index.d.ts +2 -1
  66. package/dist/commonjs/api/index.d.ts.map +1 -1
  67. package/dist/commonjs/api/index.js +1 -1
  68. package/dist/commonjs/api/index.js.map +1 -1
  69. package/dist/commonjs/api/operations/index.d.ts +6 -7
  70. package/dist/commonjs/api/operations/index.d.ts.map +1 -1
  71. package/dist/commonjs/api/operations/index.js +8 -26
  72. package/dist/commonjs/api/operations/index.js.map +1 -1
  73. package/dist/commonjs/api/options.d.ts.map +1 -0
  74. package/dist/commonjs/{models → api}/options.js +1 -1
  75. package/dist/commonjs/api/options.js.map +1 -0
  76. package/dist/commonjs/classic/extendedZones/index.d.ts +3 -3
  77. package/dist/commonjs/classic/extendedZones/index.d.ts.map +1 -1
  78. package/dist/commonjs/classic/extendedZones/index.js +4 -2
  79. package/dist/commonjs/classic/extendedZones/index.js.map +1 -1
  80. package/dist/commonjs/classic/index.js +1 -1
  81. package/dist/commonjs/classic/index.js.map +1 -1
  82. package/dist/commonjs/classic/operations/index.d.ts +3 -3
  83. package/dist/commonjs/classic/operations/index.d.ts.map +1 -1
  84. package/dist/commonjs/classic/operations/index.js +4 -2
  85. package/dist/commonjs/classic/operations/index.js.map +1 -1
  86. package/dist/commonjs/edgeZonesClient.d.ts +2 -2
  87. package/dist/commonjs/edgeZonesClient.d.ts.map +1 -1
  88. package/dist/commonjs/edgeZonesClient.js +14 -5
  89. package/dist/commonjs/edgeZonesClient.js.map +1 -1
  90. package/dist/commonjs/helpers/serializerHelpers.js +1 -1
  91. package/dist/commonjs/helpers/serializerHelpers.js.map +1 -1
  92. package/dist/commonjs/index.d.ts +5 -2
  93. package/dist/commonjs/index.d.ts.map +1 -1
  94. package/dist/commonjs/index.js +3 -3
  95. package/dist/commonjs/index.js.map +1 -1
  96. package/dist/commonjs/logger.js +1 -1
  97. package/dist/commonjs/logger.js.map +1 -1
  98. package/dist/commonjs/models/index.d.ts +1 -3
  99. package/dist/commonjs/models/index.d.ts.map +1 -1
  100. package/dist/commonjs/models/index.js +3 -3
  101. package/dist/commonjs/models/index.js.map +1 -1
  102. package/dist/commonjs/models/models.d.ts +101 -79
  103. package/dist/commonjs/models/models.d.ts.map +1 -1
  104. package/dist/commonjs/models/models.js +190 -29
  105. package/dist/commonjs/models/models.js.map +1 -1
  106. package/dist/{browser/models/pagingTypes.d.ts → commonjs/static-helpers/pagingHelpers.d.ts} +6 -1
  107. package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +1 -0
  108. package/dist/commonjs/{api → static-helpers}/pagingHelpers.js +36 -56
  109. package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
  110. package/dist/commonjs/tsdoc-metadata.json +11 -11
  111. package/dist/esm/api/edgeZonesContext.d.ts +3 -3
  112. package/dist/esm/api/edgeZonesContext.d.ts.map +1 -1
  113. package/dist/esm/api/edgeZonesContext.js +32 -6
  114. package/dist/esm/api/edgeZonesContext.js.map +1 -1
  115. package/dist/esm/api/extendedZones/index.d.ts +11 -12
  116. package/dist/esm/api/extendedZones/index.d.ts.map +1 -1
  117. package/dist/esm/api/extendedZones/index.js +21 -158
  118. package/dist/esm/api/extendedZones/index.js.map +1 -1
  119. package/dist/esm/api/index.d.ts +2 -1
  120. package/dist/esm/api/index.d.ts.map +1 -1
  121. package/dist/esm/api/index.js +1 -1
  122. package/dist/esm/api/index.js.map +1 -1
  123. package/dist/esm/api/operations/index.d.ts +6 -7
  124. package/dist/esm/api/operations/index.d.ts.map +1 -1
  125. package/dist/esm/api/operations/index.js +9 -27
  126. package/dist/esm/api/operations/index.js.map +1 -1
  127. package/dist/esm/api/options.d.ts.map +1 -0
  128. package/dist/esm/api/options.js +4 -0
  129. package/dist/esm/api/options.js.map +1 -0
  130. package/dist/esm/classic/extendedZones/index.d.ts +3 -3
  131. package/dist/esm/classic/extendedZones/index.d.ts.map +1 -1
  132. package/dist/esm/classic/extendedZones/index.js +4 -2
  133. package/dist/esm/classic/extendedZones/index.js.map +1 -1
  134. package/dist/esm/classic/index.js +1 -1
  135. package/dist/esm/classic/index.js.map +1 -1
  136. package/dist/esm/classic/operations/index.d.ts +3 -3
  137. package/dist/esm/classic/operations/index.d.ts.map +1 -1
  138. package/dist/esm/classic/operations/index.js +4 -2
  139. package/dist/esm/classic/operations/index.js.map +1 -1
  140. package/dist/esm/edgeZonesClient.d.ts +2 -2
  141. package/dist/esm/edgeZonesClient.d.ts.map +1 -1
  142. package/dist/esm/edgeZonesClient.js +14 -5
  143. package/dist/esm/edgeZonesClient.js.map +1 -1
  144. package/dist/esm/helpers/serializerHelpers.js +1 -1
  145. package/dist/esm/helpers/serializerHelpers.js.map +1 -1
  146. package/dist/esm/index.d.ts +5 -2
  147. package/dist/esm/index.d.ts.map +1 -1
  148. package/dist/esm/index.js +2 -2
  149. package/dist/esm/index.js.map +1 -1
  150. package/dist/esm/logger.js +1 -1
  151. package/dist/esm/logger.js.map +1 -1
  152. package/dist/esm/models/index.d.ts +1 -3
  153. package/dist/esm/models/index.d.ts.map +1 -1
  154. package/dist/esm/models/index.js +2 -2
  155. package/dist/esm/models/index.js.map +1 -1
  156. package/dist/esm/models/models.d.ts +101 -79
  157. package/dist/esm/models/models.d.ts.map +1 -1
  158. package/dist/esm/models/models.js +170 -28
  159. package/dist/esm/models/models.js.map +1 -1
  160. package/dist/esm/{models/pagingTypes.d.ts → static-helpers/pagingHelpers.d.ts} +6 -1
  161. package/dist/esm/static-helpers/pagingHelpers.d.ts.map +1 -0
  162. package/dist/esm/static-helpers/pagingHelpers.js +118 -0
  163. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
  164. package/dist/react-native/api/edgeZonesContext.d.ts +3 -3
  165. package/dist/react-native/api/edgeZonesContext.d.ts.map +1 -1
  166. package/dist/react-native/api/edgeZonesContext.js +32 -6
  167. package/dist/react-native/api/edgeZonesContext.js.map +1 -1
  168. package/dist/react-native/api/extendedZones/index.d.ts +11 -12
  169. package/dist/react-native/api/extendedZones/index.d.ts.map +1 -1
  170. package/dist/react-native/api/extendedZones/index.js +21 -158
  171. package/dist/react-native/api/extendedZones/index.js.map +1 -1
  172. package/dist/react-native/api/index.d.ts +2 -1
  173. package/dist/react-native/api/index.d.ts.map +1 -1
  174. package/dist/react-native/api/index.js +1 -1
  175. package/dist/react-native/api/index.js.map +1 -1
  176. package/dist/react-native/api/operations/index.d.ts +6 -7
  177. package/dist/react-native/api/operations/index.d.ts.map +1 -1
  178. package/dist/react-native/api/operations/index.js +9 -27
  179. package/dist/react-native/api/operations/index.js.map +1 -1
  180. package/dist/react-native/api/options.d.ts.map +1 -0
  181. package/dist/react-native/api/options.js +4 -0
  182. package/dist/react-native/api/options.js.map +1 -0
  183. package/dist/react-native/classic/extendedZones/index.d.ts +3 -3
  184. package/dist/react-native/classic/extendedZones/index.d.ts.map +1 -1
  185. package/dist/react-native/classic/extendedZones/index.js +4 -2
  186. package/dist/react-native/classic/extendedZones/index.js.map +1 -1
  187. package/dist/react-native/classic/index.js +1 -1
  188. package/dist/react-native/classic/index.js.map +1 -1
  189. package/dist/react-native/classic/operations/index.d.ts +3 -3
  190. package/dist/react-native/classic/operations/index.d.ts.map +1 -1
  191. package/dist/react-native/classic/operations/index.js +4 -2
  192. package/dist/react-native/classic/operations/index.js.map +1 -1
  193. package/dist/react-native/edgeZonesClient.d.ts +2 -2
  194. package/dist/react-native/edgeZonesClient.d.ts.map +1 -1
  195. package/dist/react-native/edgeZonesClient.js +14 -5
  196. package/dist/react-native/edgeZonesClient.js.map +1 -1
  197. package/dist/react-native/helpers/serializerHelpers.js +1 -1
  198. package/dist/react-native/helpers/serializerHelpers.js.map +1 -1
  199. package/dist/react-native/index.d.ts +5 -2
  200. package/dist/react-native/index.d.ts.map +1 -1
  201. package/dist/react-native/index.js +2 -2
  202. package/dist/react-native/index.js.map +1 -1
  203. package/dist/react-native/logger.js +1 -1
  204. package/dist/react-native/logger.js.map +1 -1
  205. package/dist/react-native/models/index.d.ts +1 -3
  206. package/dist/react-native/models/index.d.ts.map +1 -1
  207. package/dist/react-native/models/index.js +2 -2
  208. package/dist/react-native/models/index.js.map +1 -1
  209. package/dist/react-native/models/models.d.ts +101 -79
  210. package/dist/react-native/models/models.d.ts.map +1 -1
  211. package/dist/react-native/models/models.js +170 -28
  212. package/dist/react-native/models/models.js.map +1 -1
  213. package/dist/react-native/{models/pagingTypes.d.ts → static-helpers/pagingHelpers.d.ts} +6 -1
  214. package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +1 -0
  215. package/dist/react-native/static-helpers/pagingHelpers.js +118 -0
  216. package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
  217. package/package.json +46 -86
  218. package/review/{arm-edgezones-models.api.md → arm-edgezones-models-node.api.md} +0 -39
  219. package/dist/browser/api/pagingHelpers.d.ts +0 -7
  220. package/dist/browser/api/pagingHelpers.d.ts.map +0 -1
  221. package/dist/browser/api/pagingHelpers.js +0 -138
  222. package/dist/browser/api/pagingHelpers.js.map +0 -1
  223. package/dist/browser/models/options.d.ts.map +0 -1
  224. package/dist/browser/models/options.js +0 -4
  225. package/dist/browser/models/options.js.map +0 -1
  226. package/dist/browser/models/pagingTypes.d.ts.map +0 -1
  227. package/dist/browser/models/pagingTypes.js +0 -4
  228. package/dist/browser/models/pagingTypes.js.map +0 -1
  229. package/dist/browser/rest/clientDefinitions.d.ts +0 -39
  230. package/dist/browser/rest/clientDefinitions.d.ts.map +0 -1
  231. package/dist/browser/rest/clientDefinitions.js +0 -4
  232. package/dist/browser/rest/clientDefinitions.js.map +0 -1
  233. package/dist/browser/rest/edgeZonesClient.d.ts +0 -15
  234. package/dist/browser/rest/edgeZonesClient.d.ts.map +0 -1
  235. package/dist/browser/rest/edgeZonesClient.js +0 -42
  236. package/dist/browser/rest/edgeZonesClient.js.map +0 -1
  237. package/dist/browser/rest/index.d.ts +0 -10
  238. package/dist/browser/rest/index.d.ts.map +0 -1
  239. package/dist/browser/rest/index.js +0 -12
  240. package/dist/browser/rest/index.js.map +0 -1
  241. package/dist/browser/rest/isUnexpected.d.ts +0 -7
  242. package/dist/browser/rest/isUnexpected.d.ts.map +0 -1
  243. package/dist/browser/rest/isUnexpected.js +0 -74
  244. package/dist/browser/rest/isUnexpected.js.map +0 -1
  245. package/dist/browser/rest/outputModels.d.ts +0 -282
  246. package/dist/browser/rest/outputModels.d.ts.map +0 -1
  247. package/dist/browser/rest/outputModels.js +0 -4
  248. package/dist/browser/rest/outputModels.js.map +0 -1
  249. package/dist/browser/rest/paginateHelper.d.ts +0 -43
  250. package/dist/browser/rest/paginateHelper.d.ts.map +0 -1
  251. package/dist/browser/rest/paginateHelper.js +0 -70
  252. package/dist/browser/rest/paginateHelper.js.map +0 -1
  253. package/dist/browser/rest/parameters.d.ts +0 -7
  254. package/dist/browser/rest/parameters.d.ts.map +0 -1
  255. package/dist/browser/rest/parameters.js +0 -4
  256. package/dist/browser/rest/parameters.js.map +0 -1
  257. package/dist/browser/rest/responses.d.ts +0 -48
  258. package/dist/browser/rest/responses.d.ts.map +0 -1
  259. package/dist/browser/rest/responses.js +0 -4
  260. package/dist/browser/rest/responses.js.map +0 -1
  261. package/dist/commonjs/api/pagingHelpers.d.ts +0 -7
  262. package/dist/commonjs/api/pagingHelpers.d.ts.map +0 -1
  263. package/dist/commonjs/api/pagingHelpers.js.map +0 -1
  264. package/dist/commonjs/models/options.d.ts.map +0 -1
  265. package/dist/commonjs/models/options.js.map +0 -1
  266. package/dist/commonjs/models/pagingTypes.d.ts.map +0 -1
  267. package/dist/commonjs/models/pagingTypes.js +0 -5
  268. package/dist/commonjs/models/pagingTypes.js.map +0 -1
  269. package/dist/commonjs/rest/clientDefinitions.d.ts +0 -39
  270. package/dist/commonjs/rest/clientDefinitions.d.ts.map +0 -1
  271. package/dist/commonjs/rest/clientDefinitions.js +0 -5
  272. package/dist/commonjs/rest/clientDefinitions.js.map +0 -1
  273. package/dist/commonjs/rest/edgeZonesClient.d.ts +0 -15
  274. package/dist/commonjs/rest/edgeZonesClient.d.ts.map +0 -1
  275. package/dist/commonjs/rest/edgeZonesClient.js +0 -45
  276. package/dist/commonjs/rest/edgeZonesClient.js.map +0 -1
  277. package/dist/commonjs/rest/index.d.ts +0 -10
  278. package/dist/commonjs/rest/index.d.ts.map +0 -1
  279. package/dist/commonjs/rest/index.js +0 -15
  280. package/dist/commonjs/rest/index.js.map +0 -1
  281. package/dist/commonjs/rest/isUnexpected.d.ts +0 -7
  282. package/dist/commonjs/rest/isUnexpected.d.ts.map +0 -1
  283. package/dist/commonjs/rest/isUnexpected.js +0 -77
  284. package/dist/commonjs/rest/isUnexpected.js.map +0 -1
  285. package/dist/commonjs/rest/outputModels.d.ts +0 -282
  286. package/dist/commonjs/rest/outputModels.d.ts.map +0 -1
  287. package/dist/commonjs/rest/outputModels.js +0 -5
  288. package/dist/commonjs/rest/outputModels.js.map +0 -1
  289. package/dist/commonjs/rest/paginateHelper.d.ts +0 -43
  290. package/dist/commonjs/rest/paginateHelper.d.ts.map +0 -1
  291. package/dist/commonjs/rest/paginateHelper.js +0 -73
  292. package/dist/commonjs/rest/paginateHelper.js.map +0 -1
  293. package/dist/commonjs/rest/parameters.d.ts +0 -7
  294. package/dist/commonjs/rest/parameters.d.ts.map +0 -1
  295. package/dist/commonjs/rest/parameters.js +0 -5
  296. package/dist/commonjs/rest/parameters.js.map +0 -1
  297. package/dist/commonjs/rest/responses.d.ts +0 -48
  298. package/dist/commonjs/rest/responses.d.ts.map +0 -1
  299. package/dist/commonjs/rest/responses.js +0 -5
  300. package/dist/commonjs/rest/responses.js.map +0 -1
  301. package/dist/esm/api/pagingHelpers.d.ts +0 -7
  302. package/dist/esm/api/pagingHelpers.d.ts.map +0 -1
  303. package/dist/esm/api/pagingHelpers.js +0 -138
  304. package/dist/esm/api/pagingHelpers.js.map +0 -1
  305. package/dist/esm/models/options.d.ts.map +0 -1
  306. package/dist/esm/models/options.js +0 -4
  307. package/dist/esm/models/options.js.map +0 -1
  308. package/dist/esm/models/pagingTypes.d.ts.map +0 -1
  309. package/dist/esm/models/pagingTypes.js +0 -4
  310. package/dist/esm/models/pagingTypes.js.map +0 -1
  311. package/dist/esm/rest/clientDefinitions.d.ts +0 -39
  312. package/dist/esm/rest/clientDefinitions.d.ts.map +0 -1
  313. package/dist/esm/rest/clientDefinitions.js +0 -4
  314. package/dist/esm/rest/clientDefinitions.js.map +0 -1
  315. package/dist/esm/rest/edgeZonesClient.d.ts +0 -15
  316. package/dist/esm/rest/edgeZonesClient.d.ts.map +0 -1
  317. package/dist/esm/rest/edgeZonesClient.js +0 -42
  318. package/dist/esm/rest/edgeZonesClient.js.map +0 -1
  319. package/dist/esm/rest/index.d.ts +0 -10
  320. package/dist/esm/rest/index.d.ts.map +0 -1
  321. package/dist/esm/rest/index.js +0 -12
  322. package/dist/esm/rest/index.js.map +0 -1
  323. package/dist/esm/rest/isUnexpected.d.ts +0 -7
  324. package/dist/esm/rest/isUnexpected.d.ts.map +0 -1
  325. package/dist/esm/rest/isUnexpected.js +0 -74
  326. package/dist/esm/rest/isUnexpected.js.map +0 -1
  327. package/dist/esm/rest/outputModels.d.ts +0 -282
  328. package/dist/esm/rest/outputModels.d.ts.map +0 -1
  329. package/dist/esm/rest/outputModels.js +0 -4
  330. package/dist/esm/rest/outputModels.js.map +0 -1
  331. package/dist/esm/rest/paginateHelper.d.ts +0 -43
  332. package/dist/esm/rest/paginateHelper.d.ts.map +0 -1
  333. package/dist/esm/rest/paginateHelper.js +0 -70
  334. package/dist/esm/rest/paginateHelper.js.map +0 -1
  335. package/dist/esm/rest/parameters.d.ts +0 -7
  336. package/dist/esm/rest/parameters.d.ts.map +0 -1
  337. package/dist/esm/rest/parameters.js +0 -4
  338. package/dist/esm/rest/parameters.js.map +0 -1
  339. package/dist/esm/rest/responses.d.ts +0 -48
  340. package/dist/esm/rest/responses.d.ts.map +0 -1
  341. package/dist/esm/rest/responses.js +0 -4
  342. package/dist/esm/rest/responses.js.map +0 -1
  343. package/dist/react-native/api/pagingHelpers.d.ts +0 -7
  344. package/dist/react-native/api/pagingHelpers.d.ts.map +0 -1
  345. package/dist/react-native/api/pagingHelpers.js +0 -138
  346. package/dist/react-native/api/pagingHelpers.js.map +0 -1
  347. package/dist/react-native/models/options.d.ts.map +0 -1
  348. package/dist/react-native/models/options.js +0 -4
  349. package/dist/react-native/models/options.js.map +0 -1
  350. package/dist/react-native/models/pagingTypes.d.ts.map +0 -1
  351. package/dist/react-native/models/pagingTypes.js +0 -4
  352. package/dist/react-native/models/pagingTypes.js.map +0 -1
  353. package/dist/react-native/rest/clientDefinitions.d.ts +0 -39
  354. package/dist/react-native/rest/clientDefinitions.d.ts.map +0 -1
  355. package/dist/react-native/rest/clientDefinitions.js +0 -4
  356. package/dist/react-native/rest/clientDefinitions.js.map +0 -1
  357. package/dist/react-native/rest/edgeZonesClient.d.ts +0 -15
  358. package/dist/react-native/rest/edgeZonesClient.d.ts.map +0 -1
  359. package/dist/react-native/rest/edgeZonesClient.js +0 -42
  360. package/dist/react-native/rest/edgeZonesClient.js.map +0 -1
  361. package/dist/react-native/rest/index.d.ts +0 -10
  362. package/dist/react-native/rest/index.d.ts.map +0 -1
  363. package/dist/react-native/rest/index.js +0 -12
  364. package/dist/react-native/rest/index.js.map +0 -1
  365. package/dist/react-native/rest/isUnexpected.d.ts +0 -7
  366. package/dist/react-native/rest/isUnexpected.d.ts.map +0 -1
  367. package/dist/react-native/rest/isUnexpected.js +0 -74
  368. package/dist/react-native/rest/isUnexpected.js.map +0 -1
  369. package/dist/react-native/rest/outputModels.d.ts +0 -282
  370. package/dist/react-native/rest/outputModels.d.ts.map +0 -1
  371. package/dist/react-native/rest/outputModels.js +0 -4
  372. package/dist/react-native/rest/outputModels.js.map +0 -1
  373. package/dist/react-native/rest/paginateHelper.d.ts +0 -43
  374. package/dist/react-native/rest/paginateHelper.d.ts.map +0 -1
  375. package/dist/react-native/rest/paginateHelper.js +0 -70
  376. package/dist/react-native/rest/paginateHelper.js.map +0 -1
  377. package/dist/react-native/rest/parameters.d.ts +0 -7
  378. package/dist/react-native/rest/parameters.d.ts.map +0 -1
  379. package/dist/react-native/rest/parameters.js +0 -4
  380. package/dist/react-native/rest/parameters.js.map +0 -1
  381. package/dist/react-native/rest/responses.d.ts +0 -48
  382. package/dist/react-native/rest/responses.d.ts.map +0 -1
  383. package/dist/react-native/rest/responses.js +0 -4
  384. package/dist/react-native/rest/responses.js.map +0 -1
  385. package/review/arm-edgezones-api.api.md +0 -46
  386. /package/dist/browser/{models → api}/options.d.ts +0 -0
  387. /package/dist/commonjs/{models → api}/options.d.ts +0 -0
  388. /package/dist/esm/{models → api}/options.d.ts +0 -0
  389. /package/dist/react-native/{models → api}/options.d.ts +0 -0
  390. /package/review/{arm-edgezones.api.md → arm-edgezones-node.api.md} +0 -0
@@ -1,282 +0,0 @@
1
- import { Paged } from "@azure/core-paging";
2
- /** Details of a REST API operation, returned from the Resource Provider Operations API */
3
- export interface OperationOutput {
4
- /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" */
5
- readonly name?: string;
6
- /** Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for Azure Resource Manager/control-plane operations. */
7
- readonly isDataAction?: boolean;
8
- /** Localized display information for this particular operation. */
9
- readonly display?: OperationDisplayOutput;
10
- /**
11
- * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system"
12
- *
13
- * Possible values: "user", "system", "user,system"
14
- */
15
- readonly origin?: OriginOutput;
16
- /**
17
- * Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs.
18
- *
19
- * Possible values: "Internal"
20
- */
21
- actionType?: ActionTypeOutput;
22
- }
23
- /** Localized display information for and operation. */
24
- export interface OperationDisplayOutput {
25
- /** The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". */
26
- readonly provider?: string;
27
- /** The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". */
28
- readonly resource?: string;
29
- /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". */
30
- readonly operation?: string;
31
- /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */
32
- readonly description?: string;
33
- }
34
- /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */
35
- export interface ErrorResponseOutput {
36
- /** The error object. */
37
- error?: ErrorDetailOutput;
38
- }
39
- /** The error detail. */
40
- export interface ErrorDetailOutput {
41
- /** The error code. */
42
- readonly code?: string;
43
- /** The error message. */
44
- readonly message?: string;
45
- /** The error target. */
46
- readonly target?: string;
47
- /** The error details. */
48
- readonly details?: Array<ErrorDetailOutput>;
49
- /** The error additional info. */
50
- readonly additionalInfo?: Array<ErrorAdditionalInfoOutput>;
51
- }
52
- /** The resource management error additional info. */
53
- export interface ErrorAdditionalInfoOutput {
54
- /** The additional info type. */
55
- readonly type?: string;
56
- /** The additional info. */
57
- readonly info?: Record<string, any>;
58
- }
59
- /** Resource that represents an Azure Extended Zone available to a subscription for registering and unregistering. */
60
- export interface ExtendedZoneOutput extends ProxyResourceOutput {
61
- /** The resource-specific properties for this resource. */
62
- properties?: ExtendedZonePropertiesOutput;
63
- }
64
- /** The properties of an Extended Zone resource. */
65
- export interface ExtendedZonePropertiesOutput {
66
- /**
67
- * Status of the last operation performed by the subscription on the Edge Zone resource
68
- *
69
- * Possible values: "Provisioning", "Updating", "Deleting", "Accepted"
70
- */
71
- readonly provisioningState?: ProvisioningStateOutput;
72
- /**
73
- * Indicates the Azure Extended Zone registration’s approval status.
74
- *
75
- * Possible values: "NotRegistered", "PendingRegister", "Registered", "PendingUnregister"
76
- */
77
- readonly registrationState?: RegistrationStateOutput;
78
- /** Display name of the Azure Extended Zone. */
79
- readonly displayName: string;
80
- /** Regional display name of the Azure Extended Zone. */
81
- readonly regionalDisplayName: string;
82
- /** Type of region for the Azure Extended Zone. */
83
- readonly regionType: string;
84
- /** Category of region for the Azure Extended Zone. */
85
- readonly regionCategory: string;
86
- /** Geography of the Azure Extended Zone. */
87
- readonly geography: string;
88
- /** The Geography Group of the Azure Extended Zone. */
89
- readonly geographyGroup: string;
90
- /** The Longitude of the Azure Extended Zone. */
91
- readonly longitude: string;
92
- /** The Latitude of the Azure Extended Zone. */
93
- readonly latitude: string;
94
- /** The Home Location of the Azure Extended Zone. */
95
- readonly homeLocation: string;
96
- }
97
- /** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */
98
- export interface ProxyResourceOutput extends ResourceOutput {
99
- }
100
- /** Common fields that are returned in the response for all Azure Resource Manager resources */
101
- export interface ResourceOutput {
102
- /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */
103
- readonly id?: string;
104
- /** The name of the resource */
105
- readonly name?: string;
106
- /** The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */
107
- readonly type?: string;
108
- /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */
109
- readonly systemData?: SystemDataOutput;
110
- }
111
- /** Metadata pertaining to creation and last modification of the resource. */
112
- export interface SystemDataOutput {
113
- /** The identity that created the resource. */
114
- createdBy?: string;
115
- /**
116
- * The type of identity that created the resource.
117
- *
118
- * Possible values: "User", "Application", "ManagedIdentity", "Key"
119
- */
120
- createdByType?: CreatedByTypeOutput;
121
- /** The timestamp of resource creation (UTC). */
122
- createdAt?: string;
123
- /** The identity that last modified the resource. */
124
- lastModifiedBy?: string;
125
- /**
126
- * The type of identity that last modified the resource.
127
- *
128
- * Possible values: "User", "Application", "ManagedIdentity", "Key"
129
- */
130
- lastModifiedByType?: CreatedByTypeOutput;
131
- /** The timestamp of resource last modification (UTC) */
132
- lastModifiedAt?: string;
133
- }
134
- /** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */
135
- export interface TrackedResourceOutput extends ResourceOutput {
136
- /** Resource tags. */
137
- tags?: Record<string, string>;
138
- /** The geo-location where the resource lives */
139
- location: string;
140
- }
141
- /** The resource model definition containing the full set of allowed properties for a resource. Except properties bag, there cannot be a top level property outside of this set. */
142
- export interface ResourceModelWithAllowedPropertySetOutput extends TrackedResourceOutput {
143
- /**
144
- * The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource.
145
- * If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.
146
- */
147
- managedBy?: string;
148
- /**
149
- * Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type.
150
- * If supported, the resource provider must validate and persist this value.
151
- */
152
- kind?: string;
153
- /**
154
- * The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention.
155
- * Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19),
156
- * If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.
157
- */
158
- eTag?: string;
159
- identity?: IdentityOutput;
160
- sku?: SkuOutput;
161
- plan?: PlanOutput;
162
- }
163
- /** Identity for the resource. */
164
- export interface IdentityOutput {
165
- /** The principal ID of resource identity. The value must be an UUID. */
166
- readonly principalId?: string;
167
- /** The tenant ID of resource. The value must be an UUID. */
168
- readonly tenantId?: string;
169
- /** The identity type. */
170
- type?: ResourceIdentityTypeOutput;
171
- }
172
- /** The resource model definition representing SKU */
173
- export interface SkuOutput {
174
- /** The name of the SKU. Ex - P3. It is typically a letter+number code */
175
- name: string;
176
- /** This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. */
177
- tier?: SkuTierOutput;
178
- /** The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. */
179
- size?: string;
180
- /** If the service has different generations of hardware, for the same SKU, then that can be captured here. */
181
- family?: string;
182
- /** If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted. */
183
- capacity?: number;
184
- }
185
- /** Plan for the resource. */
186
- export interface PlanOutput {
187
- /** A user defined name of the 3rd Party Artifact that is being procured. */
188
- name: string;
189
- /** The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic */
190
- publisher: string;
191
- /** The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding. */
192
- product: string;
193
- /** A publisher provided promotion code as provisioned in Data Market for the said product/artifact. */
194
- promotionCode?: string;
195
- /** The version of the desired product/artifact. */
196
- version?: string;
197
- }
198
- /** The base extension resource. */
199
- export interface ExtensionResourceOutput extends ResourceOutput {
200
- }
201
- /** The resource model definition for an Azure Resource Manager resource with an etag. */
202
- export interface AzureEntityResourceOutput extends ResourceOutput {
203
- /** Resource Etag. */
204
- readonly etag?: string;
205
- }
206
- /** A private link resource. */
207
- export interface PrivateLinkResourceOutput extends ResourceOutput {
208
- /** Resource properties. */
209
- properties?: PrivateLinkResourcePropertiesOutput;
210
- }
211
- /** Properties of a private link resource. */
212
- export interface PrivateLinkResourcePropertiesOutput {
213
- /** The private link resource group id. */
214
- readonly groupId?: string;
215
- /** The private link resource required member names. */
216
- readonly requiredMembers?: string[];
217
- /** The private link resource private link DNS zone name. */
218
- requiredZoneNames?: string[];
219
- }
220
- /** The private endpoint connection resource */
221
- export interface PrivateEndpointConnectionOutput extends ResourceOutput {
222
- /** The private endpoint connection properties */
223
- properties?: PrivateEndpointConnectionPropertiesOutput;
224
- }
225
- /** Properties of the private endpoint connection. */
226
- export interface PrivateEndpointConnectionPropertiesOutput {
227
- /** The group ids for the private endpoint resource. */
228
- readonly groupIds?: string[];
229
- /** The private endpoint resource. */
230
- privateEndpoint?: PrivateEndpointOutput;
231
- /** A collection of information about the state of the connection between service consumer and provider. */
232
- privateLinkServiceConnectionState: PrivateLinkServiceConnectionStateOutput;
233
- /**
234
- * The provisioning state of the private endpoint connection resource.
235
- *
236
- * Possible values: "Succeeded", "Creating", "Deleting", "Failed"
237
- */
238
- readonly provisioningState?: PrivateEndpointConnectionProvisioningStateOutput;
239
- }
240
- /** The Private Endpoint resource. */
241
- export interface PrivateEndpointOutput {
242
- /** The resource identifier for private endpoint */
243
- readonly id?: string;
244
- }
245
- /** A collection of information about the state of the connection between service consumer and provider. */
246
- export interface PrivateLinkServiceConnectionStateOutput {
247
- /**
248
- * Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.
249
- *
250
- * Possible values: "Pending", "Approved", "Rejected"
251
- */
252
- status?: PrivateEndpointServiceConnectionStatusOutput;
253
- /** The reason for approval/rejection of the connection. */
254
- description?: string;
255
- /** A message indicating if changes on the service provider require any updates on the consumer. */
256
- actionsRequired?: string;
257
- }
258
- /** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */
259
- export type OperationListResultOutput = Paged<OperationOutput>;
260
- /** Alias for OriginOutput */
261
- export type OriginOutput = string;
262
- /** Alias for ActionTypeOutput */
263
- export type ActionTypeOutput = string;
264
- /** Alias for ResourceProvisioningStateOutput */
265
- export type ResourceProvisioningStateOutput = string;
266
- /** Alias for ProvisioningStateOutput */
267
- export type ProvisioningStateOutput = string;
268
- /** Alias for RegistrationStateOutput */
269
- export type RegistrationStateOutput = string;
270
- /** Alias for CreatedByTypeOutput */
271
- export type CreatedByTypeOutput = string;
272
- /** Alias for ResourceIdentityTypeOutput */
273
- export type ResourceIdentityTypeOutput = "SystemAssigned";
274
- /** Alias for SkuTierOutput */
275
- export type SkuTierOutput = "Free" | "Basic" | "Standard" | "Premium";
276
- /** Alias for PrivateEndpointServiceConnectionStatusOutput */
277
- export type PrivateEndpointServiceConnectionStatusOutput = string;
278
- /** Alias for PrivateEndpointConnectionProvisioningStateOutput */
279
- export type PrivateEndpointConnectionProvisioningStateOutput = string;
280
- /** The response of a ExtendedZone list operation. */
281
- export type ExtendedZoneListResultOutput = Paged<ExtendedZoneOutput>;
282
- //# sourceMappingURL=outputModels.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"outputModels.d.ts","sourceRoot":"","sources":["../../../src/rest/outputModels.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE3C,0FAA0F;AAC1F,MAAM,WAAW,eAAe;IAC9B,sLAAsL;IACtL,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,6JAA6J;IAC7J,QAAQ,CAAC,YAA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,CAAC"}
@@ -1,4 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- export {};
4
- //# sourceMappingURL=outputModels.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"outputModels.js","sourceRoot":"","sources":["../../../src/rest/outputModels.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { Paged } from \"@azure/core-paging\";\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface OperationOutput {\n /** The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\" */\n readonly name?: string;\n /** Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations. */\n readonly isDataAction?: boolean;\n /** Localized display information for this particular operation. */\n readonly display?: OperationDisplayOutput;\n /**\n * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\"\n *\n * Possible values: \"user\", \"system\", \"user,system\"\n */\n readonly origin?: OriginOutput;\n /**\n * Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs.\n *\n * Possible values: \"Internal\"\n */\n actionType?: ActionTypeOutput;\n}\n\n/** Localized display information for and operation. */\nexport interface OperationDisplayOutput {\n /** The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\". */\n readonly provider?: string;\n /** The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\". */\n readonly resource?: string;\n /** The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\". */\n readonly operation?: string;\n /** The short, localized friendly description of the operation; suitable for tool tips and detailed views. */\n readonly description?: string;\n}\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponseOutput {\n /** The error object. */\n error?: ErrorDetailOutput;\n}\n\n/** The error detail. */\nexport interface ErrorDetailOutput {\n /** The error code. */\n readonly code?: string;\n /** The error message. */\n readonly message?: string;\n /** The error target. */\n readonly target?: string;\n /** The error details. */\n readonly details?: Array<ErrorDetailOutput>;\n /** The error additional info. */\n readonly additionalInfo?: Array<ErrorAdditionalInfoOutput>;\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfoOutput {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: Record<string, any>;\n}\n\n/** Resource that represents an Azure Extended Zone available to a subscription for registering and unregistering. */\nexport interface ExtendedZoneOutput extends ProxyResourceOutput {\n /** The resource-specific properties for this resource. */\n properties?: ExtendedZonePropertiesOutput;\n}\n\n/** The properties of an Extended Zone resource. */\nexport interface ExtendedZonePropertiesOutput {\n /**\n * Status of the last operation performed by the subscription on the Edge Zone resource\n *\n * Possible values: \"Provisioning\", \"Updating\", \"Deleting\", \"Accepted\"\n */\n readonly provisioningState?: ProvisioningStateOutput;\n /**\n * Indicates the Azure Extended Zone registration’s approval status.\n *\n * Possible values: \"NotRegistered\", \"PendingRegister\", \"Registered\", \"PendingUnregister\"\n */\n readonly registrationState?: RegistrationStateOutput;\n /** Display name of the Azure Extended Zone. */\n readonly displayName: string;\n /** Regional display name of the Azure Extended Zone. */\n readonly regionalDisplayName: string;\n /** Type of region for the Azure Extended Zone. */\n readonly regionType: string;\n /** Category of region for the Azure Extended Zone. */\n readonly regionCategory: string;\n /** Geography of the Azure Extended Zone. */\n readonly geography: string;\n /** The Geography Group of the Azure Extended Zone. */\n readonly geographyGroup: string;\n /** The Longitude of the Azure Extended Zone. */\n readonly longitude: string;\n /** The Latitude of the Azure Extended Zone. */\n readonly latitude: string;\n /** The Home Location of the Azure Extended Zone. */\n readonly homeLocation: string;\n}\n\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResourceOutput extends ResourceOutput {}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface ResourceOutput {\n /** Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} */\n readonly id?: string;\n /** The name of the resource */\n readonly name?: string;\n /** The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\" */\n readonly type?: string;\n /** Azure Resource Manager metadata containing createdBy and modifiedBy information. */\n readonly systemData?: SystemDataOutput;\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemDataOutput {\n /** The identity that created the resource. */\n createdBy?: string;\n /**\n * The type of identity that created the resource.\n *\n * Possible values: \"User\", \"Application\", \"ManagedIdentity\", \"Key\"\n */\n createdByType?: CreatedByTypeOutput;\n /** The timestamp of resource creation (UTC). */\n createdAt?: string;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /**\n * The type of identity that last modified the resource.\n *\n * Possible values: \"User\", \"Application\", \"ManagedIdentity\", \"Key\"\n */\n lastModifiedByType?: CreatedByTypeOutput;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: string;\n}\n\n/** The resource model definition for an Azure Resource Manager tracked top level resource which has 'tags' and a 'location' */\nexport interface TrackedResourceOutput extends ResourceOutput {\n /** Resource tags. */\n tags?: Record<string, string>;\n /** The geo-location where the resource lives */\n location: string;\n}\n\n/** The resource model definition containing the full set of allowed properties for a resource. Except properties bag, there cannot be a top level property outside of this set. */\nexport interface ResourceModelWithAllowedPropertySetOutput extends TrackedResourceOutput {\n /**\n * The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed by another Azure resource.\n * If this is present, complete mode deployment will not delete the resource if it is removed from the template since it is managed by another resource.\n */\n managedBy?: string;\n /**\n * Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type.\n * If supported, the resource provider must validate and persist this value.\n */\n kind?: string;\n /**\n * The etag field is *not* required. If it is provided in the response body, it must also be provided as a header per the normal etag convention.\n * Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19),\n * If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields.\n */\n eTag?: string;\n identity?: IdentityOutput;\n sku?: SkuOutput;\n plan?: PlanOutput;\n}\n\n/** Identity for the resource. */\nexport interface IdentityOutput {\n /** The principal ID of resource identity. The value must be an UUID. */\n readonly principalId?: string;\n /** The tenant ID of resource. The value must be an UUID. */\n readonly tenantId?: string;\n /** The identity type. */\n type?: ResourceIdentityTypeOutput;\n}\n\n/** The resource model definition representing SKU */\nexport interface SkuOutput {\n /** The name of the SKU. Ex - P3. It is typically a letter+number code */\n name: string;\n /** This field is required to be implemented by the Resource Provider if the service has more than one tier, but is not required on a PUT. */\n tier?: SkuTierOutput;\n /** The SKU size. When the name field is the combination of tier and some other value, this would be the standalone code. */\n size?: string;\n /** If the service has different generations of hardware, for the same SKU, then that can be captured here. */\n family?: string;\n /** If the SKU supports scale out/in then the capacity integer should be included. If scale out/in is not possible for the resource this may be omitted. */\n capacity?: number;\n}\n\n/** Plan for the resource. */\nexport interface PlanOutput {\n /** A user defined name of the 3rd Party Artifact that is being procured. */\n name: string;\n /** The publisher of the 3rd Party Artifact that is being bought. E.g. NewRelic */\n publisher: string;\n /** The 3rd Party artifact that is being procured. E.g. NewRelic. Product maps to the OfferID specified for the artifact at the time of Data Market onboarding. */\n product: string;\n /** A publisher provided promotion code as provisioned in Data Market for the said product/artifact. */\n promotionCode?: string;\n /** The version of the desired product/artifact. */\n version?: string;\n}\n\n/** The base extension resource. */\nexport interface ExtensionResourceOutput extends ResourceOutput {}\n\n/** The resource model definition for an Azure Resource Manager resource with an etag. */\nexport interface AzureEntityResourceOutput extends ResourceOutput {\n /** Resource Etag. */\n readonly etag?: string;\n}\n\n/** A private link resource. */\nexport interface PrivateLinkResourceOutput extends ResourceOutput {\n /** Resource properties. */\n properties?: PrivateLinkResourcePropertiesOutput;\n}\n\n/** Properties of a private link resource. */\nexport interface PrivateLinkResourcePropertiesOutput {\n /** The private link resource group id. */\n readonly groupId?: string;\n /** The private link resource required member names. */\n readonly requiredMembers?: string[];\n /** The private link resource private link DNS zone name. */\n requiredZoneNames?: string[];\n}\n\n/** The private endpoint connection resource */\nexport interface PrivateEndpointConnectionOutput extends ResourceOutput {\n /** The private endpoint connection properties */\n properties?: PrivateEndpointConnectionPropertiesOutput;\n}\n\n/** Properties of the private endpoint connection. */\nexport interface PrivateEndpointConnectionPropertiesOutput {\n /** The group ids for the private endpoint resource. */\n readonly groupIds?: string[];\n /** The private endpoint resource. */\n privateEndpoint?: PrivateEndpointOutput;\n /** A collection of information about the state of the connection between service consumer and provider. */\n privateLinkServiceConnectionState: PrivateLinkServiceConnectionStateOutput;\n /**\n * The provisioning state of the private endpoint connection resource.\n *\n * Possible values: \"Succeeded\", \"Creating\", \"Deleting\", \"Failed\"\n */\n readonly provisioningState?: PrivateEndpointConnectionProvisioningStateOutput;\n}\n\n/** The Private Endpoint resource. */\nexport interface PrivateEndpointOutput {\n /** The resource identifier for private endpoint */\n readonly id?: string;\n}\n\n/** A collection of information about the state of the connection between service consumer and provider. */\nexport interface PrivateLinkServiceConnectionStateOutput {\n /**\n * Indicates whether the connection has been Approved/Rejected/Removed by the owner of the service.\n *\n * Possible values: \"Pending\", \"Approved\", \"Rejected\"\n */\n status?: PrivateEndpointServiceConnectionStatusOutput;\n /** The reason for approval/rejection of the connection. */\n description?: string;\n /** A message indicating if changes on the service provider require any updates on the consumer. */\n actionsRequired?: string;\n}\n\n/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */\nexport type OperationListResultOutput = Paged<OperationOutput>;\n/** Alias for OriginOutput */\nexport type OriginOutput = string;\n/** Alias for ActionTypeOutput */\nexport type ActionTypeOutput = string;\n/** Alias for ResourceProvisioningStateOutput */\nexport type ResourceProvisioningStateOutput = string;\n/** Alias for ProvisioningStateOutput */\nexport type ProvisioningStateOutput = string;\n/** Alias for RegistrationStateOutput */\nexport type RegistrationStateOutput = string;\n/** Alias for CreatedByTypeOutput */\nexport type CreatedByTypeOutput = string;\n/** Alias for ResourceIdentityTypeOutput */\nexport type ResourceIdentityTypeOutput = \"SystemAssigned\";\n/** Alias for SkuTierOutput */\nexport type SkuTierOutput = \"Free\" | \"Basic\" | \"Standard\" | \"Premium\";\n/** Alias for PrivateEndpointServiceConnectionStatusOutput */\nexport type PrivateEndpointServiceConnectionStatusOutput = string;\n/** Alias for PrivateEndpointConnectionProvisioningStateOutput */\nexport type PrivateEndpointConnectionProvisioningStateOutput = string;\n/** The response of a ExtendedZone list operation. */\nexport type ExtendedZoneListResultOutput = Paged<ExtendedZoneOutput>;\n"]}
@@ -1,43 +0,0 @@
1
- import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
- import { Client, PathUncheckedResponse } from "@azure-rest/core-client";
3
- /**
4
- * Helper type to extract the type of an array
5
- */
6
- export type GetArrayType<T> = T extends Array<infer TData> ? TData : never;
7
- /**
8
- * The type of a custom function that defines how to get a page and a link to the next one if any.
9
- */
10
- export type GetPage<TPage> = (pageLink: string, maxPageSize?: number) => Promise<{
11
- page: TPage;
12
- nextPageLink?: string;
13
- }>;
14
- /**
15
- * Options for the paging helper
16
- */
17
- export interface PagingOptions<TResponse> {
18
- /**
19
- * Custom function to extract pagination details for crating the PagedAsyncIterableIterator
20
- */
21
- customGetPage?: GetPage<PaginateReturn<TResponse>[]>;
22
- }
23
- /**
24
- * Helper type to infer the Type of the paged elements from the response type
25
- * This type is generated based on the swagger information for x-ms-pageable
26
- * specifically on the itemName property which indicates the property of the response
27
- * where the page items are found. The default value is `value`.
28
- * This type will allow us to provide strongly typed Iterator based on the response we get as second parameter
29
- */
30
- export type PaginateReturn<TResult> = TResult extends {
31
- body: {
32
- value?: infer TPage;
33
- };
34
- } ? GetArrayType<TPage> : Array<unknown>;
35
- /**
36
- * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension
37
- * @param client - Client to use for sending the next page requests
38
- * @param initialResponse - Initial response containing the nextLink and current page of elements
39
- * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results
40
- * @returns - PagedAsyncIterableIterator to iterate the elements
41
- */
42
- export declare function paginate<TResponse extends PathUncheckedResponse>(client: Client, initialResponse: TResponse, options?: PagingOptions<TResponse>): PagedAsyncIterableIterator<PaginateReturn<TResponse>>;
43
- //# sourceMappingURL=paginateHelper.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"paginateHelper.d.ts","sourceRoot":"","sources":["../../../src/rest/paginateHelper.ts"],"names":[],"mappings":"AAGA,OAAO,EAAyB,0BAA0B,EAAe,MAAM,oBAAoB,CAAC;AACpG,OAAO,EAAE,MAAM,EAAmB,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEzF;;GAEG;AACH,MAAM,MAAM,YAAY,CAAC,CAAC,IAAI,CAAC,SAAS,KAAK,CAAC,MAAM,KAAK,CAAC,GAAG,KAAK,GAAG,KAAK,CAAC;AAE3E;;GAEG;AACH,MAAM,MAAM,OAAO,CAAC,KAAK,IAAI,CAC3B,QAAQ,EAAE,MAAM,EAChB,WAAW,CAAC,EAAE,MAAM,KACjB,OAAO,CAAC;IACX,IAAI,EAAE,KAAK,CAAC;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,WAAW,aAAa,CAAC,SAAS;IACtC;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC,cAAc,CAAC,SAAS,CAAC,EAAE,CAAC,CAAC;CACtD;AAED;;;;;;GAMG;AACH,MAAM,MAAM,cAAc,CAAC,OAAO,IAAI,OAAO,SAAS;IACpD,IAAI,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,KAAK,CAAA;KAAE,CAAC;CAC/B,GACG,YAAY,CAAC,KAAK,CAAC,GACnB,KAAK,CAAC,OAAO,CAAC,CAAC;AAEnB;;;;;;GAMG;AACH,wBAAgB,QAAQ,CAAC,SAAS,SAAS,qBAAqB,EAC9D,MAAM,EAAE,MAAM,EACd,eAAe,EAAE,SAAS,EAC1B,OAAO,GAAE,aAAa,CAAC,SAAS,CAAM,GACrC,0BAA0B,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC,CA0BvD"}
@@ -1,70 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- import { getPagedAsyncIterator } from "@azure/core-paging";
4
- import { createRestError } from "@azure-rest/core-client";
5
- /**
6
- * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension
7
- * @param client - Client to use for sending the next page requests
8
- * @param initialResponse - Initial response containing the nextLink and current page of elements
9
- * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results
10
- * @returns - PagedAsyncIterableIterator to iterate the elements
11
- */
12
- export function paginate(client, initialResponse, options = {}) {
13
- let firstRun = true;
14
- const itemName = "value";
15
- const nextLinkName = "nextLink";
16
- const { customGetPage } = options;
17
- const pagedResult = {
18
- firstPageLink: "",
19
- getPage: typeof customGetPage === "function"
20
- ? customGetPage
21
- : async (pageLink) => {
22
- const result = firstRun ? initialResponse : await client.pathUnchecked(pageLink).get();
23
- firstRun = false;
24
- checkPagingRequest(result);
25
- const nextLink = getNextLink(result.body, nextLinkName);
26
- const values = getElements(result.body, itemName);
27
- return {
28
- page: values,
29
- nextPageLink: nextLink,
30
- };
31
- },
32
- };
33
- return getPagedAsyncIterator(pagedResult);
34
- }
35
- /**
36
- * Gets for the value of nextLink in the body
37
- */
38
- function getNextLink(body, nextLinkName) {
39
- if (!nextLinkName) {
40
- return undefined;
41
- }
42
- const nextLink = body[nextLinkName];
43
- if (typeof nextLink !== "string" && typeof nextLink !== "undefined") {
44
- throw new Error(`Body Property ${nextLinkName} should be a string or undefined`);
45
- }
46
- return nextLink;
47
- }
48
- /**
49
- * Gets the elements of the current request in the body.
50
- */
51
- function getElements(body, itemName) {
52
- const value = body[itemName];
53
- // value has to be an array according to the x-ms-pageable extension.
54
- // The fact that this must be an array is used above to calculate the
55
- // type of elements in the page in PaginateReturn
56
- if (!Array.isArray(value)) {
57
- throw new Error(`Couldn't paginate response\n Body doesn't contain an array property with name: ${itemName}`);
58
- }
59
- return value !== null && value !== void 0 ? value : [];
60
- }
61
- /**
62
- * Checks if a request failed
63
- */
64
- function checkPagingRequest(response) {
65
- const Http2xxStatusCodes = ["200", "201", "202", "203", "204", "205", "206", "207", "208", "226"];
66
- if (!Http2xxStatusCodes.includes(response.status)) {
67
- throw createRestError(`Pagination failed with unexpected statusCode ${response.status}`, response);
68
- }
69
- }
70
- //# sourceMappingURL=paginateHelper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"paginateHelper.js","sourceRoot":"","sources":["../../../src/rest/paginateHelper.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAElC,OAAO,EAAE,qBAAqB,EAA2C,MAAM,oBAAoB,CAAC;AACpG,OAAO,EAAU,eAAe,EAAyB,MAAM,yBAAyB,CAAC;AAyCzF;;;;;;GAMG;AACH,MAAM,UAAU,QAAQ,CACtB,MAAc,EACd,eAA0B,EAC1B,UAAoC,EAAE;IAItC,IAAI,QAAQ,GAAG,IAAI,CAAC;IACpB,MAAM,QAAQ,GAAG,OAAO,CAAC;IACzB,MAAM,YAAY,GAAG,UAAU,CAAC;IAChC,MAAM,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC;IAClC,MAAM,WAAW,GAA4B;QAC3C,aAAa,EAAE,EAAE;QACjB,OAAO,EACL,OAAO,aAAa,KAAK,UAAU;YACjC,CAAC,CAAC,aAAa;YACf,CAAC,CAAC,KAAK,EAAE,QAAgB,EAAE,EAAE;gBACzB,MAAM,MAAM,GAAG,QAAQ,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,MAAM,MAAM,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,GAAG,EAAE,CAAC;gBACvF,QAAQ,GAAG,KAAK,C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K,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;IAClG,IAAI,CAAC,kBAAkB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAClD,MAAM,eAAe,CACnB,gDAAgD,QAAQ,CAAC,MAAM,EAAE,EACjE,QAAQ,CACT,CAAC;IACJ,CAAC;AACH,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { getPagedAsyncIterator, PagedAsyncIterableIterator, PagedResult } from \"@azure/core-paging\";\nimport { Client, createRestError, PathUncheckedResponse } from \"@azure-rest/core-client\";\n\n/**\n * Helper type to extract the type of an array\n */\nexport type GetArrayType<T> = T extends Array<infer TData> ? TData : never;\n\n/**\n * The type of a custom function that defines how to get a page and a link to the next one if any.\n */\nexport type GetPage<TPage> = (\n pageLink: string,\n maxPageSize?: number,\n) => Promise<{\n page: TPage;\n nextPageLink?: string;\n}>;\n\n/**\n * Options for the paging helper\n */\nexport interface PagingOptions<TResponse> {\n /**\n * Custom function to extract pagination details for crating the PagedAsyncIterableIterator\n */\n customGetPage?: GetPage<PaginateReturn<TResponse>[]>;\n}\n\n/**\n * Helper type to infer the Type of the paged elements from the response type\n * This type is generated based on the swagger information for x-ms-pageable\n * specifically on the itemName property which indicates the property of the response\n * where the page items are found. The default value is `value`.\n * This type will allow us to provide strongly typed Iterator based on the response we get as second parameter\n */\nexport type PaginateReturn<TResult> = TResult extends {\n body: { value?: infer TPage };\n}\n ? GetArrayType<TPage>\n : Array<unknown>;\n\n/**\n * Helper to paginate results from an initial response that follows the specification of Autorest `x-ms-pageable` extension\n * @param client - Client to use for sending the next page requests\n * @param initialResponse - Initial response containing the nextLink and current page of elements\n * @param customGetPage - Optional - Function to define how to extract the page and next link to be used to paginate the results\n * @returns - PagedAsyncIterableIterator to iterate the elements\n */\nexport function paginate<TResponse extends PathUncheckedResponse>(\n client: Client,\n initialResponse: TResponse,\n options: PagingOptions<TResponse> = {},\n): PagedAsyncIterableIterator<PaginateReturn<TResponse>> {\n // Extract element type from initial response\n type TElement = PaginateReturn<TResponse>;\n let firstRun = true;\n const itemName = \"value\";\n const nextLinkName = \"nextLink\";\n const { customGetPage } = options;\n const pagedResult: PagedResult<TElement[]> = {\n firstPageLink: \"\",\n getPage:\n typeof customGetPage === \"function\"\n ? customGetPage\n : async (pageLink: string) => {\n const result = firstRun ? initialResponse : await client.pathUnchecked(pageLink).get();\n firstRun = false;\n checkPagingRequest(result);\n const nextLink = getNextLink(result.body, nextLinkName);\n const values = getElements<TElement>(result.body, itemName);\n return {\n page: values,\n nextPageLink: nextLink,\n };\n },\n };\n\n return getPagedAsyncIterator(pagedResult);\n}\n\n/**\n * Gets for the value of nextLink in the body\n */\nfunction getNextLink(body: unknown, nextLinkName?: string): string | undefined {\n if (!nextLinkName) {\n return undefined;\n }\n\n const nextLink = (body as Record<string, unknown>)[nextLinkName];\n\n if (typeof nextLink !== \"string\" && typeof nextLink !== \"undefined\") {\n throw new Error(`Body Property ${nextLinkName} should be a string or undefined`);\n }\n\n return nextLink;\n}\n\n/**\n * Gets the elements of the current request in the body.\n */\nfunction getElements<T = unknown>(body: unknown, itemName: string): T[] {\n const value = (body as Record<string, unknown>)[itemName] as T[];\n\n // value has to be an array according to the x-ms-pageable extension.\n // The fact that this must be an array is used above to calculate the\n // type of elements in the page in PaginateReturn\n if (!Array.isArray(value)) {\n throw new Error(\n `Couldn't paginate response\\n Body doesn't contain an array property with name: ${itemName}`,\n );\n }\n\n return value ?? [];\n}\n\n/**\n * Checks if a request failed\n */\nfunction checkPagingRequest(response: PathUncheckedResponse): void {\n const Http2xxStatusCodes = [\"200\", \"201\", \"202\", \"203\", \"204\", \"205\", \"206\", \"207\", \"208\", \"226\"];\n if (!Http2xxStatusCodes.includes(response.status)) {\n throw createRestError(\n `Pagination failed with unexpected statusCode ${response.status}`,\n response,\n );\n }\n}\n"]}
@@ -1,7 +0,0 @@
1
- import { RequestParameters } from "@azure-rest/core-client";
2
- export type OperationsListParameters = RequestParameters;
3
- export type ExtendedZonesGetParameters = RequestParameters;
4
- export type ExtendedZonesListBySubscriptionParameters = RequestParameters;
5
- export type ExtendedZonesRegisterParameters = RequestParameters;
6
- export type ExtendedZonesUnregisterParameters = RequestParameters;
7
- //# sourceMappingURL=parameters.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parameters.d.ts","sourceRoot":"","sources":["../../../src/rest/parameters.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE5D,MAAM,MAAM,wBAAwB,GAAG,iBAAiB,CAAC;AACzD,MAAM,MAAM,0BAA0B,GAAG,iBAAiB,CAAC;AAC3D,MAAM,MAAM,yCAAyC,GAAG,iBAAiB,CAAC;AAC1E,MAAM,MAAM,+BAA+B,GAAG,iBAAiB,CAAC;AAChE,MAAM,MAAM,iCAAiC,GAAG,iBAAiB,CAAC"}
@@ -1,4 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- export {};
4
- //# sourceMappingURL=parameters.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"parameters.js","sourceRoot":"","sources":["../../../src/rest/parameters.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { RequestParameters } from \"@azure-rest/core-client\";\n\nexport type OperationsListParameters = RequestParameters;\nexport type ExtendedZonesGetParameters = RequestParameters;\nexport type ExtendedZonesListBySubscriptionParameters = RequestParameters;\nexport type ExtendedZonesRegisterParameters = RequestParameters;\nexport type ExtendedZonesUnregisterParameters = RequestParameters;\n"]}
@@ -1,48 +0,0 @@
1
- import { HttpResponse } from "@azure-rest/core-client";
2
- import { OperationListResultOutput, ErrorResponseOutput, ExtendedZoneOutput, ExtendedZoneListResultOutput } from "./outputModels.js";
3
- /** Azure operation completed successfully. */
4
- export interface OperationsList200Response extends HttpResponse {
5
- status: "200";
6
- body: OperationListResultOutput;
7
- }
8
- export interface OperationsListDefaultResponse extends HttpResponse {
9
- status: string;
10
- body: ErrorResponseOutput;
11
- }
12
- /** Azure operation completed successfully. */
13
- export interface ExtendedZonesGet200Response extends HttpResponse {
14
- status: "200";
15
- body: ExtendedZoneOutput;
16
- }
17
- export interface ExtendedZonesGetDefaultResponse extends HttpResponse {
18
- status: string;
19
- body: ErrorResponseOutput;
20
- }
21
- /** Azure operation completed successfully. */
22
- export interface ExtendedZonesListBySubscription200Response extends HttpResponse {
23
- status: "200";
24
- body: ExtendedZoneListResultOutput;
25
- }
26
- export interface ExtendedZonesListBySubscriptionDefaultResponse extends HttpResponse {
27
- status: string;
28
- body: ErrorResponseOutput;
29
- }
30
- /** Azure operation completed successfully. */
31
- export interface ExtendedZonesRegister200Response extends HttpResponse {
32
- status: "200";
33
- body: ExtendedZoneOutput;
34
- }
35
- export interface ExtendedZonesRegisterDefaultResponse extends HttpResponse {
36
- status: string;
37
- body: ErrorResponseOutput;
38
- }
39
- /** Azure operation completed successfully. */
40
- export interface ExtendedZonesUnregister200Response extends HttpResponse {
41
- status: "200";
42
- body: ExtendedZoneOutput;
43
- }
44
- export interface ExtendedZonesUnregisterDefaultResponse extends HttpResponse {
45
- status: string;
46
- body: ErrorResponseOutput;
47
- }
48
- //# sourceMappingURL=responses.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"responses.d.ts","sourceRoot":"","sources":["../../../src/rest/responses.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACvD,OAAO,EACL,yBAAyB,EACzB,mBAAmB,EACnB,kBAAkB,EAClB,4BAA4B,EAC7B,MAAM,mBAAmB,CAAC;AAE3B,8CAA8C;AAC9C,MAAM,WAAW,yBAA0B,SAAQ,YAAY;IAC7D,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,yBAAyB,CAAC;CACjC;AAED,MAAM,WAAW,6BAA8B,SAAQ,YAAY;IACjE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,8CAA8C;AAC9C,MAAM,WAAW,2BAA4B,SAAQ,YAAY;IAC/D,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAED,MAAM,WAAW,+BAAgC,SAAQ,YAAY;IACnE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,8CAA8C;AAC9C,MAAM,WAAW,0CAA2C,SAAQ,YAAY;IAC9E,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,4BAA4B,CAAC;CACpC;AAED,MAAM,WAAW,8CAA+C,SAAQ,YAAY;IAClF,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,8CAA8C;AAC9C,MAAM,WAAW,gCAAiC,SAAQ,YAAY;IACpE,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAED,MAAM,WAAW,oCAAqC,SAAQ,YAAY;IACxE,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B;AAED,8CAA8C;AAC9C,MAAM,WAAW,kCAAmC,SAAQ,YAAY;IACtE,MAAM,EAAE,KAAK,CAAC;IACd,IAAI,EAAE,kBAAkB,CAAC;CAC1B;AAED,MAAM,WAAW,sCAAuC,SAAQ,YAAY;IAC1E,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,mBAAmB,CAAC;CAC3B"}
@@ -1,4 +0,0 @@
1
- // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- export {};
4
- //# sourceMappingURL=responses.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"responses.js","sourceRoot":"","sources":["../../../src/rest/responses.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\nimport { HttpResponse } from \"@azure-rest/core-client\";\nimport {\n OperationListResultOutput,\n ErrorResponseOutput,\n ExtendedZoneOutput,\n ExtendedZoneListResultOutput,\n} from \"./outputModels.js\";\n\n/** Azure operation completed successfully. */\nexport interface OperationsList200Response extends HttpResponse {\n status: \"200\";\n body: OperationListResultOutput;\n}\n\nexport interface OperationsListDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Azure operation completed successfully. */\nexport interface ExtendedZonesGet200Response extends HttpResponse {\n status: \"200\";\n body: ExtendedZoneOutput;\n}\n\nexport interface ExtendedZonesGetDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Azure operation completed successfully. */\nexport interface ExtendedZonesListBySubscription200Response extends HttpResponse {\n status: \"200\";\n body: ExtendedZoneListResultOutput;\n}\n\nexport interface ExtendedZonesListBySubscriptionDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Azure operation completed successfully. */\nexport interface ExtendedZonesRegister200Response extends HttpResponse {\n status: \"200\";\n body: ExtendedZoneOutput;\n}\n\nexport interface ExtendedZonesRegisterDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n\n/** Azure operation completed successfully. */\nexport interface ExtendedZonesUnregister200Response extends HttpResponse {\n status: \"200\";\n body: ExtendedZoneOutput;\n}\n\nexport interface ExtendedZonesUnregisterDefaultResponse extends HttpResponse {\n status: string;\n body: ErrorResponseOutput;\n}\n"]}
@@ -1,7 +0,0 @@
1
- import { Client, PathUncheckedResponse } from "@azure-rest/core-client";
2
- import { BuildPagedAsyncIteratorOptions, PageSettings, PagedAsyncIterableIterator } from "../models/pagingTypes.js";
3
- /**
4
- * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
5
- */
6
- export declare function buildPagedAsyncIterator<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings, TResponse extends PathUncheckedResponse = PathUncheckedResponse>(client: Client, getInitialResponse: () => PromiseLike<TResponse>, processResponseBody: (result: TResponse) => PromiseLike<unknown>, options?: BuildPagedAsyncIteratorOptions): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
7
- //# sourceMappingURL=pagingHelpers.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pagingHelpers.d.ts","sourceRoot":"","sources":["../../../src/api/pagingHelpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAmB,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEzF,OAAO,EACL,8BAA8B,EAE9B,YAAY,EACZ,0BAA0B,EAE3B,MAAM,0BAA0B,CAAC;AAGlC;;GAEG;AACH,wBAAgB,uBAAuB,CACrC,QAAQ,EACR,KAAK,GAAG,QAAQ,EAAE,EAClB,aAAa,SAAS,YAAY,GAAG,YAAY,EACjD,SAAS,SAAS,qBAAqB,GAAG,qBAAqB,EAE/D,MAAM,EAAE,MAAM,EACd,kBAAkB,EAAE,MAAM,WAAW,CAAC,SAAS,CAAC,EAChD,mBAAmB,EAAE,CAAC,MAAM,EAAE,SAAS,KAAK,WAAW,CAAC,OAAO,CAAC,EAChE,OAAO,GAAE,8BAAmC,GAC3C,0BAA0B,CAAC,QAAQ,EAAE,KAAK,EAAE,aAAa,CAAC,CA0B5D"}