@azure/arm-recoveryservicesbackup 13.2.0-alpha.20250619.1 → 13.2.0-alpha.20250730.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 (451) hide show
  1. package/dist/browser/lroImpl.js +7 -3
  2. package/dist/browser/lroImpl.js.map +1 -1
  3. package/dist/browser/models/mappers.js +1192 -518
  4. package/dist/browser/models/mappers.js.map +1 -1
  5. package/dist/browser/operations/bMSPrepareDataMoveOperationResult.js +1 -0
  6. package/dist/browser/operations/bMSPrepareDataMoveOperationResult.js.map +1 -1
  7. package/dist/browser/operations/backupEngines.js +23 -40
  8. package/dist/browser/operations/backupEngines.js.map +1 -1
  9. package/dist/browser/operations/backupJobs.js +23 -40
  10. package/dist/browser/operations/backupJobs.js.map +1 -1
  11. package/dist/browser/operations/backupOperationResults.js +1 -0
  12. package/dist/browser/operations/backupOperationResults.js.map +1 -1
  13. package/dist/browser/operations/backupOperationStatuses.js +1 -0
  14. package/dist/browser/operations/backupOperationStatuses.js.map +1 -1
  15. package/dist/browser/operations/backupPolicies.js +23 -40
  16. package/dist/browser/operations/backupPolicies.js.map +1 -1
  17. package/dist/browser/operations/backupProtectableItems.js +23 -40
  18. package/dist/browser/operations/backupProtectableItems.js.map +1 -1
  19. package/dist/browser/operations/backupProtectedItems.js +23 -40
  20. package/dist/browser/operations/backupProtectedItems.js.map +1 -1
  21. package/dist/browser/operations/backupProtectionContainers.js +23 -40
  22. package/dist/browser/operations/backupProtectionContainers.js.map +1 -1
  23. package/dist/browser/operations/backupProtectionIntent.js +23 -40
  24. package/dist/browser/operations/backupProtectionIntent.js.map +1 -1
  25. package/dist/browser/operations/backupResourceEncryptionConfigs.js +1 -0
  26. package/dist/browser/operations/backupResourceEncryptionConfigs.js.map +1 -1
  27. package/dist/browser/operations/backupResourceStorageConfigsNonCRR.js +1 -0
  28. package/dist/browser/operations/backupResourceStorageConfigsNonCRR.js.map +1 -1
  29. package/dist/browser/operations/backupResourceVaultConfigs.js +1 -0
  30. package/dist/browser/operations/backupResourceVaultConfigs.js.map +1 -1
  31. package/dist/browser/operations/backupStatus.js +1 -0
  32. package/dist/browser/operations/backupStatus.js.map +1 -1
  33. package/dist/browser/operations/backupUsageSummaries.js +10 -27
  34. package/dist/browser/operations/backupUsageSummaries.js.map +1 -1
  35. package/dist/browser/operations/backupWorkloadItems.js +23 -40
  36. package/dist/browser/operations/backupWorkloadItems.js.map +1 -1
  37. package/dist/browser/operations/backups.js +1 -0
  38. package/dist/browser/operations/backups.js.map +1 -1
  39. package/dist/browser/operations/deletedProtectionContainers.js +23 -40
  40. package/dist/browser/operations/deletedProtectionContainers.js.map +1 -1
  41. package/dist/browser/operations/exportJobsOperationResults.js +1 -0
  42. package/dist/browser/operations/exportJobsOperationResults.js.map +1 -1
  43. package/dist/browser/operations/featureSupport.js +1 -0
  44. package/dist/browser/operations/featureSupport.js.map +1 -1
  45. package/dist/browser/operations/fetchTieringCost.js +12 -6
  46. package/dist/browser/operations/fetchTieringCost.js.map +1 -1
  47. package/dist/browser/operations/getTieringCostOperationResult.js +1 -0
  48. package/dist/browser/operations/getTieringCostOperationResult.js.map +1 -1
  49. package/dist/browser/operations/itemLevelRecoveryConnections.js +1 -0
  50. package/dist/browser/operations/itemLevelRecoveryConnections.js.map +1 -1
  51. package/dist/browser/operations/jobCancellations.js +1 -0
  52. package/dist/browser/operations/jobCancellations.js.map +1 -1
  53. package/dist/browser/operations/jobDetails.js +1 -0
  54. package/dist/browser/operations/jobDetails.js.map +1 -1
  55. package/dist/browser/operations/jobOperationResults.js +1 -0
  56. package/dist/browser/operations/jobOperationResults.js.map +1 -1
  57. package/dist/browser/operations/jobs.js +1 -0
  58. package/dist/browser/operations/jobs.js.map +1 -1
  59. package/dist/browser/operations/operation.js +1 -0
  60. package/dist/browser/operations/operation.js.map +1 -1
  61. package/dist/browser/operations/operations.js +23 -40
  62. package/dist/browser/operations/operations.js.map +1 -1
  63. package/dist/browser/operations/privateEndpointConnectionOperations.js +23 -12
  64. package/dist/browser/operations/privateEndpointConnectionOperations.js.map +1 -1
  65. package/dist/browser/operations/privateEndpointOperations.js +1 -0
  66. package/dist/browser/operations/privateEndpointOperations.js.map +1 -1
  67. package/dist/browser/operations/protectableContainers.js +23 -40
  68. package/dist/browser/operations/protectableContainers.js.map +1 -1
  69. package/dist/browser/operations/protectedItemOperationResults.js +1 -0
  70. package/dist/browser/operations/protectedItemOperationResults.js.map +1 -1
  71. package/dist/browser/operations/protectedItemOperationStatuses.js +1 -0
  72. package/dist/browser/operations/protectedItemOperationStatuses.js.map +1 -1
  73. package/dist/browser/operations/protectedItems.js +1 -0
  74. package/dist/browser/operations/protectedItems.js.map +1 -1
  75. package/dist/browser/operations/protectionContainerOperationResults.js +1 -0
  76. package/dist/browser/operations/protectionContainerOperationResults.js.map +1 -1
  77. package/dist/browser/operations/protectionContainerRefreshOperationResults.js +1 -0
  78. package/dist/browser/operations/protectionContainerRefreshOperationResults.js.map +1 -1
  79. package/dist/browser/operations/protectionContainers.js +12 -6
  80. package/dist/browser/operations/protectionContainers.js.map +1 -1
  81. package/dist/browser/operations/protectionIntentOperations.js +1 -0
  82. package/dist/browser/operations/protectionIntentOperations.js.map +1 -1
  83. package/dist/browser/operations/protectionPolicies.js +12 -6
  84. package/dist/browser/operations/protectionPolicies.js.map +1 -1
  85. package/dist/browser/operations/protectionPolicyOperationResults.js +1 -0
  86. package/dist/browser/operations/protectionPolicyOperationResults.js.map +1 -1
  87. package/dist/browser/operations/protectionPolicyOperationStatuses.js +1 -0
  88. package/dist/browser/operations/protectionPolicyOperationStatuses.js.map +1 -1
  89. package/dist/browser/operations/recoveryPoints.js +23 -40
  90. package/dist/browser/operations/recoveryPoints.js.map +1 -1
  91. package/dist/browser/operations/recoveryPointsRecommendedForMove.js +23 -40
  92. package/dist/browser/operations/recoveryPointsRecommendedForMove.js.map +1 -1
  93. package/dist/browser/operations/resourceGuardProxies.js +23 -40
  94. package/dist/browser/operations/resourceGuardProxies.js.map +1 -1
  95. package/dist/browser/operations/resourceGuardProxy.js +1 -0
  96. package/dist/browser/operations/resourceGuardProxy.js.map +1 -1
  97. package/dist/browser/operations/restores.js +12 -6
  98. package/dist/browser/operations/restores.js.map +1 -1
  99. package/dist/browser/operations/securityPINs.js +1 -0
  100. package/dist/browser/operations/securityPINs.js.map +1 -1
  101. package/dist/browser/operations/tieringCostOperationStatus.js +1 -0
  102. package/dist/browser/operations/tieringCostOperationStatus.js.map +1 -1
  103. package/dist/browser/operations/validateOperation.js +12 -6
  104. package/dist/browser/operations/validateOperation.js.map +1 -1
  105. package/dist/browser/operations/validateOperationResults.js +1 -0
  106. package/dist/browser/operations/validateOperationResults.js.map +1 -1
  107. package/dist/browser/operations/validateOperationStatuses.js +1 -0
  108. package/dist/browser/operations/validateOperationStatuses.js.map +1 -1
  109. package/dist/browser/pagingHelper.js +2 -4
  110. package/dist/browser/pagingHelper.js.map +1 -1
  111. package/dist/browser/recoveryServicesBackupClient.js +98 -23
  112. package/dist/browser/recoveryServicesBackupClient.js.map +1 -1
  113. package/dist/commonjs/lroImpl.js +7 -3
  114. package/dist/commonjs/lroImpl.js.map +1 -1
  115. package/dist/commonjs/models/mappers.js +1192 -518
  116. package/dist/commonjs/models/mappers.js.map +1 -1
  117. package/dist/commonjs/operations/bMSPrepareDataMoveOperationResult.js +1 -0
  118. package/dist/commonjs/operations/bMSPrepareDataMoveOperationResult.js.map +1 -1
  119. package/dist/commonjs/operations/backupEngines.js +23 -39
  120. package/dist/commonjs/operations/backupEngines.js.map +1 -1
  121. package/dist/commonjs/operations/backupJobs.js +23 -39
  122. package/dist/commonjs/operations/backupJobs.js.map +1 -1
  123. package/dist/commonjs/operations/backupOperationResults.js +1 -0
  124. package/dist/commonjs/operations/backupOperationResults.js.map +1 -1
  125. package/dist/commonjs/operations/backupOperationStatuses.js +1 -0
  126. package/dist/commonjs/operations/backupOperationStatuses.js.map +1 -1
  127. package/dist/commonjs/operations/backupPolicies.js +23 -39
  128. package/dist/commonjs/operations/backupPolicies.js.map +1 -1
  129. package/dist/commonjs/operations/backupProtectableItems.js +23 -39
  130. package/dist/commonjs/operations/backupProtectableItems.js.map +1 -1
  131. package/dist/commonjs/operations/backupProtectedItems.js +23 -39
  132. package/dist/commonjs/operations/backupProtectedItems.js.map +1 -1
  133. package/dist/commonjs/operations/backupProtectionContainers.js +23 -39
  134. package/dist/commonjs/operations/backupProtectionContainers.js.map +1 -1
  135. package/dist/commonjs/operations/backupProtectionIntent.js +23 -39
  136. package/dist/commonjs/operations/backupProtectionIntent.js.map +1 -1
  137. package/dist/commonjs/operations/backupResourceEncryptionConfigs.js +1 -0
  138. package/dist/commonjs/operations/backupResourceEncryptionConfigs.js.map +1 -1
  139. package/dist/commonjs/operations/backupResourceStorageConfigsNonCRR.js +1 -0
  140. package/dist/commonjs/operations/backupResourceStorageConfigsNonCRR.js.map +1 -1
  141. package/dist/commonjs/operations/backupResourceVaultConfigs.js +1 -0
  142. package/dist/commonjs/operations/backupResourceVaultConfigs.js.map +1 -1
  143. package/dist/commonjs/operations/backupStatus.js +1 -0
  144. package/dist/commonjs/operations/backupStatus.js.map +1 -1
  145. package/dist/commonjs/operations/backupUsageSummaries.js +10 -26
  146. package/dist/commonjs/operations/backupUsageSummaries.js.map +1 -1
  147. package/dist/commonjs/operations/backupWorkloadItems.js +23 -39
  148. package/dist/commonjs/operations/backupWorkloadItems.js.map +1 -1
  149. package/dist/commonjs/operations/backups.js +1 -0
  150. package/dist/commonjs/operations/backups.js.map +1 -1
  151. package/dist/commonjs/operations/deletedProtectionContainers.js +23 -39
  152. package/dist/commonjs/operations/deletedProtectionContainers.js.map +1 -1
  153. package/dist/commonjs/operations/exportJobsOperationResults.js +1 -0
  154. package/dist/commonjs/operations/exportJobsOperationResults.js.map +1 -1
  155. package/dist/commonjs/operations/featureSupport.js +1 -0
  156. package/dist/commonjs/operations/featureSupport.js.map +1 -1
  157. package/dist/commonjs/operations/fetchTieringCost.js +12 -6
  158. package/dist/commonjs/operations/fetchTieringCost.js.map +1 -1
  159. package/dist/commonjs/operations/getTieringCostOperationResult.js +1 -0
  160. package/dist/commonjs/operations/getTieringCostOperationResult.js.map +1 -1
  161. package/dist/commonjs/operations/itemLevelRecoveryConnections.js +1 -0
  162. package/dist/commonjs/operations/itemLevelRecoveryConnections.js.map +1 -1
  163. package/dist/commonjs/operations/jobCancellations.js +1 -0
  164. package/dist/commonjs/operations/jobCancellations.js.map +1 -1
  165. package/dist/commonjs/operations/jobDetails.js +1 -0
  166. package/dist/commonjs/operations/jobDetails.js.map +1 -1
  167. package/dist/commonjs/operations/jobOperationResults.js +1 -0
  168. package/dist/commonjs/operations/jobOperationResults.js.map +1 -1
  169. package/dist/commonjs/operations/jobs.js +1 -0
  170. package/dist/commonjs/operations/jobs.js.map +1 -1
  171. package/dist/commonjs/operations/operation.js +1 -0
  172. package/dist/commonjs/operations/operation.js.map +1 -1
  173. package/dist/commonjs/operations/operations.js +23 -39
  174. package/dist/commonjs/operations/operations.js.map +1 -1
  175. package/dist/commonjs/operations/privateEndpointConnectionOperations.js +23 -12
  176. package/dist/commonjs/operations/privateEndpointConnectionOperations.js.map +1 -1
  177. package/dist/commonjs/operations/privateEndpointOperations.js +1 -0
  178. package/dist/commonjs/operations/privateEndpointOperations.js.map +1 -1
  179. package/dist/commonjs/operations/protectableContainers.js +23 -39
  180. package/dist/commonjs/operations/protectableContainers.js.map +1 -1
  181. package/dist/commonjs/operations/protectedItemOperationResults.js +1 -0
  182. package/dist/commonjs/operations/protectedItemOperationResults.js.map +1 -1
  183. package/dist/commonjs/operations/protectedItemOperationStatuses.js +1 -0
  184. package/dist/commonjs/operations/protectedItemOperationStatuses.js.map +1 -1
  185. package/dist/commonjs/operations/protectedItems.js +1 -0
  186. package/dist/commonjs/operations/protectedItems.js.map +1 -1
  187. package/dist/commonjs/operations/protectionContainerOperationResults.js +1 -0
  188. package/dist/commonjs/operations/protectionContainerOperationResults.js.map +1 -1
  189. package/dist/commonjs/operations/protectionContainerRefreshOperationResults.js +1 -0
  190. package/dist/commonjs/operations/protectionContainerRefreshOperationResults.js.map +1 -1
  191. package/dist/commonjs/operations/protectionContainers.js +12 -6
  192. package/dist/commonjs/operations/protectionContainers.js.map +1 -1
  193. package/dist/commonjs/operations/protectionIntentOperations.js +1 -0
  194. package/dist/commonjs/operations/protectionIntentOperations.js.map +1 -1
  195. package/dist/commonjs/operations/protectionPolicies.js +12 -6
  196. package/dist/commonjs/operations/protectionPolicies.js.map +1 -1
  197. package/dist/commonjs/operations/protectionPolicyOperationResults.js +1 -0
  198. package/dist/commonjs/operations/protectionPolicyOperationResults.js.map +1 -1
  199. package/dist/commonjs/operations/protectionPolicyOperationStatuses.js +1 -0
  200. package/dist/commonjs/operations/protectionPolicyOperationStatuses.js.map +1 -1
  201. package/dist/commonjs/operations/recoveryPoints.js +23 -39
  202. package/dist/commonjs/operations/recoveryPoints.js.map +1 -1
  203. package/dist/commonjs/operations/recoveryPointsRecommendedForMove.js +23 -39
  204. package/dist/commonjs/operations/recoveryPointsRecommendedForMove.js.map +1 -1
  205. package/dist/commonjs/operations/resourceGuardProxies.js +23 -39
  206. package/dist/commonjs/operations/resourceGuardProxies.js.map +1 -1
  207. package/dist/commonjs/operations/resourceGuardProxy.js +1 -0
  208. package/dist/commonjs/operations/resourceGuardProxy.js.map +1 -1
  209. package/dist/commonjs/operations/restores.js +12 -6
  210. package/dist/commonjs/operations/restores.js.map +1 -1
  211. package/dist/commonjs/operations/securityPINs.js +1 -0
  212. package/dist/commonjs/operations/securityPINs.js.map +1 -1
  213. package/dist/commonjs/operations/tieringCostOperationStatus.js +1 -0
  214. package/dist/commonjs/operations/tieringCostOperationStatus.js.map +1 -1
  215. package/dist/commonjs/operations/validateOperation.js +12 -6
  216. package/dist/commonjs/operations/validateOperation.js.map +1 -1
  217. package/dist/commonjs/operations/validateOperationResults.js +1 -0
  218. package/dist/commonjs/operations/validateOperationResults.js.map +1 -1
  219. package/dist/commonjs/operations/validateOperationStatuses.js +1 -0
  220. package/dist/commonjs/operations/validateOperationStatuses.js.map +1 -1
  221. package/dist/commonjs/pagingHelper.js +2 -4
  222. package/dist/commonjs/pagingHelper.js.map +1 -1
  223. package/dist/commonjs/recoveryServicesBackupClient.js +98 -23
  224. package/dist/commonjs/recoveryServicesBackupClient.js.map +1 -1
  225. package/dist/commonjs/tsdoc-metadata.json +11 -11
  226. package/dist/esm/lroImpl.js +7 -3
  227. package/dist/esm/lroImpl.js.map +1 -1
  228. package/dist/esm/models/mappers.js +1192 -518
  229. package/dist/esm/models/mappers.js.map +1 -1
  230. package/dist/esm/operations/bMSPrepareDataMoveOperationResult.js +1 -0
  231. package/dist/esm/operations/bMSPrepareDataMoveOperationResult.js.map +1 -1
  232. package/dist/esm/operations/backupEngines.js +23 -40
  233. package/dist/esm/operations/backupEngines.js.map +1 -1
  234. package/dist/esm/operations/backupJobs.js +23 -40
  235. package/dist/esm/operations/backupJobs.js.map +1 -1
  236. package/dist/esm/operations/backupOperationResults.js +1 -0
  237. package/dist/esm/operations/backupOperationResults.js.map +1 -1
  238. package/dist/esm/operations/backupOperationStatuses.js +1 -0
  239. package/dist/esm/operations/backupOperationStatuses.js.map +1 -1
  240. package/dist/esm/operations/backupPolicies.js +23 -40
  241. package/dist/esm/operations/backupPolicies.js.map +1 -1
  242. package/dist/esm/operations/backupProtectableItems.js +23 -40
  243. package/dist/esm/operations/backupProtectableItems.js.map +1 -1
  244. package/dist/esm/operations/backupProtectedItems.js +23 -40
  245. package/dist/esm/operations/backupProtectedItems.js.map +1 -1
  246. package/dist/esm/operations/backupProtectionContainers.js +23 -40
  247. package/dist/esm/operations/backupProtectionContainers.js.map +1 -1
  248. package/dist/esm/operations/backupProtectionIntent.js +23 -40
  249. package/dist/esm/operations/backupProtectionIntent.js.map +1 -1
  250. package/dist/esm/operations/backupResourceEncryptionConfigs.js +1 -0
  251. package/dist/esm/operations/backupResourceEncryptionConfigs.js.map +1 -1
  252. package/dist/esm/operations/backupResourceStorageConfigsNonCRR.js +1 -0
  253. package/dist/esm/operations/backupResourceStorageConfigsNonCRR.js.map +1 -1
  254. package/dist/esm/operations/backupResourceVaultConfigs.js +1 -0
  255. package/dist/esm/operations/backupResourceVaultConfigs.js.map +1 -1
  256. package/dist/esm/operations/backupStatus.js +1 -0
  257. package/dist/esm/operations/backupStatus.js.map +1 -1
  258. package/dist/esm/operations/backupUsageSummaries.js +10 -27
  259. package/dist/esm/operations/backupUsageSummaries.js.map +1 -1
  260. package/dist/esm/operations/backupWorkloadItems.js +23 -40
  261. package/dist/esm/operations/backupWorkloadItems.js.map +1 -1
  262. package/dist/esm/operations/backups.js +1 -0
  263. package/dist/esm/operations/backups.js.map +1 -1
  264. package/dist/esm/operations/deletedProtectionContainers.js +23 -40
  265. package/dist/esm/operations/deletedProtectionContainers.js.map +1 -1
  266. package/dist/esm/operations/exportJobsOperationResults.js +1 -0
  267. package/dist/esm/operations/exportJobsOperationResults.js.map +1 -1
  268. package/dist/esm/operations/featureSupport.js +1 -0
  269. package/dist/esm/operations/featureSupport.js.map +1 -1
  270. package/dist/esm/operations/fetchTieringCost.js +12 -6
  271. package/dist/esm/operations/fetchTieringCost.js.map +1 -1
  272. package/dist/esm/operations/getTieringCostOperationResult.js +1 -0
  273. package/dist/esm/operations/getTieringCostOperationResult.js.map +1 -1
  274. package/dist/esm/operations/itemLevelRecoveryConnections.js +1 -0
  275. package/dist/esm/operations/itemLevelRecoveryConnections.js.map +1 -1
  276. package/dist/esm/operations/jobCancellations.js +1 -0
  277. package/dist/esm/operations/jobCancellations.js.map +1 -1
  278. package/dist/esm/operations/jobDetails.js +1 -0
  279. package/dist/esm/operations/jobDetails.js.map +1 -1
  280. package/dist/esm/operations/jobOperationResults.js +1 -0
  281. package/dist/esm/operations/jobOperationResults.js.map +1 -1
  282. package/dist/esm/operations/jobs.js +1 -0
  283. package/dist/esm/operations/jobs.js.map +1 -1
  284. package/dist/esm/operations/operation.js +1 -0
  285. package/dist/esm/operations/operation.js.map +1 -1
  286. package/dist/esm/operations/operations.js +23 -40
  287. package/dist/esm/operations/operations.js.map +1 -1
  288. package/dist/esm/operations/privateEndpointConnectionOperations.js +23 -12
  289. package/dist/esm/operations/privateEndpointConnectionOperations.js.map +1 -1
  290. package/dist/esm/operations/privateEndpointOperations.js +1 -0
  291. package/dist/esm/operations/privateEndpointOperations.js.map +1 -1
  292. package/dist/esm/operations/protectableContainers.js +23 -40
  293. package/dist/esm/operations/protectableContainers.js.map +1 -1
  294. package/dist/esm/operations/protectedItemOperationResults.js +1 -0
  295. package/dist/esm/operations/protectedItemOperationResults.js.map +1 -1
  296. package/dist/esm/operations/protectedItemOperationStatuses.js +1 -0
  297. package/dist/esm/operations/protectedItemOperationStatuses.js.map +1 -1
  298. package/dist/esm/operations/protectedItems.js +1 -0
  299. package/dist/esm/operations/protectedItems.js.map +1 -1
  300. package/dist/esm/operations/protectionContainerOperationResults.js +1 -0
  301. package/dist/esm/operations/protectionContainerOperationResults.js.map +1 -1
  302. package/dist/esm/operations/protectionContainerRefreshOperationResults.js +1 -0
  303. package/dist/esm/operations/protectionContainerRefreshOperationResults.js.map +1 -1
  304. package/dist/esm/operations/protectionContainers.js +12 -6
  305. package/dist/esm/operations/protectionContainers.js.map +1 -1
  306. package/dist/esm/operations/protectionIntentOperations.js +1 -0
  307. package/dist/esm/operations/protectionIntentOperations.js.map +1 -1
  308. package/dist/esm/operations/protectionPolicies.js +12 -6
  309. package/dist/esm/operations/protectionPolicies.js.map +1 -1
  310. package/dist/esm/operations/protectionPolicyOperationResults.js +1 -0
  311. package/dist/esm/operations/protectionPolicyOperationResults.js.map +1 -1
  312. package/dist/esm/operations/protectionPolicyOperationStatuses.js +1 -0
  313. package/dist/esm/operations/protectionPolicyOperationStatuses.js.map +1 -1
  314. package/dist/esm/operations/recoveryPoints.js +23 -40
  315. package/dist/esm/operations/recoveryPoints.js.map +1 -1
  316. package/dist/esm/operations/recoveryPointsRecommendedForMove.js +23 -40
  317. package/dist/esm/operations/recoveryPointsRecommendedForMove.js.map +1 -1
  318. package/dist/esm/operations/resourceGuardProxies.js +23 -40
  319. package/dist/esm/operations/resourceGuardProxies.js.map +1 -1
  320. package/dist/esm/operations/resourceGuardProxy.js +1 -0
  321. package/dist/esm/operations/resourceGuardProxy.js.map +1 -1
  322. package/dist/esm/operations/restores.js +12 -6
  323. package/dist/esm/operations/restores.js.map +1 -1
  324. package/dist/esm/operations/securityPINs.js +1 -0
  325. package/dist/esm/operations/securityPINs.js.map +1 -1
  326. package/dist/esm/operations/tieringCostOperationStatus.js +1 -0
  327. package/dist/esm/operations/tieringCostOperationStatus.js.map +1 -1
  328. package/dist/esm/operations/validateOperation.js +12 -6
  329. package/dist/esm/operations/validateOperation.js.map +1 -1
  330. package/dist/esm/operations/validateOperationResults.js +1 -0
  331. package/dist/esm/operations/validateOperationResults.js.map +1 -1
  332. package/dist/esm/operations/validateOperationStatuses.js +1 -0
  333. package/dist/esm/operations/validateOperationStatuses.js.map +1 -1
  334. package/dist/esm/pagingHelper.js +2 -4
  335. package/dist/esm/pagingHelper.js.map +1 -1
  336. package/dist/esm/recoveryServicesBackupClient.js +98 -23
  337. package/dist/esm/recoveryServicesBackupClient.js.map +1 -1
  338. package/dist/react-native/lroImpl.js +7 -3
  339. package/dist/react-native/lroImpl.js.map +1 -1
  340. package/dist/react-native/models/mappers.js +1192 -518
  341. package/dist/react-native/models/mappers.js.map +1 -1
  342. package/dist/react-native/operations/bMSPrepareDataMoveOperationResult.js +1 -0
  343. package/dist/react-native/operations/bMSPrepareDataMoveOperationResult.js.map +1 -1
  344. package/dist/react-native/operations/backupEngines.js +23 -40
  345. package/dist/react-native/operations/backupEngines.js.map +1 -1
  346. package/dist/react-native/operations/backupJobs.js +23 -40
  347. package/dist/react-native/operations/backupJobs.js.map +1 -1
  348. package/dist/react-native/operations/backupOperationResults.js +1 -0
  349. package/dist/react-native/operations/backupOperationResults.js.map +1 -1
  350. package/dist/react-native/operations/backupOperationStatuses.js +1 -0
  351. package/dist/react-native/operations/backupOperationStatuses.js.map +1 -1
  352. package/dist/react-native/operations/backupPolicies.js +23 -40
  353. package/dist/react-native/operations/backupPolicies.js.map +1 -1
  354. package/dist/react-native/operations/backupProtectableItems.js +23 -40
  355. package/dist/react-native/operations/backupProtectableItems.js.map +1 -1
  356. package/dist/react-native/operations/backupProtectedItems.js +23 -40
  357. package/dist/react-native/operations/backupProtectedItems.js.map +1 -1
  358. package/dist/react-native/operations/backupProtectionContainers.js +23 -40
  359. package/dist/react-native/operations/backupProtectionContainers.js.map +1 -1
  360. package/dist/react-native/operations/backupProtectionIntent.js +23 -40
  361. package/dist/react-native/operations/backupProtectionIntent.js.map +1 -1
  362. package/dist/react-native/operations/backupResourceEncryptionConfigs.js +1 -0
  363. package/dist/react-native/operations/backupResourceEncryptionConfigs.js.map +1 -1
  364. package/dist/react-native/operations/backupResourceStorageConfigsNonCRR.js +1 -0
  365. package/dist/react-native/operations/backupResourceStorageConfigsNonCRR.js.map +1 -1
  366. package/dist/react-native/operations/backupResourceVaultConfigs.js +1 -0
  367. package/dist/react-native/operations/backupResourceVaultConfigs.js.map +1 -1
  368. package/dist/react-native/operations/backupStatus.js +1 -0
  369. package/dist/react-native/operations/backupStatus.js.map +1 -1
  370. package/dist/react-native/operations/backupUsageSummaries.js +10 -27
  371. package/dist/react-native/operations/backupUsageSummaries.js.map +1 -1
  372. package/dist/react-native/operations/backupWorkloadItems.js +23 -40
  373. package/dist/react-native/operations/backupWorkloadItems.js.map +1 -1
  374. package/dist/react-native/operations/backups.js +1 -0
  375. package/dist/react-native/operations/backups.js.map +1 -1
  376. package/dist/react-native/operations/deletedProtectionContainers.js +23 -40
  377. package/dist/react-native/operations/deletedProtectionContainers.js.map +1 -1
  378. package/dist/react-native/operations/exportJobsOperationResults.js +1 -0
  379. package/dist/react-native/operations/exportJobsOperationResults.js.map +1 -1
  380. package/dist/react-native/operations/featureSupport.js +1 -0
  381. package/dist/react-native/operations/featureSupport.js.map +1 -1
  382. package/dist/react-native/operations/fetchTieringCost.js +12 -6
  383. package/dist/react-native/operations/fetchTieringCost.js.map +1 -1
  384. package/dist/react-native/operations/getTieringCostOperationResult.js +1 -0
  385. package/dist/react-native/operations/getTieringCostOperationResult.js.map +1 -1
  386. package/dist/react-native/operations/itemLevelRecoveryConnections.js +1 -0
  387. package/dist/react-native/operations/itemLevelRecoveryConnections.js.map +1 -1
  388. package/dist/react-native/operations/jobCancellations.js +1 -0
  389. package/dist/react-native/operations/jobCancellations.js.map +1 -1
  390. package/dist/react-native/operations/jobDetails.js +1 -0
  391. package/dist/react-native/operations/jobDetails.js.map +1 -1
  392. package/dist/react-native/operations/jobOperationResults.js +1 -0
  393. package/dist/react-native/operations/jobOperationResults.js.map +1 -1
  394. package/dist/react-native/operations/jobs.js +1 -0
  395. package/dist/react-native/operations/jobs.js.map +1 -1
  396. package/dist/react-native/operations/operation.js +1 -0
  397. package/dist/react-native/operations/operation.js.map +1 -1
  398. package/dist/react-native/operations/operations.js +23 -40
  399. package/dist/react-native/operations/operations.js.map +1 -1
  400. package/dist/react-native/operations/privateEndpointConnectionOperations.js +23 -12
  401. package/dist/react-native/operations/privateEndpointConnectionOperations.js.map +1 -1
  402. package/dist/react-native/operations/privateEndpointOperations.js +1 -0
  403. package/dist/react-native/operations/privateEndpointOperations.js.map +1 -1
  404. package/dist/react-native/operations/protectableContainers.js +23 -40
  405. package/dist/react-native/operations/protectableContainers.js.map +1 -1
  406. package/dist/react-native/operations/protectedItemOperationResults.js +1 -0
  407. package/dist/react-native/operations/protectedItemOperationResults.js.map +1 -1
  408. package/dist/react-native/operations/protectedItemOperationStatuses.js +1 -0
  409. package/dist/react-native/operations/protectedItemOperationStatuses.js.map +1 -1
  410. package/dist/react-native/operations/protectedItems.js +1 -0
  411. package/dist/react-native/operations/protectedItems.js.map +1 -1
  412. package/dist/react-native/operations/protectionContainerOperationResults.js +1 -0
  413. package/dist/react-native/operations/protectionContainerOperationResults.js.map +1 -1
  414. package/dist/react-native/operations/protectionContainerRefreshOperationResults.js +1 -0
  415. package/dist/react-native/operations/protectionContainerRefreshOperationResults.js.map +1 -1
  416. package/dist/react-native/operations/protectionContainers.js +12 -6
  417. package/dist/react-native/operations/protectionContainers.js.map +1 -1
  418. package/dist/react-native/operations/protectionIntentOperations.js +1 -0
  419. package/dist/react-native/operations/protectionIntentOperations.js.map +1 -1
  420. package/dist/react-native/operations/protectionPolicies.js +12 -6
  421. package/dist/react-native/operations/protectionPolicies.js.map +1 -1
  422. package/dist/react-native/operations/protectionPolicyOperationResults.js +1 -0
  423. package/dist/react-native/operations/protectionPolicyOperationResults.js.map +1 -1
  424. package/dist/react-native/operations/protectionPolicyOperationStatuses.js +1 -0
  425. package/dist/react-native/operations/protectionPolicyOperationStatuses.js.map +1 -1
  426. package/dist/react-native/operations/recoveryPoints.js +23 -40
  427. package/dist/react-native/operations/recoveryPoints.js.map +1 -1
  428. package/dist/react-native/operations/recoveryPointsRecommendedForMove.js +23 -40
  429. package/dist/react-native/operations/recoveryPointsRecommendedForMove.js.map +1 -1
  430. package/dist/react-native/operations/resourceGuardProxies.js +23 -40
  431. package/dist/react-native/operations/resourceGuardProxies.js.map +1 -1
  432. package/dist/react-native/operations/resourceGuardProxy.js +1 -0
  433. package/dist/react-native/operations/resourceGuardProxy.js.map +1 -1
  434. package/dist/react-native/operations/restores.js +12 -6
  435. package/dist/react-native/operations/restores.js.map +1 -1
  436. package/dist/react-native/operations/securityPINs.js +1 -0
  437. package/dist/react-native/operations/securityPINs.js.map +1 -1
  438. package/dist/react-native/operations/tieringCostOperationStatus.js +1 -0
  439. package/dist/react-native/operations/tieringCostOperationStatus.js.map +1 -1
  440. package/dist/react-native/operations/validateOperation.js +12 -6
  441. package/dist/react-native/operations/validateOperation.js.map +1 -1
  442. package/dist/react-native/operations/validateOperationResults.js +1 -0
  443. package/dist/react-native/operations/validateOperationResults.js.map +1 -1
  444. package/dist/react-native/operations/validateOperationStatuses.js +1 -0
  445. package/dist/react-native/operations/validateOperationStatuses.js.map +1 -1
  446. package/dist/react-native/pagingHelper.js +2 -4
  447. package/dist/react-native/pagingHelper.js.map +1 -1
  448. package/dist/react-native/recoveryServicesBackupClient.js +98 -23
  449. package/dist/react-native/recoveryServicesBackupClient.js.map +1 -1
  450. package/package.json +2 -2
  451. /package/review/{arm-recoveryservicesbackup.api.md → arm-recoveryservicesbackup-node.api.md} +0 -0
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
16
16
  /// <reference lib="esnext.asynciterable" />
17
17
  /** Class containing ProtectableContainers operations. */
18
18
  class ProtectableContainersImpl {
19
+ client;
19
20
  /**
20
21
  * Initialize a new instance of the class ProtectableContainers class.
21
22
  * @param client Reference to the service client
@@ -41,52 +42,35 @@ class ProtectableContainersImpl {
41
42
  return this;
42
43
  },
43
44
  byPage: (settings) => {
44
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
45
+ if (settings?.maxPageSize) {
45
46
  throw new Error("maxPageSize is not supported by this operation.");
46
47
  }
47
48
  return this.listPagingPage(vaultName, resourceGroupName, fabricName, options, settings);
48
49
  },
49
50
  };
50
51
  }
51
- listPagingPage(vaultName, resourceGroupName, fabricName, options, settings) {
52
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingPage_1() {
53
- let result;
54
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
55
- if (!continuationToken) {
56
- result = yield tslib_1.__await(this._list(vaultName, resourceGroupName, fabricName, options));
57
- let page = result.value || [];
58
- continuationToken = result.nextLink;
59
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
60
- yield yield tslib_1.__await(page);
61
- }
62
- while (continuationToken) {
63
- result = yield tslib_1.__await(this._listNext(vaultName, resourceGroupName, fabricName, continuationToken, options));
64
- continuationToken = result.nextLink;
65
- let page = result.value || [];
66
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
67
- yield yield tslib_1.__await(page);
68
- }
69
- });
52
+ async *listPagingPage(vaultName, resourceGroupName, fabricName, options, settings) {
53
+ let result;
54
+ let continuationToken = settings?.continuationToken;
55
+ if (!continuationToken) {
56
+ result = await this._list(vaultName, resourceGroupName, fabricName, options);
57
+ let page = result.value || [];
58
+ continuationToken = result.nextLink;
59
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
60
+ yield page;
61
+ }
62
+ while (continuationToken) {
63
+ result = await this._listNext(vaultName, resourceGroupName, fabricName, continuationToken, options);
64
+ continuationToken = result.nextLink;
65
+ let page = result.value || [];
66
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
67
+ yield page;
68
+ }
70
69
  }
71
- listPagingAll(vaultName, resourceGroupName, fabricName, options) {
72
- return tslib_1.__asyncGenerator(this, arguments, function* listPagingAll_1() {
73
- var _a, e_1, _b, _c;
74
- try {
75
- for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(vaultName, resourceGroupName, fabricName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
76
- _c = _f.value;
77
- _d = false;
78
- const page = _c;
79
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
80
- }
81
- }
82
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
83
- finally {
84
- try {
85
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
86
- }
87
- finally { if (e_1) throw e_1.error; }
88
- }
89
- });
70
+ async *listPagingAll(vaultName, resourceGroupName, fabricName, options) {
71
+ for await (const page of this.listPagingPage(vaultName, resourceGroupName, fabricName, options)) {
72
+ yield* page;
73
+ }
90
74
  }
91
75
  /**
92
76
  * Lists the containers that can be registered to Recovery Services Vault.
@@ -1 +1 @@
1
- {"version":3,"file":"protectableContainers.js","sourceRoot":"","sources":["../../../src/operations/protectableContainers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,y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ft 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 { ProtectableContainers } 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 { RecoveryServicesBackupClient } from \"../recoveryServicesBackupClient.js\";\nimport {\n ProtectableContainerResource,\n ProtectableContainersListNextOptionalParams,\n ProtectableContainersListOptionalParams,\n ProtectableContainersListResponse,\n ProtectableContainersListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ProtectableContainers operations. */\nexport class ProtectableContainersImpl implements ProtectableContainers {\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class ProtectableContainers class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * Lists the containers that can be registered to Recovery Services Vault.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName\n * @param options The options parameters.\n */\n public list(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n options?: ProtectableContainersListOptionalParams,\n ): PagedAsyncIterableIterator<ProtectableContainerResource> {\n const iter = this.listPagingAll(\n vaultName,\n resourceGroupName,\n fabricName,\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.listPagingPage(\n vaultName,\n resourceGroupName,\n fabricName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n options?: ProtectableContainersListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ProtectableContainerResource[]> {\n let result: ProtectableContainersListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n vaultName,\n resourceGroupName,\n fabricName,\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._listNext(\n vaultName,\n resourceGroupName,\n fabricName,\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 *listPagingAll(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n options?: ProtectableContainersListOptionalParams,\n ): AsyncIterableIterator<ProtectableContainerResource> {\n for await (const page of this.listPagingPage(\n vaultName,\n resourceGroupName,\n fabricName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the containers that can be registered to Recovery Services Vault.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName\n * @param options The options parameters.\n */\n private _list(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n options?: ProtectableContainersListOptionalParams,\n ): Promise<ProtectableContainersListResponse> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, fabricName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n nextLink: string,\n options?: ProtectableContainersListNextOptionalParams,\n ): Promise<ProtectableContainersListNextResponse> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, fabricName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectableContainers\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectableContainerResourceList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectableContainerResourceList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"protectableContainers.js","sourceRoot":"","sources":["../../../src/operations/protectableContainers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAUtD,4CAA4C;AAC5C,yDAAyD;AACzD,MAAa,yBAAyB;IACnB,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACI,IAAI,CACT,SAAiB,EACjB,iBAAyB,EACzB,UAAkB,EAClB,OAAiD;QAEjD,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAC7B,SAAS,EACT,iBAAiB,EACjB,UAAU,EACV,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gB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C;IAC3D,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,UAAU;KACtB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gCAAgC;SACrD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,UAAU;QACrB,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 { ProtectableContainers } 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 { RecoveryServicesBackupClient } from \"../recoveryServicesBackupClient.js\";\nimport {\n ProtectableContainerResource,\n ProtectableContainersListNextOptionalParams,\n ProtectableContainersListOptionalParams,\n ProtectableContainersListResponse,\n ProtectableContainersListNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ProtectableContainers operations. */\nexport class ProtectableContainersImpl implements ProtectableContainers {\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class ProtectableContainers class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * Lists the containers that can be registered to Recovery Services Vault.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName\n * @param options The options parameters.\n */\n public list(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n options?: ProtectableContainersListOptionalParams,\n ): PagedAsyncIterableIterator<ProtectableContainerResource> {\n const iter = this.listPagingAll(\n vaultName,\n resourceGroupName,\n fabricName,\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.listPagingPage(\n vaultName,\n resourceGroupName,\n fabricName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listPagingPage(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n options?: ProtectableContainersListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ProtectableContainerResource[]> {\n let result: ProtectableContainersListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(\n vaultName,\n resourceGroupName,\n fabricName,\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._listNext(\n vaultName,\n resourceGroupName,\n fabricName,\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 *listPagingAll(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n options?: ProtectableContainersListOptionalParams,\n ): AsyncIterableIterator<ProtectableContainerResource> {\n for await (const page of this.listPagingPage(\n vaultName,\n resourceGroupName,\n fabricName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists the containers that can be registered to Recovery Services Vault.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName\n * @param options The options parameters.\n */\n private _list(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n options?: ProtectableContainersListOptionalParams,\n ): Promise<ProtectableContainersListResponse> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, fabricName, options },\n listOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n nextLink: string,\n options?: ProtectableContainersListNextOptionalParams,\n ): Promise<ProtectableContainersListNextResponse> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, fabricName, nextLink, options },\n listNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectableContainers\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectableContainerResourceList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectableContainerResourceList,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.nextLink,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
14
14
  const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
15
  /** Class containing ProtectedItemOperationResults operations. */
16
16
  class ProtectedItemOperationResultsImpl {
17
+ client;
17
18
  /**
18
19
  * Initialize a new instance of the class ProtectedItemOperationResults class.
19
20
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"protectedItemOperationResults.js","sourceRoot":"","sources":["../../../src/operations/protectedItemOperationResults.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,iEAAiE;AACjE,MAAa,iCAAiC;IAK5C;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;OAUG;IACH,GAAG,CACD,SAAiB,EACjB,iBAAyB,EACzB,UAAkB,EAClB,aAAqB,EACrB,iBAAyB,EACzB,WAAmB,EACnB,OAAwD;QAExD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,SAAS;YACT,iBAAiB;YACjB,UAAU;YACV,aAAa;YACb,iBAAiB;YACjB,WAAW;YACX,OAAO;SACR,EACD,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AA9CD,8EA8CC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,8PAA8P;IACpQ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;QACD,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,iBAAiB;KAC7B;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 { ProtectedItemOperationResults } 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 { RecoveryServicesBackupClient } from \"../recoveryServicesBackupClient.js\";\nimport {\n ProtectedItemOperationResultsGetOptionalParams,\n ProtectedItemOperationResultsGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing ProtectedItemOperationResults operations. */\nexport class ProtectedItemOperationResultsImpl\n implements ProtectedItemOperationResults\n{\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class ProtectedItemOperationResults class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * Fetches the result of any operation on the backup item.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated with the backup item.\n * @param containerName Container name associated with the backup item.\n * @param protectedItemName Backup item name whose details are to be fetched.\n * @param operationId OperationID which represents the operation whose result needs to be fetched.\n * @param options The options parameters.\n */\n get(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n protectedItemName: string,\n operationId: string,\n options?: ProtectedItemOperationResultsGetOptionalParams,\n ): Promise<ProtectedItemOperationResultsGetResponse> {\n return this.client.sendOperationRequest(\n {\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n operationId,\n options,\n },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/operationResults/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectedItemResource,\n },\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.operationId,\n Parameters.containerName,\n Parameters.protectedItemName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"protectedItemOperationResults.js","sourceRoot":"","sources":["../../../src/operations/protectedItemOperationResults.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,iEAAiE;AACjE,MAAa,iCAAiC;IAG3B,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;OAUG;IACH,GAAG,CACD,SAAiB,EACjB,iBAAyB,EACzB,UAAkB,EAClB,aAAqB,EACrB,iBAAyB,EACzB,WAAmB,EACnB,OAAwD;QAExD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,SAAS;YACT,iBAAiB;YACjB,UAAU;YACV,aAAa;YACb,iBAAiB;YACjB,WAAW;YACX,OAAO;SACR,EACD,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AA9CD,8EA8CC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,8PAA8P;IACpQ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,qBAAqB;SAC1C;QACD,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,iBAAiB;KAC7B;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 { ProtectedItemOperationResults } 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 { RecoveryServicesBackupClient } from \"../recoveryServicesBackupClient.js\";\nimport {\n ProtectedItemOperationResultsGetOptionalParams,\n ProtectedItemOperationResultsGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing ProtectedItemOperationResults operations. */\nexport class ProtectedItemOperationResultsImpl\n implements ProtectedItemOperationResults\n{\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class ProtectedItemOperationResults class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * Fetches the result of any operation on the backup item.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated with the backup item.\n * @param containerName Container name associated with the backup item.\n * @param protectedItemName Backup item name whose details are to be fetched.\n * @param operationId OperationID which represents the operation whose result needs to be fetched.\n * @param options The options parameters.\n */\n get(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n protectedItemName: string,\n operationId: string,\n options?: ProtectedItemOperationResultsGetOptionalParams,\n ): Promise<ProtectedItemOperationResultsGetResponse> {\n return this.client.sendOperationRequest(\n {\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n operationId,\n options,\n },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/operationResults/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectedItemResource,\n },\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.operationId,\n Parameters.containerName,\n Parameters.protectedItemName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
14
14
  const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
15
  /** Class containing ProtectedItemOperationStatuses operations. */
16
16
  class ProtectedItemOperationStatusesImpl {
17
+ client;
17
18
  /**
18
19
  * Initialize a new instance of the class ProtectedItemOperationStatuses class.
19
20
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"protectedItemOperationStatuses.js","sourceRoot":"","sources":["../../../src/operations/protectedItemOperationStatuses.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,kEAAkE;AAClE,MAAa,kCAAkC;IAK7C;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,GAAG,CACD,SAAiB,EACjB,iBAAyB,EACzB,UAAkB,EAClB,aAAqB,EACrB,iBAAyB,EACzB,WAAmB,EACnB,OAAyD;QAEzD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,SAAS;YACT,iBAAiB;YACjB,UAAU;YACV,aAAa;YACb,iBAAiB;YACjB,WAAW;YACX,OAAO;SACR,EACD,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AAlDD,gFAkDC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,8PAA8P;IACpQ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,iBAAiB;KAC7B;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 { ProtectedItemOperationStatuses } 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 { RecoveryServicesBackupClient } from \"../recoveryServicesBackupClient.js\";\nimport {\n ProtectedItemOperationStatusesGetOptionalParams,\n ProtectedItemOperationStatusesGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing ProtectedItemOperationStatuses operations. */\nexport class ProtectedItemOperationStatusesImpl\n implements ProtectedItemOperationStatuses\n{\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class ProtectedItemOperationStatuses class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * Fetches the status of an operation such as triggering a backup, restore. The status can be in\n * progress, completed\n * or failed. You can refer to the OperationStatus enum for all the possible states of the operation.\n * Some operations\n * create jobs. This method returns the list of jobs associated with the operation.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated with the backup item.\n * @param containerName Container name associated with the backup item.\n * @param protectedItemName Backup item name whose details are to be fetched.\n * @param operationId OperationID represents the operation whose status needs to be fetched.\n * @param options The options parameters.\n */\n get(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n protectedItemName: string,\n operationId: string,\n options?: ProtectedItemOperationStatusesGetOptionalParams,\n ): Promise<ProtectedItemOperationStatusesGetResponse> {\n return this.client.sendOperationRequest(\n {\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n operationId,\n options,\n },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/operationsStatus/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatus,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.operationId,\n Parameters.containerName,\n Parameters.protectedItemName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"protectedItemOperationStatuses.js","sourceRoot":"","sources":["../../../src/operations/protectedItemOperationStatuses.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,kEAAkE;AAClE,MAAa,kCAAkC;IAG5B,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,GAAG,CACD,SAAiB,EACjB,iBAAyB,EACzB,UAAkB,EAClB,aAAqB,EACrB,iBAAyB,EACzB,WAAmB,EACnB,OAAyD;QAEzD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,SAAS;YACT,iBAAiB;YACjB,UAAU;YACV,aAAa;YACb,iBAAiB;YACjB,WAAW;YACX,OAAO;SACR,EACD,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AAlDD,gFAkDC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,8PAA8P;IACpQ,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,iBAAiB;KAC7B;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 { ProtectedItemOperationStatuses } 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 { RecoveryServicesBackupClient } from \"../recoveryServicesBackupClient.js\";\nimport {\n ProtectedItemOperationStatusesGetOptionalParams,\n ProtectedItemOperationStatusesGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing ProtectedItemOperationStatuses operations. */\nexport class ProtectedItemOperationStatusesImpl\n implements ProtectedItemOperationStatuses\n{\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class ProtectedItemOperationStatuses class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * Fetches the status of an operation such as triggering a backup, restore. The status can be in\n * progress, completed\n * or failed. You can refer to the OperationStatus enum for all the possible states of the operation.\n * Some operations\n * create jobs. This method returns the list of jobs associated with the operation.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated with the backup item.\n * @param containerName Container name associated with the backup item.\n * @param protectedItemName Backup item name whose details are to be fetched.\n * @param operationId OperationID represents the operation whose status needs to be fetched.\n * @param options The options parameters.\n */\n get(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n protectedItemName: string,\n operationId: string,\n options?: ProtectedItemOperationStatusesGetOptionalParams,\n ): Promise<ProtectedItemOperationStatusesGetResponse> {\n return this.client.sendOperationRequest(\n {\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n operationId,\n options,\n },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}/operationsStatus/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationStatus,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.operationId,\n Parameters.containerName,\n Parameters.protectedItemName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
14
14
  const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
15
  /** Class containing ProtectedItems operations. */
16
16
  class ProtectedItemsImpl {
17
+ client;
17
18
  /**
18
19
  * Initialize a new instance of the class ProtectedItems class.
19
20
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"protectedItems.js","sourceRoot":"","sources":["../../../src/operations/protectedItems.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAWtD,kDAAkD;AAClD,MAAa,kBAAkB;IAG7B;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;;OAWG;IACH,GAAG,CACD,SAAiB,EACjB,iBAAyB,EACzB,UAAkB,EAClB,aAAqB,EACrB,iBAAyB,EACzB,OAAyC;QAEzC,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,SAAS;YACT,iBAAiB;YACjB,UAAU;YACV,aAAa;YACb,iBAAiB;YACjB,OAAO;SACR,EACD,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,cAAc,CACZ,SAAiB,EACjB,iBAAyB,EACzB,UAAkB,EAClB,aAAqB,EACrB,iBAAyB,EACzB,UAAiC,EACjC,OAAoD;QAEpD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,SAAS;YACT,iBAAiB;YACjB,UAAU;YACV,a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,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,YAAY;IACpC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,iBAAiB;KAC7B;IACD,gBAAgB,EAAE;QAChB,UAAU,CAAC,MAAM;QACjB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,yBAAyB;KACrC;IACD,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,+NAA+N;IACrO,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,iBAAiB;KAC7B;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 { ProtectedItems } 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 { RecoveryServicesBackupClient } from \"../recoveryServicesBackupClient.js\";\nimport {\n ProtectedItemsGetOptionalParams,\n ProtectedItemsGetResponse,\n ProtectedItemResource,\n ProtectedItemsCreateOrUpdateOptionalParams,\n ProtectedItemsCreateOrUpdateResponse,\n ProtectedItemsDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/** Class containing ProtectedItems operations. */\nexport class ProtectedItemsImpl implements ProtectedItems {\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class ProtectedItems class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * Provides the details of the backed up item. This is an asynchronous operation. To know the status of\n * the operation,\n * call the GetItemOperationResult API.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated with the backed up item.\n * @param containerName Container name associated with the backed up item.\n * @param protectedItemName Backed up item name whose details are to be fetched.\n * @param options The options parameters.\n */\n get(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n protectedItemName: string,\n options?: ProtectedItemsGetOptionalParams,\n ): Promise<ProtectedItemsGetResponse> {\n return this.client.sendOperationRequest(\n {\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Enables backup of an item or to modifies the backup policy information of an already backed up item.\n * This is an\n * asynchronous operation. To know the status of the operation, call the GetItemOperationResult API.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated with the backup item.\n * @param containerName Container name associated with the backup item.\n * @param protectedItemName Item name to be backed up.\n * @param parameters resource backed up item\n * @param options The options parameters.\n */\n createOrUpdate(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n protectedItemName: string,\n parameters: ProtectedItemResource,\n options?: ProtectedItemsCreateOrUpdateOptionalParams,\n ): Promise<ProtectedItemsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n parameters,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Used to disable backup of an item within a container. This is an asynchronous operation. To know the\n * status of the\n * request, call the GetItemOperationResult API.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated with the backed up item.\n * @param containerName Container name associated with the backed up item.\n * @param protectedItemName Backed up item to be deleted.\n * @param options The options parameters.\n */\n delete(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n protectedItemName: string,\n options?: ProtectedItemsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n options,\n },\n deleteOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectedItemResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.containerName,\n Parameters.protectedItemName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectedItemResource,\n },\n 202: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters11,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.containerName,\n Parameters.protectedItemName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.xMsAuthorizationAuxiliary,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.containerName,\n Parameters.protectedItemName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"protectedItems.js","sourceRoot":"","sources":["../../../src/operations/protectedItems.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAWtD,kDAAkD;AAClD,MAAa,kBAAkB;IACZ,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;;;OAWG;IACH,GAAG,CACD,SAAiB,E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ACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,iBAAiB;KAC7B;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 { ProtectedItems } 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 { RecoveryServicesBackupClient } from \"../recoveryServicesBackupClient.js\";\nimport {\n ProtectedItemsGetOptionalParams,\n ProtectedItemsGetResponse,\n ProtectedItemResource,\n ProtectedItemsCreateOrUpdateOptionalParams,\n ProtectedItemsCreateOrUpdateResponse,\n ProtectedItemsDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/** Class containing ProtectedItems operations. */\nexport class ProtectedItemsImpl implements ProtectedItems {\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class ProtectedItems class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * Provides the details of the backed up item. This is an asynchronous operation. To know the status of\n * the operation,\n * call the GetItemOperationResult API.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated with the backed up item.\n * @param containerName Container name associated with the backed up item.\n * @param protectedItemName Backed up item name whose details are to be fetched.\n * @param options The options parameters.\n */\n get(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n protectedItemName: string,\n options?: ProtectedItemsGetOptionalParams,\n ): Promise<ProtectedItemsGetResponse> {\n return this.client.sendOperationRequest(\n {\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Enables backup of an item or to modifies the backup policy information of an already backed up item.\n * This is an\n * asynchronous operation. To know the status of the operation, call the GetItemOperationResult API.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated with the backup item.\n * @param containerName Container name associated with the backup item.\n * @param protectedItemName Item name to be backed up.\n * @param parameters resource backed up item\n * @param options The options parameters.\n */\n createOrUpdate(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n protectedItemName: string,\n parameters: ProtectedItemResource,\n options?: ProtectedItemsCreateOrUpdateOptionalParams,\n ): Promise<ProtectedItemsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n parameters,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Used to disable backup of an item within a container. This is an asynchronous operation. To know the\n * status of the\n * request, call the GetItemOperationResult API.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated with the backed up item.\n * @param containerName Container name associated with the backed up item.\n * @param protectedItemName Backed up item to be deleted.\n * @param options The options parameters.\n */\n delete(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n protectedItemName: string,\n options?: ProtectedItemsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n protectedItemName,\n options,\n },\n deleteOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectedItemResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.containerName,\n Parameters.protectedItemName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectedItemResource,\n },\n 202: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters11,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.containerName,\n Parameters.protectedItemName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.xMsAuthorizationAuxiliary,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/protectedItems/{protectedItemName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.containerName,\n Parameters.protectedItemName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
14
14
  const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
15
  /** Class containing ProtectionContainerOperationResults operations. */
16
16
  class ProtectionContainerOperationResultsImpl {
17
+ client;
17
18
  /**
18
19
  * Initialize a new instance of the class ProtectionContainerOperationResults class.
19
20
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"protectionContainerOperationResults.js","sourceRoot":"","sources":["../../../src/operations/protectionContainerOperationResults.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,uEAAuE;AACvE,MAAa,uCAAuC;IAKlD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;OASG;IACH,GAAG,CACD,SAAiB,EACjB,iBAAyB,EACzB,UAAkB,EAClB,aAAqB,EACrB,WAAmB,EACnB,OAA8D;QAE9D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,SAAS;YACT,iBAAiB;YACjB,UAAU;YACV,aAAa;YACb,WAAW;YACX,OAAO;SACR,EACD,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AA3CD,0FA2CC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,2NAA2N;IACjO,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,2BAA2B;SAChD;QACD,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,aAAa;KACzB;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 { ProtectionContainerOperationResults } 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 { RecoveryServicesBackupClient } from \"../recoveryServicesBackupClient.js\";\nimport {\n ProtectionContainerOperationResultsGetOptionalParams,\n ProtectionContainerOperationResultsGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing ProtectionContainerOperationResults operations. */\nexport class ProtectionContainerOperationResultsImpl\n implements ProtectionContainerOperationResults\n{\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class ProtectionContainerOperationResults class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * Fetches the result of any operation on the container.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated with the container.\n * @param containerName Container name whose information should be fetched.\n * @param operationId Operation ID which represents the operation whose result needs to be fetched.\n * @param options The options parameters.\n */\n get(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n operationId: string,\n options?: ProtectionContainerOperationResultsGetOptionalParams,\n ): Promise<ProtectionContainerOperationResultsGetResponse> {\n return this.client.sendOperationRequest(\n {\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n operationId,\n options,\n },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/operationResults/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectionContainerResource,\n },\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.operationId,\n Parameters.containerName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"protectionContainerOperationResults.js","sourceRoot":"","sources":["../../../src/operations/protectionContainerOperationResults.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAOtD,uEAAuE;AACvE,MAAa,uCAAuC;IAGjC,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;;OASG;IACH,GAAG,CACD,SAAiB,EACjB,iBAAyB,EACzB,UAAkB,EAClB,aAAqB,EACrB,WAAmB,EACnB,OAA8D;QAE9D,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,SAAS;YACT,iBAAiB;YACjB,UAAU;YACV,aAAa;YACb,WAAW;YACX,OAAO;SACR,EACD,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AA3CD,0FA2CC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,2NAA2N;IACjO,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,2BAA2B;SAChD;QACD,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,aAAa;KACzB;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 { ProtectionContainerOperationResults } 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 { RecoveryServicesBackupClient } from \"../recoveryServicesBackupClient.js\";\nimport {\n ProtectionContainerOperationResultsGetOptionalParams,\n ProtectionContainerOperationResultsGetResponse,\n} from \"../models/index.js\";\n\n/** Class containing ProtectionContainerOperationResults operations. */\nexport class ProtectionContainerOperationResultsImpl\n implements ProtectionContainerOperationResults\n{\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class ProtectionContainerOperationResults class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * Fetches the result of any operation on the container.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated with the container.\n * @param containerName Container name whose information should be fetched.\n * @param operationId Operation ID which represents the operation whose result needs to be fetched.\n * @param options The options parameters.\n */\n get(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n operationId: string,\n options?: ProtectionContainerOperationResultsGetOptionalParams,\n ): Promise<ProtectionContainerOperationResultsGetResponse> {\n return this.client.sendOperationRequest(\n {\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n operationId,\n options,\n },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/operationResults/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectionContainerResource,\n },\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.operationId,\n Parameters.containerName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
14
14
  const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
15
  /** Class containing ProtectionContainerRefreshOperationResults operations. */
16
16
  class ProtectionContainerRefreshOperationResultsImpl {
17
+ client;
17
18
  /**
18
19
  * Initialize a new instance of the class ProtectionContainerRefreshOperationResults class.
19
20
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"protectionContainerRefreshOperationResults.js","sourceRoot":"","sources":["../../../src/operations/protectionContainerRefreshOperationResults.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAItD,8EAA8E;AAC9E,MAAa,8CAA8C;IAKzD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACH,GAAG,CACD,SAAiB,EACjB,iBAAyB,EACzB,UAAkB,EAClB,WAAmB,EACnB,OAAqE;QAErE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,SAAS,EAAE,iBAAiB,EAAE,UAAU,EAAE,WAAW,EAAE,OAAO,EAAE,EAClE,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AAlCD,wGAkCC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,sLAAsL;IAC5L,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,WAAW;KACvB;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 { ProtectionContainerRefreshOperationResults } 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 { RecoveryServicesBackupClient } from \"../recoveryServicesBackupClient.js\";\nimport { ProtectionContainerRefreshOperationResultsGetOptionalParams } from \"../models/index.js\";\n\n/** Class containing ProtectionContainerRefreshOperationResults operations. */\nexport class ProtectionContainerRefreshOperationResultsImpl\n implements ProtectionContainerRefreshOperationResults\n{\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class ProtectionContainerRefreshOperationResults class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * Provides the result of the refresh operation triggered by the BeginRefresh operation.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated with the container.\n * @param operationId Operation ID associated with the operation whose result needs to be fetched.\n * @param options The options parameters.\n */\n get(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n operationId: string,\n options?: ProtectionContainerRefreshOperationResultsGetOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, fabricName, operationId, options },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/operationResults/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.operationId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"protectionContainerRefreshOperationResults.js","sourceRoot":"","sources":["../../../src/operations/protectionContainerRefreshOperationResults.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAItD,8EAA8E;AAC9E,MAAa,8CAA8C;IAGxC,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACH,GAAG,CACD,SAAiB,EACjB,iBAAyB,EACzB,UAAkB,EAClB,WAAmB,EACnB,OAAqE;QAErE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,SAAS,EAAE,iBAAiB,EAAE,UAAU,EAAE,WAAW,EAAE,OAAO,EAAE,EAClE,gBAAgB,CACjB,CAAC;IACJ,CAAC;CACF;AAlCD,wGAkCC;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,sLAAsL;IAC5L,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,WAAW;KACvB;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 { ProtectionContainerRefreshOperationResults } 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 { RecoveryServicesBackupClient } from \"../recoveryServicesBackupClient.js\";\nimport { ProtectionContainerRefreshOperationResultsGetOptionalParams } from \"../models/index.js\";\n\n/** Class containing ProtectionContainerRefreshOperationResults operations. */\nexport class ProtectionContainerRefreshOperationResultsImpl\n implements ProtectionContainerRefreshOperationResults\n{\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class ProtectionContainerRefreshOperationResults class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * Provides the result of the refresh operation triggered by the BeginRefresh operation.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated with the container.\n * @param operationId Operation ID associated with the operation whose result needs to be fetched.\n * @param options The options parameters.\n */\n get(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n operationId: string,\n options?: ProtectionContainerRefreshOperationResultsGetOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, fabricName, operationId, options },\n getOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/operationResults/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.operationId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -16,6 +16,7 @@ const core_lro_1 = require("@azure/core-lro");
16
16
  const lroImpl_js_1 = require("../lroImpl.js");
17
17
  /** Class containing ProtectionContainers operations. */
18
18
  class ProtectionContainersImpl {
19
+ client;
19
20
  /**
20
21
  * Initialize a new instance of the class ProtectionContainers class.
21
22
  * @param client Reference to the service client
@@ -53,14 +54,19 @@ class ProtectionContainersImpl {
53
54
  return this.client.sendOperationRequest(args, spec);
54
55
  };
55
56
  const sendOperationFn = async (args, spec) => {
56
- var _a;
57
57
  let currentRawResponse = undefined;
58
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
58
+ const providedCallback = args.options?.onResponse;
59
59
  const callback = (rawResponse, flatResponse) => {
60
60
  currentRawResponse = rawResponse;
61
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
61
+ providedCallback?.(rawResponse, flatResponse);
62
+ };
63
+ const updatedArgs = {
64
+ ...args,
65
+ options: {
66
+ ...args.options,
67
+ onResponse: callback,
68
+ },
62
69
  };
63
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
64
70
  const flatResponse = await directSendOperation(updatedArgs, spec);
65
71
  return {
66
72
  flatResponse,
@@ -84,8 +90,8 @@ class ProtectionContainersImpl {
84
90
  spec: registerOperationSpec,
85
91
  });
86
92
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
87
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
88
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
93
+ restoreFrom: options?.resumeFrom,
94
+ intervalInMs: options?.updateIntervalInMs,
89
95
  });
90
96
  await poller.poll();
91
97
  return poller;
@@ -1 +1 @@
1
- {"version":3,"file":"protectionContainers.js","sourceRoot":"","sources":["../../../src/operations/protectionContainers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAY9C,wDAAwD;AACxD,MAAa,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACH,GAAG,CACD,SAAiB,EACjB,iBAAyB,EACzB,UAAkB,EAClB,aAAqB,EACrB,OAA+C;QAE/C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,SAAS,EAAE,iBAAiB,EAAE,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,EACpE,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,aAAa,CACjB,SAAiB,EACjB,iBAAyB,EACzB,UAAkB,EAClB,aAAqB,EACrB,UAAuC,EACvC,OAAoD;QAOpD,MAAM,mBAAmB,GAAG,KAAK,EAC/B,IAAmC,EACnC,IAA8B,EACiB,EAAE;YACjD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACtD,CAAC,CAAC;QACF,MAAM,eAAe,GAAG,KAAK,EAC3B,IAAmC,EACnC,IAA8B,EAC9B,EAAE;;YACF,IAAI,kBAAkB,GACpB,SAAS,CAAC;YACZ,MAAM,gBAAgB,GAAG,MAAA,IAAI,CAAC,OAAO,0CAAE,UAAU,CAAC;YAClD,MAAM,QAAQ,GAAmC,CAC/C,WAA6C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D,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 { ProtectionContainers } 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 { RecoveryServicesBackupClient } from \"../recoveryServicesBackupClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n ProtectionContainersGetOptionalParams,\n ProtectionContainersGetResponse,\n ProtectionContainerResource,\n ProtectionContainersRegisterOptionalParams,\n ProtectionContainersRegisterResponse,\n ProtectionContainersUnregisterOptionalParams,\n ProtectionContainersInquireOptionalParams,\n ProtectionContainersRefreshOptionalParams,\n} from \"../models/index.js\";\n\n/** Class containing ProtectionContainers operations. */\nexport class ProtectionContainersImpl implements ProtectionContainers {\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class ProtectionContainers class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * Gets details of the specific container registered to your Recovery Services Vault.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Name of the fabric where the container belongs.\n * @param containerName Name of the container whose details need to be fetched.\n * @param options The options parameters.\n */\n get(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n options?: ProtectionContainersGetOptionalParams,\n ): Promise<ProtectionContainersGetResponse> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, fabricName, containerName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Registers the container with Recovery Services vault.\n * This is an asynchronous operation. To track the operation status, use location header to call get\n * latest status of\n * the operation.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated with the container.\n * @param containerName Name of the container to be registered.\n * @param parameters Request body for operation\n * @param options The options parameters.\n */\n async beginRegister(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n parameters: ProtectionContainerResource,\n options?: ProtectionContainersRegisterOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ProtectionContainersRegisterResponse>,\n ProtectionContainersRegisterResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ProtectionContainersRegisterResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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 = createLroSpec({\n sendOperationFn,\n args: {\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n parameters,\n options,\n },\n spec: registerOperationSpec,\n });\n const poller = await createHttpPoller<\n ProtectionContainersRegisterResponse,\n OperationState<ProtectionContainersRegisterResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Registers the container with Recovery Services vault.\n * This is an asynchronous operation. To track the operation status, use location header to call get\n * latest status of\n * the operation.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated with the container.\n * @param containerName Name of the container to be registered.\n * @param parameters Request body for operation\n * @param options The options parameters.\n */\n async beginRegisterAndWait(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n parameters: ProtectionContainerResource,\n options?: ProtectionContainersRegisterOptionalParams,\n ): Promise<ProtectionContainersRegisterResponse> {\n const poller = await this.beginRegister(\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Unregisters the given container from your Recovery Services Vault. This is an asynchronous\n * operation. To determine\n * whether the backend service has finished processing the request, call Get Container Operation Result\n * API.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Name of the fabric where the container belongs.\n * @param containerName Name of the container which needs to be unregistered from the Recovery Services\n * Vault.\n * @param options The options parameters.\n */\n unregister(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n options?: ProtectionContainersUnregisterOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, fabricName, containerName, options },\n unregisterOperationSpec,\n );\n }\n\n /**\n * This is an async operation and the results should be tracked using location header or\n * Azure-async-url.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric Name associated with the container.\n * @param containerName Name of the container in which inquiry needs to be triggered.\n * @param options The options parameters.\n */\n inquire(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n options?: ProtectionContainersInquireOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, fabricName, containerName, options },\n inquireOperationSpec,\n );\n }\n\n /**\n * Discovers all the containers in the subscription that can be backed up to Recovery Services Vault.\n * This is an\n * asynchronous operation. To know the status of the operation, call GetRefreshOperationResult API.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated the container.\n * @param options The options parameters.\n */\n refresh(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n options?: ProtectionContainersRefreshOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, fabricName, options },\n refreshOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectionContainerResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.containerName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst registerOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectionContainerResource,\n },\n 201: {\n bodyMapper: Mappers.ProtectionContainerResource,\n },\n 202: {\n bodyMapper: Mappers.ProtectionContainerResource,\n },\n 204: {\n bodyMapper: Mappers.ProtectionContainerResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters15,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.containerName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst unregisterOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.containerName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst inquireOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/inquire\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.containerName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst refreshOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/refreshContainers\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"protectionContainers.js","sourceRoot":"","sources":["../../../src/operations/protectionContainers.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAEtD,8CAIyB;AACzB,8CAA8C;AAY9C,wDAAwD;AACxD,MAAa,wBAAwB;IAClB,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACH,GAAG,CACD,SAAiB,EACjB,iBAAyB,EACzB,UAAkB,EAClB,aAAqB,EACrB,OAA+C;QAE/C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,SAAS,EAAE,iBAAiB,EAAE,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,EACpE,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,KAAK,CAAC,aAAa,CACjB,SAAiB,EACjB,iBAAyB,EACzB,UAAkB,EAClB,aAAqB,EACrB,UAAuC,EACvC,OAAoD;QAOpD,MAAM,mBAAmB,GAAG,KAAK,EAC/B,IAAmC,EACnC,IAA8B,EACiB,EAAE;YACjD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;QACtD,CAAC,CAAC;QACF,MAAM,eAAe,GAAG,KAAK,EAC3B,IAAmC,EACnC,IAA8B,EAC9B,EAAE;YACF,IAAI,kBAAkB,GACpB,SAAS,CAAC;YACZ,MAAM,gBAAgB,GAAG,IAAI,CAAC,OAAO,EAAE,UAAU,CAAC;YAClD,MAAM,QAAQ,GAAmC,CAC/C,WAA6C,EAC7C,YAAqB,EACrB,EAAE;gBACF,kBAAkB,GAAG,WAAW,CAAC;gBACjC,gBAAgB,EAAE,CAAC,WAAW,EAAE,YAAY,CAA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B,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oBAAoB,GAA6B;IACrD,IAAI,EAAE,oMAAoM;IAC1M,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC;IAC3D,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,aAAa;KACzB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oBAAoB,GAA6B;IACrD,IAAI,EAAE,yKAAyK;IAC/K,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC;IAC3D,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,UAAU;KACtB;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 { ProtectionContainers } 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 { RecoveryServicesBackupClient } from \"../recoveryServicesBackupClient.js\";\nimport {\n SimplePollerLike,\n OperationState,\n createHttpPoller,\n} from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport {\n ProtectionContainersGetOptionalParams,\n ProtectionContainersGetResponse,\n ProtectionContainerResource,\n ProtectionContainersRegisterOptionalParams,\n ProtectionContainersRegisterResponse,\n ProtectionContainersUnregisterOptionalParams,\n ProtectionContainersInquireOptionalParams,\n ProtectionContainersRefreshOptionalParams,\n} from \"../models/index.js\";\n\n/** Class containing ProtectionContainers operations. */\nexport class ProtectionContainersImpl implements ProtectionContainers {\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class ProtectionContainers class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * Gets details of the specific container registered to your Recovery Services Vault.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Name of the fabric where the container belongs.\n * @param containerName Name of the container whose details need to be fetched.\n * @param options The options parameters.\n */\n get(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n options?: ProtectionContainersGetOptionalParams,\n ): Promise<ProtectionContainersGetResponse> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, fabricName, containerName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Registers the container with Recovery Services vault.\n * This is an asynchronous operation. To track the operation status, use location header to call get\n * latest status of\n * the operation.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated with the container.\n * @param containerName Name of the container to be registered.\n * @param parameters Request body for operation\n * @param options The options parameters.\n */\n async beginRegister(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n parameters: ProtectionContainerResource,\n options?: ProtectionContainersRegisterOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<ProtectionContainersRegisterResponse>,\n ProtectionContainersRegisterResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<ProtectionContainersRegisterResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | undefined =\n 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 = createLroSpec({\n sendOperationFn,\n args: {\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n parameters,\n options,\n },\n spec: registerOperationSpec,\n });\n const poller = await createHttpPoller<\n ProtectionContainersRegisterResponse,\n OperationState<ProtectionContainersRegisterResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Registers the container with Recovery Services vault.\n * This is an asynchronous operation. To track the operation status, use location header to call get\n * latest status of\n * the operation.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated with the container.\n * @param containerName Name of the container to be registered.\n * @param parameters Request body for operation\n * @param options The options parameters.\n */\n async beginRegisterAndWait(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n parameters: ProtectionContainerResource,\n options?: ProtectionContainersRegisterOptionalParams,\n ): Promise<ProtectionContainersRegisterResponse> {\n const poller = await this.beginRegister(\n vaultName,\n resourceGroupName,\n fabricName,\n containerName,\n parameters,\n options,\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Unregisters the given container from your Recovery Services Vault. This is an asynchronous\n * operation. To determine\n * whether the backend service has finished processing the request, call Get Container Operation Result\n * API.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Name of the fabric where the container belongs.\n * @param containerName Name of the container which needs to be unregistered from the Recovery Services\n * Vault.\n * @param options The options parameters.\n */\n unregister(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n options?: ProtectionContainersUnregisterOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, fabricName, containerName, options },\n unregisterOperationSpec,\n );\n }\n\n /**\n * This is an async operation and the results should be tracked using location header or\n * Azure-async-url.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric Name associated with the container.\n * @param containerName Name of the container in which inquiry needs to be triggered.\n * @param options The options parameters.\n */\n inquire(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n containerName: string,\n options?: ProtectionContainersInquireOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, fabricName, containerName, options },\n inquireOperationSpec,\n );\n }\n\n /**\n * Discovers all the containers in the subscription that can be backed up to Recovery Services Vault.\n * This is an\n * asynchronous operation. To know the status of the operation, call GetRefreshOperationResult API.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated the container.\n * @param options The options parameters.\n */\n refresh(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n options?: ProtectionContainersRefreshOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, fabricName, options },\n refreshOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectionContainerResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.containerName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst registerOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectionContainerResource,\n },\n 201: {\n bodyMapper: Mappers.ProtectionContainerResource,\n },\n 202: {\n bodyMapper: Mappers.ProtectionContainerResource,\n },\n 204: {\n bodyMapper: Mappers.ProtectionContainerResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters15,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.containerName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst unregisterOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.containerName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst inquireOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/protectionContainers/{containerName}/inquire\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.containerName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst refreshOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/refreshContainers\",\n httpMethod: \"POST\",\n responses: {\n 202: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion, Parameters.filter],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
14
14
  const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
15
15
  /** Class containing ProtectionIntentOperations operations. */
16
16
  class ProtectionIntentOperationsImpl {
17
+ client;
17
18
  /**
18
19
  * Initialize a new instance of the class ProtectionIntentOperations class.
19
20
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"protectionIntentOperations.js","sourceRoot":"","sources":["../../../src/operations/protectionIntentOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AActD,8DAA8D;AAC9D,MAAa,8BAA8B;IAKzC;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;;OAQG;IACH,QAAQ,CACN,WAAmB,EACnB,UAA0C,EAC1C,OAAgD;QAEhD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,WAAW,EAAE,UAAU,EAAE,OAAO,EAAE,EACpC,qBAAqB,CACtB,CAAC;IACJ,CAAC;IAED;;;;;;;;;;OAUG;IACH,GAAG,CACD,SAAiB,EACjB,iBAAyB,EACzB,UAAkB,EAClB,gBAAwB,EACxB,OAA2C;QAE3C,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,SAAS,EAAE,iBAAiB,EAAE,UAAU,EAAE,gBAAgB,EAAE,OAAO,EAAE,EACvE,gBAAgB,CACjB,CAAC;IACJ,CAAC;IAED;;;;;;;;;OASG;IACH,cAAc,CACZ,SAAiB,EACjB,iBAAyB,EACzB,UAAkB,EAClB,gBAAwB,EACxB,UAAoC,EACpC,OAAsD;QAEtD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,SAAS;YACT,iBAAiB;YACjB,UAAU;YACV,gBAAgB;YAChB,UAAU;YACV,OAAO;SACR,EACD,2BAA2B,CAC5B,CAAC;IACJ,CAAC;IAED;;;;;;;;OAQG;IACH,MAAM,CACJ,SAAiB,EACjB,iBAAyB,EACzB,UAAkB,EAClB,gBAA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,2BAA2B,GAA6B;IAC5D,IAAI,EAAE,iMAAiM;IACvM,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;KACF;IACD,WAAW,EAAE,UAAU,CAAC,WAAW;IACnC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,iMAAiM;IACvM,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;IACtB,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,gBAAgB;KAC5B;IACD,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 { ProtectionIntentOperations } 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 { RecoveryServicesBackupClient } from \"../recoveryServicesBackupClient.js\";\nimport {\n PreValidateEnableBackupRequest,\n ProtectionIntentValidateOptionalParams,\n ProtectionIntentValidateResponse,\n ProtectionIntentGetOptionalParams,\n ProtectionIntentGetResponse,\n ProtectionIntentResource,\n ProtectionIntentCreateOrUpdateOptionalParams,\n ProtectionIntentCreateOrUpdateResponse,\n ProtectionIntentDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/** Class containing ProtectionIntentOperations operations. */\nexport class ProtectionIntentOperationsImpl\n implements ProtectionIntentOperations\n{\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class ProtectionIntentOperations class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * It will validate followings\n * 1. Vault capacity\n * 2. VM is already protected\n * 3. Any VM related configuration passed in properties.\n * @param azureRegion Azure region to hit Api\n * @param parameters Enable backup validation request on Virtual Machine\n * @param options The options parameters.\n */\n validate(\n azureRegion: string,\n parameters: PreValidateEnableBackupRequest,\n options?: ProtectionIntentValidateOptionalParams,\n ): Promise<ProtectionIntentValidateResponse> {\n return this.client.sendOperationRequest(\n { azureRegion, parameters, options },\n validateOperationSpec,\n );\n }\n\n /**\n * Provides the details of the protection intent up item. This is an asynchronous operation. To know\n * the status of the operation,\n * call the GetItemOperationResult API.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated with the backed up item.\n * @param intentObjectName Backed up item name whose details are to be fetched.\n * @param options The options parameters.\n */\n get(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n intentObjectName: string,\n options?: ProtectionIntentGetOptionalParams,\n ): Promise<ProtectionIntentGetResponse> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, fabricName, intentObjectName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create Intent for Enabling backup of an item. This is a synchronous operation.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated with the backup item.\n * @param intentObjectName Intent object name.\n * @param parameters resource backed up item\n * @param options The options parameters.\n */\n createOrUpdate(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n intentObjectName: string,\n parameters: ProtectionIntentResource,\n options?: ProtectionIntentCreateOrUpdateOptionalParams,\n ): Promise<ProtectionIntentCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n vaultName,\n resourceGroupName,\n fabricName,\n intentObjectName,\n parameters,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Used to remove intent from an item\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated with the intent.\n * @param intentObjectName Intent to be deleted.\n * @param options The options parameters.\n */\n delete(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n intentObjectName: string,\n options?: ProtectionIntentDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, fabricName, intentObjectName, options },\n deleteOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst validateOperationSpec: coreClient.OperationSpec = {\n path: \"/Subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupPreValidateProtection\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.PreValidateEnableBackupResponse,\n },\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.azureRegion,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/backupProtectionIntent/{intentObjectName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectionIntentResource,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.intentObjectName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/backupProtectionIntent/{intentObjectName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectionIntentResource,\n },\n },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.intentObjectName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/backupProtectionIntent/{intentObjectName}\",\n httpMethod: \"DELETE\",\n responses: { 204: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.intentObjectName,\n ],\n serializer,\n};\n"]}
1
+ {"version":3,"file":"protectionIntentOperations.js","sourceRoot":"","sources":["../../../src/operations/protectionIntentOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AActD,8DAA8D;AAC9D,MAAa,8BAA8B;IAGxB,MAAM,CAA+B;IAEtD;;;OAGG;IACH,YAAY,MAAoC;QAC9C,IAAI,CAA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C,UAAU;QACrB,UAAU,CAAC,gBAAgB;KAC5B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,iMAAiM;IACvM,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE;IACtB,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,SAAS;QACpB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,UAAU;QACrB,UAAU,CAAC,gBAAgB;KAC5B;IACD,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 { ProtectionIntentOperations } 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 { RecoveryServicesBackupClient } from \"../recoveryServicesBackupClient.js\";\nimport {\n PreValidateEnableBackupRequest,\n ProtectionIntentValidateOptionalParams,\n ProtectionIntentValidateResponse,\n ProtectionIntentGetOptionalParams,\n ProtectionIntentGetResponse,\n ProtectionIntentResource,\n ProtectionIntentCreateOrUpdateOptionalParams,\n ProtectionIntentCreateOrUpdateResponse,\n ProtectionIntentDeleteOptionalParams,\n} from \"../models/index.js\";\n\n/** Class containing ProtectionIntentOperations operations. */\nexport class ProtectionIntentOperationsImpl\n implements ProtectionIntentOperations\n{\n private readonly client: RecoveryServicesBackupClient;\n\n /**\n * Initialize a new instance of the class ProtectionIntentOperations class.\n * @param client Reference to the service client\n */\n constructor(client: RecoveryServicesBackupClient) {\n this.client = client;\n }\n\n /**\n * It will validate followings\n * 1. Vault capacity\n * 2. VM is already protected\n * 3. Any VM related configuration passed in properties.\n * @param azureRegion Azure region to hit Api\n * @param parameters Enable backup validation request on Virtual Machine\n * @param options The options parameters.\n */\n validate(\n azureRegion: string,\n parameters: PreValidateEnableBackupRequest,\n options?: ProtectionIntentValidateOptionalParams,\n ): Promise<ProtectionIntentValidateResponse> {\n return this.client.sendOperationRequest(\n { azureRegion, parameters, options },\n validateOperationSpec,\n );\n }\n\n /**\n * Provides the details of the protection intent up item. This is an asynchronous operation. To know\n * the status of the operation,\n * call the GetItemOperationResult API.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated with the backed up item.\n * @param intentObjectName Backed up item name whose details are to be fetched.\n * @param options The options parameters.\n */\n get(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n intentObjectName: string,\n options?: ProtectionIntentGetOptionalParams,\n ): Promise<ProtectionIntentGetResponse> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, fabricName, intentObjectName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Create Intent for Enabling backup of an item. This is a synchronous operation.\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated with the backup item.\n * @param intentObjectName Intent object name.\n * @param parameters resource backed up item\n * @param options The options parameters.\n */\n createOrUpdate(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n intentObjectName: string,\n parameters: ProtectionIntentResource,\n options?: ProtectionIntentCreateOrUpdateOptionalParams,\n ): Promise<ProtectionIntentCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n vaultName,\n resourceGroupName,\n fabricName,\n intentObjectName,\n parameters,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Used to remove intent from an item\n * @param vaultName The name of the recovery services vault.\n * @param resourceGroupName The name of the resource group where the recovery services vault is\n * present.\n * @param fabricName Fabric name associated with the intent.\n * @param intentObjectName Intent to be deleted.\n * @param options The options parameters.\n */\n delete(\n vaultName: string,\n resourceGroupName: string,\n fabricName: string,\n intentObjectName: string,\n options?: ProtectionIntentDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { vaultName, resourceGroupName, fabricName, intentObjectName, options },\n deleteOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst validateOperationSpec: coreClient.OperationSpec = {\n path: \"/Subscriptions/{subscriptionId}/providers/Microsoft.RecoveryServices/locations/{azureRegion}/backupPreValidateProtection\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.PreValidateEnableBackupResponse,\n },\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.azureRegion,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/backupProtectionIntent/{intentObjectName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectionIntentResource,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.intentObjectName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/backupProtectionIntent/{intentObjectName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ProtectionIntentResource,\n },\n },\n requestBody: Parameters.parameters2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.intentObjectName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/Subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/backupProtectionIntent/{intentObjectName}\",\n httpMethod: \"DELETE\",\n responses: { 204: {} },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.vaultName,\n Parameters.resourceGroupName,\n Parameters.subscriptionId,\n Parameters.fabricName,\n Parameters.intentObjectName,\n ],\n serializer,\n};\n"]}
@@ -16,6 +16,7 @@ const core_lro_1 = require("@azure/core-lro");
16
16
  const lroImpl_js_1 = require("../lroImpl.js");
17
17
  /** Class containing ProtectionPolicies operations. */
18
18
  class ProtectionPoliciesImpl {
19
+ client;
19
20
  /**
20
21
  * Initialize a new instance of the class ProtectionPolicies class.
21
22
  * @param client Reference to the service client
@@ -65,14 +66,19 @@ class ProtectionPoliciesImpl {
65
66
  return this.client.sendOperationRequest(args, spec);
66
67
  };
67
68
  const sendOperationFn = async (args, spec) => {
68
- var _a;
69
69
  let currentRawResponse = undefined;
70
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
70
+ const providedCallback = args.options?.onResponse;
71
71
  const callback = (rawResponse, flatResponse) => {
72
72
  currentRawResponse = rawResponse;
73
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
73
+ providedCallback?.(rawResponse, flatResponse);
74
+ };
75
+ const updatedArgs = {
76
+ ...args,
77
+ options: {
78
+ ...args.options,
79
+ onResponse: callback,
80
+ },
74
81
  };
75
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
76
82
  const flatResponse = await directSendOperation(updatedArgs, spec);
77
83
  return {
78
84
  flatResponse,
@@ -89,8 +95,8 @@ class ProtectionPoliciesImpl {
89
95
  spec: deleteOperationSpec,
90
96
  });
91
97
  const poller = await (0, core_lro_1.createHttpPoller)(lro, {
92
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
93
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
98
+ restoreFrom: options?.resumeFrom,
99
+ intervalInMs: options?.updateIntervalInMs,
94
100
  });
95
101
  await poller.poll();
96
102
  return poller;