@azure/arm-automation 11.0.0-alpha.20250718.1 → 11.0.0-alpha.20250721.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (395) hide show
  1. package/dist/browser/automationClient.js +57 -5
  2. package/dist/browser/automationClient.js.map +1 -1
  3. package/dist/browser/lroImpl.js +11 -3
  4. package/dist/browser/lroImpl.js.map +1 -1
  5. package/dist/browser/models/mappers.js +447 -212
  6. package/dist/browser/models/mappers.js.map +1 -1
  7. package/dist/browser/operations/activityOperations.js +23 -40
  8. package/dist/browser/operations/activityOperations.js.map +1 -1
  9. package/dist/browser/operations/agentRegistrationInformation.js +1 -0
  10. package/dist/browser/operations/agentRegistrationInformation.js.map +1 -1
  11. package/dist/browser/operations/automationAccountOperations.js +45 -79
  12. package/dist/browser/operations/automationAccountOperations.js.map +1 -1
  13. package/dist/browser/operations/certificateOperations.js +23 -40
  14. package/dist/browser/operations/certificateOperations.js.map +1 -1
  15. package/dist/browser/operations/connectionOperations.js +23 -40
  16. package/dist/browser/operations/connectionOperations.js.map +1 -1
  17. package/dist/browser/operations/connectionTypeOperations.js +23 -40
  18. package/dist/browser/operations/connectionTypeOperations.js.map +1 -1
  19. package/dist/browser/operations/credentialOperations.js +23 -40
  20. package/dist/browser/operations/credentialOperations.js.map +1 -1
  21. package/dist/browser/operations/deletedAutomationAccounts.js +1 -0
  22. package/dist/browser/operations/deletedAutomationAccounts.js.map +1 -1
  23. package/dist/browser/operations/dscCompilationJobOperations.js +34 -46
  24. package/dist/browser/operations/dscCompilationJobOperations.js.map +1 -1
  25. package/dist/browser/operations/dscCompilationJobStream.js +1 -0
  26. package/dist/browser/operations/dscCompilationJobStream.js.map +1 -1
  27. package/dist/browser/operations/dscConfigurationOperations.js +23 -40
  28. package/dist/browser/operations/dscConfigurationOperations.js.map +1 -1
  29. package/dist/browser/operations/dscNodeConfigurationOperations.js +34 -46
  30. package/dist/browser/operations/dscNodeConfigurationOperations.js.map +1 -1
  31. package/dist/browser/operations/dscNodeOperations.js +23 -40
  32. package/dist/browser/operations/dscNodeOperations.js.map +1 -1
  33. package/dist/browser/operations/fields.js +10 -27
  34. package/dist/browser/operations/fields.js.map +1 -1
  35. package/dist/browser/operations/hybridRunbookWorkerGroupOperations.js +23 -40
  36. package/dist/browser/operations/hybridRunbookWorkerGroupOperations.js.map +1 -1
  37. package/dist/browser/operations/hybridRunbookWorkers.js +23 -40
  38. package/dist/browser/operations/hybridRunbookWorkers.js.map +1 -1
  39. package/dist/browser/operations/jobOperations.js +23 -40
  40. package/dist/browser/operations/jobOperations.js.map +1 -1
  41. package/dist/browser/operations/jobScheduleOperations.js +23 -40
  42. package/dist/browser/operations/jobScheduleOperations.js.map +1 -1
  43. package/dist/browser/operations/jobStreamOperations.js +23 -40
  44. package/dist/browser/operations/jobStreamOperations.js.map +1 -1
  45. package/dist/browser/operations/keys.js +1 -0
  46. package/dist/browser/operations/keys.js.map +1 -1
  47. package/dist/browser/operations/linkedWorkspaceOperations.js +1 -0
  48. package/dist/browser/operations/linkedWorkspaceOperations.js.map +1 -1
  49. package/dist/browser/operations/moduleOperations.js +23 -40
  50. package/dist/browser/operations/moduleOperations.js.map +1 -1
  51. package/dist/browser/operations/nodeCountInformation.js +1 -0
  52. package/dist/browser/operations/nodeCountInformation.js.map +1 -1
  53. package/dist/browser/operations/nodeReports.js +23 -40
  54. package/dist/browser/operations/nodeReports.js.map +1 -1
  55. package/dist/browser/operations/objectDataTypes.js +19 -53
  56. package/dist/browser/operations/objectDataTypes.js.map +1 -1
  57. package/dist/browser/operations/operations.js +10 -27
  58. package/dist/browser/operations/operations.js.map +1 -1
  59. package/dist/browser/operations/privateEndpointConnections.js +32 -39
  60. package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
  61. package/dist/browser/operations/privateLinkResources.js +10 -27
  62. package/dist/browser/operations/privateLinkResources.js.map +1 -1
  63. package/dist/browser/operations/python2Package.js +23 -40
  64. package/dist/browser/operations/python2Package.js.map +1 -1
  65. package/dist/browser/operations/runbookDraftOperations.js +12 -6
  66. package/dist/browser/operations/runbookDraftOperations.js.map +1 -1
  67. package/dist/browser/operations/runbookOperations.js +34 -46
  68. package/dist/browser/operations/runbookOperations.js.map +1 -1
  69. package/dist/browser/operations/scheduleOperations.js +23 -40
  70. package/dist/browser/operations/scheduleOperations.js.map +1 -1
  71. package/dist/browser/operations/softwareUpdateConfigurationMachineRuns.js +1 -0
  72. package/dist/browser/operations/softwareUpdateConfigurationMachineRuns.js.map +1 -1
  73. package/dist/browser/operations/softwareUpdateConfigurationRuns.js +1 -0
  74. package/dist/browser/operations/softwareUpdateConfigurationRuns.js.map +1 -1
  75. package/dist/browser/operations/softwareUpdateConfigurations.js +1 -0
  76. package/dist/browser/operations/softwareUpdateConfigurations.js.map +1 -1
  77. package/dist/browser/operations/sourceControlOperations.js +23 -40
  78. package/dist/browser/operations/sourceControlOperations.js.map +1 -1
  79. package/dist/browser/operations/sourceControlSyncJobOperations.js +23 -40
  80. package/dist/browser/operations/sourceControlSyncJobOperations.js.map +1 -1
  81. package/dist/browser/operations/sourceControlSyncJobStreams.js +23 -40
  82. package/dist/browser/operations/sourceControlSyncJobStreams.js.map +1 -1
  83. package/dist/browser/operations/statisticsOperations.js +10 -27
  84. package/dist/browser/operations/statisticsOperations.js.map +1 -1
  85. package/dist/browser/operations/testJobOperations.js +1 -0
  86. package/dist/browser/operations/testJobOperations.js.map +1 -1
  87. package/dist/browser/operations/testJobStreams.js +23 -40
  88. package/dist/browser/operations/testJobStreams.js.map +1 -1
  89. package/dist/browser/operations/usages.js +10 -27
  90. package/dist/browser/operations/usages.js.map +1 -1
  91. package/dist/browser/operations/variableOperations.js +23 -40
  92. package/dist/browser/operations/variableOperations.js.map +1 -1
  93. package/dist/browser/operations/watcherOperations.js +23 -40
  94. package/dist/browser/operations/watcherOperations.js.map +1 -1
  95. package/dist/browser/operations/webhookOperations.js +23 -40
  96. package/dist/browser/operations/webhookOperations.js.map +1 -1
  97. package/dist/browser/pagingHelper.js +2 -4
  98. package/dist/browser/pagingHelper.js.map +1 -1
  99. package/dist/commonjs/automationClient.js +57 -5
  100. package/dist/commonjs/automationClient.js.map +1 -1
  101. package/dist/commonjs/lroImpl.js +11 -3
  102. package/dist/commonjs/lroImpl.js.map +1 -1
  103. package/dist/commonjs/models/mappers.js +447 -212
  104. package/dist/commonjs/models/mappers.js.map +1 -1
  105. package/dist/commonjs/operations/activityOperations.js +23 -39
  106. package/dist/commonjs/operations/activityOperations.js.map +1 -1
  107. package/dist/commonjs/operations/agentRegistrationInformation.js +1 -0
  108. package/dist/commonjs/operations/agentRegistrationInformation.js.map +1 -1
  109. package/dist/commonjs/operations/automationAccountOperations.js +45 -78
  110. package/dist/commonjs/operations/automationAccountOperations.js.map +1 -1
  111. package/dist/commonjs/operations/certificateOperations.js +23 -39
  112. package/dist/commonjs/operations/certificateOperations.js.map +1 -1
  113. package/dist/commonjs/operations/connectionOperations.js +23 -39
  114. package/dist/commonjs/operations/connectionOperations.js.map +1 -1
  115. package/dist/commonjs/operations/connectionTypeOperations.js +23 -39
  116. package/dist/commonjs/operations/connectionTypeOperations.js.map +1 -1
  117. package/dist/commonjs/operations/credentialOperations.js +23 -39
  118. package/dist/commonjs/operations/credentialOperations.js.map +1 -1
  119. package/dist/commonjs/operations/deletedAutomationAccounts.js +1 -0
  120. package/dist/commonjs/operations/deletedAutomationAccounts.js.map +1 -1
  121. package/dist/commonjs/operations/dscCompilationJobOperations.js +34 -45
  122. package/dist/commonjs/operations/dscCompilationJobOperations.js.map +1 -1
  123. package/dist/commonjs/operations/dscCompilationJobStream.js +1 -0
  124. package/dist/commonjs/operations/dscCompilationJobStream.js.map +1 -1
  125. package/dist/commonjs/operations/dscConfigurationOperations.js +23 -39
  126. package/dist/commonjs/operations/dscConfigurationOperations.js.map +1 -1
  127. package/dist/commonjs/operations/dscNodeConfigurationOperations.js +34 -45
  128. package/dist/commonjs/operations/dscNodeConfigurationOperations.js.map +1 -1
  129. package/dist/commonjs/operations/dscNodeOperations.js +23 -39
  130. package/dist/commonjs/operations/dscNodeOperations.js.map +1 -1
  131. package/dist/commonjs/operations/fields.js +10 -26
  132. package/dist/commonjs/operations/fields.js.map +1 -1
  133. package/dist/commonjs/operations/hybridRunbookWorkerGroupOperations.js +23 -39
  134. package/dist/commonjs/operations/hybridRunbookWorkerGroupOperations.js.map +1 -1
  135. package/dist/commonjs/operations/hybridRunbookWorkers.js +23 -39
  136. package/dist/commonjs/operations/hybridRunbookWorkers.js.map +1 -1
  137. package/dist/commonjs/operations/jobOperations.js +23 -39
  138. package/dist/commonjs/operations/jobOperations.js.map +1 -1
  139. package/dist/commonjs/operations/jobScheduleOperations.js +23 -39
  140. package/dist/commonjs/operations/jobScheduleOperations.js.map +1 -1
  141. package/dist/commonjs/operations/jobStreamOperations.js +23 -39
  142. package/dist/commonjs/operations/jobStreamOperations.js.map +1 -1
  143. package/dist/commonjs/operations/keys.js +1 -0
  144. package/dist/commonjs/operations/keys.js.map +1 -1
  145. package/dist/commonjs/operations/linkedWorkspaceOperations.js +1 -0
  146. package/dist/commonjs/operations/linkedWorkspaceOperations.js.map +1 -1
  147. package/dist/commonjs/operations/moduleOperations.js +23 -39
  148. package/dist/commonjs/operations/moduleOperations.js.map +1 -1
  149. package/dist/commonjs/operations/nodeCountInformation.js +1 -0
  150. package/dist/commonjs/operations/nodeCountInformation.js.map +1 -1
  151. package/dist/commonjs/operations/nodeReports.js +23 -39
  152. package/dist/commonjs/operations/nodeReports.js.map +1 -1
  153. package/dist/commonjs/operations/objectDataTypes.js +19 -52
  154. package/dist/commonjs/operations/objectDataTypes.js.map +1 -1
  155. package/dist/commonjs/operations/operations.js +10 -26
  156. package/dist/commonjs/operations/operations.js.map +1 -1
  157. package/dist/commonjs/operations/privateEndpointConnections.js +32 -38
  158. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
  159. package/dist/commonjs/operations/privateLinkResources.js +10 -26
  160. package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
  161. package/dist/commonjs/operations/python2Package.js +23 -39
  162. package/dist/commonjs/operations/python2Package.js.map +1 -1
  163. package/dist/commonjs/operations/runbookDraftOperations.js +12 -6
  164. package/dist/commonjs/operations/runbookDraftOperations.js.map +1 -1
  165. package/dist/commonjs/operations/runbookOperations.js +34 -45
  166. package/dist/commonjs/operations/runbookOperations.js.map +1 -1
  167. package/dist/commonjs/operations/scheduleOperations.js +23 -39
  168. package/dist/commonjs/operations/scheduleOperations.js.map +1 -1
  169. package/dist/commonjs/operations/softwareUpdateConfigurationMachineRuns.js +1 -0
  170. package/dist/commonjs/operations/softwareUpdateConfigurationMachineRuns.js.map +1 -1
  171. package/dist/commonjs/operations/softwareUpdateConfigurationRuns.js +1 -0
  172. package/dist/commonjs/operations/softwareUpdateConfigurationRuns.js.map +1 -1
  173. package/dist/commonjs/operations/softwareUpdateConfigurations.js +1 -0
  174. package/dist/commonjs/operations/softwareUpdateConfigurations.js.map +1 -1
  175. package/dist/commonjs/operations/sourceControlOperations.js +23 -39
  176. package/dist/commonjs/operations/sourceControlOperations.js.map +1 -1
  177. package/dist/commonjs/operations/sourceControlSyncJobOperations.js +23 -39
  178. package/dist/commonjs/operations/sourceControlSyncJobOperations.js.map +1 -1
  179. package/dist/commonjs/operations/sourceControlSyncJobStreams.js +23 -39
  180. package/dist/commonjs/operations/sourceControlSyncJobStreams.js.map +1 -1
  181. package/dist/commonjs/operations/statisticsOperations.js +10 -26
  182. package/dist/commonjs/operations/statisticsOperations.js.map +1 -1
  183. package/dist/commonjs/operations/testJobOperations.js +1 -0
  184. package/dist/commonjs/operations/testJobOperations.js.map +1 -1
  185. package/dist/commonjs/operations/testJobStreams.js +23 -39
  186. package/dist/commonjs/operations/testJobStreams.js.map +1 -1
  187. package/dist/commonjs/operations/usages.js +10 -26
  188. package/dist/commonjs/operations/usages.js.map +1 -1
  189. package/dist/commonjs/operations/variableOperations.js +23 -39
  190. package/dist/commonjs/operations/variableOperations.js.map +1 -1
  191. package/dist/commonjs/operations/watcherOperations.js +23 -39
  192. package/dist/commonjs/operations/watcherOperations.js.map +1 -1
  193. package/dist/commonjs/operations/webhookOperations.js +23 -39
  194. package/dist/commonjs/operations/webhookOperations.js.map +1 -1
  195. package/dist/commonjs/pagingHelper.js +2 -4
  196. package/dist/commonjs/pagingHelper.js.map +1 -1
  197. package/dist/commonjs/tsdoc-metadata.json +11 -11
  198. package/dist/esm/automationClient.js +57 -5
  199. package/dist/esm/automationClient.js.map +1 -1
  200. package/dist/esm/lroImpl.js +11 -3
  201. package/dist/esm/lroImpl.js.map +1 -1
  202. package/dist/esm/models/mappers.js +447 -212
  203. package/dist/esm/models/mappers.js.map +1 -1
  204. package/dist/esm/operations/activityOperations.js +23 -40
  205. package/dist/esm/operations/activityOperations.js.map +1 -1
  206. package/dist/esm/operations/agentRegistrationInformation.js +1 -0
  207. package/dist/esm/operations/agentRegistrationInformation.js.map +1 -1
  208. package/dist/esm/operations/automationAccountOperations.js +45 -79
  209. package/dist/esm/operations/automationAccountOperations.js.map +1 -1
  210. package/dist/esm/operations/certificateOperations.js +23 -40
  211. package/dist/esm/operations/certificateOperations.js.map +1 -1
  212. package/dist/esm/operations/connectionOperations.js +23 -40
  213. package/dist/esm/operations/connectionOperations.js.map +1 -1
  214. package/dist/esm/operations/connectionTypeOperations.js +23 -40
  215. package/dist/esm/operations/connectionTypeOperations.js.map +1 -1
  216. package/dist/esm/operations/credentialOperations.js +23 -40
  217. package/dist/esm/operations/credentialOperations.js.map +1 -1
  218. package/dist/esm/operations/deletedAutomationAccounts.js +1 -0
  219. package/dist/esm/operations/deletedAutomationAccounts.js.map +1 -1
  220. package/dist/esm/operations/dscCompilationJobOperations.js +34 -46
  221. package/dist/esm/operations/dscCompilationJobOperations.js.map +1 -1
  222. package/dist/esm/operations/dscCompilationJobStream.js +1 -0
  223. package/dist/esm/operations/dscCompilationJobStream.js.map +1 -1
  224. package/dist/esm/operations/dscConfigurationOperations.js +23 -40
  225. package/dist/esm/operations/dscConfigurationOperations.js.map +1 -1
  226. package/dist/esm/operations/dscNodeConfigurationOperations.js +34 -46
  227. package/dist/esm/operations/dscNodeConfigurationOperations.js.map +1 -1
  228. package/dist/esm/operations/dscNodeOperations.js +23 -40
  229. package/dist/esm/operations/dscNodeOperations.js.map +1 -1
  230. package/dist/esm/operations/fields.js +10 -27
  231. package/dist/esm/operations/fields.js.map +1 -1
  232. package/dist/esm/operations/hybridRunbookWorkerGroupOperations.js +23 -40
  233. package/dist/esm/operations/hybridRunbookWorkerGroupOperations.js.map +1 -1
  234. package/dist/esm/operations/hybridRunbookWorkers.js +23 -40
  235. package/dist/esm/operations/hybridRunbookWorkers.js.map +1 -1
  236. package/dist/esm/operations/jobOperations.js +23 -40
  237. package/dist/esm/operations/jobOperations.js.map +1 -1
  238. package/dist/esm/operations/jobScheduleOperations.js +23 -40
  239. package/dist/esm/operations/jobScheduleOperations.js.map +1 -1
  240. package/dist/esm/operations/jobStreamOperations.js +23 -40
  241. package/dist/esm/operations/jobStreamOperations.js.map +1 -1
  242. package/dist/esm/operations/keys.js +1 -0
  243. package/dist/esm/operations/keys.js.map +1 -1
  244. package/dist/esm/operations/linkedWorkspaceOperations.js +1 -0
  245. package/dist/esm/operations/linkedWorkspaceOperations.js.map +1 -1
  246. package/dist/esm/operations/moduleOperations.js +23 -40
  247. package/dist/esm/operations/moduleOperations.js.map +1 -1
  248. package/dist/esm/operations/nodeCountInformation.js +1 -0
  249. package/dist/esm/operations/nodeCountInformation.js.map +1 -1
  250. package/dist/esm/operations/nodeReports.js +23 -40
  251. package/dist/esm/operations/nodeReports.js.map +1 -1
  252. package/dist/esm/operations/objectDataTypes.js +19 -53
  253. package/dist/esm/operations/objectDataTypes.js.map +1 -1
  254. package/dist/esm/operations/operations.js +10 -27
  255. package/dist/esm/operations/operations.js.map +1 -1
  256. package/dist/esm/operations/privateEndpointConnections.js +32 -39
  257. package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
  258. package/dist/esm/operations/privateLinkResources.js +10 -27
  259. package/dist/esm/operations/privateLinkResources.js.map +1 -1
  260. package/dist/esm/operations/python2Package.js +23 -40
  261. package/dist/esm/operations/python2Package.js.map +1 -1
  262. package/dist/esm/operations/runbookDraftOperations.js +12 -6
  263. package/dist/esm/operations/runbookDraftOperations.js.map +1 -1
  264. package/dist/esm/operations/runbookOperations.js +34 -46
  265. package/dist/esm/operations/runbookOperations.js.map +1 -1
  266. package/dist/esm/operations/scheduleOperations.js +23 -40
  267. package/dist/esm/operations/scheduleOperations.js.map +1 -1
  268. package/dist/esm/operations/softwareUpdateConfigurationMachineRuns.js +1 -0
  269. package/dist/esm/operations/softwareUpdateConfigurationMachineRuns.js.map +1 -1
  270. package/dist/esm/operations/softwareUpdateConfigurationRuns.js +1 -0
  271. package/dist/esm/operations/softwareUpdateConfigurationRuns.js.map +1 -1
  272. package/dist/esm/operations/softwareUpdateConfigurations.js +1 -0
  273. package/dist/esm/operations/softwareUpdateConfigurations.js.map +1 -1
  274. package/dist/esm/operations/sourceControlOperations.js +23 -40
  275. package/dist/esm/operations/sourceControlOperations.js.map +1 -1
  276. package/dist/esm/operations/sourceControlSyncJobOperations.js +23 -40
  277. package/dist/esm/operations/sourceControlSyncJobOperations.js.map +1 -1
  278. package/dist/esm/operations/sourceControlSyncJobStreams.js +23 -40
  279. package/dist/esm/operations/sourceControlSyncJobStreams.js.map +1 -1
  280. package/dist/esm/operations/statisticsOperations.js +10 -27
  281. package/dist/esm/operations/statisticsOperations.js.map +1 -1
  282. package/dist/esm/operations/testJobOperations.js +1 -0
  283. package/dist/esm/operations/testJobOperations.js.map +1 -1
  284. package/dist/esm/operations/testJobStreams.js +23 -40
  285. package/dist/esm/operations/testJobStreams.js.map +1 -1
  286. package/dist/esm/operations/usages.js +10 -27
  287. package/dist/esm/operations/usages.js.map +1 -1
  288. package/dist/esm/operations/variableOperations.js +23 -40
  289. package/dist/esm/operations/variableOperations.js.map +1 -1
  290. package/dist/esm/operations/watcherOperations.js +23 -40
  291. package/dist/esm/operations/watcherOperations.js.map +1 -1
  292. package/dist/esm/operations/webhookOperations.js +23 -40
  293. package/dist/esm/operations/webhookOperations.js.map +1 -1
  294. package/dist/esm/pagingHelper.js +2 -4
  295. package/dist/esm/pagingHelper.js.map +1 -1
  296. package/dist/react-native/automationClient.js +57 -5
  297. package/dist/react-native/automationClient.js.map +1 -1
  298. package/dist/react-native/lroImpl.js +11 -3
  299. package/dist/react-native/lroImpl.js.map +1 -1
  300. package/dist/react-native/models/mappers.js +447 -212
  301. package/dist/react-native/models/mappers.js.map +1 -1
  302. package/dist/react-native/operations/activityOperations.js +23 -40
  303. package/dist/react-native/operations/activityOperations.js.map +1 -1
  304. package/dist/react-native/operations/agentRegistrationInformation.js +1 -0
  305. package/dist/react-native/operations/agentRegistrationInformation.js.map +1 -1
  306. package/dist/react-native/operations/automationAccountOperations.js +45 -79
  307. package/dist/react-native/operations/automationAccountOperations.js.map +1 -1
  308. package/dist/react-native/operations/certificateOperations.js +23 -40
  309. package/dist/react-native/operations/certificateOperations.js.map +1 -1
  310. package/dist/react-native/operations/connectionOperations.js +23 -40
  311. package/dist/react-native/operations/connectionOperations.js.map +1 -1
  312. package/dist/react-native/operations/connectionTypeOperations.js +23 -40
  313. package/dist/react-native/operations/connectionTypeOperations.js.map +1 -1
  314. package/dist/react-native/operations/credentialOperations.js +23 -40
  315. package/dist/react-native/operations/credentialOperations.js.map +1 -1
  316. package/dist/react-native/operations/deletedAutomationAccounts.js +1 -0
  317. package/dist/react-native/operations/deletedAutomationAccounts.js.map +1 -1
  318. package/dist/react-native/operations/dscCompilationJobOperations.js +34 -46
  319. package/dist/react-native/operations/dscCompilationJobOperations.js.map +1 -1
  320. package/dist/react-native/operations/dscCompilationJobStream.js +1 -0
  321. package/dist/react-native/operations/dscCompilationJobStream.js.map +1 -1
  322. package/dist/react-native/operations/dscConfigurationOperations.js +23 -40
  323. package/dist/react-native/operations/dscConfigurationOperations.js.map +1 -1
  324. package/dist/react-native/operations/dscNodeConfigurationOperations.js +34 -46
  325. package/dist/react-native/operations/dscNodeConfigurationOperations.js.map +1 -1
  326. package/dist/react-native/operations/dscNodeOperations.js +23 -40
  327. package/dist/react-native/operations/dscNodeOperations.js.map +1 -1
  328. package/dist/react-native/operations/fields.js +10 -27
  329. package/dist/react-native/operations/fields.js.map +1 -1
  330. package/dist/react-native/operations/hybridRunbookWorkerGroupOperations.js +23 -40
  331. package/dist/react-native/operations/hybridRunbookWorkerGroupOperations.js.map +1 -1
  332. package/dist/react-native/operations/hybridRunbookWorkers.js +23 -40
  333. package/dist/react-native/operations/hybridRunbookWorkers.js.map +1 -1
  334. package/dist/react-native/operations/jobOperations.js +23 -40
  335. package/dist/react-native/operations/jobOperations.js.map +1 -1
  336. package/dist/react-native/operations/jobScheduleOperations.js +23 -40
  337. package/dist/react-native/operations/jobScheduleOperations.js.map +1 -1
  338. package/dist/react-native/operations/jobStreamOperations.js +23 -40
  339. package/dist/react-native/operations/jobStreamOperations.js.map +1 -1
  340. package/dist/react-native/operations/keys.js +1 -0
  341. package/dist/react-native/operations/keys.js.map +1 -1
  342. package/dist/react-native/operations/linkedWorkspaceOperations.js +1 -0
  343. package/dist/react-native/operations/linkedWorkspaceOperations.js.map +1 -1
  344. package/dist/react-native/operations/moduleOperations.js +23 -40
  345. package/dist/react-native/operations/moduleOperations.js.map +1 -1
  346. package/dist/react-native/operations/nodeCountInformation.js +1 -0
  347. package/dist/react-native/operations/nodeCountInformation.js.map +1 -1
  348. package/dist/react-native/operations/nodeReports.js +23 -40
  349. package/dist/react-native/operations/nodeReports.js.map +1 -1
  350. package/dist/react-native/operations/objectDataTypes.js +19 -53
  351. package/dist/react-native/operations/objectDataTypes.js.map +1 -1
  352. package/dist/react-native/operations/operations.js +10 -27
  353. package/dist/react-native/operations/operations.js.map +1 -1
  354. package/dist/react-native/operations/privateEndpointConnections.js +32 -39
  355. package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
  356. package/dist/react-native/operations/privateLinkResources.js +10 -27
  357. package/dist/react-native/operations/privateLinkResources.js.map +1 -1
  358. package/dist/react-native/operations/python2Package.js +23 -40
  359. package/dist/react-native/operations/python2Package.js.map +1 -1
  360. package/dist/react-native/operations/runbookDraftOperations.js +12 -6
  361. package/dist/react-native/operations/runbookDraftOperations.js.map +1 -1
  362. package/dist/react-native/operations/runbookOperations.js +34 -46
  363. package/dist/react-native/operations/runbookOperations.js.map +1 -1
  364. package/dist/react-native/operations/scheduleOperations.js +23 -40
  365. package/dist/react-native/operations/scheduleOperations.js.map +1 -1
  366. package/dist/react-native/operations/softwareUpdateConfigurationMachineRuns.js +1 -0
  367. package/dist/react-native/operations/softwareUpdateConfigurationMachineRuns.js.map +1 -1
  368. package/dist/react-native/operations/softwareUpdateConfigurationRuns.js +1 -0
  369. package/dist/react-native/operations/softwareUpdateConfigurationRuns.js.map +1 -1
  370. package/dist/react-native/operations/softwareUpdateConfigurations.js +1 -0
  371. package/dist/react-native/operations/softwareUpdateConfigurations.js.map +1 -1
  372. package/dist/react-native/operations/sourceControlOperations.js +23 -40
  373. package/dist/react-native/operations/sourceControlOperations.js.map +1 -1
  374. package/dist/react-native/operations/sourceControlSyncJobOperations.js +23 -40
  375. package/dist/react-native/operations/sourceControlSyncJobOperations.js.map +1 -1
  376. package/dist/react-native/operations/sourceControlSyncJobStreams.js +23 -40
  377. package/dist/react-native/operations/sourceControlSyncJobStreams.js.map +1 -1
  378. package/dist/react-native/operations/statisticsOperations.js +10 -27
  379. package/dist/react-native/operations/statisticsOperations.js.map +1 -1
  380. package/dist/react-native/operations/testJobOperations.js +1 -0
  381. package/dist/react-native/operations/testJobOperations.js.map +1 -1
  382. package/dist/react-native/operations/testJobStreams.js +23 -40
  383. package/dist/react-native/operations/testJobStreams.js.map +1 -1
  384. package/dist/react-native/operations/usages.js +10 -27
  385. package/dist/react-native/operations/usages.js.map +1 -1
  386. package/dist/react-native/operations/variableOperations.js +23 -40
  387. package/dist/react-native/operations/variableOperations.js.map +1 -1
  388. package/dist/react-native/operations/watcherOperations.js +23 -40
  389. package/dist/react-native/operations/watcherOperations.js.map +1 -1
  390. package/dist/react-native/operations/webhookOperations.js +23 -40
  391. package/dist/react-native/operations/webhookOperations.js.map +1 -1
  392. package/dist/react-native/pagingHelper.js +2 -4
  393. package/dist/react-native/pagingHelper.js.map +1 -1
  394. package/package.json +2 -2
  395. package/review/arm-automation-node.api.md +3756 -3756
@@ -1 +1 @@
1
- {"version":3,"file":"credentialOperations.js","sourceRoot":"","sources":["../../../src/operations/credentialOperations.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;AAmBtD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,uBAAuB,CAC5B,iBAAyB,EACzB,qBAA6B,EAC7B,OAAyD;QAEzD,MAAM,IAAI,GAAG,IAAI,CAAC,gCAAgC,CAChD,iBAAiB,EACjB,qBAAqB,EACrB,OAAO,CACR,CAAC;QACF,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,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,iCAAiC,CAC3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BAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EACF,0JAA0J;IAC5J,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,wCAAwC,GAA6B;IACzE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;QAChC,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 { CredentialOperations } 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 { AutomationClient } from \"../automationClient.js\";\nimport {\n Credential,\n CredentialListByAutomationAccountNextOptionalParams,\n CredentialListByAutomationAccountOptionalParams,\n CredentialListByAutomationAccountResponse,\n CredentialDeleteOptionalParams,\n CredentialGetOptionalParams,\n CredentialGetResponse,\n CredentialCreateOrUpdateParameters,\n CredentialCreateOrUpdateOptionalParams,\n CredentialCreateOrUpdateResponse,\n CredentialUpdateParameters,\n CredentialUpdateOptionalParams,\n CredentialUpdateResponse,\n CredentialListByAutomationAccountNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing CredentialOperations operations. */\nexport class CredentialOperationsImpl implements CredentialOperations {\n private readonly client: AutomationClient;\n\n /**\n * Initialize a new instance of the class CredentialOperations class.\n * @param client Reference to the service client\n */\n constructor(client: AutomationClient) {\n this.client = client;\n }\n\n /**\n * Retrieve a list of credentials.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param options The options parameters.\n */\n public listByAutomationAccount(\n resourceGroupName: string,\n automationAccountName: string,\n options?: CredentialListByAutomationAccountOptionalParams\n ): PagedAsyncIterableIterator<Credential> {\n const iter = this.listByAutomationAccountPagingAll(\n resourceGroupName,\n automationAccountName,\n options\n );\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.listByAutomationAccountPagingPage(\n resourceGroupName,\n automationAccountName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByAutomationAccountPagingPage(\n resourceGroupName: string,\n automationAccountName: string,\n options?: CredentialListByAutomationAccountOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Credential[]> {\n let result: CredentialListByAutomationAccountResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByAutomationAccount(\n resourceGroupName,\n automationAccountName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByAutomationAccountNext(\n resourceGroupName,\n automationAccountName,\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 *listByAutomationAccountPagingAll(\n resourceGroupName: string,\n automationAccountName: string,\n options?: CredentialListByAutomationAccountOptionalParams\n ): AsyncIterableIterator<Credential> {\n for await (const page of this.listByAutomationAccountPagingPage(\n resourceGroupName,\n automationAccountName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Delete the credential.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param credentialName The name of credential.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n automationAccountName: string,\n credentialName: string,\n options?: CredentialDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, credentialName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Retrieve the credential identified by credential name.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param credentialName The name of credential.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n automationAccountName: string,\n credentialName: string,\n options?: CredentialGetOptionalParams\n ): Promise<CredentialGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, credentialName, options },\n getOperationSpec\n );\n }\n\n /**\n * Create a credential.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param credentialName The parameters supplied to the create or update credential operation.\n * @param parameters The parameters supplied to the create or update credential operation.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n automationAccountName: string,\n credentialName: string,\n parameters: CredentialCreateOrUpdateParameters,\n options?: CredentialCreateOrUpdateOptionalParams\n ): Promise<CredentialCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n automationAccountName,\n credentialName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Update a credential.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param credentialName The parameters supplied to the Update credential operation.\n * @param parameters The parameters supplied to the Update credential operation.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n automationAccountName: string,\n credentialName: string,\n parameters: CredentialUpdateParameters,\n options?: CredentialUpdateOptionalParams\n ): Promise<CredentialUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n automationAccountName,\n credentialName,\n parameters,\n options\n },\n updateOperationSpec\n );\n }\n\n /**\n * Retrieve a list of credentials.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param options The options parameters.\n */\n private _listByAutomationAccount(\n resourceGroupName: string,\n automationAccountName: string,\n options?: CredentialListByAutomationAccountOptionalParams\n ): Promise<CredentialListByAutomationAccountResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, options },\n listByAutomationAccountOperationSpec\n );\n }\n\n /**\n * ListByAutomationAccountNext\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param nextLink The nextLink from the previous successful call to the ListByAutomationAccount\n * method.\n * @param options The options parameters.\n */\n private _listByAutomationAccountNext(\n resourceGroupName: string,\n automationAccountName: string,\n nextLink: string,\n options?: CredentialListByAutomationAccountNextOptionalParams\n ): Promise<CredentialListByAutomationAccountNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, nextLink, options },\n listByAutomationAccountNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\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.automationAccountName,\n Parameters.credentialName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Credential\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.automationAccountName,\n Parameters.credentialName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Credential\n },\n 201: {\n bodyMapper: Mappers.Credential\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters16,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.credentialName\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.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Credential\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters17,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.credentialName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listByAutomationAccountOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CredentialListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByAutomationAccountNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CredentialListResult\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"credentialOperations.js","sourceRoot":"","sources":["../../../src/operations/credentialOperations.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;AAmBtD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAClB,MAAM,CAAmB;IAE1C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,C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AU;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 { CredentialOperations } 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 { AutomationClient } from \"../automationClient.js\";\nimport {\n Credential,\n CredentialListByAutomationAccountNextOptionalParams,\n CredentialListByAutomationAccountOptionalParams,\n CredentialListByAutomationAccountResponse,\n CredentialDeleteOptionalParams,\n CredentialGetOptionalParams,\n CredentialGetResponse,\n CredentialCreateOrUpdateParameters,\n CredentialCreateOrUpdateOptionalParams,\n CredentialCreateOrUpdateResponse,\n CredentialUpdateParameters,\n CredentialUpdateOptionalParams,\n CredentialUpdateResponse,\n CredentialListByAutomationAccountNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing CredentialOperations operations. */\nexport class CredentialOperationsImpl implements CredentialOperations {\n private readonly client: AutomationClient;\n\n /**\n * Initialize a new instance of the class CredentialOperations class.\n * @param client Reference to the service client\n */\n constructor(client: AutomationClient) {\n this.client = client;\n }\n\n /**\n * Retrieve a list of credentials.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param options The options parameters.\n */\n public listByAutomationAccount(\n resourceGroupName: string,\n automationAccountName: string,\n options?: CredentialListByAutomationAccountOptionalParams\n ): PagedAsyncIterableIterator<Credential> {\n const iter = this.listByAutomationAccountPagingAll(\n resourceGroupName,\n automationAccountName,\n options\n );\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.listByAutomationAccountPagingPage(\n resourceGroupName,\n automationAccountName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByAutomationAccountPagingPage(\n resourceGroupName: string,\n automationAccountName: string,\n options?: CredentialListByAutomationAccountOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Credential[]> {\n let result: CredentialListByAutomationAccountResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByAutomationAccount(\n resourceGroupName,\n automationAccountName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByAutomationAccountNext(\n resourceGroupName,\n automationAccountName,\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 *listByAutomationAccountPagingAll(\n resourceGroupName: string,\n automationAccountName: string,\n options?: CredentialListByAutomationAccountOptionalParams\n ): AsyncIterableIterator<Credential> {\n for await (const page of this.listByAutomationAccountPagingPage(\n resourceGroupName,\n automationAccountName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Delete the credential.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param credentialName The name of credential.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n automationAccountName: string,\n credentialName: string,\n options?: CredentialDeleteOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, credentialName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * Retrieve the credential identified by credential name.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param credentialName The name of credential.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n automationAccountName: string,\n credentialName: string,\n options?: CredentialGetOptionalParams\n ): Promise<CredentialGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, credentialName, options },\n getOperationSpec\n );\n }\n\n /**\n * Create a credential.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param credentialName The parameters supplied to the create or update credential operation.\n * @param parameters The parameters supplied to the create or update credential operation.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n automationAccountName: string,\n credentialName: string,\n parameters: CredentialCreateOrUpdateParameters,\n options?: CredentialCreateOrUpdateOptionalParams\n ): Promise<CredentialCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n automationAccountName,\n credentialName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Update a credential.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param credentialName The parameters supplied to the Update credential operation.\n * @param parameters The parameters supplied to the Update credential operation.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n automationAccountName: string,\n credentialName: string,\n parameters: CredentialUpdateParameters,\n options?: CredentialUpdateOptionalParams\n ): Promise<CredentialUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n automationAccountName,\n credentialName,\n parameters,\n options\n },\n updateOperationSpec\n );\n }\n\n /**\n * Retrieve a list of credentials.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param options The options parameters.\n */\n private _listByAutomationAccount(\n resourceGroupName: string,\n automationAccountName: string,\n options?: CredentialListByAutomationAccountOptionalParams\n ): Promise<CredentialListByAutomationAccountResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, options },\n listByAutomationAccountOperationSpec\n );\n }\n\n /**\n * ListByAutomationAccountNext\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param nextLink The nextLink from the previous successful call to the ListByAutomationAccount\n * method.\n * @param options The options parameters.\n */\n private _listByAutomationAccountNext(\n resourceGroupName: string,\n automationAccountName: string,\n nextLink: string,\n options?: CredentialListByAutomationAccountNextOptionalParams\n ): Promise<CredentialListByAutomationAccountNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, nextLink, options },\n listByAutomationAccountNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\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.automationAccountName,\n Parameters.credentialName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Credential\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.automationAccountName,\n Parameters.credentialName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Credential\n },\n 201: {\n bodyMapper: Mappers.Credential\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters16,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.credentialName\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.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Credential\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters17,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.credentialName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listByAutomationAccountOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CredentialListResult\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByAutomationAccountNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CredentialListResult\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
10
10
  import * as Parameters from "../models/parameters.js";
11
11
  /** Class containing DeletedAutomationAccounts operations. */
12
12
  export class DeletedAutomationAccountsImpl {
13
+ client;
13
14
  /**
14
15
  * Initialize a new instance of the class DeletedAutomationAccounts class.
15
16
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"deletedAutomationAccounts.js","sourceRoot":"","sources":["../../../src/operations/deletedAutomationAccounts.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;AAOtD,6DAA6D;AAC7D,MAAM,OAAO,6BAA6B;IAIxC;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,kBAAkB,CAChB,OAAmE;QAEnE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,OAAO,EAAE,EACX,+BAA+B,CAChC,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,+BAA+B,GAA6B;IAChE,IAAI,EACF,0FAA0F;IAC5F,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kCAAkC;SACvD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,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 { DeletedAutomationAccounts } 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 { AutomationClient } from \"../automationClient.js\";\nimport {\n DeletedAutomationAccountsListBySubscriptionOptionalParams,\n DeletedAutomationAccountsListBySubscriptionResponse\n} from \"../models/index.js\";\n\n/** Class containing DeletedAutomationAccounts operations. */\nexport class DeletedAutomationAccountsImpl\n implements DeletedAutomationAccounts {\n private readonly client: AutomationClient;\n\n /**\n * Initialize a new instance of the class DeletedAutomationAccounts class.\n * @param client Reference to the service client\n */\n constructor(client: AutomationClient) {\n this.client = client;\n }\n\n /**\n * Retrieve deleted automation account.\n * @param options The options parameters.\n */\n listBySubscription(\n options?: DeletedAutomationAccountsListBySubscriptionOptionalParams\n ): Promise<DeletedAutomationAccountsListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Automation/deletedAutomationAccounts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DeletedAutomationAccountListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"deletedAutomationAccounts.js","sourceRoot":"","sources":["../../../src/operations/deletedAutomationAccounts.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;AAOtD,6DAA6D;AAC7D,MAAM,OAAO,6BAA6B;IAEvB,MAAM,CAAmB;IAE1C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,kBAAkB,CAChB,OAAmE;QAEnE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,OAAO,EAAE,EACX,+BAA+B,CAChC,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,+BAA+B,GAA6B;IAChE,IAAI,EACF,0FAA0F;IAC5F,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kCAAkC;SACvD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC;IAC5D,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 { DeletedAutomationAccounts } 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 { AutomationClient } from \"../automationClient.js\";\nimport {\n DeletedAutomationAccountsListBySubscriptionOptionalParams,\n DeletedAutomationAccountsListBySubscriptionResponse\n} from \"../models/index.js\";\n\n/** Class containing DeletedAutomationAccounts operations. */\nexport class DeletedAutomationAccountsImpl\n implements DeletedAutomationAccounts {\n private readonly client: AutomationClient;\n\n /**\n * Initialize a new instance of the class DeletedAutomationAccounts class.\n * @param client Reference to the service client\n */\n constructor(client: AutomationClient) {\n this.client = client;\n }\n\n /**\n * Retrieve deleted automation account.\n * @param options The options parameters.\n */\n listBySubscription(\n options?: DeletedAutomationAccountsListBySubscriptionOptionalParams\n ): Promise<DeletedAutomationAccountsListBySubscriptionResponse> {\n return this.client.sendOperationRequest(\n { options },\n listBySubscriptionOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listBySubscriptionOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/providers/Microsoft.Automation/deletedAutomationAccounts\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DeletedAutomationAccountListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -5,7 +5,6 @@
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
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -15,6 +14,7 @@ import { LroImpl } from "../lroImpl.js";
15
14
  /// <reference lib="esnext.asynciterable" />
16
15
  /** Class containing DscCompilationJobOperations operations. */
17
16
  export class DscCompilationJobOperationsImpl {
17
+ client;
18
18
  /**
19
19
  * Initialize a new instance of the class DscCompilationJobOperations class.
20
20
  * @param client Reference to the service client
@@ -38,52 +38,35 @@ export class DscCompilationJobOperationsImpl {
38
38
  return this;
39
39
  },
40
40
  byPage: (settings) => {
41
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
41
+ if (settings?.maxPageSize) {
42
42
  throw new Error("maxPageSize is not supported by this operation.");
43
43
  }
44
44
  return this.listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options, settings);
45
45
  }
46
46
  };
47
47
  }
48
- listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options, settings) {
49
- return __asyncGenerator(this, arguments, function* listByAutomationAccountPagingPage_1() {
50
- let result;
51
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
52
- if (!continuationToken) {
53
- result = yield __await(this._listByAutomationAccount(resourceGroupName, automationAccountName, options));
54
- let page = result.value || [];
55
- continuationToken = result.nextLink;
56
- setContinuationToken(page, continuationToken);
57
- yield yield __await(page);
58
- }
59
- while (continuationToken) {
60
- result = yield __await(this._listByAutomationAccountNext(resourceGroupName, automationAccountName, continuationToken, options));
61
- continuationToken = result.nextLink;
62
- let page = result.value || [];
63
- setContinuationToken(page, continuationToken);
64
- yield yield __await(page);
65
- }
66
- });
48
+ async *listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options, settings) {
49
+ let result;
50
+ let continuationToken = settings?.continuationToken;
51
+ if (!continuationToken) {
52
+ result = await this._listByAutomationAccount(resourceGroupName, automationAccountName, options);
53
+ let page = result.value || [];
54
+ continuationToken = result.nextLink;
55
+ setContinuationToken(page, continuationToken);
56
+ yield page;
57
+ }
58
+ while (continuationToken) {
59
+ result = await this._listByAutomationAccountNext(resourceGroupName, automationAccountName, continuationToken, options);
60
+ continuationToken = result.nextLink;
61
+ let page = result.value || [];
62
+ setContinuationToken(page, continuationToken);
63
+ yield page;
64
+ }
67
65
  }
68
- listByAutomationAccountPagingAll(resourceGroupName, automationAccountName, options) {
69
- return __asyncGenerator(this, arguments, function* listByAutomationAccountPagingAll_1() {
70
- var _a, e_1, _b, _c;
71
- try {
72
- for (var _d = true, _e = __asyncValues(this.listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
73
- _c = _f.value;
74
- _d = false;
75
- const page = _c;
76
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
77
- }
78
- }
79
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
80
- finally {
81
- try {
82
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
83
- }
84
- finally { if (e_1) throw e_1.error; }
85
- }
86
- });
66
+ async *listByAutomationAccountPagingAll(resourceGroupName, automationAccountName, options) {
67
+ for await (const page of this.listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options)) {
68
+ yield* page;
69
+ }
87
70
  }
88
71
  /**
89
72
  * Creates the Dsc compilation job of the configuration.
@@ -98,14 +81,19 @@ export class DscCompilationJobOperationsImpl {
98
81
  return this.client.sendOperationRequest(args, spec);
99
82
  };
100
83
  const sendOperation = async (args, spec) => {
101
- var _a;
102
84
  let currentRawResponse = undefined;
103
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
85
+ const providedCallback = args.options?.onResponse;
104
86
  const callback = (rawResponse, flatResponse) => {
105
87
  currentRawResponse = rawResponse;
106
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
88
+ providedCallback?.(rawResponse, flatResponse);
89
+ };
90
+ const updatedArgs = {
91
+ ...args,
92
+ options: {
93
+ ...args.options,
94
+ onResponse: callback
95
+ }
107
96
  };
108
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
109
97
  const flatResponse = await directSendOperation(updatedArgs, spec);
110
98
  return {
111
99
  flatResponse,
@@ -124,8 +112,8 @@ export class DscCompilationJobOperationsImpl {
124
112
  options
125
113
  }, createOperationSpec);
126
114
  const poller = new LroEngine(lro, {
127
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
128
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
115
+ resumeFrom: options?.resumeFrom,
116
+ intervalInMs: options?.updateIntervalInMs
129
117
  });
130
118
  await poller.poll();
131
119
  return poller;
@@ -1 +1 @@
1
- {"version":3,"file":"dscCompilationJobOperations.js","sourceRoot":"","sources":["../../../src/operations/dscCompilationJobOperations.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;AAgBxC,4CAA4C;AAC5C,+DAA+D;AAC/D,MAAM,OAAO,+BAA+B;IAI1C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,uBAAuB,CAC5B,iBAAyB,EACzB,qBAA6B,EAC7B,OAAgE;QAEhE,MAAM,IAAI,GAAG,IAAI,CAAC,gCAAgC,CAChD,iBAAiB,EACjB,qBAAqB,EACrB,OAAO,CACR,CAAC;QACF,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,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,iCAAiC,CAC3C,iBAAiB,EACj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,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;QAChC,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,wCAAwC,GAA6B;IACzE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,2BAA2B;SAChD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;QAChC,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 { DscCompilationJobOperations } 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 { AutomationClient } from \"../automationClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n DscCompilationJob,\n DscCompilationJobListByAutomationAccountNextOptionalParams,\n DscCompilationJobListByAutomationAccountOptionalParams,\n DscCompilationJobListByAutomationAccountResponse,\n DscCompilationJobCreateParameters,\n DscCompilationJobCreateOptionalParams,\n DscCompilationJobCreateResponse,\n DscCompilationJobGetOptionalParams,\n DscCompilationJobGetResponse,\n DscCompilationJobGetStreamOptionalParams,\n DscCompilationJobGetStreamResponse,\n DscCompilationJobListByAutomationAccountNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DscCompilationJobOperations operations. */\nexport class DscCompilationJobOperationsImpl\n implements DscCompilationJobOperations {\n private readonly client: AutomationClient;\n\n /**\n * Initialize a new instance of the class DscCompilationJobOperations class.\n * @param client Reference to the service client\n */\n constructor(client: AutomationClient) {\n this.client = client;\n }\n\n /**\n * Retrieve a list of dsc compilation jobs.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param options The options parameters.\n */\n public listByAutomationAccount(\n resourceGroupName: string,\n automationAccountName: string,\n options?: DscCompilationJobListByAutomationAccountOptionalParams\n ): PagedAsyncIterableIterator<DscCompilationJob> {\n const iter = this.listByAutomationAccountPagingAll(\n resourceGroupName,\n automationAccountName,\n options\n );\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.listByAutomationAccountPagingPage(\n resourceGroupName,\n automationAccountName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByAutomationAccountPagingPage(\n resourceGroupName: string,\n automationAccountName: string,\n options?: DscCompilationJobListByAutomationAccountOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<DscCompilationJob[]> {\n let result: DscCompilationJobListByAutomationAccountResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByAutomationAccount(\n resourceGroupName,\n automationAccountName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByAutomationAccountNext(\n resourceGroupName,\n automationAccountName,\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 *listByAutomationAccountPagingAll(\n resourceGroupName: string,\n automationAccountName: string,\n options?: DscCompilationJobListByAutomationAccountOptionalParams\n ): AsyncIterableIterator<DscCompilationJob> {\n for await (const page of this.listByAutomationAccountPagingPage(\n resourceGroupName,\n automationAccountName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates the Dsc compilation job of the configuration.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param compilationJobName The DSC configuration Id.\n * @param parameters The parameters supplied to the create compilation job operation.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n automationAccountName: string,\n compilationJobName: string,\n parameters: DscCompilationJobCreateParameters,\n options?: DscCompilationJobCreateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<DscCompilationJobCreateResponse>,\n DscCompilationJobCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<DscCompilationJobCreateResponse> => {\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 {\n resourceGroupName,\n automationAccountName,\n compilationJobName,\n parameters,\n options\n },\n createOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates the Dsc compilation job of the configuration.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param compilationJobName The DSC configuration Id.\n * @param parameters The parameters supplied to the create compilation job operation.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n automationAccountName: string,\n compilationJobName: string,\n parameters: DscCompilationJobCreateParameters,\n options?: DscCompilationJobCreateOptionalParams\n ): Promise<DscCompilationJobCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n automationAccountName,\n compilationJobName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Retrieve the Dsc configuration compilation job identified by job id.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param compilationJobName The DSC configuration Id.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n automationAccountName: string,\n compilationJobName: string,\n options?: DscCompilationJobGetOptionalParams\n ): Promise<DscCompilationJobGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, compilationJobName, options },\n getOperationSpec\n );\n }\n\n /**\n * Retrieve a list of dsc compilation jobs.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param options The options parameters.\n */\n private _listByAutomationAccount(\n resourceGroupName: string,\n automationAccountName: string,\n options?: DscCompilationJobListByAutomationAccountOptionalParams\n ): Promise<DscCompilationJobListByAutomationAccountResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, options },\n listByAutomationAccountOperationSpec\n );\n }\n\n /**\n * Retrieve the job stream identified by job stream id.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param jobId The job id.\n * @param jobStreamId The job stream id.\n * @param options The options parameters.\n */\n getStream(\n resourceGroupName: string,\n automationAccountName: string,\n jobId: string,\n jobStreamId: string,\n options?: DscCompilationJobGetStreamOptionalParams\n ): Promise<DscCompilationJobGetStreamResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, jobId, jobStreamId, options },\n getStreamOperationSpec\n );\n }\n\n /**\n * ListByAutomationAccountNext\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param nextLink The nextLink from the previous successful call to the ListByAutomationAccount\n * method.\n * @param options The options parameters.\n */\n private _listByAutomationAccountNext(\n resourceGroupName: string,\n automationAccountName: string,\n nextLink: string,\n options?: DscCompilationJobListByAutomationAccountNextOptionalParams\n ): Promise<DscCompilationJobListByAutomationAccountNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, nextLink, options },\n listByAutomationAccountNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.DscCompilationJob\n },\n 201: {\n bodyMapper: Mappers.DscCompilationJob\n },\n 202: {\n bodyMapper: Mappers.DscCompilationJob\n },\n 204: {\n bodyMapper: Mappers.DscCompilationJob\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters5,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.compilationJobName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DscCompilationJob\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.automationAccountName,\n Parameters.compilationJobName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByAutomationAccountOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DscCompilationJobListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getStreamOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{jobId}/streams/{jobStreamId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobStream\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.automationAccountName,\n Parameters.jobId,\n Parameters.jobStreamId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByAutomationAccountNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DscCompilationJobListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"dscCompilationJobOperations.js","sourceRoot":"","sources":["../../../src/operations/dscCompilationJobOperations.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;AAgBxC,4CAA4C;AAC5C,+DAA+D;AAC/D,MAAM,OAAO,+BAA+B;IAEzB,MAAM,CAAmB;IAE1C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,uBAAuB,CAC5B,iBAAyB,EACzB,qBAA6B,EAC7B,OAAgE;QAEhE,MAAM,IAAI,GAAG,IAAI,CAAC,gCAAgC,CAChD,iBAAiB,EACjB,qBAAqB,EACrB,OAAO,CACR,CAAC;QACF,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,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;QAChB,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,wCAAwC,GAA6B;IACzE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,2BAA2B;SAChD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;QAChC,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 { DscCompilationJobOperations } 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 { AutomationClient } from \"../automationClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n DscCompilationJob,\n DscCompilationJobListByAutomationAccountNextOptionalParams,\n DscCompilationJobListByAutomationAccountOptionalParams,\n DscCompilationJobListByAutomationAccountResponse,\n DscCompilationJobCreateParameters,\n DscCompilationJobCreateOptionalParams,\n DscCompilationJobCreateResponse,\n DscCompilationJobGetOptionalParams,\n DscCompilationJobGetResponse,\n DscCompilationJobGetStreamOptionalParams,\n DscCompilationJobGetStreamResponse,\n DscCompilationJobListByAutomationAccountNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DscCompilationJobOperations operations. */\nexport class DscCompilationJobOperationsImpl\n implements DscCompilationJobOperations {\n private readonly client: AutomationClient;\n\n /**\n * Initialize a new instance of the class DscCompilationJobOperations class.\n * @param client Reference to the service client\n */\n constructor(client: AutomationClient) {\n this.client = client;\n }\n\n /**\n * Retrieve a list of dsc compilation jobs.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param options The options parameters.\n */\n public listByAutomationAccount(\n resourceGroupName: string,\n automationAccountName: string,\n options?: DscCompilationJobListByAutomationAccountOptionalParams\n ): PagedAsyncIterableIterator<DscCompilationJob> {\n const iter = this.listByAutomationAccountPagingAll(\n resourceGroupName,\n automationAccountName,\n options\n );\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.listByAutomationAccountPagingPage(\n resourceGroupName,\n automationAccountName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByAutomationAccountPagingPage(\n resourceGroupName: string,\n automationAccountName: string,\n options?: DscCompilationJobListByAutomationAccountOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<DscCompilationJob[]> {\n let result: DscCompilationJobListByAutomationAccountResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByAutomationAccount(\n resourceGroupName,\n automationAccountName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByAutomationAccountNext(\n resourceGroupName,\n automationAccountName,\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 *listByAutomationAccountPagingAll(\n resourceGroupName: string,\n automationAccountName: string,\n options?: DscCompilationJobListByAutomationAccountOptionalParams\n ): AsyncIterableIterator<DscCompilationJob> {\n for await (const page of this.listByAutomationAccountPagingPage(\n resourceGroupName,\n automationAccountName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates the Dsc compilation job of the configuration.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param compilationJobName The DSC configuration Id.\n * @param parameters The parameters supplied to the create compilation job operation.\n * @param options The options parameters.\n */\n async beginCreate(\n resourceGroupName: string,\n automationAccountName: string,\n compilationJobName: string,\n parameters: DscCompilationJobCreateParameters,\n options?: DscCompilationJobCreateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<DscCompilationJobCreateResponse>,\n DscCompilationJobCreateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<DscCompilationJobCreateResponse> => {\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 {\n resourceGroupName,\n automationAccountName,\n compilationJobName,\n parameters,\n options\n },\n createOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates the Dsc compilation job of the configuration.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param compilationJobName The DSC configuration Id.\n * @param parameters The parameters supplied to the create compilation job operation.\n * @param options The options parameters.\n */\n async beginCreateAndWait(\n resourceGroupName: string,\n automationAccountName: string,\n compilationJobName: string,\n parameters: DscCompilationJobCreateParameters,\n options?: DscCompilationJobCreateOptionalParams\n ): Promise<DscCompilationJobCreateResponse> {\n const poller = await this.beginCreate(\n resourceGroupName,\n automationAccountName,\n compilationJobName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Retrieve the Dsc configuration compilation job identified by job id.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param compilationJobName The DSC configuration Id.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n automationAccountName: string,\n compilationJobName: string,\n options?: DscCompilationJobGetOptionalParams\n ): Promise<DscCompilationJobGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, compilationJobName, options },\n getOperationSpec\n );\n }\n\n /**\n * Retrieve a list of dsc compilation jobs.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param options The options parameters.\n */\n private _listByAutomationAccount(\n resourceGroupName: string,\n automationAccountName: string,\n options?: DscCompilationJobListByAutomationAccountOptionalParams\n ): Promise<DscCompilationJobListByAutomationAccountResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, options },\n listByAutomationAccountOperationSpec\n );\n }\n\n /**\n * Retrieve the job stream identified by job stream id.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param jobId The job id.\n * @param jobStreamId The job stream id.\n * @param options The options parameters.\n */\n getStream(\n resourceGroupName: string,\n automationAccountName: string,\n jobId: string,\n jobStreamId: string,\n options?: DscCompilationJobGetStreamOptionalParams\n ): Promise<DscCompilationJobGetStreamResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, jobId, jobStreamId, options },\n getStreamOperationSpec\n );\n }\n\n /**\n * ListByAutomationAccountNext\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param nextLink The nextLink from the previous successful call to the ListByAutomationAccount\n * method.\n * @param options The options parameters.\n */\n private _listByAutomationAccountNext(\n resourceGroupName: string,\n automationAccountName: string,\n nextLink: string,\n options?: DscCompilationJobListByAutomationAccountNextOptionalParams\n ): Promise<DscCompilationJobListByAutomationAccountNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, nextLink, options },\n listByAutomationAccountNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.DscCompilationJob\n },\n 201: {\n bodyMapper: Mappers.DscCompilationJob\n },\n 202: {\n bodyMapper: Mappers.DscCompilationJob\n },\n 204: {\n bodyMapper: Mappers.DscCompilationJob\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters5,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.compilationJobName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{compilationJobName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DscCompilationJob\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.automationAccountName,\n Parameters.compilationJobName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByAutomationAccountOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DscCompilationJobListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getStreamOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{jobId}/streams/{jobStreamId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobStream\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.automationAccountName,\n Parameters.jobId,\n Parameters.jobStreamId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByAutomationAccountNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.DscCompilationJobListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
10
10
  import * as Parameters from "../models/parameters.js";
11
11
  /** Class containing DscCompilationJobStream operations. */
12
12
  export class DscCompilationJobStreamImpl {
13
+ client;
13
14
  /**
14
15
  * Initialize a new instance of the class DscCompilationJobStream class.
15
16
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"dscCompilationJobStream.js","sourceRoot":"","sources":["../../../src/operations/dscCompilationJobStream.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;AAOtD,2DAA2D;AAC3D,MAAM,OAAO,2BAA2B;IAGtC;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACH,SAAS,CACP,iBAAyB,EACzB,qBAA6B,EAC7B,KAAa,EACb,OAAwD;QAExD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,KAAK,EAAE,OAAO,EAAE,EAC5D,sBAAsB,CACvB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,sBAAsB,GAA6B;IACvD,IAAI,EACF,8KAA8K;IAChL,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;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;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;QAChC,UAAU,CAAC,KAAK;KACjB;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 { DscCompilationJobStream } 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 { AutomationClient } from \"../automationClient.js\";\nimport {\n DscCompilationJobStreamListByJobOptionalParams,\n DscCompilationJobStreamListByJobResponse\n} from \"../models/index.js\";\n\n/** Class containing DscCompilationJobStream operations. */\nexport class DscCompilationJobStreamImpl implements DscCompilationJobStream {\n private readonly client: AutomationClient;\n\n /**\n * Initialize a new instance of the class DscCompilationJobStream class.\n * @param client Reference to the service client\n */\n constructor(client: AutomationClient) {\n this.client = client;\n }\n\n /**\n * Retrieve all the job streams for the compilation Job.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param jobId The job id.\n * @param options The options parameters.\n */\n listByJob(\n resourceGroupName: string,\n automationAccountName: string,\n jobId: string,\n options?: DscCompilationJobStreamListByJobOptionalParams\n ): Promise<DscCompilationJobStreamListByJobResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, jobId, options },\n listByJobOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByJobOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{jobId}/streams\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobStreamListResult\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.automationAccountName,\n Parameters.jobId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"dscCompilationJobStream.js","sourceRoot":"","sources":["../../../src/operations/dscCompilationJobStream.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;AAOtD,2DAA2D;AAC3D,MAAM,OAAO,2BAA2B;IACrB,MAAM,CAAmB;IAE1C;;;OAGG;IACH,YAAY,MAAwB;QAClC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACH,SAAS,CACP,iBAAyB,EACzB,qBAA6B,EAC7B,KAAa,EACb,OAAwD;QAExD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,KAAK,EAAE,OAAO,EAAE,EAC5D,sBAAsB,CACvB,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,sBAAsB,GAA6B;IACvD,IAAI,EACF,8KAA8K;IAChL,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;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;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,qBAAqB;QAChC,UAAU,CAAC,KAAK;KACjB;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 { DscCompilationJobStream } 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 { AutomationClient } from \"../automationClient.js\";\nimport {\n DscCompilationJobStreamListByJobOptionalParams,\n DscCompilationJobStreamListByJobResponse\n} from \"../models/index.js\";\n\n/** Class containing DscCompilationJobStream operations. */\nexport class DscCompilationJobStreamImpl implements DscCompilationJobStream {\n private readonly client: AutomationClient;\n\n /**\n * Initialize a new instance of the class DscCompilationJobStream class.\n * @param client Reference to the service client\n */\n constructor(client: AutomationClient) {\n this.client = client;\n }\n\n /**\n * Retrieve all the job streams for the compilation Job.\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param jobId The job id.\n * @param options The options parameters.\n */\n listByJob(\n resourceGroupName: string,\n automationAccountName: string,\n jobId: string,\n options?: DscCompilationJobStreamListByJobOptionalParams\n ): Promise<DscCompilationJobStreamListByJobResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, automationAccountName, jobId, options },\n listByJobOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByJobOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{jobId}/streams\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.JobStreamListResult\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.automationAccountName,\n Parameters.jobId\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -5,7 +5,6 @@
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
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
13
12
  /// <reference lib="esnext.asynciterable" />
14
13
  /** Class containing DscConfigurationOperations operations. */
15
14
  export class DscConfigurationOperationsImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class DscConfigurationOperations class.
18
18
  * @param client Reference to the service client
@@ -36,52 +36,35 @@ export class DscConfigurationOperationsImpl {
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.listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options, settings);
43
43
  }
44
44
  };
45
45
  }
46
- listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options, settings) {
47
- return __asyncGenerator(this, arguments, function* listByAutomationAccountPagingPage_1() {
48
- let result;
49
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
50
- if (!continuationToken) {
51
- result = yield __await(this._listByAutomationAccount(resourceGroupName, automationAccountName, 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._listByAutomationAccountNext(resourceGroupName, automationAccountName, continuationToken, options));
59
- continuationToken = result.nextLink;
60
- let page = result.value || [];
61
- setContinuationToken(page, continuationToken);
62
- yield yield __await(page);
63
- }
64
- });
46
+ async *listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options, settings) {
47
+ let result;
48
+ let continuationToken = settings?.continuationToken;
49
+ if (!continuationToken) {
50
+ result = await this._listByAutomationAccount(resourceGroupName, automationAccountName, 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._listByAutomationAccountNext(resourceGroupName, automationAccountName, continuationToken, options);
58
+ continuationToken = result.nextLink;
59
+ let page = result.value || [];
60
+ setContinuationToken(page, continuationToken);
61
+ yield page;
62
+ }
65
63
  }
66
- listByAutomationAccountPagingAll(resourceGroupName, automationAccountName, options) {
67
- return __asyncGenerator(this, arguments, function* listByAutomationAccountPagingAll_1() {
68
- var _a, e_1, _b, _c;
69
- try {
70
- for (var _d = true, _e = __asyncValues(this.listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, 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 *listByAutomationAccountPagingAll(resourceGroupName, automationAccountName, options) {
65
+ for await (const page of this.listByAutomationAccountPagingPage(resourceGroupName, automationAccountName, options)) {
66
+ yield* page;
67
+ }
85
68
  }
86
69
  /**
87
70
  * Delete the dsc configuration identified by configuration name.