@azure/arm-automation 11.0.0-alpha.20250620.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.api.md → arm-automation-node.api.md} +0 -0
@@ -11,6 +11,8 @@ import { PrivateEndpointConnectionsImpl, PrivateLinkResourcesImpl, Python2Packag
11
11
  import * as Parameters from "./models/parameters.js";
12
12
  import * as Mappers from "./models/mappers.js";
13
13
  export class AutomationClient extends coreClient.ServiceClient {
14
+ $host;
15
+ subscriptionId;
14
16
  /**
15
17
  * Initializes a new instance of the AutomationClient class.
16
18
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -19,7 +21,6 @@ export class AutomationClient extends coreClient.ServiceClient {
19
21
  * @param options The parameter options
20
22
  */
21
23
  constructor(credentials, subscriptionId, options) {
22
- var _a, _b, _c;
23
24
  if (credentials === undefined) {
24
25
  throw new Error("'credentials' cannot be null");
25
26
  }
@@ -38,12 +39,17 @@ export class AutomationClient extends coreClient.ServiceClient {
38
39
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
39
40
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
40
41
  : `${packageDetails}`;
41
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
42
+ const optionsWithDefaults = {
43
+ ...defaults,
44
+ ...options,
45
+ userAgentOptions: {
42
46
  userAgentPrefix
43
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
47
+ },
48
+ endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com"
49
+ };
44
50
  super(optionsWithDefaults);
45
51
  let bearerTokenAuthenticationPolicyFound = false;
46
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
52
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
47
53
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
48
54
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
49
55
  coreRestPipeline.bearerTokenAuthenticationPolicyName);
@@ -57,7 +63,8 @@ export class AutomationClient extends coreClient.ServiceClient {
57
63
  });
58
64
  this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
59
65
  credential: credentials,
60
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
66
+ scopes: optionsWithDefaults.credentialScopes ??
67
+ `${optionsWithDefaults.endpoint}/.default`,
61
68
  challengeCallbacks: {
62
69
  authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge
63
70
  }
@@ -123,6 +130,51 @@ export class AutomationClient extends coreClient.ServiceClient {
123
130
  convertGraphRunbookContent(resourceGroupName, automationAccountName, parameters, options) {
124
131
  return this.sendOperationRequest({ resourceGroupName, automationAccountName, parameters, options }, convertGraphRunbookContentOperationSpec);
125
132
  }
133
+ privateEndpointConnections;
134
+ privateLinkResources;
135
+ python2Package;
136
+ agentRegistrationInformation;
137
+ dscNodeOperations;
138
+ nodeReports;
139
+ dscNodeConfigurationOperations;
140
+ dscCompilationJobOperations;
141
+ dscCompilationJobStream;
142
+ nodeCountInformation;
143
+ sourceControlOperations;
144
+ sourceControlSyncJobOperations;
145
+ sourceControlSyncJobStreams;
146
+ automationAccountOperations;
147
+ statisticsOperations;
148
+ usages;
149
+ keys;
150
+ certificateOperations;
151
+ connectionOperations;
152
+ connectionTypeOperations;
153
+ credentialOperations;
154
+ jobScheduleOperations;
155
+ linkedWorkspaceOperations;
156
+ activityOperations;
157
+ moduleOperations;
158
+ objectDataTypes;
159
+ fields;
160
+ scheduleOperations;
161
+ variableOperations;
162
+ watcherOperations;
163
+ dscConfigurationOperations;
164
+ jobOperations;
165
+ jobStreamOperations;
166
+ operations;
167
+ softwareUpdateConfigurations;
168
+ softwareUpdateConfigurationRuns;
169
+ softwareUpdateConfigurationMachineRuns;
170
+ runbookDraftOperations;
171
+ runbookOperations;
172
+ testJobStreams;
173
+ testJobOperations;
174
+ webhookOperations;
175
+ hybridRunbookWorkers;
176
+ deletedAutomationAccounts;
177
+ hybridRunbookWorkerGroupOperations;
126
178
  }
127
179
  // Operation Specifications
128
180
  const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
@@ -1 +1 @@
1
- {"version":3,"file":"automationClient.js","sourceRoot":"","sources":["../../src/automationClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,8BAA8B,EAC9B,wBAAwB,EACxB,kBAAkB,EAClB,gCAAgC,EAChC,qBAAqB,EACrB,eAAe,EACf,kCAAkC,EAClC,+BAA+B,EAC/B,2BAA2B,EAC3B,wBAAwB,EACxB,2BAA2B,EAC3B,kCAAkC,EAClC,+BAA+B,EAC/B,+BAA+B,EAC/B,wBAAwB,EACxB,UAAU,EACV,QAAQ,EACR,yBAAyB,EACzB,wBAAwB,EACxB,4BAA4B,EAC5B,wBAAwB,EACxB,yBAAyB,EACzB,6BAA6B,EAC7B,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,EACnB,UAAU,EACV,sBAAsB,EACtB,sBAAsB,EACtB,qBAAqB,EACrB,8BAA8B,EAC9B,iBAAiB,EACjB,uBAAuB,EACvB,cAAc,EACd,gCAAgC,EAChC,mCAAmC,EACnC,0CAA0C,EAC1C,0BAA0B,EAC1B,qBAAqB,EACrB,kBAAkB,EAClB,qBAAqB,EACrB,qBAAqB,EACrB,wBAAwB,EACxB,6BAA6B,EAC7B,sCAAsC,EACvC,MAAM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MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl,\n Python2PackageImpl,\n AgentRegistrationInformationImpl,\n DscNodeOperationsImpl,\n NodeReportsImpl,\n DscNodeConfigurationOperationsImpl,\n DscCompilationJobOperationsImpl,\n DscCompilationJobStreamImpl,\n NodeCountInformationImpl,\n SourceControlOperationsImpl,\n SourceControlSyncJobOperationsImpl,\n SourceControlSyncJobStreamsImpl,\n AutomationAccountOperationsImpl,\n StatisticsOperationsImpl,\n UsagesImpl,\n KeysImpl,\n CertificateOperationsImpl,\n ConnectionOperationsImpl,\n ConnectionTypeOperationsImpl,\n CredentialOperationsImpl,\n JobScheduleOperationsImpl,\n LinkedWorkspaceOperationsImpl,\n ActivityOperationsImpl,\n ModuleOperationsImpl,\n ObjectDataTypesImpl,\n FieldsImpl,\n ScheduleOperationsImpl,\n VariableOperationsImpl,\n WatcherOperationsImpl,\n DscConfigurationOperationsImpl,\n JobOperationsImpl,\n JobStreamOperationsImpl,\n OperationsImpl,\n SoftwareUpdateConfigurationsImpl,\n SoftwareUpdateConfigurationRunsImpl,\n SoftwareUpdateConfigurationMachineRunsImpl,\n RunbookDraftOperationsImpl,\n RunbookOperationsImpl,\n TestJobStreamsImpl,\n TestJobOperationsImpl,\n WebhookOperationsImpl,\n HybridRunbookWorkersImpl,\n DeletedAutomationAccountsImpl,\n HybridRunbookWorkerGroupOperationsImpl\n} from \"./operations/index.js\";\nimport {\n PrivateEndpointConnections,\n PrivateLinkResources,\n Python2Package,\n AgentRegistrationInformation,\n DscNodeOperations,\n NodeReports,\n DscNodeConfigurationOperations,\n DscCompilationJobOperations,\n DscCompilationJobStream,\n NodeCountInformation,\n SourceControlOperations,\n SourceControlSyncJobOperations,\n SourceControlSyncJobStreams,\n AutomationAccountOperations,\n StatisticsOperations,\n Usages,\n Keys,\n CertificateOperations,\n ConnectionOperations,\n ConnectionTypeOperations,\n CredentialOperations,\n JobScheduleOperations,\n LinkedWorkspaceOperations,\n ActivityOperations,\n ModuleOperations,\n ObjectDataTypes,\n Fields,\n ScheduleOperations,\n VariableOperations,\n WatcherOperations,\n DscConfigurationOperations,\n JobOperations,\n JobStreamOperations,\n Operations,\n SoftwareUpdateConfigurations,\n SoftwareUpdateConfigurationRuns,\n SoftwareUpdateConfigurationMachineRuns,\n RunbookDraftOperations,\n RunbookOperations,\n TestJobStreams,\n TestJobOperations,\n WebhookOperations,\n HybridRunbookWorkers,\n DeletedAutomationAccounts,\n HybridRunbookWorkerGroupOperations\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n AutomationClientOptionalParams,\n GraphicalRunbookContent,\n ConvertGraphRunbookContentOptionalParams,\n ConvertGraphRunbookContentResponse\n} from \"./models/index.js\";\n\nexport class AutomationClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the AutomationClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Gets subscription credentials which uniquely identify Microsoft Azure\n * subscription. The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: AutomationClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: AutomationClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-automation/11.0.0-beta.5`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.python2Package = new Python2PackageImpl(this);\n this.agentRegistrationInformation = new AgentRegistrationInformationImpl(\n this\n );\n this.dscNodeOperations = new DscNodeOperationsImpl(this);\n this.nodeReports = new NodeReportsImpl(this);\n this.dscNodeConfigurationOperations = new DscNodeConfigurationOperationsImpl(\n this\n );\n this.dscCompilationJobOperations = new DscCompilationJobOperationsImpl(\n this\n );\n this.dscCompilationJobStream = new DscCompilationJobStreamImpl(this);\n this.nodeCountInformation = new NodeCountInformationImpl(this);\n this.sourceControlOperations = new SourceControlOperationsImpl(this);\n this.sourceControlSyncJobOperations = new SourceControlSyncJobOperationsImpl(\n this\n );\n this.sourceControlSyncJobStreams = new SourceControlSyncJobStreamsImpl(\n this\n );\n this.automationAccountOperations = new AutomationAccountOperationsImpl(\n this\n );\n this.statisticsOperations = new StatisticsOperationsImpl(this);\n this.usages = new UsagesImpl(this);\n this.keys = new KeysImpl(this);\n this.certificateOperations = new CertificateOperationsImpl(this);\n this.connectionOperations = new ConnectionOperationsImpl(this);\n this.connectionTypeOperations = new ConnectionTypeOperationsImpl(this);\n this.credentialOperations = new CredentialOperationsImpl(this);\n this.jobScheduleOperations = new JobScheduleOperationsImpl(this);\n this.linkedWorkspaceOperations = new LinkedWorkspaceOperationsImpl(this);\n this.activityOperations = new ActivityOperationsImpl(this);\n this.moduleOperations = new ModuleOperationsImpl(this);\n this.objectDataTypes = new ObjectDataTypesImpl(this);\n this.fields = new FieldsImpl(this);\n this.scheduleOperations = new ScheduleOperationsImpl(this);\n this.variableOperations = new VariableOperationsImpl(this);\n this.watcherOperations = new WatcherOperationsImpl(this);\n this.dscConfigurationOperations = new DscConfigurationOperationsImpl(this);\n this.jobOperations = new JobOperationsImpl(this);\n this.jobStreamOperations = new JobStreamOperationsImpl(this);\n this.operations = new OperationsImpl(this);\n this.softwareUpdateConfigurations = new SoftwareUpdateConfigurationsImpl(\n this\n );\n this.softwareUpdateConfigurationRuns = new SoftwareUpdateConfigurationRunsImpl(\n this\n );\n this.softwareUpdateConfigurationMachineRuns = new SoftwareUpdateConfigurationMachineRunsImpl(\n this\n );\n this.runbookDraftOperations = new RunbookDraftOperationsImpl(this);\n this.runbookOperations = new RunbookOperationsImpl(this);\n this.testJobStreams = new TestJobStreamsImpl(this);\n this.testJobOperations = new TestJobOperationsImpl(this);\n this.webhookOperations = new WebhookOperationsImpl(this);\n this.hybridRunbookWorkers = new HybridRunbookWorkersImpl(this);\n this.deletedAutomationAccounts = new DeletedAutomationAccountsImpl(this);\n this.hybridRunbookWorkerGroupOperations = new HybridRunbookWorkerGroupOperationsImpl(\n this\n );\n }\n\n /**\n * Post operation to serialize or deserialize GraphRunbookContent\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param parameters Input data describing the graphical runbook.\n * @param options The options parameters.\n */\n convertGraphRunbookContent(\n resourceGroupName: string,\n automationAccountName: string,\n parameters: GraphicalRunbookContent,\n options?: ConvertGraphRunbookContentOptionalParams\n ): Promise<ConvertGraphRunbookContentResponse> {\n return this.sendOperationRequest(\n { resourceGroupName, automationAccountName, parameters, options },\n convertGraphRunbookContentOperationSpec\n );\n }\n\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n python2Package: Python2Package;\n agentRegistrationInformation: AgentRegistrationInformation;\n dscNodeOperations: DscNodeOperations;\n nodeReports: NodeReports;\n dscNodeConfigurationOperations: DscNodeConfigurationOperations;\n dscCompilationJobOperations: DscCompilationJobOperations;\n dscCompilationJobStream: DscCompilationJobStream;\n nodeCountInformation: NodeCountInformation;\n sourceControlOperations: SourceControlOperations;\n sourceControlSyncJobOperations: SourceControlSyncJobOperations;\n sourceControlSyncJobStreams: SourceControlSyncJobStreams;\n automationAccountOperations: AutomationAccountOperations;\n statisticsOperations: StatisticsOperations;\n usages: Usages;\n keys: Keys;\n certificateOperations: CertificateOperations;\n connectionOperations: ConnectionOperations;\n connectionTypeOperations: ConnectionTypeOperations;\n credentialOperations: CredentialOperations;\n jobScheduleOperations: JobScheduleOperations;\n linkedWorkspaceOperations: LinkedWorkspaceOperations;\n activityOperations: ActivityOperations;\n moduleOperations: ModuleOperations;\n objectDataTypes: ObjectDataTypes;\n fields: Fields;\n scheduleOperations: ScheduleOperations;\n variableOperations: VariableOperations;\n watcherOperations: WatcherOperations;\n dscConfigurationOperations: DscConfigurationOperations;\n jobOperations: JobOperations;\n jobStreamOperations: JobStreamOperations;\n operations: Operations;\n softwareUpdateConfigurations: SoftwareUpdateConfigurations;\n softwareUpdateConfigurationRuns: SoftwareUpdateConfigurationRuns;\n softwareUpdateConfigurationMachineRuns: SoftwareUpdateConfigurationMachineRuns;\n runbookDraftOperations: RunbookDraftOperations;\n runbookOperations: RunbookOperations;\n testJobStreams: TestJobStreams;\n testJobOperations: TestJobOperations;\n webhookOperations: WebhookOperations;\n hybridRunbookWorkers: HybridRunbookWorkers;\n deletedAutomationAccounts: DeletedAutomationAccounts;\n hybridRunbookWorkerGroupOperations: HybridRunbookWorkerGroupOperations;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst convertGraphRunbookContentOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/convertGraphRunbookContent\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.GraphicalRunbookContent\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters32,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
1
+ {"version":3,"file":"automationClient.js","sourceRoot":"","sources":["../../src/automationClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,8BAA8B,EAC9B,wBAAwB,EACxB,kBAAkB,EAClB,gCAAgC,EAChC,qBAAqB,EACr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5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,YAAY;IACpC,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,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,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport {\n PrivateEndpointConnectionsImpl,\n PrivateLinkResourcesImpl,\n Python2PackageImpl,\n AgentRegistrationInformationImpl,\n DscNodeOperationsImpl,\n NodeReportsImpl,\n DscNodeConfigurationOperationsImpl,\n DscCompilationJobOperationsImpl,\n DscCompilationJobStreamImpl,\n NodeCountInformationImpl,\n SourceControlOperationsImpl,\n SourceControlSyncJobOperationsImpl,\n SourceControlSyncJobStreamsImpl,\n AutomationAccountOperationsImpl,\n StatisticsOperationsImpl,\n UsagesImpl,\n KeysImpl,\n CertificateOperationsImpl,\n ConnectionOperationsImpl,\n ConnectionTypeOperationsImpl,\n CredentialOperationsImpl,\n JobScheduleOperationsImpl,\n LinkedWorkspaceOperationsImpl,\n ActivityOperationsImpl,\n ModuleOperationsImpl,\n ObjectDataTypesImpl,\n FieldsImpl,\n ScheduleOperationsImpl,\n VariableOperationsImpl,\n WatcherOperationsImpl,\n DscConfigurationOperationsImpl,\n JobOperationsImpl,\n JobStreamOperationsImpl,\n OperationsImpl,\n SoftwareUpdateConfigurationsImpl,\n SoftwareUpdateConfigurationRunsImpl,\n SoftwareUpdateConfigurationMachineRunsImpl,\n RunbookDraftOperationsImpl,\n RunbookOperationsImpl,\n TestJobStreamsImpl,\n TestJobOperationsImpl,\n WebhookOperationsImpl,\n HybridRunbookWorkersImpl,\n DeletedAutomationAccountsImpl,\n HybridRunbookWorkerGroupOperationsImpl\n} from \"./operations/index.js\";\nimport {\n PrivateEndpointConnections,\n PrivateLinkResources,\n Python2Package,\n AgentRegistrationInformation,\n DscNodeOperations,\n NodeReports,\n DscNodeConfigurationOperations,\n DscCompilationJobOperations,\n DscCompilationJobStream,\n NodeCountInformation,\n SourceControlOperations,\n SourceControlSyncJobOperations,\n SourceControlSyncJobStreams,\n AutomationAccountOperations,\n StatisticsOperations,\n Usages,\n Keys,\n CertificateOperations,\n ConnectionOperations,\n ConnectionTypeOperations,\n CredentialOperations,\n JobScheduleOperations,\n LinkedWorkspaceOperations,\n ActivityOperations,\n ModuleOperations,\n ObjectDataTypes,\n Fields,\n ScheduleOperations,\n VariableOperations,\n WatcherOperations,\n DscConfigurationOperations,\n JobOperations,\n JobStreamOperations,\n Operations,\n SoftwareUpdateConfigurations,\n SoftwareUpdateConfigurationRuns,\n SoftwareUpdateConfigurationMachineRuns,\n RunbookDraftOperations,\n RunbookOperations,\n TestJobStreams,\n TestJobOperations,\n WebhookOperations,\n HybridRunbookWorkers,\n DeletedAutomationAccounts,\n HybridRunbookWorkerGroupOperations\n} from \"./operationsInterfaces/index.js\";\nimport * as Parameters from \"./models/parameters.js\";\nimport * as Mappers from \"./models/mappers.js\";\nimport {\n AutomationClientOptionalParams,\n GraphicalRunbookContent,\n ConvertGraphRunbookContentOptionalParams,\n ConvertGraphRunbookContentResponse\n} from \"./models/index.js\";\n\nexport class AutomationClient extends coreClient.ServiceClient {\n $host: string;\n subscriptionId: string;\n\n /**\n * Initializes a new instance of the AutomationClient class.\n * @param credentials Subscription credentials which uniquely identify client subscription.\n * @param subscriptionId Gets subscription credentials which uniquely identify Microsoft Azure\n * subscription. The subscription ID forms part of the URI for every service call.\n * @param options The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n subscriptionId: string,\n options?: AutomationClientOptionalParams\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (subscriptionId === undefined) {\n throw new Error(\"'subscriptionId' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: AutomationClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials\n };\n\n const packageDetails = `azsdk-js-arm-automation/11.0.0-beta.5`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix\n },\n endpoint:\n options.endpoint ?? options.baseUri ?? \"https://management.azure.com\"\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name ===\n coreRestPipeline.bearerTokenAuthenticationPolicyName\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length == 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ??\n `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge:\n coreClient.authorizeRequestOnClaimChallenge\n }\n })\n );\n }\n // Parameter assignments\n this.subscriptionId = subscriptionId;\n\n // Assigning values to Constant parameters\n this.$host = options.$host || \"https://management.azure.com\";\n this.privateEndpointConnections = new PrivateEndpointConnectionsImpl(this);\n this.privateLinkResources = new PrivateLinkResourcesImpl(this);\n this.python2Package = new Python2PackageImpl(this);\n this.agentRegistrationInformation = new AgentRegistrationInformationImpl(\n this\n );\n this.dscNodeOperations = new DscNodeOperationsImpl(this);\n this.nodeReports = new NodeReportsImpl(this);\n this.dscNodeConfigurationOperations = new DscNodeConfigurationOperationsImpl(\n this\n );\n this.dscCompilationJobOperations = new DscCompilationJobOperationsImpl(\n this\n );\n this.dscCompilationJobStream = new DscCompilationJobStreamImpl(this);\n this.nodeCountInformation = new NodeCountInformationImpl(this);\n this.sourceControlOperations = new SourceControlOperationsImpl(this);\n this.sourceControlSyncJobOperations = new SourceControlSyncJobOperationsImpl(\n this\n );\n this.sourceControlSyncJobStreams = new SourceControlSyncJobStreamsImpl(\n this\n );\n this.automationAccountOperations = new AutomationAccountOperationsImpl(\n this\n );\n this.statisticsOperations = new StatisticsOperationsImpl(this);\n this.usages = new UsagesImpl(this);\n this.keys = new KeysImpl(this);\n this.certificateOperations = new CertificateOperationsImpl(this);\n this.connectionOperations = new ConnectionOperationsImpl(this);\n this.connectionTypeOperations = new ConnectionTypeOperationsImpl(this);\n this.credentialOperations = new CredentialOperationsImpl(this);\n this.jobScheduleOperations = new JobScheduleOperationsImpl(this);\n this.linkedWorkspaceOperations = new LinkedWorkspaceOperationsImpl(this);\n this.activityOperations = new ActivityOperationsImpl(this);\n this.moduleOperations = new ModuleOperationsImpl(this);\n this.objectDataTypes = new ObjectDataTypesImpl(this);\n this.fields = new FieldsImpl(this);\n this.scheduleOperations = new ScheduleOperationsImpl(this);\n this.variableOperations = new VariableOperationsImpl(this);\n this.watcherOperations = new WatcherOperationsImpl(this);\n this.dscConfigurationOperations = new DscConfigurationOperationsImpl(this);\n this.jobOperations = new JobOperationsImpl(this);\n this.jobStreamOperations = new JobStreamOperationsImpl(this);\n this.operations = new OperationsImpl(this);\n this.softwareUpdateConfigurations = new SoftwareUpdateConfigurationsImpl(\n this\n );\n this.softwareUpdateConfigurationRuns = new SoftwareUpdateConfigurationRunsImpl(\n this\n );\n this.softwareUpdateConfigurationMachineRuns = new SoftwareUpdateConfigurationMachineRunsImpl(\n this\n );\n this.runbookDraftOperations = new RunbookDraftOperationsImpl(this);\n this.runbookOperations = new RunbookOperationsImpl(this);\n this.testJobStreams = new TestJobStreamsImpl(this);\n this.testJobOperations = new TestJobOperationsImpl(this);\n this.webhookOperations = new WebhookOperationsImpl(this);\n this.hybridRunbookWorkers = new HybridRunbookWorkersImpl(this);\n this.deletedAutomationAccounts = new DeletedAutomationAccountsImpl(this);\n this.hybridRunbookWorkerGroupOperations = new HybridRunbookWorkerGroupOperationsImpl(\n this\n );\n }\n\n /**\n * Post operation to serialize or deserialize GraphRunbookContent\n * @param resourceGroupName Name of an Azure Resource group.\n * @param automationAccountName The name of the automation account.\n * @param parameters Input data describing the graphical runbook.\n * @param options The options parameters.\n */\n convertGraphRunbookContent(\n resourceGroupName: string,\n automationAccountName: string,\n parameters: GraphicalRunbookContent,\n options?: ConvertGraphRunbookContentOptionalParams\n ): Promise<ConvertGraphRunbookContentResponse> {\n return this.sendOperationRequest(\n { resourceGroupName, automationAccountName, parameters, options },\n convertGraphRunbookContentOperationSpec\n );\n }\n\n privateEndpointConnections: PrivateEndpointConnections;\n privateLinkResources: PrivateLinkResources;\n python2Package: Python2Package;\n agentRegistrationInformation: AgentRegistrationInformation;\n dscNodeOperations: DscNodeOperations;\n nodeReports: NodeReports;\n dscNodeConfigurationOperations: DscNodeConfigurationOperations;\n dscCompilationJobOperations: DscCompilationJobOperations;\n dscCompilationJobStream: DscCompilationJobStream;\n nodeCountInformation: NodeCountInformation;\n sourceControlOperations: SourceControlOperations;\n sourceControlSyncJobOperations: SourceControlSyncJobOperations;\n sourceControlSyncJobStreams: SourceControlSyncJobStreams;\n automationAccountOperations: AutomationAccountOperations;\n statisticsOperations: StatisticsOperations;\n usages: Usages;\n keys: Keys;\n certificateOperations: CertificateOperations;\n connectionOperations: ConnectionOperations;\n connectionTypeOperations: ConnectionTypeOperations;\n credentialOperations: CredentialOperations;\n jobScheduleOperations: JobScheduleOperations;\n linkedWorkspaceOperations: LinkedWorkspaceOperations;\n activityOperations: ActivityOperations;\n moduleOperations: ModuleOperations;\n objectDataTypes: ObjectDataTypes;\n fields: Fields;\n scheduleOperations: ScheduleOperations;\n variableOperations: VariableOperations;\n watcherOperations: WatcherOperations;\n dscConfigurationOperations: DscConfigurationOperations;\n jobOperations: JobOperations;\n jobStreamOperations: JobStreamOperations;\n operations: Operations;\n softwareUpdateConfigurations: SoftwareUpdateConfigurations;\n softwareUpdateConfigurationRuns: SoftwareUpdateConfigurationRuns;\n softwareUpdateConfigurationMachineRuns: SoftwareUpdateConfigurationMachineRuns;\n runbookDraftOperations: RunbookDraftOperations;\n runbookOperations: RunbookOperations;\n testJobStreams: TestJobStreams;\n testJobOperations: TestJobOperations;\n webhookOperations: WebhookOperations;\n hybridRunbookWorkers: HybridRunbookWorkers;\n deletedAutomationAccounts: DeletedAutomationAccounts;\n hybridRunbookWorkerGroupOperations: HybridRunbookWorkerGroupOperations;\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst convertGraphRunbookContentOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/convertGraphRunbookContent\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.GraphicalRunbookContent\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters32,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.automationAccountName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
@@ -5,8 +5,12 @@
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 { __rest } from "tslib";
9
8
  export class LroImpl {
9
+ sendOperationFn;
10
+ args;
11
+ spec;
12
+ requestPath;
13
+ requestMethod;
10
14
  constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
11
15
  this.sendOperationFn = sendOperationFn;
12
16
  this.args = args;
@@ -18,8 +22,12 @@ export class LroImpl {
18
22
  return this.sendOperationFn(this.args, this.spec);
19
23
  }
20
24
  async sendPollRequest(path) {
21
- const _a = this.spec, { requestBody } = _a, restSpec = __rest(_a, ["requestBody"]);
22
- return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
25
+ const { requestBody, ...restSpec } = this.spec;
26
+ return this.sendOperationFn(this.args, {
27
+ ...restSpec,
28
+ path,
29
+ httpMethod: "GET"
30
+ });
23
31
  }
24
32
  }
25
33
  //# sourceMappingURL=lroImpl.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,MAAM,OAAO,OAAO;IAClB,YACU,eAAkE,EAClE,IAA6B,EAC7B,IAIe,EAChB,cAAsB,IAAI,CAAC,IAAK,EAChC,gBAAwB,IAAI,CAAC,UAAU;QARtC,oBAAe,GAAf,eAAe,CAAmD;QAClE,SAAI,GAAJ,IAAI,CAAyB;QAC7B,SAAI,GAAJ,IAAI,CAIW;QAChB,gBAAW,GAAX,WAAW,CAAqB;QAChC,kBAAa,GAAb,aAAa,CAA0B;IAC7C,CAAC;IACG,KAAK,CAAC,kBAAkB;QAC7B,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IACM,KAAK,CAAC,eAAe,CAAC,IAAY;QACvC,MAAM,KAA+B,IAAI,CAAC,IAAI,EAAxC,EAAE,WAAW,OAA2B,EAAtB,QAAQ,cAA1B,eAA4B,CAAY,CAAC;QAC/C,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,kCAChC,QAAQ,KACX,IAAI,EACJ,UAAU,EAAE,KAAK,IACjB,CAAC;IACL,CAAC;CACF","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 { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport class LroImpl<T> implements LongRunningOperation<T> {\n constructor(\n private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,\n private args: Record<string, unknown>,\n private spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>,\n public requestPath: string = spec.path!,\n public requestMethod: string = spec.httpMethod\n ) {}\n public async sendInitialRequest(): Promise<LroResponse<T>> {\n return this.sendOperationFn(this.args, this.spec);\n }\n public async sendPollRequest(path: string): Promise<LroResponse<T>> {\n const { requestBody, ...restSpec } = this.spec;\n return this.sendOperationFn(this.args, {\n ...restSpec,\n path,\n httpMethod: \"GET\"\n });\n }\n}\n"]}
1
+ {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,MAAM,OAAO,OAAO;IAER;IACA;IACA;IAKD;IACA;IATT,YACU,eAAkE,EAClE,IAA6B,EAC7B,IAIe,EAChB,cAAsB,IAAI,CAAC,IAAK,EAChC,gBAAwB,IAAI,CAAC,UAAU;QARtC,oBAAe,GAAf,eAAe,CAAmD;QAClE,SAAI,GAAJ,IAAI,CAAyB;QAC7B,SAAI,GAAJ,IAAI,CAIW;QAChB,gBAAW,GAAX,WAAW,CAAqB;QAChC,kBAAa,GAAb,aAAa,CAA0B;IAC7C,CAAC;IACG,KAAK,CAAC,kBAAkB;QAC7B,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IACM,KAAK,CAAC,eAAe,CAAC,IAAY;QACvC,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC;QAC/C,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE;YACrC,GAAG,QAAQ;YACX,IAAI;YACJ,UAAU,EAAE,KAAK;SAClB,CAAC,CAAC;IACL,CAAC;CACF","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 { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport class LroImpl<T> implements LongRunningOperation<T> {\n constructor(\n private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,\n private args: Record<string, unknown>,\n private spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>,\n public requestPath: string = spec.path!,\n public requestMethod: string = spec.httpMethod\n ) {}\n public async sendInitialRequest(): Promise<LroResponse<T>> {\n return this.sendOperationFn(this.args, this.spec);\n }\n public async sendPollRequest(path: string): Promise<LroResponse<T>> {\n const { requestBody, ...restSpec } = this.spec;\n return this.sendOperationFn(this.args, {\n ...restSpec,\n path,\n httpMethod: \"GET\"\n });\n }\n}\n"]}