@azure/arm-agrifood 1.0.0-beta.5 → 1.0.0-beta.6

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 (356) hide show
  1. package/CHANGELOG.md +13 -3
  2. package/LICENSE +4 -4
  3. package/README.md +26 -18
  4. package/{dist-esm/src → dist/commonjs}/agriFoodMgmtClient.d.ts +2 -2
  5. package/dist/commonjs/agriFoodMgmtClient.d.ts.map +1 -0
  6. package/dist/commonjs/agriFoodMgmtClient.js +123 -0
  7. package/dist/commonjs/agriFoodMgmtClient.js.map +1 -0
  8. package/dist/commonjs/index.d.ts +5 -0
  9. package/dist/commonjs/index.d.ts.map +1 -0
  10. package/dist/commonjs/index.js +19 -0
  11. package/dist/commonjs/index.js.map +1 -0
  12. package/dist/commonjs/lroImpl.js +37 -0
  13. package/dist/commonjs/lroImpl.js.map +1 -0
  14. package/dist/commonjs/models/index.js +91 -0
  15. package/dist/commonjs/models/index.js.map +1 -0
  16. package/dist/commonjs/models/mappers.js +1059 -0
  17. package/dist/commonjs/models/mappers.js.map +1 -0
  18. package/dist/commonjs/models/parameters.js +274 -0
  19. package/dist/commonjs/models/parameters.js.map +1 -0
  20. package/{dist-esm/src → dist/commonjs}/operations/extensions.d.ts +3 -3
  21. package/dist/commonjs/operations/extensions.d.ts.map +1 -0
  22. package/dist/commonjs/operations/extensions.js +278 -0
  23. package/dist/commonjs/operations/extensions.js.map +1 -0
  24. package/{dist-esm/src → dist/commonjs}/operations/farmBeatsExtensions.d.ts +3 -3
  25. package/dist/commonjs/operations/farmBeatsExtensions.d.ts.map +1 -0
  26. package/dist/commonjs/operations/farmBeatsExtensions.js +160 -0
  27. package/dist/commonjs/operations/farmBeatsExtensions.js.map +1 -0
  28. package/{dist-esm/src → dist/commonjs}/operations/farmBeatsModels.d.ts +3 -3
  29. package/dist/commonjs/operations/farmBeatsModels.d.ts.map +1 -0
  30. package/dist/commonjs/operations/farmBeatsModels.js +461 -0
  31. package/dist/commonjs/operations/farmBeatsModels.js.map +1 -0
  32. package/dist/commonjs/operations/index.d.ts +8 -0
  33. package/dist/commonjs/operations/index.d.ts.map +1 -0
  34. package/dist/commonjs/operations/index.js +18 -0
  35. package/dist/commonjs/operations/index.js.map +1 -0
  36. package/{dist-esm/src → dist/commonjs}/operations/locations.d.ts +3 -3
  37. package/dist/commonjs/operations/locations.d.ts.map +1 -0
  38. package/dist/commonjs/operations/locations.js +55 -0
  39. package/dist/commonjs/operations/locations.js.map +1 -0
  40. package/{dist-esm/src → dist/commonjs}/operations/operations.d.ts +3 -3
  41. package/dist/commonjs/operations/operations.d.ts.map +1 -0
  42. package/dist/commonjs/operations/operations.js +122 -0
  43. package/dist/commonjs/operations/operations.js.map +1 -0
  44. package/{dist-esm/src → dist/commonjs}/operations/privateEndpointConnections.d.ts +3 -3
  45. package/dist/commonjs/operations/privateEndpointConnections.d.ts.map +1 -0
  46. package/dist/commonjs/operations/privateEndpointConnections.js +260 -0
  47. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -0
  48. package/{dist-esm/src → dist/commonjs}/operations/privateLinkResources.d.ts +3 -3
  49. package/dist/commonjs/operations/privateLinkResources.d.ts.map +1 -0
  50. package/dist/commonjs/operations/privateLinkResources.js +129 -0
  51. package/dist/commonjs/operations/privateLinkResources.js.map +1 -0
  52. package/{dist-esm/src → dist/commonjs}/operationsInterfaces/extensions.d.ts +1 -1
  53. package/dist/commonjs/operationsInterfaces/extensions.d.ts.map +1 -0
  54. package/dist/commonjs/operationsInterfaces/extensions.js +10 -0
  55. package/dist/commonjs/operationsInterfaces/extensions.js.map +1 -0
  56. package/{dist-esm/src → dist/commonjs}/operationsInterfaces/farmBeatsExtensions.d.ts +1 -1
  57. package/dist/commonjs/operationsInterfaces/farmBeatsExtensions.d.ts.map +1 -0
  58. package/dist/commonjs/operationsInterfaces/farmBeatsExtensions.js +10 -0
  59. package/dist/commonjs/operationsInterfaces/farmBeatsExtensions.js.map +1 -0
  60. package/{dist-esm/src → dist/commonjs}/operationsInterfaces/farmBeatsModels.d.ts +1 -1
  61. package/dist/commonjs/operationsInterfaces/farmBeatsModels.d.ts.map +1 -0
  62. package/dist/commonjs/operationsInterfaces/farmBeatsModels.js +10 -0
  63. package/dist/commonjs/operationsInterfaces/farmBeatsModels.js.map +1 -0
  64. package/dist/commonjs/operationsInterfaces/index.d.ts +8 -0
  65. package/dist/commonjs/operationsInterfaces/index.d.ts.map +1 -0
  66. package/dist/commonjs/operationsInterfaces/index.js +18 -0
  67. package/dist/commonjs/operationsInterfaces/index.js.map +1 -0
  68. package/{dist-esm/src → dist/commonjs}/operationsInterfaces/locations.d.ts +1 -1
  69. package/{dist-esm/src → dist/commonjs}/operationsInterfaces/locations.d.ts.map +1 -1
  70. package/dist/commonjs/operationsInterfaces/locations.js +10 -0
  71. package/dist/commonjs/operationsInterfaces/locations.js.map +1 -0
  72. package/{dist-esm/src → dist/commonjs}/operationsInterfaces/operations.d.ts +1 -1
  73. package/{dist-esm/src → dist/commonjs}/operationsInterfaces/operations.d.ts.map +1 -1
  74. package/dist/commonjs/operationsInterfaces/operations.js +10 -0
  75. package/dist/commonjs/operationsInterfaces/operations.js.map +1 -0
  76. package/{dist-esm/src → dist/commonjs}/operationsInterfaces/privateEndpointConnections.d.ts +1 -1
  77. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  78. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js +10 -0
  79. package/dist/commonjs/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  80. package/{dist-esm/src → dist/commonjs}/operationsInterfaces/privateLinkResources.d.ts +1 -1
  81. package/dist/commonjs/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  82. package/dist/commonjs/operationsInterfaces/privateLinkResources.js +10 -0
  83. package/dist/commonjs/operationsInterfaces/privateLinkResources.js.map +1 -0
  84. package/dist/commonjs/package.json +3 -0
  85. package/dist/commonjs/pagingHelper.js +34 -0
  86. package/dist/commonjs/pagingHelper.js.map +1 -0
  87. package/{types → dist/commonjs}/tsdoc-metadata.json +11 -11
  88. package/dist/esm/agriFoodMgmtClient.d.ts +26 -0
  89. package/dist/esm/agriFoodMgmtClient.d.ts.map +1 -0
  90. package/{dist-esm/src → dist/esm}/agriFoodMgmtClient.js +36 -24
  91. package/dist/esm/agriFoodMgmtClient.js.map +1 -0
  92. package/dist/esm/index.d.ts +5 -0
  93. package/dist/esm/index.d.ts.map +1 -0
  94. package/{dist-esm/src → dist/esm}/index.js +4 -4
  95. package/dist/esm/index.js.map +1 -0
  96. package/dist/esm/lroImpl.d.ts +16 -0
  97. package/dist/esm/lroImpl.d.ts.map +1 -0
  98. package/{dist-esm/src → dist/esm}/lroImpl.js +13 -9
  99. package/dist/esm/lroImpl.js.map +1 -0
  100. package/{types/arm-agrifood.d.ts → dist/esm/models/index.d.ts} +829 -1167
  101. package/dist/esm/models/index.d.ts.map +1 -0
  102. package/dist/esm/models/index.js.map +1 -0
  103. package/dist/esm/models/mappers.d.ts +35 -0
  104. package/dist/esm/models/mappers.d.ts.map +1 -0
  105. package/{dist-esm/src → dist/esm}/models/mappers.js +81 -37
  106. package/dist/esm/models/mappers.js.map +1 -0
  107. package/dist/esm/models/parameters.d.ts +26 -0
  108. package/dist/esm/models/parameters.d.ts.map +1 -0
  109. package/{dist-esm/src → dist/esm}/models/parameters.js +1 -1
  110. package/dist/esm/models/parameters.js.map +1 -0
  111. package/dist/esm/operations/extensions.d.ts +70 -0
  112. package/dist/esm/operations/extensions.d.ts.map +1 -0
  113. package/{dist-esm/src → dist/esm}/operations/extensions.js +26 -43
  114. package/dist/esm/operations/extensions.js.map +1 -0
  115. package/dist/esm/operations/farmBeatsExtensions.d.ts +38 -0
  116. package/dist/esm/operations/farmBeatsExtensions.d.ts.map +1 -0
  117. package/{dist-esm/src → dist/esm}/operations/farmBeatsExtensions.js +26 -43
  118. package/dist/esm/operations/farmBeatsExtensions.js.map +1 -0
  119. package/dist/esm/operations/farmBeatsModels.d.ts +100 -0
  120. package/dist/esm/operations/farmBeatsModels.d.ts.map +1 -0
  121. package/{dist-esm/src → dist/esm}/operations/farmBeatsModels.js +87 -120
  122. package/dist/esm/operations/farmBeatsModels.js.map +1 -0
  123. package/dist/esm/operations/index.d.ts +8 -0
  124. package/dist/esm/operations/index.d.ts.map +1 -0
  125. package/dist/esm/operations/index.js +15 -0
  126. package/dist/esm/operations/index.js.map +1 -0
  127. package/dist/esm/operations/locations.d.ts +19 -0
  128. package/dist/esm/operations/locations.d.ts.map +1 -0
  129. package/{dist-esm/src → dist/esm}/operations/locations.js +3 -2
  130. package/dist/esm/operations/locations.js.map +1 -0
  131. package/dist/esm/operations/operations.d.ts +32 -0
  132. package/dist/esm/operations/operations.d.ts.map +1 -0
  133. package/{dist-esm/src → dist/esm}/operations/operations.js +26 -43
  134. package/dist/esm/operations/operations.js.map +1 -0
  135. package/dist/esm/operations/privateEndpointConnections.d.ts +64 -0
  136. package/dist/esm/operations/privateEndpointConnections.d.ts.map +1 -0
  137. package/{dist-esm/src → dist/esm}/operations/privateEndpointConnections.js +56 -72
  138. package/dist/esm/operations/privateEndpointConnections.js.map +1 -0
  139. package/dist/esm/operations/privateLinkResources.d.ts +38 -0
  140. package/dist/esm/operations/privateLinkResources.d.ts.map +1 -0
  141. package/{dist-esm/src → dist/esm}/operations/privateLinkResources.js +12 -29
  142. package/dist/esm/operations/privateLinkResources.js.map +1 -0
  143. package/dist/esm/operationsInterfaces/extensions.d.ts +45 -0
  144. package/dist/esm/operationsInterfaces/extensions.d.ts.map +1 -0
  145. package/dist/esm/operationsInterfaces/extensions.js.map +1 -0
  146. package/dist/esm/operationsInterfaces/farmBeatsExtensions.d.ts +17 -0
  147. package/dist/esm/operationsInterfaces/farmBeatsExtensions.d.ts.map +1 -0
  148. package/dist/esm/operationsInterfaces/farmBeatsExtensions.js.map +1 -0
  149. package/dist/esm/operationsInterfaces/farmBeatsModels.d.ts +64 -0
  150. package/dist/esm/operationsInterfaces/farmBeatsModels.d.ts.map +1 -0
  151. package/dist/esm/operationsInterfaces/farmBeatsModels.js.map +1 -0
  152. package/dist/esm/operationsInterfaces/index.d.ts +8 -0
  153. package/dist/esm/operationsInterfaces/index.d.ts.map +1 -0
  154. package/dist/esm/operationsInterfaces/index.js +15 -0
  155. package/dist/esm/operationsInterfaces/index.js.map +1 -0
  156. package/dist/esm/operationsInterfaces/locations.d.ts +11 -0
  157. package/dist/esm/operationsInterfaces/locations.d.ts.map +1 -0
  158. package/dist/esm/operationsInterfaces/locations.js.map +1 -0
  159. package/dist/esm/operationsInterfaces/operations.d.ts +11 -0
  160. package/dist/esm/operationsInterfaces/operations.d.ts.map +1 -0
  161. package/dist/esm/operationsInterfaces/operations.js.map +1 -0
  162. package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts +47 -0
  163. package/dist/esm/operationsInterfaces/privateEndpointConnections.d.ts.map +1 -0
  164. package/dist/esm/operationsInterfaces/privateEndpointConnections.js.map +1 -0
  165. package/dist/esm/operationsInterfaces/privateLinkResources.d.ts +21 -0
  166. package/dist/esm/operationsInterfaces/privateLinkResources.d.ts.map +1 -0
  167. package/dist/esm/operationsInterfaces/privateLinkResources.js.map +1 -0
  168. package/dist/esm/package.json +3 -0
  169. package/dist/esm/pagingHelper.d.ts +13 -0
  170. package/dist/esm/pagingHelper.d.ts.map +1 -0
  171. package/{dist-esm/src → dist/esm}/pagingHelper.js +2 -4
  172. package/dist/esm/pagingHelper.js.map +1 -0
  173. package/package.json +70 -73
  174. package/dist/index.js +0 -3112
  175. package/dist/index.js.map +0 -1
  176. package/dist/index.min.js +0 -1
  177. package/dist/index.min.js.map +0 -1
  178. package/dist-esm/samples-dev/extensionsCreateSample.d.ts +0 -2
  179. package/dist-esm/samples-dev/extensionsCreateSample.d.ts.map +0 -1
  180. package/dist-esm/samples-dev/extensionsCreateSample.js +0 -32
  181. package/dist-esm/samples-dev/extensionsCreateSample.js.map +0 -1
  182. package/dist-esm/samples-dev/extensionsDeleteSample.d.ts +0 -2
  183. package/dist-esm/samples-dev/extensionsDeleteSample.d.ts.map +0 -1
  184. package/dist-esm/samples-dev/extensionsDeleteSample.js +0 -32
  185. package/dist-esm/samples-dev/extensionsDeleteSample.js.map +0 -1
  186. package/dist-esm/samples-dev/extensionsGetSample.d.ts +0 -2
  187. package/dist-esm/samples-dev/extensionsGetSample.d.ts.map +0 -1
  188. package/dist-esm/samples-dev/extensionsGetSample.js +0 -32
  189. package/dist-esm/samples-dev/extensionsGetSample.js.map +0 -1
  190. package/dist-esm/samples-dev/extensionsListByFarmBeatsSample.d.ts +0 -2
  191. package/dist-esm/samples-dev/extensionsListByFarmBeatsSample.d.ts.map +0 -1
  192. package/dist-esm/samples-dev/extensionsListByFarmBeatsSample.js +0 -47
  193. package/dist-esm/samples-dev/extensionsListByFarmBeatsSample.js.map +0 -1
  194. package/dist-esm/samples-dev/extensionsUpdateSample.d.ts +0 -2
  195. package/dist-esm/samples-dev/extensionsUpdateSample.d.ts.map +0 -1
  196. package/dist-esm/samples-dev/extensionsUpdateSample.js +0 -32
  197. package/dist-esm/samples-dev/extensionsUpdateSample.js.map +0 -1
  198. package/dist-esm/samples-dev/farmBeatsExtensionsGetSample.d.ts +0 -2
  199. package/dist-esm/samples-dev/farmBeatsExtensionsGetSample.d.ts.map +0 -1
  200. package/dist-esm/samples-dev/farmBeatsExtensionsGetSample.js +0 -30
  201. package/dist-esm/samples-dev/farmBeatsExtensionsGetSample.js.map +0 -1
  202. package/dist-esm/samples-dev/farmBeatsExtensionsListSample.d.ts +0 -2
  203. package/dist-esm/samples-dev/farmBeatsExtensionsListSample.d.ts.map +0 -1
  204. package/dist-esm/samples-dev/farmBeatsExtensionsListSample.js +0 -45
  205. package/dist-esm/samples-dev/farmBeatsExtensionsListSample.js.map +0 -1
  206. package/dist-esm/samples-dev/farmBeatsModelsCreateOrUpdateSample.d.ts +0 -2
  207. package/dist-esm/samples-dev/farmBeatsModelsCreateOrUpdateSample.d.ts.map +0 -1
  208. package/dist-esm/samples-dev/farmBeatsModelsCreateOrUpdateSample.js +0 -35
  209. package/dist-esm/samples-dev/farmBeatsModelsCreateOrUpdateSample.js.map +0 -1
  210. package/dist-esm/samples-dev/farmBeatsModelsDeleteSample.d.ts +0 -2
  211. package/dist-esm/samples-dev/farmBeatsModelsDeleteSample.d.ts.map +0 -1
  212. package/dist-esm/samples-dev/farmBeatsModelsDeleteSample.js +0 -31
  213. package/dist-esm/samples-dev/farmBeatsModelsDeleteSample.js.map +0 -1
  214. package/dist-esm/samples-dev/farmBeatsModelsGetOperationResultSample.d.ts +0 -2
  215. package/dist-esm/samples-dev/farmBeatsModelsGetOperationResultSample.d.ts.map +0 -1
  216. package/dist-esm/samples-dev/farmBeatsModelsGetOperationResultSample.js +0 -32
  217. package/dist-esm/samples-dev/farmBeatsModelsGetOperationResultSample.js.map +0 -1
  218. package/dist-esm/samples-dev/farmBeatsModelsGetSample.d.ts +0 -2
  219. package/dist-esm/samples-dev/farmBeatsModelsGetSample.d.ts.map +0 -1
  220. package/dist-esm/samples-dev/farmBeatsModelsGetSample.js +0 -31
  221. package/dist-esm/samples-dev/farmBeatsModelsGetSample.js.map +0 -1
  222. package/dist-esm/samples-dev/farmBeatsModelsListByResourceGroupSample.d.ts +0 -2
  223. package/dist-esm/samples-dev/farmBeatsModelsListByResourceGroupSample.d.ts.map +0 -1
  224. package/dist-esm/samples-dev/farmBeatsModelsListByResourceGroupSample.js +0 -46
  225. package/dist-esm/samples-dev/farmBeatsModelsListByResourceGroupSample.js.map +0 -1
  226. package/dist-esm/samples-dev/farmBeatsModelsListBySubscriptionSample.d.ts +0 -2
  227. package/dist-esm/samples-dev/farmBeatsModelsListBySubscriptionSample.d.ts.map +0 -1
  228. package/dist-esm/samples-dev/farmBeatsModelsListBySubscriptionSample.js +0 -45
  229. package/dist-esm/samples-dev/farmBeatsModelsListBySubscriptionSample.js.map +0 -1
  230. package/dist-esm/samples-dev/farmBeatsModelsUpdateSample.d.ts +0 -2
  231. package/dist-esm/samples-dev/farmBeatsModelsUpdateSample.d.ts.map +0 -1
  232. package/dist-esm/samples-dev/farmBeatsModelsUpdateSample.js +0 -57
  233. package/dist-esm/samples-dev/farmBeatsModelsUpdateSample.js.map +0 -1
  234. package/dist-esm/samples-dev/locationsCheckNameAvailabilitySample.d.ts +0 -2
  235. package/dist-esm/samples-dev/locationsCheckNameAvailabilitySample.d.ts.map +0 -1
  236. package/dist-esm/samples-dev/locationsCheckNameAvailabilitySample.js +0 -53
  237. package/dist-esm/samples-dev/locationsCheckNameAvailabilitySample.js.map +0 -1
  238. package/dist-esm/samples-dev/operationsListSample.d.ts +0 -2
  239. package/dist-esm/samples-dev/operationsListSample.d.ts.map +0 -1
  240. package/dist-esm/samples-dev/operationsListSample.js +0 -45
  241. package/dist-esm/samples-dev/operationsListSample.js.map +0 -1
  242. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.d.ts +0 -2
  243. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.d.ts.map +0 -1
  244. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js +0 -38
  245. package/dist-esm/samples-dev/privateEndpointConnectionsCreateOrUpdateSample.js.map +0 -1
  246. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts +0 -2
  247. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.d.ts.map +0 -1
  248. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js +0 -32
  249. package/dist-esm/samples-dev/privateEndpointConnectionsDeleteSample.js.map +0 -1
  250. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts +0 -2
  251. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.d.ts.map +0 -1
  252. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js +0 -32
  253. package/dist-esm/samples-dev/privateEndpointConnectionsGetSample.js.map +0 -1
  254. package/dist-esm/samples-dev/privateEndpointConnectionsListByResourceSample.d.ts +0 -2
  255. package/dist-esm/samples-dev/privateEndpointConnectionsListByResourceSample.d.ts.map +0 -1
  256. package/dist-esm/samples-dev/privateEndpointConnectionsListByResourceSample.js +0 -47
  257. package/dist-esm/samples-dev/privateEndpointConnectionsListByResourceSample.js.map +0 -1
  258. package/dist-esm/samples-dev/privateLinkResourcesGetSample.d.ts +0 -2
  259. package/dist-esm/samples-dev/privateLinkResourcesGetSample.d.ts.map +0 -1
  260. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js +0 -32
  261. package/dist-esm/samples-dev/privateLinkResourcesGetSample.js.map +0 -1
  262. package/dist-esm/samples-dev/privateLinkResourcesListByResourceSample.d.ts +0 -2
  263. package/dist-esm/samples-dev/privateLinkResourcesListByResourceSample.d.ts.map +0 -1
  264. package/dist-esm/samples-dev/privateLinkResourcesListByResourceSample.js +0 -47
  265. package/dist-esm/samples-dev/privateLinkResourcesListByResourceSample.js.map +0 -1
  266. package/dist-esm/src/agriFoodMgmtClient.d.ts.map +0 -1
  267. package/dist-esm/src/agriFoodMgmtClient.js.map +0 -1
  268. package/dist-esm/src/index.d.ts +0 -6
  269. package/dist-esm/src/index.d.ts.map +0 -1
  270. package/dist-esm/src/index.js.map +0 -1
  271. package/dist-esm/src/lroImpl.js.map +0 -1
  272. package/dist-esm/src/models/index.js.map +0 -1
  273. package/dist-esm/src/models/mappers.js.map +0 -1
  274. package/dist-esm/src/models/parameters.js.map +0 -1
  275. package/dist-esm/src/operations/extensions.d.ts.map +0 -1
  276. package/dist-esm/src/operations/extensions.js.map +0 -1
  277. package/dist-esm/src/operations/farmBeatsExtensions.d.ts.map +0 -1
  278. package/dist-esm/src/operations/farmBeatsExtensions.js.map +0 -1
  279. package/dist-esm/src/operations/farmBeatsModels.d.ts.map +0 -1
  280. package/dist-esm/src/operations/farmBeatsModels.js.map +0 -1
  281. package/dist-esm/src/operations/index.d.ts +0 -8
  282. package/dist-esm/src/operations/index.d.ts.map +0 -1
  283. package/dist-esm/src/operations/index.js +0 -15
  284. package/dist-esm/src/operations/index.js.map +0 -1
  285. package/dist-esm/src/operations/locations.d.ts.map +0 -1
  286. package/dist-esm/src/operations/locations.js.map +0 -1
  287. package/dist-esm/src/operations/operations.d.ts.map +0 -1
  288. package/dist-esm/src/operations/operations.js.map +0 -1
  289. package/dist-esm/src/operations/privateEndpointConnections.d.ts.map +0 -1
  290. package/dist-esm/src/operations/privateEndpointConnections.js.map +0 -1
  291. package/dist-esm/src/operations/privateLinkResources.d.ts.map +0 -1
  292. package/dist-esm/src/operations/privateLinkResources.js.map +0 -1
  293. package/dist-esm/src/operationsInterfaces/extensions.d.ts.map +0 -1
  294. package/dist-esm/src/operationsInterfaces/extensions.js.map +0 -1
  295. package/dist-esm/src/operationsInterfaces/farmBeatsExtensions.d.ts.map +0 -1
  296. package/dist-esm/src/operationsInterfaces/farmBeatsExtensions.js.map +0 -1
  297. package/dist-esm/src/operationsInterfaces/farmBeatsModels.d.ts.map +0 -1
  298. package/dist-esm/src/operationsInterfaces/farmBeatsModels.js.map +0 -1
  299. package/dist-esm/src/operationsInterfaces/index.d.ts +0 -8
  300. package/dist-esm/src/operationsInterfaces/index.d.ts.map +0 -1
  301. package/dist-esm/src/operationsInterfaces/index.js +0 -15
  302. package/dist-esm/src/operationsInterfaces/index.js.map +0 -1
  303. package/dist-esm/src/operationsInterfaces/locations.js.map +0 -1
  304. package/dist-esm/src/operationsInterfaces/operations.js.map +0 -1
  305. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.d.ts.map +0 -1
  306. package/dist-esm/src/operationsInterfaces/privateEndpointConnections.js.map +0 -1
  307. package/dist-esm/src/operationsInterfaces/privateLinkResources.d.ts.map +0 -1
  308. package/dist-esm/src/operationsInterfaces/privateLinkResources.js.map +0 -1
  309. package/dist-esm/src/pagingHelper.js.map +0 -1
  310. package/dist-esm/test/sampleTest.d.ts +0 -2
  311. package/dist-esm/test/sampleTest.d.ts.map +0 -1
  312. package/dist-esm/test/sampleTest.js +0 -38
  313. package/dist-esm/test/sampleTest.js.map +0 -1
  314. package/src/agriFoodMgmtClient.ts +0 -168
  315. package/src/index.ts +0 -13
  316. package/src/lroImpl.ts +0 -34
  317. package/src/models/index.ts +0 -943
  318. package/src/models/mappers.ts +0 -1090
  319. package/src/models/parameters.ts +0 -305
  320. package/src/operations/extensions.ts +0 -389
  321. package/src/operations/farmBeatsExtensions.ts +0 -198
  322. package/src/operations/farmBeatsModels.ts +0 -624
  323. package/src/operations/index.ts +0 -15
  324. package/src/operations/locations.ts +0 -68
  325. package/src/operations/operations.ts +0 -150
  326. package/src/operations/privateEndpointConnections.ts +0 -369
  327. package/src/operations/privateLinkResources.ts +0 -189
  328. package/src/operationsInterfaces/extensions.ts +0 -88
  329. package/src/operationsInterfaces/farmBeatsExtensions.ts +0 -36
  330. package/src/operationsInterfaces/farmBeatsModels.ts +0 -125
  331. package/src/operationsInterfaces/index.ts +0 -15
  332. package/src/operationsInterfaces/locations.ts +0 -26
  333. package/src/operationsInterfaces/operations.ts +0 -22
  334. package/src/operationsInterfaces/privateEndpointConnections.ts +0 -89
  335. package/src/operationsInterfaces/privateLinkResources.ts +0 -44
  336. package/src/pagingHelper.ts +0 -39
  337. package/tsconfig.json +0 -33
  338. /package/{dist-esm/src → dist/commonjs}/lroImpl.d.ts +0 -0
  339. /package/{dist-esm/src → dist/commonjs}/lroImpl.d.ts.map +0 -0
  340. /package/{dist-esm/src → dist/commonjs}/models/index.d.ts +0 -0
  341. /package/{dist-esm/src → dist/commonjs}/models/index.d.ts.map +0 -0
  342. /package/{dist-esm/src → dist/commonjs}/models/mappers.d.ts +0 -0
  343. /package/{dist-esm/src → dist/commonjs}/models/mappers.d.ts.map +0 -0
  344. /package/{dist-esm/src → dist/commonjs}/models/parameters.d.ts +0 -0
  345. /package/{dist-esm/src → dist/commonjs}/models/parameters.d.ts.map +0 -0
  346. /package/{dist-esm/src → dist/commonjs}/pagingHelper.d.ts +0 -0
  347. /package/{dist-esm/src → dist/commonjs}/pagingHelper.d.ts.map +0 -0
  348. /package/{dist-esm/src → dist/esm}/models/index.js +0 -0
  349. /package/{dist-esm/src → dist/esm}/operationsInterfaces/extensions.js +0 -0
  350. /package/{dist-esm/src → dist/esm}/operationsInterfaces/farmBeatsExtensions.js +0 -0
  351. /package/{dist-esm/src → dist/esm}/operationsInterfaces/farmBeatsModels.js +0 -0
  352. /package/{dist-esm/src → dist/esm}/operationsInterfaces/locations.js +0 -0
  353. /package/{dist-esm/src → dist/esm}/operationsInterfaces/operations.js +0 -0
  354. /package/{dist-esm/src → dist/esm}/operationsInterfaces/privateEndpointConnections.js +0 -0
  355. /package/{dist-esm/src → dist/esm}/operationsInterfaces/privateLinkResources.js +0 -0
  356. /package/review/{arm-agrifood.api.md → arm-agrifood-node.api.md} +0 -0
@@ -5,16 +5,16 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await, __awaiter } from "tslib";
9
- import { setContinuationToken } from "../pagingHelper";
8
+ import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
- import * as Mappers from "../models/mappers";
12
- import * as Parameters from "../models/parameters";
10
+ import * as Mappers from "../models/mappers.js";
11
+ import * as Parameters from "../models/parameters.js";
13
12
  import { LroEngine } from "@azure/core-lro";
14
- import { LroImpl } from "../lroImpl";
13
+ import { LroImpl } from "../lroImpl.js";
15
14
  /// <reference lib="esnext.asynciterable" />
16
15
  /** Class containing FarmBeatsModels operations. */
17
16
  export class FarmBeatsModelsImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class FarmBeatsModels class.
20
20
  * @param client Reference to the service client
@@ -36,52 +36,35 @@ export class FarmBeatsModelsImpl {
36
36
  return this;
37
37
  },
38
38
  byPage: (settings) => {
39
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
39
+ if (settings?.maxPageSize) {
40
40
  throw new Error("maxPageSize is not supported by this operation.");
41
41
  }
42
42
  return this.listBySubscriptionPagingPage(options, settings);
43
43
  }
44
44
  };
45
45
  }
46
- listBySubscriptionPagingPage(options, settings) {
47
- return __asyncGenerator(this, arguments, function* listBySubscriptionPagingPage_1() {
48
- let result;
49
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
50
- if (!continuationToken) {
51
- result = yield __await(this._listBySubscription(options));
52
- let page = result.value || [];
53
- continuationToken = result.nextLink;
54
- setContinuationToken(page, continuationToken);
55
- yield yield __await(page);
56
- }
57
- while (continuationToken) {
58
- result = yield __await(this._listBySubscriptionNext(continuationToken, options));
59
- continuationToken = result.nextLink;
60
- let page = result.value || [];
61
- setContinuationToken(page, continuationToken);
62
- yield yield __await(page);
63
- }
64
- });
46
+ async *listBySubscriptionPagingPage(options, settings) {
47
+ let result;
48
+ let continuationToken = settings?.continuationToken;
49
+ if (!continuationToken) {
50
+ result = await this._listBySubscription(options);
51
+ let page = result.value || [];
52
+ continuationToken = result.nextLink;
53
+ setContinuationToken(page, continuationToken);
54
+ yield page;
55
+ }
56
+ while (continuationToken) {
57
+ result = await this._listBySubscriptionNext(continuationToken, options);
58
+ continuationToken = result.nextLink;
59
+ let page = result.value || [];
60
+ setContinuationToken(page, continuationToken);
61
+ yield page;
62
+ }
65
63
  }
66
- listBySubscriptionPagingAll(options) {
67
- return __asyncGenerator(this, arguments, function* listBySubscriptionPagingAll_1() {
68
- var _a, e_1, _b, _c;
69
- try {
70
- for (var _d = true, _e = __asyncValues(this.listBySubscriptionPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
71
- _c = _f.value;
72
- _d = false;
73
- const page = _c;
74
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
75
- }
76
- }
77
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
78
- finally {
79
- try {
80
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
81
- }
82
- finally { if (e_1) throw e_1.error; }
83
- }
84
- });
64
+ async *listBySubscriptionPagingAll(options) {
65
+ for await (const page of this.listBySubscriptionPagingPage(options)) {
66
+ yield* page;
67
+ }
85
68
  }
86
69
  /**
87
70
  * Lists the FarmBeats instances for a resource group.
@@ -98,52 +81,35 @@ export class FarmBeatsModelsImpl {
98
81
  return this;
99
82
  },
100
83
  byPage: (settings) => {
101
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
84
+ if (settings?.maxPageSize) {
102
85
  throw new Error("maxPageSize is not supported by this operation.");
103
86
  }
104
87
  return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
105
88
  }
106
89
  };
107
90
  }
108
- listByResourceGroupPagingPage(resourceGroupName, options, settings) {
109
- return __asyncGenerator(this, arguments, function* listByResourceGroupPagingPage_1() {
110
- let result;
111
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
112
- if (!continuationToken) {
113
- result = yield __await(this._listByResourceGroup(resourceGroupName, options));
114
- let page = result.value || [];
115
- continuationToken = result.nextLink;
116
- setContinuationToken(page, continuationToken);
117
- yield yield __await(page);
118
- }
119
- while (continuationToken) {
120
- result = yield __await(this._listByResourceGroupNext(resourceGroupName, continuationToken, options));
121
- continuationToken = result.nextLink;
122
- let page = result.value || [];
123
- setContinuationToken(page, continuationToken);
124
- yield yield __await(page);
125
- }
126
- });
91
+ async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
92
+ let result;
93
+ let continuationToken = settings?.continuationToken;
94
+ if (!continuationToken) {
95
+ result = await this._listByResourceGroup(resourceGroupName, options);
96
+ let page = result.value || [];
97
+ continuationToken = result.nextLink;
98
+ setContinuationToken(page, continuationToken);
99
+ yield page;
100
+ }
101
+ while (continuationToken) {
102
+ result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
103
+ continuationToken = result.nextLink;
104
+ let page = result.value || [];
105
+ setContinuationToken(page, continuationToken);
106
+ yield page;
107
+ }
127
108
  }
128
- listByResourceGroupPagingAll(resourceGroupName, options) {
129
- return __asyncGenerator(this, arguments, function* listByResourceGroupPagingAll_1() {
130
- var _a, e_2, _b, _c;
131
- try {
132
- for (var _d = true, _e = __asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
133
- _c = _f.value;
134
- _d = false;
135
- const page = _c;
136
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
137
- }
138
- }
139
- catch (e_2_1) { e_2 = { error: e_2_1 }; }
140
- finally {
141
- try {
142
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
143
- }
144
- finally { if (e_2) throw e_2.error; }
145
- }
146
- });
109
+ async *listByResourceGroupPagingAll(resourceGroupName, options) {
110
+ for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
111
+ yield* page;
112
+ }
147
113
  }
148
114
  /**
149
115
  * Get FarmBeats resource.
@@ -171,39 +137,42 @@ export class FarmBeatsModelsImpl {
171
137
  * @param body Request object.
172
138
  * @param options The options parameters.
173
139
  */
174
- beginUpdate(resourceGroupName, farmBeatsResourceName, body, options) {
175
- return __awaiter(this, void 0, void 0, function* () {
176
- const directSendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
177
- return this.client.sendOperationRequest(args, spec);
178
- });
179
- const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
180
- var _a;
181
- let currentRawResponse = undefined;
182
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
183
- const callback = (rawResponse, flatResponse) => {
184
- currentRawResponse = rawResponse;
185
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
186
- };
187
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
188
- const flatResponse = yield directSendOperation(updatedArgs, spec);
189
- return {
190
- flatResponse,
191
- rawResponse: {
192
- statusCode: currentRawResponse.status,
193
- body: currentRawResponse.parsedBody,
194
- headers: currentRawResponse.headers.toJSON()
195
- }
196
- };
197
- });
198
- const lro = new LroImpl(sendOperation, { resourceGroupName, farmBeatsResourceName, body, options }, updateOperationSpec);
199
- const poller = new LroEngine(lro, {
200
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
201
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
202
- lroResourceLocationConfig: "location"
203
- });
204
- yield poller.poll();
205
- return poller;
140
+ async beginUpdate(resourceGroupName, farmBeatsResourceName, body, options) {
141
+ const directSendOperation = async (args, spec) => {
142
+ return this.client.sendOperationRequest(args, spec);
143
+ };
144
+ const sendOperation = async (args, spec) => {
145
+ let currentRawResponse = undefined;
146
+ const providedCallback = args.options?.onResponse;
147
+ const callback = (rawResponse, flatResponse) => {
148
+ currentRawResponse = rawResponse;
149
+ providedCallback?.(rawResponse, flatResponse);
150
+ };
151
+ const updatedArgs = {
152
+ ...args,
153
+ options: {
154
+ ...args.options,
155
+ onResponse: callback
156
+ }
157
+ };
158
+ const flatResponse = await directSendOperation(updatedArgs, spec);
159
+ return {
160
+ flatResponse,
161
+ rawResponse: {
162
+ statusCode: currentRawResponse.status,
163
+ body: currentRawResponse.parsedBody,
164
+ headers: currentRawResponse.headers.toJSON()
165
+ }
166
+ };
167
+ };
168
+ const lro = new LroImpl(sendOperation, { resourceGroupName, farmBeatsResourceName, body, options }, updateOperationSpec);
169
+ const poller = new LroEngine(lro, {
170
+ resumeFrom: options?.resumeFrom,
171
+ intervalInMs: options?.updateIntervalInMs,
172
+ lroResourceLocationConfig: "location"
206
173
  });
174
+ await poller.poll();
175
+ return poller;
207
176
  }
208
177
  /**
209
178
  * Update a FarmBeats resource.
@@ -212,11 +181,9 @@ export class FarmBeatsModelsImpl {
212
181
  * @param body Request object.
213
182
  * @param options The options parameters.
214
183
  */
215
- beginUpdateAndWait(resourceGroupName, farmBeatsResourceName, body, options) {
216
- return __awaiter(this, void 0, void 0, function* () {
217
- const poller = yield this.beginUpdate(resourceGroupName, farmBeatsResourceName, body, options);
218
- return poller.pollUntilDone();
219
- });
184
+ async beginUpdateAndWait(resourceGroupName, farmBeatsResourceName, body, options) {
185
+ const poller = await this.beginUpdate(resourceGroupName, farmBeatsResourceName, body, options);
186
+ return poller.pollUntilDone();
220
187
  }
221
188
  /**
222
189
  * Delete a FarmBeats resource.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"farmBeatsModels.js","sourceRoot":"","sources":["../../../src/operations/farmBeatsModels.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAuBxC,4CAA4C;AAC5C,mDAAmD;AACnD,MAAM,OAAO,mBAAmB;IACb,MAAM,CAAqB;IAE5C;;;OAGG;IACH,YAAY,MAA0B;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,kBAAkB,CACvB,OAAyD;QAEzD,MAAM,IAAI,GAAG,IAAI,CAAC,2BAA2B,CAAC,OAAO,CAAC,CAAC;QACvD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,4BAA4B,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAC9D,CAAC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;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,SAAS;KACrB;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE;QACf,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,SAAS;KACrB;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { FarmBeatsModels } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AgriFoodMgmtClient } from \"../agriFoodMgmtClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n FarmBeats,\n FarmBeatsModelsListBySubscriptionNextOptionalParams,\n FarmBeatsModelsListBySubscriptionOptionalParams,\n FarmBeatsModelsListBySubscriptionResponse,\n FarmBeatsModelsListByResourceGroupNextOptionalParams,\n FarmBeatsModelsListByResourceGroupOptionalParams,\n FarmBeatsModelsListByResourceGroupResponse,\n FarmBeatsModelsGetOptionalParams,\n FarmBeatsModelsGetResponse,\n FarmBeatsModelsCreateOrUpdateOptionalParams,\n FarmBeatsModelsCreateOrUpdateResponse,\n FarmBeatsUpdateRequestModel,\n FarmBeatsModelsUpdateOptionalParams,\n FarmBeatsModelsUpdateResponse,\n FarmBeatsModelsDeleteOptionalParams,\n FarmBeatsModelsGetOperationResultOptionalParams,\n FarmBeatsModelsGetOperationResultResponse,\n FarmBeatsModelsListBySubscriptionNextResponse,\n FarmBeatsModelsListByResourceGroupNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing FarmBeatsModels operations. */\nexport class FarmBeatsModelsImpl implements FarmBeatsModels {\n private readonly client: AgriFoodMgmtClient;\n\n /**\n * Initialize a new instance of the class FarmBeatsModels class.\n * @param client Reference to the service client\n */\n constructor(client: AgriFoodMgmtClient) {\n this.client = client;\n }\n\n /**\n * Lists the FarmBeats instances for a subscription.\n * @param options The options parameters.\n */\n public listBySubscription(\n options?: FarmBeatsModelsListBySubscriptionOptionalParams\n ): PagedAsyncIterableIterator<FarmBeats> {\n const iter = this.listBySubscriptionPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listBySubscriptionPagingPage(options, settings);\n }\n };\n }\n\n private async *listBySubscriptionPagingPage(\n options?: FarmBeatsModelsListBySubscriptionOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<FarmBeats[]> {\n let result: FarmBeatsModelsListBySubscriptionResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listBySubscription(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listBySubscriptionNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listBySubscriptionPagingAll(\n options?: FarmBeatsModelsListBySubscriptionOptionalParams\n ): AsyncIterableIterator<FarmBeats> {\n for await (const page of this.listBySubscriptionPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists the FarmBeats instances for a resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: FarmBeatsModelsListByResourceGroupOptionalParams\n ): PagedAsyncIterableIterator<FarmBeats> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: FarmBeatsModelsListByResourceGroupOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<FarmBeats[]> {\n let result: FarmBeatsModelsListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: FarmBeatsModelsListByResourceGroupOptionalParams\n ): AsyncIterableIterator<FarmBeats> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Get FarmBeats resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param farmBeatsResourceName FarmBeats resource name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n farmBeatsResourceName: string,\n options?: FarmBeatsModelsGetOptionalParams\n ): Promise<FarmBeatsModelsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, farmBeatsResourceName, options },\n getOperationSpec\n );\n }\n\n /**\n * Create or update FarmBeats resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param farmBeatsResourceName FarmBeats resource name.\n * @param body FarmBeats resource create or update request object.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n farmBeatsResourceName: string,\n body: FarmBeats,\n options?: FarmBeatsModelsCreateOrUpdateOptionalParams\n ): Promise<FarmBeatsModelsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, farmBeatsResourceName, body, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Update a FarmBeats resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param farmBeatsResourceName FarmBeats resource name.\n * @param body Request object.\n * @param options The options parameters.\n */\n async beginUpdate(\n resourceGroupName: string,\n farmBeatsResourceName: string,\n body: FarmBeatsUpdateRequestModel,\n options?: FarmBeatsModelsUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<FarmBeatsModelsUpdateResponse>,\n FarmBeatsModelsUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<FarmBeatsModelsUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { resourceGroupName, farmBeatsResourceName, body, options },\n updateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n lroResourceLocationConfig: \"location\"\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Update a FarmBeats resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param farmBeatsResourceName FarmBeats resource name.\n * @param body Request object.\n * @param options The options parameters.\n */\n async beginUpdateAndWait(\n resourceGroupName: string,\n farmBeatsResourceName: string,\n body: FarmBeatsUpdateRequestModel,\n options?: FarmBeatsModelsUpdateOptionalParams\n ): Promise<FarmBeatsModelsUpdateResponse> {\n const poller = await this.beginUpdate(\n resourceGroupName,\n farmBeatsResourceName,\n body,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Delete a FarmBeats resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param farmBeatsResourceName FarmBeats resource name.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n farmBeatsResourceName: string,\n options?: FarmBeatsModelsDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, farmBeatsResourceName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Lists the FarmBeats instances for a subscription.\n * @param options The options parameters.\n */\n private _listBySubscription(\n options?: FarmBeatsModelsListBySubscriptionOptionalParams\n ): Promise<FarmBeatsModelsListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec\n );\n }\n\n /**\n * Lists the FarmBeats instances for a resource group.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: FarmBeatsModelsListByResourceGroupOptionalParams\n ): Promise<FarmBeatsModelsListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec\n );\n }\n\n /**\n * Get operationResults for a FarmBeats resource.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param farmBeatsResourceName FarmBeats resource name.\n * @param operationResultsId The operation results id.\n * @param options The options parameters.\n */\n getOperationResult(\n resourceGroupName: string,\n farmBeatsResourceName: string,\n operationResultsId: string,\n options?: FarmBeatsModelsGetOperationResultOptionalParams\n ): Promise<FarmBeatsModelsGetOperationResultResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, farmBeatsResourceName, operationResultsId, options },\n getOperationResultOperationSpec\n );\n }\n\n /**\n * ListBySubscriptionNext\n * @param nextLink The nextLink from the previous successful call to the ListBySubscription method.\n * @param options The options parameters.\n */\n private _listBySubscriptionNext(\n nextLink: string,\n options?: FarmBeatsModelsListBySubscriptionNextOptionalParams\n ): Promise<FarmBeatsModelsListBySubscriptionNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listBySubscriptionNextOperationSpec\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: FarmBeatsModelsListByResourceGroupNextOptionalParams\n ): Promise<FarmBeatsModelsListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FarmBeats\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.farmBeatsResourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.FarmBeats\n },\n 201: {\n bodyMapper: Mappers.FarmBeats\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.body,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.farmBeatsResourceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.FarmBeats\n },\n 201: {\n bodyMapper: Mappers.FarmBeats\n },\n 202: {\n bodyMapper: Mappers.FarmBeats\n },\n 204: {\n bodyMapper: Mappers.FarmBeats\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.body1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.farmBeatsResourceName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.farmBeatsResourceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.AgFoodPlatform/farmBeats\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FarmBeatsListResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.maxPageSize,\n Parameters.skipToken\n ],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FarmBeatsListResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.maxPageSize,\n Parameters.skipToken\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationResultOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgFoodPlatform/farmBeats/{farmBeatsResourceName}/operationResults/{operationResultsId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ArmAsyncOperation\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.farmBeatsResourceName,\n Parameters.operationResultsId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listBySubscriptionNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FarmBeatsListResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.maxPageSize,\n Parameters.skipToken\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FarmBeatsListResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [\n Parameters.apiVersion,\n Parameters.maxPageSize,\n Parameters.skipToken\n ],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -0,0 +1,8 @@
1
+ export * from "./extensions.js";
2
+ export * from "./farmBeatsExtensions.js";
3
+ export * from "./farmBeatsModels.js";
4
+ export * from "./locations.js";
5
+ export * from "./operations.js";
6
+ export * from "./privateEndpointConnections.js";
7
+ export * from "./privateLinkResources.js";
8
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAQA,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC"}
@@ -0,0 +1,15 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ export * from "./extensions.js";
9
+ export * from "./farmBeatsExtensions.js";
10
+ export * from "./farmBeatsModels.js";
11
+ export * from "./locations.js";
12
+ export * from "./operations.js";
13
+ export * from "./privateEndpointConnections.js";
14
+ export * from "./privateLinkResources.js";
15
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/operations/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport * from \"./extensions.js\";\nexport * from \"./farmBeatsExtensions.js\";\nexport * from \"./farmBeatsModels.js\";\nexport * from \"./locations.js\";\nexport * from \"./operations.js\";\nexport * from \"./privateEndpointConnections.js\";\nexport * from \"./privateLinkResources.js\";\n"]}
@@ -0,0 +1,19 @@
1
+ import { Locations } from "../operationsInterfaces/index.js";
2
+ import { AgriFoodMgmtClient } from "../agriFoodMgmtClient.js";
3
+ import { CheckNameAvailabilityRequest, LocationsCheckNameAvailabilityOptionalParams, LocationsCheckNameAvailabilityResponse } from "../models/index.js";
4
+ /** Class containing Locations operations. */
5
+ export declare class LocationsImpl implements Locations {
6
+ private readonly client;
7
+ /**
8
+ * Initialize a new instance of the class Locations class.
9
+ * @param client Reference to the service client
10
+ */
11
+ constructor(client: AgriFoodMgmtClient);
12
+ /**
13
+ * Checks the name availability of the resource with requested resource name.
14
+ * @param body NameAvailabilityRequest object.
15
+ * @param options The options parameters.
16
+ */
17
+ checkNameAvailability(body: CheckNameAvailabilityRequest, options?: LocationsCheckNameAvailabilityOptionalParams): Promise<LocationsCheckNameAvailabilityResponse>;
18
+ }
19
+ //# sourceMappingURL=locations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locations.d.ts","sourceRoot":"","sources":["../../../src/operations/locations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAC;AAI7D,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EACL,4BAA4B,EAC5B,4CAA4C,EAC5C,sCAAsC,EACvC,MAAM,oBAAoB,CAAC;AAE5B,6CAA6C;AAC7C,qBAAa,aAAc,YAAW,SAAS;IAC7C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAE5C;;;OAGG;gBACS,MAAM,EAAE,kBAAkB;IAItC;;;;OAIG;IACH,qBAAqB,CACnB,IAAI,EAAE,4BAA4B,EAClC,OAAO,CAAC,EAAE,4CAA4C,GACrD,OAAO,CAAC,sCAAsC,CAAC;CAMnD"}
@@ -6,10 +6,11 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  import * as coreClient from "@azure/core-client";
9
- import * as Mappers from "../models/mappers";
10
- import * as Parameters from "../models/parameters";
9
+ import * as Mappers from "../models/mappers.js";
10
+ import * as Parameters from "../models/parameters.js";
11
11
  /** Class containing Locations operations. */
12
12
  export class LocationsImpl {
13
+ client;
13
14
  /**
14
15
  * Initialize a new instance of the class Locations class.
15
16
  * @param client Reference to the service client
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locations.js","sourceRoot":"","sources":["../../../src/operations/locations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAQtD,6CAA6C;AAC7C,MAAM,OAAO,aAAa;IACP,MAAM,CAAqB;IAE5C;;;OAGG;IACH,YAAY,MAA0B;QACpC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,qBAAqB,CACnB,IAAkC,EAClC,OAAsD;QAEtD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,IAAI,EAAE,OAAO,EAAE,EACjB,kCAAkC,CACnC,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,kCAAkC,GAA6B;IACnE,IAAI,EACF,0FAA0F;IAC5F,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,KAAK;IAC7B,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { Locations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AgriFoodMgmtClient } from \"../agriFoodMgmtClient.js\";\nimport {\n CheckNameAvailabilityRequest,\n LocationsCheckNameAvailabilityOptionalParams,\n LocationsCheckNameAvailabilityResponse\n} from \"../models/index.js\";\n\n/** Class containing Locations operations. */\nexport class LocationsImpl implements Locations {\n private readonly client: AgriFoodMgmtClient;\n\n /**\n * Initialize a new instance of the class Locations class.\n * @param client Reference to the service client\n */\n constructor(client: AgriFoodMgmtClient) {\n this.client = client;\n }\n\n /**\n * Checks the name availability of the resource with requested resource name.\n * @param body NameAvailabilityRequest object.\n * @param options The options parameters.\n */\n checkNameAvailability(\n body: CheckNameAvailabilityRequest,\n options?: LocationsCheckNameAvailabilityOptionalParams\n ): Promise<LocationsCheckNameAvailabilityResponse> {\n return this.client.sendOperationRequest(\n { body, options },\n checkNameAvailabilityOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.AgFoodPlatform/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameAvailabilityResponse\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.body2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
@@ -0,0 +1,32 @@
1
+ import { PagedAsyncIterableIterator } from "@azure/core-paging";
2
+ import { Operations } from "../operationsInterfaces/index.js";
3
+ import { AgriFoodMgmtClient } from "../agriFoodMgmtClient.js";
4
+ import { Operation, OperationsListOptionalParams } from "../models/index.js";
5
+ /** Class containing Operations operations. */
6
+ export declare class OperationsImpl implements Operations {
7
+ private readonly client;
8
+ /**
9
+ * Initialize a new instance of the class Operations class.
10
+ * @param client Reference to the service client
11
+ */
12
+ constructor(client: AgriFoodMgmtClient);
13
+ /**
14
+ * Lists the available operations of Microsoft.AgFoodPlatform resource provider.
15
+ * @param options The options parameters.
16
+ */
17
+ list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator<Operation>;
18
+ private listPagingPage;
19
+ private listPagingAll;
20
+ /**
21
+ * Lists the available operations of Microsoft.AgFoodPlatform resource provider.
22
+ * @param options The options parameters.
23
+ */
24
+ private _list;
25
+ /**
26
+ * ListNext
27
+ * @param nextLink The nextLink from the previous successful call to the List method.
28
+ * @param options The options parameters.
29
+ */
30
+ private _listNext;
31
+ }
32
+ //# sourceMappingURL=operations.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.d.ts","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,0BAA0B,EAAgB,MAAM,oBAAoB,CAAC;AAE9E,OAAO,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAI9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC9D,OAAO,EACL,SAAS,EAET,4BAA4B,EAG7B,MAAM,oBAAoB,CAAC;AAG5B,8CAA8C;AAC9C,qBAAa,cAAe,YAAW,UAAU;IAC/C,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAqB;IAE5C;;;OAGG;gBACS,MAAM,EAAE,kBAAkB;IAItC;;;OAGG;IACI,IAAI,CACT,OAAO,CAAC,EAAE,4BAA4B,GACrC,0BAA0B,CAAC,SAAS,CAAC;YAkBzB,cAAc;YAsBd,aAAa;IAQ5B;;;OAGG;IACH,OAAO,CAAC,KAAK;IAMb;;;;OAIG;IACH,OAAO,CAAC,SAAS;CASlB"}
@@ -5,14 +5,14 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
- import { setContinuationToken } from "../pagingHelper";
8
+ import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
- import * as Mappers from "../models/mappers";
12
- import * as Parameters from "../models/parameters";
10
+ import * as Mappers from "../models/mappers.js";
11
+ import * as Parameters from "../models/parameters.js";
13
12
  /// <reference lib="esnext.asynciterable" />
14
13
  /** Class containing Operations operations. */
15
14
  export class OperationsImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class Operations class.
18
18
  * @param client Reference to the service client
@@ -34,52 +34,35 @@ export class OperationsImpl {
34
34
  return this;
35
35
  },
36
36
  byPage: (settings) => {
37
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
37
+ if (settings?.maxPageSize) {
38
38
  throw new Error("maxPageSize is not supported by this operation.");
39
39
  }
40
40
  return this.listPagingPage(options, settings);
41
41
  }
42
42
  };
43
43
  }
44
- listPagingPage(options, settings) {
45
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
46
- let result;
47
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
48
- if (!continuationToken) {
49
- result = yield __await(this._list(options));
50
- let page = result.value || [];
51
- continuationToken = result.nextLink;
52
- setContinuationToken(page, continuationToken);
53
- yield yield __await(page);
54
- }
55
- while (continuationToken) {
56
- result = yield __await(this._listNext(continuationToken, options));
57
- continuationToken = result.nextLink;
58
- let page = result.value || [];
59
- setContinuationToken(page, continuationToken);
60
- yield yield __await(page);
61
- }
62
- });
44
+ async *listPagingPage(options, settings) {
45
+ let result;
46
+ let continuationToken = settings?.continuationToken;
47
+ if (!continuationToken) {
48
+ result = await this._list(options);
49
+ let page = result.value || [];
50
+ continuationToken = result.nextLink;
51
+ setContinuationToken(page, continuationToken);
52
+ yield page;
53
+ }
54
+ while (continuationToken) {
55
+ result = await this._listNext(continuationToken, options);
56
+ continuationToken = result.nextLink;
57
+ let page = result.value || [];
58
+ setContinuationToken(page, continuationToken);
59
+ yield page;
60
+ }
63
61
  }
64
- listPagingAll(options) {
65
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
66
- var _a, e_1, _b, _c;
67
- try {
68
- for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
69
- _c = _f.value;
70
- _d = false;
71
- const page = _c;
72
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
73
- }
74
- }
75
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
76
- finally {
77
- try {
78
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
79
- }
80
- finally { if (e_1) throw e_1.error; }
81
- }
82
- });
62
+ async *listPagingAll(options) {
63
+ for await (const page of this.listPagingPage(options)) {
64
+ yield* page;
65
+ }
83
66
  }
84
67
  /**
85
68
  * Lists the available operations of Microsoft.AgFoodPlatform resource provider.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"operations.js","sourceRoot":"","sources":["../../../src/operations/operations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,8CAA8C;AAC9C,MAAM,OAAO,cAAc;IACR,MAAM,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;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Operations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport { AgriFoodMgmtClient } from \"../agriFoodMgmtClient.js\";\nimport {\n Operation,\n OperationsListNextOptionalParams,\n OperationsListOptionalParams,\n OperationsListResponse,\n OperationsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Operations operations. */\nexport class OperationsImpl implements Operations {\n private readonly client: AgriFoodMgmtClient;\n\n /**\n * Initialize a new instance of the class Operations class.\n * @param client Reference to the service client\n */\n constructor(client: AgriFoodMgmtClient) {\n this.client = client;\n }\n\n /**\n * Lists the available operations of Microsoft.AgFoodPlatform resource provider.\n * @param options The options parameters.\n */\n public list(\n options?: OperationsListOptionalParams\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: OperationsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Operation[]> {\n let result: OperationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: OperationsListOptionalParams\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists the available operations of Microsoft.AgFoodPlatform resource provider.\n * @param options The options parameters.\n */\n private _list(\n options?: OperationsListOptionalParams\n ): Promise<OperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: OperationsListNextOptionalParams\n ): Promise<OperationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.AgFoodPlatform/operations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}