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

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 (384) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/browser/api/edgeZonesContext.d.ts +3 -3
  3. package/dist/browser/api/edgeZonesContext.d.ts.map +1 -1
  4. package/dist/browser/api/edgeZonesContext.js +29 -6
  5. package/dist/browser/api/edgeZonesContext.js.map +1 -1
  6. package/dist/browser/api/extendedZones/index.d.ts +11 -12
  7. package/dist/browser/api/extendedZones/index.d.ts.map +1 -1
  8. package/dist/browser/api/extendedZones/index.js +17 -154
  9. package/dist/browser/api/extendedZones/index.js.map +1 -1
  10. package/dist/browser/api/index.d.ts +2 -1
  11. package/dist/browser/api/index.d.ts.map +1 -1
  12. package/dist/browser/api/index.js +1 -1
  13. package/dist/browser/api/index.js.map +1 -1
  14. package/dist/browser/api/operations/index.d.ts +6 -7
  15. package/dist/browser/api/operations/index.d.ts.map +1 -1
  16. package/dist/browser/api/operations/index.js +8 -26
  17. package/dist/browser/api/operations/index.js.map +1 -1
  18. package/dist/browser/api/options.d.ts.map +1 -0
  19. package/dist/browser/api/options.js +4 -0
  20. package/dist/browser/api/options.js.map +1 -0
  21. package/dist/browser/classic/extendedZones/index.d.ts +3 -3
  22. package/dist/browser/classic/extendedZones/index.d.ts.map +1 -1
  23. package/dist/browser/classic/extendedZones/index.js +1 -1
  24. package/dist/browser/classic/extendedZones/index.js.map +1 -1
  25. package/dist/browser/classic/index.js +1 -1
  26. package/dist/browser/classic/index.js.map +1 -1
  27. package/dist/browser/classic/operations/index.d.ts +3 -3
  28. package/dist/browser/classic/operations/index.d.ts.map +1 -1
  29. package/dist/browser/classic/operations/index.js +1 -1
  30. package/dist/browser/classic/operations/index.js.map +1 -1
  31. package/dist/browser/edgeZonesClient.d.ts +2 -2
  32. package/dist/browser/edgeZonesClient.d.ts.map +1 -1
  33. package/dist/browser/edgeZonesClient.js +2 -2
  34. package/dist/browser/edgeZonesClient.js.map +1 -1
  35. package/dist/browser/helpers/serializerHelpers.js +1 -1
  36. package/dist/browser/helpers/serializerHelpers.js.map +1 -1
  37. package/dist/browser/index.d.ts +5 -2
  38. package/dist/browser/index.d.ts.map +1 -1
  39. package/dist/browser/index.js +2 -2
  40. package/dist/browser/index.js.map +1 -1
  41. package/dist/browser/logger.js +1 -1
  42. package/dist/browser/logger.js.map +1 -1
  43. package/dist/browser/models/index.d.ts +1 -3
  44. package/dist/browser/models/index.d.ts.map +1 -1
  45. package/dist/browser/models/index.js +2 -2
  46. package/dist/browser/models/index.js.map +1 -1
  47. package/dist/browser/models/models.d.ts +101 -79
  48. package/dist/browser/models/models.d.ts.map +1 -1
  49. package/dist/browser/models/models.js +170 -28
  50. package/dist/browser/models/models.js.map +1 -1
  51. package/dist/{commonjs/models/pagingTypes.d.ts → browser/static-helpers/pagingHelpers.d.ts} +6 -1
  52. package/dist/browser/static-helpers/pagingHelpers.d.ts.map +1 -0
  53. package/dist/{esm/api → browser/static-helpers}/pagingHelpers.js +5 -6
  54. package/dist/browser/static-helpers/pagingHelpers.js.map +1 -0
  55. package/dist/commonjs/api/edgeZonesContext.d.ts +3 -3
  56. package/dist/commonjs/api/edgeZonesContext.d.ts.map +1 -1
  57. package/dist/commonjs/api/edgeZonesContext.js +28 -6
  58. package/dist/commonjs/api/edgeZonesContext.js.map +1 -1
  59. package/dist/commonjs/api/extendedZones/index.d.ts +11 -12
  60. package/dist/commonjs/api/extendedZones/index.d.ts.map +1 -1
  61. package/dist/commonjs/api/extendedZones/index.js +16 -153
  62. package/dist/commonjs/api/extendedZones/index.js.map +1 -1
  63. package/dist/commonjs/api/index.d.ts +2 -1
  64. package/dist/commonjs/api/index.d.ts.map +1 -1
  65. package/dist/commonjs/api/index.js +1 -1
  66. package/dist/commonjs/api/index.js.map +1 -1
  67. package/dist/commonjs/api/operations/index.d.ts +6 -7
  68. package/dist/commonjs/api/operations/index.d.ts.map +1 -1
  69. package/dist/commonjs/api/operations/index.js +7 -25
  70. package/dist/commonjs/api/operations/index.js.map +1 -1
  71. package/dist/commonjs/api/options.d.ts.map +1 -0
  72. package/dist/commonjs/{models → api}/options.js +1 -1
  73. package/dist/commonjs/api/options.js.map +1 -0
  74. package/dist/commonjs/classic/extendedZones/index.d.ts +3 -3
  75. package/dist/commonjs/classic/extendedZones/index.d.ts.map +1 -1
  76. package/dist/commonjs/classic/extendedZones/index.js +1 -1
  77. package/dist/commonjs/classic/extendedZones/index.js.map +1 -1
  78. package/dist/commonjs/classic/index.js +1 -1
  79. package/dist/commonjs/classic/index.js.map +1 -1
  80. package/dist/commonjs/classic/operations/index.d.ts +3 -3
  81. package/dist/commonjs/classic/operations/index.d.ts.map +1 -1
  82. package/dist/commonjs/classic/operations/index.js +1 -1
  83. package/dist/commonjs/classic/operations/index.js.map +1 -1
  84. package/dist/commonjs/edgeZonesClient.d.ts +2 -2
  85. package/dist/commonjs/edgeZonesClient.d.ts.map +1 -1
  86. package/dist/commonjs/edgeZonesClient.js +2 -2
  87. package/dist/commonjs/edgeZonesClient.js.map +1 -1
  88. package/dist/commonjs/helpers/serializerHelpers.js +1 -1
  89. package/dist/commonjs/helpers/serializerHelpers.js.map +1 -1
  90. package/dist/commonjs/index.d.ts +5 -2
  91. package/dist/commonjs/index.d.ts.map +1 -1
  92. package/dist/commonjs/index.js +3 -3
  93. package/dist/commonjs/index.js.map +1 -1
  94. package/dist/commonjs/logger.js +1 -1
  95. package/dist/commonjs/logger.js.map +1 -1
  96. package/dist/commonjs/models/index.d.ts +1 -3
  97. package/dist/commonjs/models/index.d.ts.map +1 -1
  98. package/dist/commonjs/models/index.js +3 -3
  99. package/dist/commonjs/models/index.js.map +1 -1
  100. package/dist/commonjs/models/models.d.ts +101 -79
  101. package/dist/commonjs/models/models.d.ts.map +1 -1
  102. package/dist/commonjs/models/models.js +190 -29
  103. package/dist/commonjs/models/models.js.map +1 -1
  104. package/dist/{browser/models/pagingTypes.d.ts → commonjs/static-helpers/pagingHelpers.d.ts} +6 -1
  105. package/dist/commonjs/static-helpers/pagingHelpers.d.ts.map +1 -0
  106. package/dist/commonjs/{api → static-helpers}/pagingHelpers.js +5 -6
  107. package/dist/commonjs/static-helpers/pagingHelpers.js.map +1 -0
  108. package/dist/commonjs/tsdoc-metadata.json +1 -1
  109. package/dist/esm/api/edgeZonesContext.d.ts +3 -3
  110. package/dist/esm/api/edgeZonesContext.d.ts.map +1 -1
  111. package/dist/esm/api/edgeZonesContext.js +29 -6
  112. package/dist/esm/api/edgeZonesContext.js.map +1 -1
  113. package/dist/esm/api/extendedZones/index.d.ts +11 -12
  114. package/dist/esm/api/extendedZones/index.d.ts.map +1 -1
  115. package/dist/esm/api/extendedZones/index.js +17 -154
  116. package/dist/esm/api/extendedZones/index.js.map +1 -1
  117. package/dist/esm/api/index.d.ts +2 -1
  118. package/dist/esm/api/index.d.ts.map +1 -1
  119. package/dist/esm/api/index.js +1 -1
  120. package/dist/esm/api/index.js.map +1 -1
  121. package/dist/esm/api/operations/index.d.ts +6 -7
  122. package/dist/esm/api/operations/index.d.ts.map +1 -1
  123. package/dist/esm/api/operations/index.js +8 -26
  124. package/dist/esm/api/operations/index.js.map +1 -1
  125. package/dist/esm/api/options.d.ts.map +1 -0
  126. package/dist/esm/api/options.js +4 -0
  127. package/dist/esm/api/options.js.map +1 -0
  128. package/dist/esm/classic/extendedZones/index.d.ts +3 -3
  129. package/dist/esm/classic/extendedZones/index.d.ts.map +1 -1
  130. package/dist/esm/classic/extendedZones/index.js +1 -1
  131. package/dist/esm/classic/extendedZones/index.js.map +1 -1
  132. package/dist/esm/classic/index.js +1 -1
  133. package/dist/esm/classic/index.js.map +1 -1
  134. package/dist/esm/classic/operations/index.d.ts +3 -3
  135. package/dist/esm/classic/operations/index.d.ts.map +1 -1
  136. package/dist/esm/classic/operations/index.js +1 -1
  137. package/dist/esm/classic/operations/index.js.map +1 -1
  138. package/dist/esm/edgeZonesClient.d.ts +2 -2
  139. package/dist/esm/edgeZonesClient.d.ts.map +1 -1
  140. package/dist/esm/edgeZonesClient.js +2 -2
  141. package/dist/esm/edgeZonesClient.js.map +1 -1
  142. package/dist/esm/helpers/serializerHelpers.js +1 -1
  143. package/dist/esm/helpers/serializerHelpers.js.map +1 -1
  144. package/dist/esm/index.d.ts +5 -2
  145. package/dist/esm/index.d.ts.map +1 -1
  146. package/dist/esm/index.js +2 -2
  147. package/dist/esm/index.js.map +1 -1
  148. package/dist/esm/logger.js +1 -1
  149. package/dist/esm/logger.js.map +1 -1
  150. package/dist/esm/models/index.d.ts +1 -3
  151. package/dist/esm/models/index.d.ts.map +1 -1
  152. package/dist/esm/models/index.js +2 -2
  153. package/dist/esm/models/index.js.map +1 -1
  154. package/dist/esm/models/models.d.ts +101 -79
  155. package/dist/esm/models/models.d.ts.map +1 -1
  156. package/dist/esm/models/models.js +170 -28
  157. package/dist/esm/models/models.js.map +1 -1
  158. package/dist/esm/{models/pagingTypes.d.ts → static-helpers/pagingHelpers.d.ts} +6 -1
  159. package/dist/esm/static-helpers/pagingHelpers.d.ts.map +1 -0
  160. package/dist/{browser/api → esm/static-helpers}/pagingHelpers.js +5 -6
  161. package/dist/esm/static-helpers/pagingHelpers.js.map +1 -0
  162. package/dist/react-native/api/edgeZonesContext.d.ts +3 -3
  163. package/dist/react-native/api/edgeZonesContext.d.ts.map +1 -1
  164. package/dist/react-native/api/edgeZonesContext.js +29 -6
  165. package/dist/react-native/api/edgeZonesContext.js.map +1 -1
  166. package/dist/react-native/api/extendedZones/index.d.ts +11 -12
  167. package/dist/react-native/api/extendedZones/index.d.ts.map +1 -1
  168. package/dist/react-native/api/extendedZones/index.js +17 -154
  169. package/dist/react-native/api/extendedZones/index.js.map +1 -1
  170. package/dist/react-native/api/index.d.ts +2 -1
  171. package/dist/react-native/api/index.d.ts.map +1 -1
  172. package/dist/react-native/api/index.js +1 -1
  173. package/dist/react-native/api/index.js.map +1 -1
  174. package/dist/react-native/api/operations/index.d.ts +6 -7
  175. package/dist/react-native/api/operations/index.d.ts.map +1 -1
  176. package/dist/react-native/api/operations/index.js +8 -26
  177. package/dist/react-native/api/operations/index.js.map +1 -1
  178. package/dist/react-native/api/options.d.ts.map +1 -0
  179. package/dist/react-native/api/options.js +4 -0
  180. package/dist/react-native/api/options.js.map +1 -0
  181. package/dist/react-native/classic/extendedZones/index.d.ts +3 -3
  182. package/dist/react-native/classic/extendedZones/index.d.ts.map +1 -1
  183. package/dist/react-native/classic/extendedZones/index.js +1 -1
  184. package/dist/react-native/classic/extendedZones/index.js.map +1 -1
  185. package/dist/react-native/classic/index.js +1 -1
  186. package/dist/react-native/classic/index.js.map +1 -1
  187. package/dist/react-native/classic/operations/index.d.ts +3 -3
  188. package/dist/react-native/classic/operations/index.d.ts.map +1 -1
  189. package/dist/react-native/classic/operations/index.js +1 -1
  190. package/dist/react-native/classic/operations/index.js.map +1 -1
  191. package/dist/react-native/edgeZonesClient.d.ts +2 -2
  192. package/dist/react-native/edgeZonesClient.d.ts.map +1 -1
  193. package/dist/react-native/edgeZonesClient.js +2 -2
  194. package/dist/react-native/edgeZonesClient.js.map +1 -1
  195. package/dist/react-native/helpers/serializerHelpers.js +1 -1
  196. package/dist/react-native/helpers/serializerHelpers.js.map +1 -1
  197. package/dist/react-native/index.d.ts +5 -2
  198. package/dist/react-native/index.d.ts.map +1 -1
  199. package/dist/react-native/index.js +2 -2
  200. package/dist/react-native/index.js.map +1 -1
  201. package/dist/react-native/logger.js +1 -1
  202. package/dist/react-native/logger.js.map +1 -1
  203. package/dist/react-native/models/index.d.ts +1 -3
  204. package/dist/react-native/models/index.d.ts.map +1 -1
  205. package/dist/react-native/models/index.js +2 -2
  206. package/dist/react-native/models/index.js.map +1 -1
  207. package/dist/react-native/models/models.d.ts +101 -79
  208. package/dist/react-native/models/models.d.ts.map +1 -1
  209. package/dist/react-native/models/models.js +170 -28
  210. package/dist/react-native/models/models.js.map +1 -1
  211. package/dist/react-native/{models/pagingTypes.d.ts → static-helpers/pagingHelpers.d.ts} +6 -1
  212. package/dist/react-native/static-helpers/pagingHelpers.d.ts.map +1 -0
  213. package/dist/react-native/{api → static-helpers}/pagingHelpers.js +5 -6
  214. package/dist/react-native/static-helpers/pagingHelpers.js.map +1 -0
  215. package/package.json +21 -56
  216. package/review/arm-edgezones-models.api.md +0 -39
  217. package/dist/browser/api/pagingHelpers.d.ts +0 -7
  218. package/dist/browser/api/pagingHelpers.d.ts.map +0 -1
  219. package/dist/browser/api/pagingHelpers.js.map +0 -1
  220. package/dist/browser/models/options.d.ts.map +0 -1
  221. package/dist/browser/models/options.js +0 -4
  222. package/dist/browser/models/options.js.map +0 -1
  223. package/dist/browser/models/pagingTypes.d.ts.map +0 -1
  224. package/dist/browser/models/pagingTypes.js +0 -4
  225. package/dist/browser/models/pagingTypes.js.map +0 -1
  226. package/dist/browser/rest/clientDefinitions.d.ts +0 -39
  227. package/dist/browser/rest/clientDefinitions.d.ts.map +0 -1
  228. package/dist/browser/rest/clientDefinitions.js +0 -4
  229. package/dist/browser/rest/clientDefinitions.js.map +0 -1
  230. package/dist/browser/rest/edgeZonesClient.d.ts +0 -15
  231. package/dist/browser/rest/edgeZonesClient.d.ts.map +0 -1
  232. package/dist/browser/rest/edgeZonesClient.js +0 -42
  233. package/dist/browser/rest/edgeZonesClient.js.map +0 -1
  234. package/dist/browser/rest/index.d.ts +0 -10
  235. package/dist/browser/rest/index.d.ts.map +0 -1
  236. package/dist/browser/rest/index.js +0 -12
  237. package/dist/browser/rest/index.js.map +0 -1
  238. package/dist/browser/rest/isUnexpected.d.ts +0 -7
  239. package/dist/browser/rest/isUnexpected.d.ts.map +0 -1
  240. package/dist/browser/rest/isUnexpected.js +0 -74
  241. package/dist/browser/rest/isUnexpected.js.map +0 -1
  242. package/dist/browser/rest/outputModels.d.ts +0 -282
  243. package/dist/browser/rest/outputModels.d.ts.map +0 -1
  244. package/dist/browser/rest/outputModels.js +0 -4
  245. package/dist/browser/rest/outputModels.js.map +0 -1
  246. package/dist/browser/rest/paginateHelper.d.ts +0 -43
  247. package/dist/browser/rest/paginateHelper.d.ts.map +0 -1
  248. package/dist/browser/rest/paginateHelper.js +0 -70
  249. package/dist/browser/rest/paginateHelper.js.map +0 -1
  250. package/dist/browser/rest/parameters.d.ts +0 -7
  251. package/dist/browser/rest/parameters.d.ts.map +0 -1
  252. package/dist/browser/rest/parameters.js +0 -4
  253. package/dist/browser/rest/parameters.js.map +0 -1
  254. package/dist/browser/rest/responses.d.ts +0 -48
  255. package/dist/browser/rest/responses.d.ts.map +0 -1
  256. package/dist/browser/rest/responses.js +0 -4
  257. package/dist/browser/rest/responses.js.map +0 -1
  258. package/dist/commonjs/api/pagingHelpers.d.ts +0 -7
  259. package/dist/commonjs/api/pagingHelpers.d.ts.map +0 -1
  260. package/dist/commonjs/api/pagingHelpers.js.map +0 -1
  261. package/dist/commonjs/models/options.d.ts.map +0 -1
  262. package/dist/commonjs/models/options.js.map +0 -1
  263. package/dist/commonjs/models/pagingTypes.d.ts.map +0 -1
  264. package/dist/commonjs/models/pagingTypes.js +0 -5
  265. package/dist/commonjs/models/pagingTypes.js.map +0 -1
  266. package/dist/commonjs/rest/clientDefinitions.d.ts +0 -39
  267. package/dist/commonjs/rest/clientDefinitions.d.ts.map +0 -1
  268. package/dist/commonjs/rest/clientDefinitions.js +0 -5
  269. package/dist/commonjs/rest/clientDefinitions.js.map +0 -1
  270. package/dist/commonjs/rest/edgeZonesClient.d.ts +0 -15
  271. package/dist/commonjs/rest/edgeZonesClient.d.ts.map +0 -1
  272. package/dist/commonjs/rest/edgeZonesClient.js +0 -45
  273. package/dist/commonjs/rest/edgeZonesClient.js.map +0 -1
  274. package/dist/commonjs/rest/index.d.ts +0 -10
  275. package/dist/commonjs/rest/index.d.ts.map +0 -1
  276. package/dist/commonjs/rest/index.js +0 -15
  277. package/dist/commonjs/rest/index.js.map +0 -1
  278. package/dist/commonjs/rest/isUnexpected.d.ts +0 -7
  279. package/dist/commonjs/rest/isUnexpected.d.ts.map +0 -1
  280. package/dist/commonjs/rest/isUnexpected.js +0 -77
  281. package/dist/commonjs/rest/isUnexpected.js.map +0 -1
  282. package/dist/commonjs/rest/outputModels.d.ts +0 -282
  283. package/dist/commonjs/rest/outputModels.d.ts.map +0 -1
  284. package/dist/commonjs/rest/outputModels.js +0 -5
  285. package/dist/commonjs/rest/outputModels.js.map +0 -1
  286. package/dist/commonjs/rest/paginateHelper.d.ts +0 -43
  287. package/dist/commonjs/rest/paginateHelper.d.ts.map +0 -1
  288. package/dist/commonjs/rest/paginateHelper.js +0 -73
  289. package/dist/commonjs/rest/paginateHelper.js.map +0 -1
  290. package/dist/commonjs/rest/parameters.d.ts +0 -7
  291. package/dist/commonjs/rest/parameters.d.ts.map +0 -1
  292. package/dist/commonjs/rest/parameters.js +0 -5
  293. package/dist/commonjs/rest/parameters.js.map +0 -1
  294. package/dist/commonjs/rest/responses.d.ts +0 -48
  295. package/dist/commonjs/rest/responses.d.ts.map +0 -1
  296. package/dist/commonjs/rest/responses.js +0 -5
  297. package/dist/commonjs/rest/responses.js.map +0 -1
  298. package/dist/esm/api/pagingHelpers.d.ts +0 -7
  299. package/dist/esm/api/pagingHelpers.d.ts.map +0 -1
  300. package/dist/esm/api/pagingHelpers.js.map +0 -1
  301. package/dist/esm/models/options.d.ts.map +0 -1
  302. package/dist/esm/models/options.js +0 -4
  303. package/dist/esm/models/options.js.map +0 -1
  304. package/dist/esm/models/pagingTypes.d.ts.map +0 -1
  305. package/dist/esm/models/pagingTypes.js +0 -4
  306. package/dist/esm/models/pagingTypes.js.map +0 -1
  307. package/dist/esm/rest/clientDefinitions.d.ts +0 -39
  308. package/dist/esm/rest/clientDefinitions.d.ts.map +0 -1
  309. package/dist/esm/rest/clientDefinitions.js +0 -4
  310. package/dist/esm/rest/clientDefinitions.js.map +0 -1
  311. package/dist/esm/rest/edgeZonesClient.d.ts +0 -15
  312. package/dist/esm/rest/edgeZonesClient.d.ts.map +0 -1
  313. package/dist/esm/rest/edgeZonesClient.js +0 -42
  314. package/dist/esm/rest/edgeZonesClient.js.map +0 -1
  315. package/dist/esm/rest/index.d.ts +0 -10
  316. package/dist/esm/rest/index.d.ts.map +0 -1
  317. package/dist/esm/rest/index.js +0 -12
  318. package/dist/esm/rest/index.js.map +0 -1
  319. package/dist/esm/rest/isUnexpected.d.ts +0 -7
  320. package/dist/esm/rest/isUnexpected.d.ts.map +0 -1
  321. package/dist/esm/rest/isUnexpected.js +0 -74
  322. package/dist/esm/rest/isUnexpected.js.map +0 -1
  323. package/dist/esm/rest/outputModels.d.ts +0 -282
  324. package/dist/esm/rest/outputModels.d.ts.map +0 -1
  325. package/dist/esm/rest/outputModels.js +0 -4
  326. package/dist/esm/rest/outputModels.js.map +0 -1
  327. package/dist/esm/rest/paginateHelper.d.ts +0 -43
  328. package/dist/esm/rest/paginateHelper.d.ts.map +0 -1
  329. package/dist/esm/rest/paginateHelper.js +0 -70
  330. package/dist/esm/rest/paginateHelper.js.map +0 -1
  331. package/dist/esm/rest/parameters.d.ts +0 -7
  332. package/dist/esm/rest/parameters.d.ts.map +0 -1
  333. package/dist/esm/rest/parameters.js +0 -4
  334. package/dist/esm/rest/parameters.js.map +0 -1
  335. package/dist/esm/rest/responses.d.ts +0 -48
  336. package/dist/esm/rest/responses.d.ts.map +0 -1
  337. package/dist/esm/rest/responses.js +0 -4
  338. package/dist/esm/rest/responses.js.map +0 -1
  339. package/dist/react-native/api/pagingHelpers.d.ts +0 -7
  340. package/dist/react-native/api/pagingHelpers.d.ts.map +0 -1
  341. package/dist/react-native/api/pagingHelpers.js.map +0 -1
  342. package/dist/react-native/models/options.d.ts.map +0 -1
  343. package/dist/react-native/models/options.js +0 -4
  344. package/dist/react-native/models/options.js.map +0 -1
  345. package/dist/react-native/models/pagingTypes.d.ts.map +0 -1
  346. package/dist/react-native/models/pagingTypes.js +0 -4
  347. package/dist/react-native/models/pagingTypes.js.map +0 -1
  348. package/dist/react-native/rest/clientDefinitions.d.ts +0 -39
  349. package/dist/react-native/rest/clientDefinitions.d.ts.map +0 -1
  350. package/dist/react-native/rest/clientDefinitions.js +0 -4
  351. package/dist/react-native/rest/clientDefinitions.js.map +0 -1
  352. package/dist/react-native/rest/edgeZonesClient.d.ts +0 -15
  353. package/dist/react-native/rest/edgeZonesClient.d.ts.map +0 -1
  354. package/dist/react-native/rest/edgeZonesClient.js +0 -42
  355. package/dist/react-native/rest/edgeZonesClient.js.map +0 -1
  356. package/dist/react-native/rest/index.d.ts +0 -10
  357. package/dist/react-native/rest/index.d.ts.map +0 -1
  358. package/dist/react-native/rest/index.js +0 -12
  359. package/dist/react-native/rest/index.js.map +0 -1
  360. package/dist/react-native/rest/isUnexpected.d.ts +0 -7
  361. package/dist/react-native/rest/isUnexpected.d.ts.map +0 -1
  362. package/dist/react-native/rest/isUnexpected.js +0 -74
  363. package/dist/react-native/rest/isUnexpected.js.map +0 -1
  364. package/dist/react-native/rest/outputModels.d.ts +0 -282
  365. package/dist/react-native/rest/outputModels.d.ts.map +0 -1
  366. package/dist/react-native/rest/outputModels.js +0 -4
  367. package/dist/react-native/rest/outputModels.js.map +0 -1
  368. package/dist/react-native/rest/paginateHelper.d.ts +0 -43
  369. package/dist/react-native/rest/paginateHelper.d.ts.map +0 -1
  370. package/dist/react-native/rest/paginateHelper.js +0 -70
  371. package/dist/react-native/rest/paginateHelper.js.map +0 -1
  372. package/dist/react-native/rest/parameters.d.ts +0 -7
  373. package/dist/react-native/rest/parameters.d.ts.map +0 -1
  374. package/dist/react-native/rest/parameters.js +0 -4
  375. package/dist/react-native/rest/parameters.js.map +0 -1
  376. package/dist/react-native/rest/responses.d.ts +0 -48
  377. package/dist/react-native/rest/responses.d.ts.map +0 -1
  378. package/dist/react-native/rest/responses.js +0 -4
  379. package/dist/react-native/rest/responses.js.map +0 -1
  380. package/review/arm-edgezones-api.api.md +0 -46
  381. /package/dist/browser/{models → api}/options.d.ts +0 -0
  382. /package/dist/commonjs/{models → api}/options.d.ts +0 -0
  383. /package/dist/esm/{models → api}/options.d.ts +0 -0
  384. /package/dist/react-native/{models → api}/options.d.ts +0 -0
@@ -1,53 +1,195 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
3
- /** Known values of {@link CreatedByType} that the service accepts. */
4
- export var KnownCreatedByType;
5
- (function (KnownCreatedByType) {
6
- /** User */
7
- KnownCreatedByType["User"] = "User";
8
- /** Application */
9
- KnownCreatedByType["Application"] = "Application";
10
- /** ManagedIdentity */
11
- KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
12
- /** Key */
13
- KnownCreatedByType["Key"] = "Key";
14
- })(KnownCreatedByType || (KnownCreatedByType = {}));
15
- /** Known values of {@link ResourceProvisioningState} that the service accepts. */
2
+ // Licensed under the MIT License.
3
+ export function extendedZoneDeserializer(item) {
4
+ return {
5
+ id: item["id"],
6
+ name: item["name"],
7
+ type: item["type"],
8
+ systemData: !item["systemData"]
9
+ ? item["systemData"]
10
+ : systemDataDeserializer(item["systemData"]),
11
+ properties: !item["properties"]
12
+ ? item["properties"]
13
+ : extendedZonePropertiesDeserializer(item["properties"]),
14
+ };
15
+ }
16
+ export function extendedZonePropertiesDeserializer(item) {
17
+ return {
18
+ provisioningState: !item["provisioningState"]
19
+ ? item["provisioningState"]
20
+ : provisioningStateDeserializer(item["provisioningState"]),
21
+ registrationState: item["registrationState"],
22
+ displayName: item["displayName"],
23
+ regionalDisplayName: item["regionalDisplayName"],
24
+ regionType: item["regionType"],
25
+ regionCategory: item["regionCategory"],
26
+ geography: item["geography"],
27
+ geographyGroup: item["geographyGroup"],
28
+ longitude: item["longitude"],
29
+ latitude: item["latitude"],
30
+ homeLocation: item["homeLocation"],
31
+ };
32
+ }
33
+ export function provisioningStateSerializer(item) {
34
+ return item;
35
+ }
36
+ export function provisioningStateDeserializer(item) {
37
+ return item;
38
+ }
39
+ /** The provisioning state of a resource type. */
16
40
  export var KnownResourceProvisioningState;
17
41
  (function (KnownResourceProvisioningState) {
18
- /** Succeeded */
42
+ /** Resource has been created. */
19
43
  KnownResourceProvisioningState["Succeeded"] = "Succeeded";
20
- /** Failed */
44
+ /** Resource creation failed. */
21
45
  KnownResourceProvisioningState["Failed"] = "Failed";
22
- /** Canceled */
46
+ /** Resource creation was canceled. */
23
47
  KnownResourceProvisioningState["Canceled"] = "Canceled";
24
48
  })(KnownResourceProvisioningState || (KnownResourceProvisioningState = {}));
25
- /** Known values of {@link RegistrationState} that the service accepts. */
49
+ /** The Azure Extended Zone registration status for a subscription */
26
50
  export var KnownRegistrationState;
27
51
  (function (KnownRegistrationState) {
28
- /** NotRegistered */
52
+ /** Subscription not registered for the Azure Extended Zone */
29
53
  KnownRegistrationState["NotRegistered"] = "NotRegistered";
30
- /** PendingRegister */
54
+ /** Subscription pending registration for the Azure Extended Zone */
31
55
  KnownRegistrationState["PendingRegister"] = "PendingRegister";
32
- /** Registered */
56
+ /** Subscription is registered for the Azure Extended Zone */
33
57
  KnownRegistrationState["Registered"] = "Registered";
34
- /** PendingUnregister */
58
+ /** Subscription is pending unregistering for the Azure Extended Zone */
35
59
  KnownRegistrationState["PendingUnregister"] = "PendingUnregister";
36
60
  })(KnownRegistrationState || (KnownRegistrationState = {}));
37
- /** Known values of {@link Origin} that the service accepts. */
61
+ export function proxyResourceDeserializer(item) {
62
+ return {
63
+ id: item["id"],
64
+ name: item["name"],
65
+ type: item["type"],
66
+ systemData: !item["systemData"]
67
+ ? item["systemData"]
68
+ : systemDataDeserializer(item["systemData"]),
69
+ };
70
+ }
71
+ export function resourceDeserializer(item) {
72
+ return {
73
+ id: item["id"],
74
+ name: item["name"],
75
+ type: item["type"],
76
+ systemData: !item["systemData"]
77
+ ? item["systemData"]
78
+ : systemDataDeserializer(item["systemData"]),
79
+ };
80
+ }
81
+ export function systemDataDeserializer(item) {
82
+ return {
83
+ createdBy: item["createdBy"],
84
+ createdByType: item["createdByType"],
85
+ createdAt: !item["createdAt"] ? item["createdAt"] : new Date(item["createdAt"]),
86
+ lastModifiedBy: item["lastModifiedBy"],
87
+ lastModifiedByType: item["lastModifiedByType"],
88
+ lastModifiedAt: !item["lastModifiedAt"]
89
+ ? item["lastModifiedAt"]
90
+ : new Date(item["lastModifiedAt"]),
91
+ };
92
+ }
93
+ /** The kind of entity that created the resource. */
94
+ export var KnownCreatedByType;
95
+ (function (KnownCreatedByType) {
96
+ /** The entity was created by a user. */
97
+ KnownCreatedByType["User"] = "User";
98
+ /** The entity was created by an application. */
99
+ KnownCreatedByType["Application"] = "Application";
100
+ /** The entity was created by a managed identity. */
101
+ KnownCreatedByType["ManagedIdentity"] = "ManagedIdentity";
102
+ /** The entity was created by a key. */
103
+ KnownCreatedByType["Key"] = "Key";
104
+ })(KnownCreatedByType || (KnownCreatedByType = {}));
105
+ export function errorResponseDeserializer(item) {
106
+ return {
107
+ error: !item["error"] ? item["error"] : errorDetailDeserializer(item["error"]),
108
+ };
109
+ }
110
+ export function errorDetailDeserializer(item) {
111
+ return {
112
+ code: item["code"],
113
+ message: item["message"],
114
+ target: item["target"],
115
+ details: !item["details"] ? item["details"] : errorDetailArrayDeserializer(item["details"]),
116
+ additionalInfo: !item["additionalInfo"]
117
+ ? item["additionalInfo"]
118
+ : errorAdditionalInfoArrayDeserializer(item["additionalInfo"]),
119
+ };
120
+ }
121
+ export function errorDetailArrayDeserializer(result) {
122
+ return result.map((item) => {
123
+ return errorDetailDeserializer(item);
124
+ });
125
+ }
126
+ export function errorAdditionalInfoDeserializer(item) {
127
+ return {
128
+ type: item["type"],
129
+ info: !item["info"] ? item["info"] : _errorAdditionalInfoInfoDeserializer(item["info"]),
130
+ };
131
+ }
132
+ export function _errorAdditionalInfoInfoDeserializer(item) {
133
+ return item;
134
+ }
135
+ export function errorAdditionalInfoArrayDeserializer(result) {
136
+ return result.map((item) => {
137
+ return errorAdditionalInfoDeserializer(item);
138
+ });
139
+ }
140
+ export function _extendedZoneListResultDeserializer(item) {
141
+ return {
142
+ value: extendedZoneArrayDeserializer(item["value"]),
143
+ nextLink: item["nextLink"],
144
+ };
145
+ }
146
+ export function extendedZoneArrayDeserializer(result) {
147
+ return result.map((item) => {
148
+ return extendedZoneDeserializer(item);
149
+ });
150
+ }
151
+ export function _operationListResultDeserializer(item) {
152
+ return {
153
+ value: operationArrayDeserializer(item["value"]),
154
+ nextLink: item["nextLink"],
155
+ };
156
+ }
157
+ export function operationDeserializer(item) {
158
+ return {
159
+ name: item["name"],
160
+ isDataAction: item["isDataAction"],
161
+ display: !item["display"] ? item["display"] : operationDisplayDeserializer(item["display"]),
162
+ origin: item["origin"],
163
+ actionType: item["actionType"],
164
+ };
165
+ }
166
+ export function operationDisplayDeserializer(item) {
167
+ return {
168
+ provider: item["provider"],
169
+ resource: item["resource"],
170
+ operation: item["operation"],
171
+ description: item["description"],
172
+ };
173
+ }
174
+ /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" */
38
175
  export var KnownOrigin;
39
176
  (function (KnownOrigin) {
40
- /** user */
177
+ /** Indicates the operation is initiated by a user. */
41
178
  KnownOrigin["user"] = "user";
42
- /** system */
179
+ /** Indicates the operation is initiated by a system. */
43
180
  KnownOrigin["system"] = "system";
44
- /** user,system */
181
+ /** Indicates the operation is initiated by a user or system. */
45
182
  KnownOrigin["user,system"] = "user,system";
46
183
  })(KnownOrigin || (KnownOrigin = {}));
47
- /** Known values of {@link ActionType} that the service accepts. */
184
+ /** Extensible enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. */
48
185
  export var KnownActionType;
49
186
  (function (KnownActionType) {
50
- /** Internal */
187
+ /** Actions are for internal-only APIs. */
51
188
  KnownActionType["Internal"] = "Internal";
52
189
  })(KnownActionType || (KnownActionType = {}));
190
+ export function operationArrayDeserializer(result) {
191
+ return result.map((item) => {
192
+ return operationDeserializer(item);
193
+ });
194
+ }
53
195
  //# sourceMappingURL=models.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AA8BlC,sEAAsE;AACtE,MAAM,CAAN,IAAY,kBASX;AATD,WAAY,kBAAkB;IAC5B,WAAW;IACX,mCAAa,CAAA;IACb,kBAAkB;IAClB,iDAA2B,CAAA;IAC3B,sBAAsB;IACtB,yDAAmC,CAAA;IACnC,UAAU;IACV,iCAAW,CAAA;AACb,CAAC,EATW,kBAAkB,KAAlB,kBAAkB,QAS7B;AAiDD,kFAAkF;AAClF,MAAM,CAAN,IAAY,8BAOX;AAPD,WAAY,8BAA8B;IACxC,gBAAgB;IAChB,yDAAuB,CAAA;IACvB,aAAa;IACb,mDAAiB,CAAA;IACjB,eAAe;IACf,uDAAqB,CAAA;AACvB,CAAC,EAPW,8BAA8B,KAA9B,8BAA8B,QAOzC;AAaD,0EAA0E;AAC1E,MAAM,CAAN,IAAY,sBASX;AATD,WAAY,sBAAsB;IAChC,oBAAoB;IACpB,yDAA+B,CAAA;IAC/B,sBAAsB;IACtB,6DAAmC,CAAA;IACnC,iBAAiB;IACjB,mDAAyB,CAAA;IACzB,wBAAwB;IACxB,iEAAuC,CAAA;AACzC,CAAC,EATW,sBAAsB,KAAtB,sBAAsB,QASjC;AAoFD,+DAA+D;AAC/D,MAAM,CAAN,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,WAAW;IACX,4BAAa,CAAA;IACb,aAAa;IACb,gCAAiB,CAAA;IACjB,kBAAkB;IAClB,0CAA6B,CAAA;AAC/B,CAAC,EAPW,WAAW,KAAX,WAAW,QAOtB;AAaD,mEAAmE;AACnE,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,eAAe;IACf,wCAAqB,CAAA;AACvB,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT license.\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\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?: SystemData;\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\n/** Known values of {@link CreatedByType} that the service accepts. */\nexport enum KnownCreatedByType {\n /** User */\n User = \"User\",\n /** Application */\n Application = \"Application\",\n /** ManagedIdentity */\n ManagedIdentity = \"ManagedIdentity\",\n /** Key */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\n * {@link KnownCreatedByType} can be used interchangeably with CreatedByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User** \\\n * **Application** \\\n * **ManagedIdentity** \\\n * **Key**\n */\nexport type CreatedByType = string;\n\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResource extends Resource {}\n\n/** Resource that represents an Azure Extended Zone available to a subscription for registering and unregistering. */\nexport interface ExtendedZone extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: ExtendedZoneProperties;\n}\n\n/** The properties of an Extended Zone resource. */\nexport interface ExtendedZoneProperties {\n /** Status of the last operation performed by the subscription on the Edge Zone resource */\n readonly provisioningState?: ProvisioningState;\n /** Indicates the Azure Extended Zone registration’s approval status. */\n readonly registrationState?: RegistrationState;\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/** Known values of {@link ResourceProvisioningState} that the service accepts. */\nexport enum KnownResourceProvisioningState {\n /** Succeeded */\n Succeeded = \"Succeeded\",\n /** Failed */\n Failed = \"Failed\",\n /** Canceled */\n Canceled = \"Canceled\",\n}\n\n/**\n * The provisioning state of a resource type. \\\n * {@link KnownResourceProvisioningState} can be used interchangeably with ResourceProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded** \\\n * **Failed** \\\n * **Canceled**\n */\nexport type ResourceProvisioningState = string;\n\n/** Known values of {@link RegistrationState} that the service accepts. */\nexport enum KnownRegistrationState {\n /** NotRegistered */\n NotRegistered = \"NotRegistered\",\n /** PendingRegister */\n PendingRegister = \"PendingRegister\",\n /** Registered */\n Registered = \"Registered\",\n /** PendingUnregister */\n PendingUnregister = \"PendingUnregister\",\n}\n\n/**\n * The Azure Extended Zone registration status for a subscription \\\n * {@link KnownRegistrationState} can be used interchangeably with RegistrationState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **NotRegistered** \\\n * **PendingRegister** \\\n * **Registered** \\\n * **PendingUnregister**\n */\nexport type RegistrationState = string;\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\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?: ErrorDetail[];\n /** The error additional info. */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: Record<string, any>;\n}\n\n/** The response of a ExtendedZone list operation. */\nexport interface _ExtendedZoneListResult {\n /** The ExtendedZone items on this page */\n value: ExtendedZone[];\n /** The link to the next page of items */\n nextLink?: 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 interface _OperationListResult {\n /** The Operation items on this page */\n value: Operation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\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?: OperationDisplay;\n /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\n readonly origin?: Origin;\n /** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\n actionType?: ActionType;\n}\n\n/** Localized display information for and operation. */\nexport interface OperationDisplay {\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/** Known values of {@link Origin} that the service accepts. */\nexport enum KnownOrigin {\n /** user */\n user = \"user\",\n /** system */\n system = \"system\",\n /** user,system */\n \"user,system\" = \"user,system\",\n}\n\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 * {@link KnownOrigin} can be used interchangeably with Origin,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **user** \\\n * **system** \\\n * **user,system**\n */\nexport type Origin = string;\n\n/** Known values of {@link ActionType} that the service accepts. */\nexport enum KnownActionType {\n /** Internal */\n Internal = \"Internal\",\n}\n\n/**\n * Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. \\\n * {@link KnownActionType} can be used interchangeably with ActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Internal**\n */\nexport type ActionType = string;\n/** Alias for ProvisioningState */\nexport type ProvisioningState =\n | string\n | ResourceProvisioningState\n | \"Provisioning\"\n | \"Updating\"\n | \"Deleting\"\n | \"Accepted\";\n"]}
1
+ {"version":3,"file":"models.js","sourceRoot":"","sources":["../../../src/models/models.ts"],"names":[],"mappings":"AAAA,uCAAuC;AACvC,kCAAkC;AAQlC,MAAM,UAAU,wBAAwB,CAAC,IAAS;IAChD,OAAO;QACL,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC;QACd,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC;QAClB,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;YACpB,CAAC,CAAC,sBAAsB,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC9C,UAAU,EAAE,CAAC,IAAI,CAAC,YAAY,CAAC;YAC7B,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC;YACpB,CAAC,CAAC,kCAAkC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;KAC3D,CAAC;AACJ,CAAC;AA4BD,MAAM,UAAU,kCAAkC,CAAC,IAAS;IAC1D,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E,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,4BAA4B,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC3F,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC;QACtB,UAAU,EAAE,IAAI,CAAC,YAAY,CAAC;KAC/B,CAAC;AACJ,CAAC;AAcD,MAAM,UAAU,4BAA4B,CAAC,IAAS;IACpD,OAAO;QACL,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,QAAQ,EAAE,IAAI,CAAC,UAAU,CAAC;QAC1B,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC;QAC5B,WAAW,EAAE,IAAI,CAAC,aAAa,CAAC;KACjC,CAAC;AACJ,CAAC;AAED,2IAA2I;AAC3I,MAAM,CAAN,IAAY,WAOX;AAPD,WAAY,WAAW;IACrB,sDAAsD;IACtD,4BAAa,CAAA;IACb,wDAAwD;IACxD,gCAAiB,CAAA;IACjB,gEAAgE;IAChE,0CAA6B,CAAA;AAC/B,CAAC,EAPW,WAAW,KAAX,WAAW,QAOtB;AAaD,gHAAgH;AAChH,MAAM,CAAN,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,0CAA0C;IAC1C,wCAAqB,CAAA;AACvB,CAAC,EAHW,eAAe,KAAf,eAAe,QAG1B;AAWD,MAAM,UAAU,0BAA0B,CAAC,MAAwB;IACjE,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACzB,OAAO,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;AACL,CAAC","sourcesContent":["// Copyright (c) Microsoft Corporation.\n// Licensed under the MIT License.\n\n/** Resource that represents an Azure Extended Zone available to a subscription for registering and unregistering. */\nexport interface ExtendedZone extends ProxyResource {\n /** The resource-specific properties for this resource. */\n properties?: ExtendedZoneProperties;\n}\n\nexport function extendedZoneDeserializer(item: any): ExtendedZone {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n properties: !item[\"properties\"]\n ? item[\"properties\"]\n : extendedZonePropertiesDeserializer(item[\"properties\"]),\n };\n}\n\n/** The properties of an Extended Zone resource. */\nexport interface ExtendedZoneProperties {\n /** Status of the last operation performed by the subscription on the Edge Zone resource */\n readonly provisioningState?: ProvisioningState;\n /** Indicates the Azure Extended Zone registration’s approval status. */\n readonly registrationState?: RegistrationState;\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\nexport function extendedZonePropertiesDeserializer(item: any): ExtendedZoneProperties {\n return {\n provisioningState: !item[\"provisioningState\"]\n ? item[\"provisioningState\"]\n : provisioningStateDeserializer(item[\"provisioningState\"]),\n registrationState: item[\"registrationState\"],\n displayName: item[\"displayName\"],\n regionalDisplayName: item[\"regionalDisplayName\"],\n regionType: item[\"regionType\"],\n regionCategory: item[\"regionCategory\"],\n geography: item[\"geography\"],\n geographyGroup: item[\"geographyGroup\"],\n longitude: item[\"longitude\"],\n latitude: item[\"latitude\"],\n homeLocation: item[\"homeLocation\"],\n };\n}\n\n/** Alias for ProvisioningState */\nexport type ProvisioningState =\n | string\n | ResourceProvisioningState\n | \"Provisioning\"\n | \"Updating\"\n | \"Deleting\"\n | \"Accepted\";\n\nexport function provisioningStateSerializer(item: ProvisioningState): any {\n return item;\n}\n\nexport function provisioningStateDeserializer(item: any): ProvisioningState {\n return item;\n}\n\n/** The provisioning state of a resource type. */\nexport enum KnownResourceProvisioningState {\n /** Resource has been created. */\n Succeeded = \"Succeeded\",\n /** Resource creation failed. */\n Failed = \"Failed\",\n /** Resource creation was canceled. */\n Canceled = \"Canceled\",\n}\n\n/**\n * The provisioning state of a resource type. \\\n * {@link KnownResourceProvisioningState} can be used interchangeably with ResourceProvisioningState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Succeeded**: Resource has been created. \\\n * **Failed**: Resource creation failed. \\\n * **Canceled**: Resource creation was canceled.\n */\nexport type ResourceProvisioningState = string;\n\n/** The Azure Extended Zone registration status for a subscription */\nexport enum KnownRegistrationState {\n /** Subscription not registered for the Azure Extended Zone */\n NotRegistered = \"NotRegistered\",\n /** Subscription pending registration for the Azure Extended Zone */\n PendingRegister = \"PendingRegister\",\n /** Subscription is registered for the Azure Extended Zone */\n Registered = \"Registered\",\n /** Subscription is pending unregistering for the Azure Extended Zone */\n PendingUnregister = \"PendingUnregister\",\n}\n\n/**\n * The Azure Extended Zone registration status for a subscription \\\n * {@link KnownRegistrationState} can be used interchangeably with RegistrationState,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **NotRegistered**: Subscription not registered for the Azure Extended Zone \\\n * **PendingRegister**: Subscription pending registration for the Azure Extended Zone \\\n * **Registered**: Subscription is registered for the Azure Extended Zone \\\n * **PendingUnregister**: Subscription is pending unregistering for the Azure Extended Zone\n */\nexport type RegistrationState = string;\n\n/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */\nexport interface ProxyResource extends Resource {}\n\nexport function proxyResourceDeserializer(item: any): ProxyResource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Common fields that are returned in the response for all Azure Resource Manager resources */\nexport interface Resource {\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?: SystemData;\n}\n\nexport function resourceDeserializer(item: any): Resource {\n return {\n id: item[\"id\"],\n name: item[\"name\"],\n type: item[\"type\"],\n systemData: !item[\"systemData\"]\n ? item[\"systemData\"]\n : systemDataDeserializer(item[\"systemData\"]),\n };\n}\n\n/** Metadata pertaining to creation and last modification of the resource. */\nexport interface SystemData {\n /** The identity that created the resource. */\n createdBy?: string;\n /** The type of identity that created the resource. */\n createdByType?: CreatedByType;\n /** The timestamp of resource creation (UTC). */\n createdAt?: Date;\n /** The identity that last modified the resource. */\n lastModifiedBy?: string;\n /** The type of identity that last modified the resource. */\n lastModifiedByType?: CreatedByType;\n /** The timestamp of resource last modification (UTC) */\n lastModifiedAt?: Date;\n}\n\nexport function systemDataDeserializer(item: any): SystemData {\n return {\n createdBy: item[\"createdBy\"],\n createdByType: item[\"createdByType\"],\n createdAt: !item[\"createdAt\"] ? item[\"createdAt\"] : new Date(item[\"createdAt\"]),\n lastModifiedBy: item[\"lastModifiedBy\"],\n lastModifiedByType: item[\"lastModifiedByType\"],\n lastModifiedAt: !item[\"lastModifiedAt\"]\n ? item[\"lastModifiedAt\"]\n : new Date(item[\"lastModifiedAt\"]),\n };\n}\n\n/** The kind of entity that created the resource. */\nexport enum KnownCreatedByType {\n /** The entity was created by a user. */\n User = \"User\",\n /** The entity was created by an application. */\n Application = \"Application\",\n /** The entity was created by a managed identity. */\n ManagedIdentity = \"ManagedIdentity\",\n /** The entity was created by a key. */\n Key = \"Key\",\n}\n\n/**\n * The kind of entity that created the resource. \\\n * {@link KnowncreatedByType} can be used interchangeably with createdByType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **User**: The entity was created by a user. \\\n * **Application**: The entity was created by an application. \\\n * **ManagedIdentity**: The entity was created by a managed identity. \\\n * **Key**: The entity was created by a key.\n */\nexport type CreatedByType = string;\n\n/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. */\nexport interface ErrorResponse {\n /** The error object. */\n error?: ErrorDetail;\n}\n\nexport function errorResponseDeserializer(item: any): ErrorResponse {\n return {\n error: !item[\"error\"] ? item[\"error\"] : errorDetailDeserializer(item[\"error\"]),\n };\n}\n\n/** The error detail. */\nexport interface ErrorDetail {\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?: ErrorDetail[];\n /** The error additional info. */\n readonly additionalInfo?: ErrorAdditionalInfo[];\n}\n\nexport function errorDetailDeserializer(item: any): ErrorDetail {\n return {\n code: item[\"code\"],\n message: item[\"message\"],\n target: item[\"target\"],\n details: !item[\"details\"] ? item[\"details\"] : errorDetailArrayDeserializer(item[\"details\"]),\n additionalInfo: !item[\"additionalInfo\"]\n ? item[\"additionalInfo\"]\n : errorAdditionalInfoArrayDeserializer(item[\"additionalInfo\"]),\n };\n}\n\nexport function errorDetailArrayDeserializer(result: Array<ErrorDetail>): any[] {\n return result.map((item) => {\n return errorDetailDeserializer(item);\n });\n}\n\n/** The resource management error additional info. */\nexport interface ErrorAdditionalInfo {\n /** The additional info type. */\n readonly type?: string;\n /** The additional info. */\n readonly info?: Record<string, any>;\n}\n\nexport function errorAdditionalInfoDeserializer(item: any): ErrorAdditionalInfo {\n return {\n type: item[\"type\"],\n info: !item[\"info\"] ? item[\"info\"] : _errorAdditionalInfoInfoDeserializer(item[\"info\"]),\n };\n}\n\n/** model interface _ErrorAdditionalInfoInfo */\nexport interface _ErrorAdditionalInfoInfo {}\n\nexport function _errorAdditionalInfoInfoDeserializer(item: any): _ErrorAdditionalInfoInfo {\n return item;\n}\n\nexport function errorAdditionalInfoArrayDeserializer(result: Array<ErrorAdditionalInfo>): any[] {\n return result.map((item) => {\n return errorAdditionalInfoDeserializer(item);\n });\n}\n\n/** The response of a ExtendedZone list operation. */\nexport interface _ExtendedZoneListResult {\n /** The ExtendedZone items on this page */\n value: ExtendedZone[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _extendedZoneListResultDeserializer(item: any): _ExtendedZoneListResult {\n return {\n value: extendedZoneArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\nexport function extendedZoneArrayDeserializer(result: Array<ExtendedZone>): any[] {\n return result.map((item) => {\n return extendedZoneDeserializer(item);\n });\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 interface _OperationListResult {\n /** The Operation items on this page */\n value: Operation[];\n /** The link to the next page of items */\n nextLink?: string;\n}\n\nexport function _operationListResultDeserializer(item: any): _OperationListResult {\n return {\n value: operationArrayDeserializer(item[\"value\"]),\n nextLink: item[\"nextLink\"],\n };\n}\n\n/** Details of a REST API operation, returned from the Resource Provider Operations API */\nexport interface Operation {\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?: OperationDisplay;\n /** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\n readonly origin?: Origin;\n /** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\n actionType?: ActionType;\n}\n\nexport function operationDeserializer(item: any): Operation {\n return {\n name: item[\"name\"],\n isDataAction: item[\"isDataAction\"],\n display: !item[\"display\"] ? item[\"display\"] : operationDisplayDeserializer(item[\"display\"]),\n origin: item[\"origin\"],\n actionType: item[\"actionType\"],\n };\n}\n\n/** Localized display information for and operation. */\nexport interface OperationDisplay {\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\nexport function operationDisplayDeserializer(item: any): OperationDisplay {\n return {\n provider: item[\"provider\"],\n resource: item[\"resource\"],\n operation: item[\"operation\"],\n description: item[\"description\"],\n };\n}\n\n/** The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is \"user,system\" */\nexport enum KnownOrigin {\n /** Indicates the operation is initiated by a user. */\n user = \"user\",\n /** Indicates the operation is initiated by a system. */\n system = \"system\",\n /** Indicates the operation is initiated by a user or system. */\n \"user,system\" = \"user,system\",\n}\n\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 * {@link KnownOrigin} can be used interchangeably with Origin,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **user**: Indicates the operation is initiated by a user. \\\n * **system**: Indicates the operation is initiated by a system. \\\n * **user,system**: Indicates the operation is initiated by a user or system.\n */\nexport type Origin = string;\n\n/** Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. */\nexport enum KnownActionType {\n /** Actions are for internal-only APIs. */\n Internal = \"Internal\",\n}\n\n/**\n * Extensible enum. Indicates the action type. \"Internal\" refers to actions that are for internal only APIs. \\\n * {@link KnownActionType} can be used interchangeably with ActionType,\n * this enum contains the known values that the service supports.\n * ### Known values supported by the service\n * **Internal**: Actions are for internal-only APIs.\n */\nexport type ActionType = string;\n\nexport function operationArrayDeserializer(result: Array<Operation>): any[] {\n return result.map((item) => {\n return operationDeserializer(item);\n });\n}\n"]}
@@ -1,3 +1,4 @@
1
+ import { Client, PathUncheckedResponse } from "@azure-rest/core-client";
1
2
  /**
2
3
  * Options for the byPage method
3
4
  */
@@ -64,4 +65,8 @@ export interface BuildPagedAsyncIteratorOptions {
64
65
  itemName?: string;
65
66
  nextLinkName?: string;
66
67
  }
67
- //# sourceMappingURL=pagingTypes.d.ts.map
68
+ /**
69
+ * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
70
+ */
71
+ 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>, expectedStatuses: string[], options?: BuildPagedAsyncIteratorOptions): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
72
+ //# sourceMappingURL=pagingHelpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelpers.d.ts","sourceRoot":"","sources":["../../../src/static-helpers/pagingHelpers.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,EAAmB,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGzF;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,MAAM,eAAe,CAAC,QAAQ,EAAE,KAAK,GAAG,QAAQ,EAAE,IAAI,KAAK,GAAG;IAClE;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF;;GAEG;AACH,MAAM,WAAW,0BAA0B,CACzC,QAAQ,EACR,KAAK,GAAG,QAAQ,EAAE,EAClB,aAAa,SAAS,YAAY,GAAG,YAAY;IAEjD;;OAEG;IACH,IAAI,IAAI,OAAO,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC1C;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CAAC,EAChE,gBAAgB,EAAE,MAAM,EAAE,EAC1B,OAAO,GAAE,8BAAmC,GAC3C,0BAA0B,CAAC,QAAQ,EAAE,KAAK,EAAE,aAAa,CAAC,CA0B5D"}
@@ -1,13 +1,12 @@
1
1
  // Copyright (c) Microsoft Corporation.
2
- // Licensed under the MIT license.
2
+ // Licensed under the MIT License.
3
3
  import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
4
4
  import { createRestError } from "@azure-rest/core-client";
5
5
  import { RestError } from "@azure/core-rest-pipeline";
6
- import { isUnexpected } from "../rest/index.js";
7
6
  /**
8
7
  * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator
9
8
  */
10
- export function buildPagedAsyncIterator(client, getInitialResponse, processResponseBody, options = {}) {
9
+ export function buildPagedAsyncIterator(client, getInitialResponse, processResponseBody, expectedStatuses, options = {}) {
11
10
  var _a, _b;
12
11
  const itemName = (_a = options.itemName) !== null && _a !== void 0 ? _a : "value";
13
12
  const nextLinkName = (_b = options.nextLinkName) !== null && _b !== void 0 ? _b : "nextLink";
@@ -16,7 +15,7 @@ export function buildPagedAsyncIterator(client, getInitialResponse, processRespo
16
15
  const result = pageLink === undefined
17
16
  ? await getInitialResponse()
18
17
  : await client.pathUnchecked(pageLink).get();
19
- checkPagingRequest(result);
18
+ checkPagingRequest(result, expectedStatuses);
20
19
  const results = await processResponseBody(result);
21
20
  const nextLink = getNextLink(results, nextLinkName);
22
21
  const values = getElements(results, itemName);
@@ -130,8 +129,8 @@ function getElements(body, itemName) {
130
129
  /**
131
130
  * Checks if a request failed
132
131
  */
133
- function checkPagingRequest(response) {
134
- if (isUnexpected(response)) {
132
+ function checkPagingRequest(response, expectedStatuses) {
133
+ if (!expectedStatuses.includes(response.status)) {
135
134
  throw createRestError(`Pagination failed with unexpected statusCode ${response.status}`, response);
136
135
  }
137
136
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pagingHelpers.js","sourceRoot":"","sources":["../../../src/static-helpers/paging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,SAAS,CACjB,kFAAkF,QAAQ,EAAE,CAC7F,CAAC;IACJ,CAAC;IAED,OAAO,KAAK,aAAL,KAAK,cAAL,KAAK,GAAI,EAAE,CAAC;AACrB,CAAC;AAED;;GAEG;AACH,SAAS,kBAAkB,CAAC,QAA+B,EAAE,gBAA0B;IACrF,IAAI,CAAC,gBAAgB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC;QAChD,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 { Client, createRestError, PathUncheckedResponse } from \"@azure-rest/core-client\";\nimport { RestError } from \"@azure/core-rest-pipeline\";\n\n/**\n * Options for the byPage method\n */\nexport interface PageSettings {\n /**\n * A reference to a specific page to start iterating from.\n */\n continuationToken?: string;\n}\n\n/**\n * An interface that describes a page of results.\n */\nexport type ContinuablePage<TElement, TPage = TElement[]> = TPage & {\n /**\n * The token that keeps track of where to continue the iterator\n */\n continuationToken?: string;\n};\n\n/**\n * An interface that allows async iterable iteration both to completion and by page.\n */\nexport interface PagedAsyncIterableIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n> {\n /**\n * The next method, part of the iteration protocol\n */\n next(): Promise<IteratorResult<TElement>>;\n /**\n * The connection to the async iterator, part of the iteration protocol\n */\n [Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;\n /**\n * Return an AsyncIterableIterator that works a page at a time\n */\n byPage: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;\n}\n\n/**\n * An interface that describes how to communicate with the service.\n */\nexport interface PagedResult<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n> {\n /**\n * Link to the first page of results.\n */\n firstPageLink?: string;\n /**\n * A method that returns a page of results.\n */\n getPage: (pageLink?: string) => Promise<{ page: TPage; nextPageLink?: string } | undefined>;\n /**\n * a function to implement the `byPage` method on the paged async iterator.\n */\n byPage?: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;\n\n /**\n * A function to extract elements from a page.\n */\n toElements?: (page: TPage) => TElement[];\n}\n\n/**\n * Options for the paging helper\n */\nexport interface BuildPagedAsyncIteratorOptions {\n itemName?: string;\n nextLinkName?: string;\n}\n\n/**\n * Helper to paginate results in a generic way and return a PagedAsyncIterableIterator\n */\nexport function buildPagedAsyncIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n TResponse extends PathUncheckedResponse = PathUncheckedResponse,\n>(\n client: Client,\n getInitialResponse: () => PromiseLike<TResponse>,\n processResponseBody: (result: TResponse) => PromiseLike<unknown>,\n expectedStatuses: string[],\n options: BuildPagedAsyncIteratorOptions = {},\n): PagedAsyncIterableIterator<TElement, TPage, TPageSettings> {\n const itemName = options.itemName ?? \"value\";\n const nextLinkName = options.nextLinkName ?? \"nextLink\";\n const pagedResult: PagedResult<TElement, TPage, TPageSettings> = {\n getPage: async (pageLink?: string) => {\n const result =\n pageLink === undefined\n ? await getInitialResponse()\n : await client.pathUnchecked(pageLink).get();\n checkPagingRequest(result, expectedStatuses);\n const results = await processResponseBody(result as TResponse);\n const nextLink = getNextLink(results, nextLinkName);\n const values = getElements<TElement>(results, itemName) as TPage;\n return {\n page: values,\n nextPageLink: nextLink,\n };\n },\n byPage: (settings?: TPageSettings) => {\n const { continuationToken } = settings ?? {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken,\n });\n },\n };\n return getPagedAsyncIterator(pagedResult);\n}\n\n/**\n * returns an async iterator that iterates over results. It also has a `byPage`\n * method that returns pages of items at once.\n *\n * @param pagedResult - an object that specifies how to get pages.\n * @returns a paged async iterator that iterates over results.\n */\n\nfunction getPagedAsyncIterator<\n TElement,\n TPage = TElement[],\n TPageSettings extends PageSettings = PageSettings,\n>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n): PagedAsyncIterableIterator<TElement, TPage, TPageSettings> {\n const iter = getItemAsyncIterator<TElement, TPage, TPageSettings>(pagedResult);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage:\n pagedResult?.byPage ??\n ((settings?: TPageSettings) => {\n const { continuationToken } = settings ?? {};\n return getPageAsyncIterator(pagedResult, {\n pageLink: continuationToken,\n });\n }),\n };\n}\n\nasync function* getItemAsyncIterator<TElement, TPage, TPageSettings extends PageSettings>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n): AsyncIterableIterator<TElement> {\n const pages = getPageAsyncIterator(pagedResult);\n for await (const page of pages) {\n yield* page as unknown as TElement[];\n }\n}\n\nasync function* getPageAsyncIterator<TElement, TPage, TPageSettings extends PageSettings>(\n pagedResult: PagedResult<TElement, TPage, TPageSettings>,\n options: {\n pageLink?: string;\n } = {},\n): AsyncIterableIterator<ContinuablePage<TElement, TPage>> {\n const { pageLink } = options;\n let response = await pagedResult.getPage(pageLink ?? pagedResult.firstPageLink);\n if (!response) {\n return;\n }\n let result = response.page as ContinuablePage<TElement, TPage>;\n result.continuationToken = response.nextPageLink;\n yield result;\n while (response.nextPageLink) {\n response = await pagedResult.getPage(response.nextPageLink);\n if (!response) {\n return;\n }\n result = response.page as ContinuablePage<TElement, TPage>;\n result.continuationToken = response.nextPageLink;\n yield result;\n }\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\" && nextLink !== null) {\n throw new RestError(\n `Body Property ${nextLinkName} should be a string or undefined or null but got ${typeof nextLink}`,\n );\n }\n\n if (nextLink === null) {\n return 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 if (!Array.isArray(value)) {\n throw new RestError(\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, expectedStatuses: string[]): void {\n if (!expectedStatuses.includes(response.status)) {\n throw createRestError(\n `Pagination failed with unexpected statusCode ${response.status}`,\n response,\n );\n }\n}\n"]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@azure/arm-edgezones",
3
- "version": "1.0.0-beta.2",
4
- "description": "Azure Edgezones Service",
3
+ "version": "1.0.0-beta.3",
4
+ "description": "A generated SDK for EdgeZonesClient.",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
7
7
  },
@@ -11,7 +11,6 @@
11
11
  "exports": {
12
12
  "./package.json": "./package.json",
13
13
  ".": "./src/index.ts",
14
- "./api": "./src/api/index.ts",
15
14
  "./models": "./src/models/index.ts"
16
15
  },
17
16
  "dialects": [
@@ -51,43 +50,39 @@
51
50
  "//metadata": {
52
51
  "constantPaths": [
53
52
  {
54
- "path": "src/rest/edgeZonesClient.ts",
53
+ "path": "src/api/edgeZonesContext.ts",
55
54
  "prefix": "userAgentInfo"
56
55
  }
57
56
  ]
58
57
  },
59
58
  "dependencies": {
60
- "@azure-rest/core-client": "^2.1.0",
59
+ "@azure/core-util": "^1.9.2",
60
+ "@azure-rest/core-client": "^2.3.1",
61
61
  "@azure/core-auth": "^1.6.0",
62
62
  "@azure/core-rest-pipeline": "^1.5.0",
63
63
  "@azure/logger": "^1.0.0",
64
- "tslib": "^2.6.2",
65
- "@azure/core-paging": "^1.5.0"
64
+ "tslib": "^2.6.2"
66
65
  },
67
66
  "devDependencies": {
68
67
  "dotenv": "^16.0.0",
69
68
  "@microsoft/api-extractor": "^7.40.3",
70
69
  "@types/node": "^18.0.0",
71
70
  "eslint": "^8.55.0",
72
- "prettier": "^3.2.5",
73
- "rimraf": "^5.0.5",
74
- "mkdirp": "^3.0.1",
75
- "typescript": "~5.5.3",
76
- "tshy": "^1.11.1",
77
- "@azure/core-util": "^1.0.0",
71
+ "typescript": "~5.6.2",
72
+ "tshy": "^2.0.0",
78
73
  "@azure/identity": "^4.2.1",
79
- "@vitest/browser": "^1.3.1",
80
- "@vitest/coverage-istanbul": "^1.3.1",
74
+ "@vitest/browser": "^2.0.5",
75
+ "@vitest/coverage-istanbul": "^2.0.5",
81
76
  "playwright": "^1.41.2",
82
- "vitest": "^1.3.1",
77
+ "vitest": "^2.0.5",
83
78
  "@azure-tools/test-credential": "^2.0.0",
84
79
  "@azure-tools/test-recorder": "^4.0.0",
85
80
  "@azure/dev-tool": "^1.0.0",
86
81
  "@azure/eslint-plugin-azure-sdk": "^3.0.0"
87
82
  },
88
83
  "scripts": {
89
- "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
90
- "extract-api": "rimraf review && mkdirp ./review && dev-tool run extract-api",
84
+ "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log",
85
+ "extract-api": "dev-tool run vendored rimraf review && dev-tool run vendored mkdirp ./review && dev-tool run extract-api",
91
86
  "pack": "npm pack 2>&1",
92
87
  "lint": "echo skipped",
93
88
  "lint:fix": "echo skipped",
@@ -97,83 +92,53 @@
97
92
  "integration-test": "npm run integration-test:node && npm run integration-test:browser",
98
93
  "integration-test:browser": "echo skipped",
99
94
  "integration-test:node": "echo skipped",
100
- "audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit",
101
95
  "build:samples": "echo skipped",
102
- "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"",
96
+ "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ",
103
97
  "execute:samples": "echo skipped",
104
- "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\"",
98
+ "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ",
105
99
  "generate:client": "echo skipped",
106
100
  "test:browser": "npm run clean && npm run build:test && npm run unit-test:browser && npm run integration-test:browser",
107
- "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
108
- "build:test": "npm run clean && tshy && dev-tool run build-test",
109
- "build": "npm run clean && tshy && mkdirp ./review && dev-tool run extract-api",
110
- "test:node": "npm run clean && tshy && npm run unit-test:node && npm run integration-test:node",
111
- "test": "npm run clean && tshy && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test"
101
+ "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js",
102
+ "build:test": "npm run clean && dev-tool run build-package && dev-tool run build-test",
103
+ "build": "npm run clean && dev-tool run build-package && dev-tool run vendored mkdirp ./review && dev-tool run extract-api",
104
+ "test:node": "npm run clean && dev-tool run build-package && npm run unit-test:node && npm run integration-test:node",
105
+ "test": "npm run clean && dev-tool run build-package && npm run unit-test:node && dev-tool run bundle && npm run unit-test:browser && npm run integration-test",
106
+ "update-snippets": "echo skipped"
112
107
  },
113
108
  "exports": {
114
109
  "./package.json": "./package.json",
115
110
  ".": {
116
111
  "browser": {
117
- "source": "./src/index.ts",
118
112
  "types": "./dist/browser/index.d.ts",
119
113
  "default": "./dist/browser/index.js"
120
114
  },
121
115
  "react-native": {
122
- "source": "./src/index.ts",
123
116
  "types": "./dist/react-native/index.d.ts",
124
117
  "default": "./dist/react-native/index.js"
125
118
  },
126
119
  "import": {
127
- "source": "./src/index.ts",
128
120
  "types": "./dist/esm/index.d.ts",
129
121
  "default": "./dist/esm/index.js"
130
122
  },
131
123
  "require": {
132
- "source": "./src/index.ts",
133
124
  "types": "./dist/commonjs/index.d.ts",
134
125
  "default": "./dist/commonjs/index.js"
135
126
  }
136
127
  },
137
- "./api": {
138
- "browser": {
139
- "source": "./src/api/index.ts",
140
- "types": "./dist/browser/api/index.d.ts",
141
- "default": "./dist/browser/api/index.js"
142
- },
143
- "react-native": {
144
- "source": "./src/api/index.ts",
145
- "types": "./dist/react-native/api/index.d.ts",
146
- "default": "./dist/react-native/api/index.js"
147
- },
148
- "import": {
149
- "source": "./src/api/index.ts",
150
- "types": "./dist/esm/api/index.d.ts",
151
- "default": "./dist/esm/api/index.js"
152
- },
153
- "require": {
154
- "source": "./src/api/index.ts",
155
- "types": "./dist/commonjs/api/index.d.ts",
156
- "default": "./dist/commonjs/api/index.js"
157
- }
158
- },
159
128
  "./models": {
160
129
  "browser": {
161
- "source": "./src/models/index.ts",
162
130
  "types": "./dist/browser/models/index.d.ts",
163
131
  "default": "./dist/browser/models/index.js"
164
132
  },
165
133
  "react-native": {
166
- "source": "./src/models/index.ts",
167
134
  "types": "./dist/react-native/models/index.d.ts",
168
135
  "default": "./dist/react-native/models/index.js"
169
136
  },
170
137
  "import": {
171
- "source": "./src/models/index.ts",
172
138
  "types": "./dist/esm/models/index.d.ts",
173
139
  "default": "./dist/esm/models/index.js"
174
140
  },
175
141
  "require": {
176
- "source": "./src/models/index.ts",
177
142
  "types": "./dist/commonjs/models/index.d.ts",
178
143
  "default": "./dist/commonjs/models/index.js"
179
144
  }
@@ -4,16 +4,9 @@
4
4
 
5
5
  ```ts
6
6
 
7
- import { OperationOptions } from '@azure-rest/core-client';
8
-
9
7
  // @public
10
8
  export type ActionType = string;
11
9
 
12
- // @public
13
- export type ContinuablePage<TElement, TPage = TElement[]> = TPage & {
14
- continuationToken?: string;
15
- };
16
-
17
10
  // @public
18
11
  export type CreatedByType = string;
19
12
 
@@ -57,22 +50,6 @@ export interface ExtendedZoneProperties {
57
50
  readonly registrationState?: RegistrationState;
58
51
  }
59
52
 
60
- // @public
61
- export interface ExtendedZonesGetOptionalParams extends OperationOptions {
62
- }
63
-
64
- // @public
65
- export interface ExtendedZonesListBySubscriptionOptionalParams extends OperationOptions {
66
- }
67
-
68
- // @public
69
- export interface ExtendedZonesRegisterOptionalParams extends OperationOptions {
70
- }
71
-
72
- // @public
73
- export interface ExtendedZonesUnregisterOptionalParams extends OperationOptions {
74
- }
75
-
76
53
  // @public
77
54
  export enum KnownActionType {
78
55
  Internal = "Internal"
@@ -125,25 +102,9 @@ export interface OperationDisplay {
125
102
  readonly resource?: string;
126
103
  }
127
104
 
128
- // @public
129
- export interface OperationsListOptionalParams extends OperationOptions {
130
- }
131
-
132
105
  // @public
133
106
  export type Origin = string;
134
107
 
135
- // @public
136
- export interface PagedAsyncIterableIterator<TElement, TPage = TElement[], TPageSettings extends PageSettings = PageSettings> {
137
- [Symbol.asyncIterator](): PagedAsyncIterableIterator<TElement, TPage, TPageSettings>;
138
- byPage: (settings?: TPageSettings) => AsyncIterableIterator<ContinuablePage<TElement, TPage>>;
139
- next(): Promise<IteratorResult<TElement>>;
140
- }
141
-
142
- // @public
143
- export interface PageSettings {
144
- continuationToken?: string;
145
- }
146
-
147
108
  // @public
148
109
  export type ProvisioningState = string | ResourceProvisioningState | "Provisioning" | "Updating" | "Deleting" | "Accepted";
149
110
 
@@ -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"}