@azure/arm-authorization 10.0.0-alpha.20250717.1 → 10.0.0-alpha.20250718.2

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 (403) hide show
  1. package/dist/browser/authorizationManagementClient.js +58 -5
  2. package/dist/browser/authorizationManagementClient.js.map +1 -1
  3. package/dist/browser/lroImpl.js +7 -3
  4. package/dist/browser/lroImpl.js.map +1 -1
  5. package/dist/browser/models/mappers.js +118 -51
  6. package/dist/browser/models/mappers.js.map +1 -1
  7. package/dist/browser/operations/accessReviewDefaultSettingsOperations.js +1 -0
  8. package/dist/browser/operations/accessReviewDefaultSettingsOperations.js.map +1 -1
  9. package/dist/browser/operations/accessReviewHistoryDefinitionInstance.js +1 -0
  10. package/dist/browser/operations/accessReviewHistoryDefinitionInstance.js.map +1 -1
  11. package/dist/browser/operations/accessReviewHistoryDefinitionInstances.js +23 -40
  12. package/dist/browser/operations/accessReviewHistoryDefinitionInstances.js.map +1 -1
  13. package/dist/browser/operations/accessReviewHistoryDefinitionOperations.js +1 -0
  14. package/dist/browser/operations/accessReviewHistoryDefinitionOperations.js.map +1 -1
  15. package/dist/browser/operations/accessReviewHistoryDefinitions.js +23 -40
  16. package/dist/browser/operations/accessReviewHistoryDefinitions.js.map +1 -1
  17. package/dist/browser/operations/accessReviewInstanceContactedReviewers.js +23 -40
  18. package/dist/browser/operations/accessReviewInstanceContactedReviewers.js.map +1 -1
  19. package/dist/browser/operations/accessReviewInstanceDecisions.js +23 -40
  20. package/dist/browser/operations/accessReviewInstanceDecisions.js.map +1 -1
  21. package/dist/browser/operations/accessReviewInstanceMyDecisions.js +23 -40
  22. package/dist/browser/operations/accessReviewInstanceMyDecisions.js.map +1 -1
  23. package/dist/browser/operations/accessReviewInstanceOperations.js +1 -0
  24. package/dist/browser/operations/accessReviewInstanceOperations.js.map +1 -1
  25. package/dist/browser/operations/accessReviewInstances.js +23 -40
  26. package/dist/browser/operations/accessReviewInstances.js.map +1 -1
  27. package/dist/browser/operations/accessReviewInstancesAssignedForMyApproval.js +23 -40
  28. package/dist/browser/operations/accessReviewInstancesAssignedForMyApproval.js.map +1 -1
  29. package/dist/browser/operations/accessReviewScheduleDefinitions.js +23 -40
  30. package/dist/browser/operations/accessReviewScheduleDefinitions.js.map +1 -1
  31. package/dist/browser/operations/accessReviewScheduleDefinitionsAssignedForMyApproval.js +23 -40
  32. package/dist/browser/operations/accessReviewScheduleDefinitionsAssignedForMyApproval.js.map +1 -1
  33. package/dist/browser/operations/alertConfigurations.js +23 -40
  34. package/dist/browser/operations/alertConfigurations.js.map +1 -1
  35. package/dist/browser/operations/alertDefinitions.js +23 -40
  36. package/dist/browser/operations/alertDefinitions.js.map +1 -1
  37. package/dist/browser/operations/alertIncidents.js +23 -40
  38. package/dist/browser/operations/alertIncidents.js.map +1 -1
  39. package/dist/browser/operations/alertOperation.js +1 -0
  40. package/dist/browser/operations/alertOperation.js.map +1 -1
  41. package/dist/browser/operations/alerts.js +45 -52
  42. package/dist/browser/operations/alerts.js.map +1 -1
  43. package/dist/browser/operations/classicAdministrators.js +23 -40
  44. package/dist/browser/operations/classicAdministrators.js.map +1 -1
  45. package/dist/browser/operations/denyAssignments.js +89 -157
  46. package/dist/browser/operations/denyAssignments.js.map +1 -1
  47. package/dist/browser/operations/eligibleChildResources.js +23 -40
  48. package/dist/browser/operations/eligibleChildResources.js.map +1 -1
  49. package/dist/browser/operations/globalAdministrator.js +1 -0
  50. package/dist/browser/operations/globalAdministrator.js.map +1 -1
  51. package/dist/browser/operations/operations.js +23 -40
  52. package/dist/browser/operations/operations.js.map +1 -1
  53. package/dist/browser/operations/permissions.js +45 -79
  54. package/dist/browser/operations/permissions.js.map +1 -1
  55. package/dist/browser/operations/providerOperationsMetadataOperations.js +23 -40
  56. package/dist/browser/operations/providerOperationsMetadataOperations.js.map +1 -1
  57. package/dist/browser/operations/roleAssignmentScheduleInstances.js +23 -40
  58. package/dist/browser/operations/roleAssignmentScheduleInstances.js.map +1 -1
  59. package/dist/browser/operations/roleAssignmentScheduleRequests.js +23 -40
  60. package/dist/browser/operations/roleAssignmentScheduleRequests.js.map +1 -1
  61. package/dist/browser/operations/roleAssignmentSchedules.js +23 -40
  62. package/dist/browser/operations/roleAssignmentSchedules.js.map +1 -1
  63. package/dist/browser/operations/roleAssignments.js +89 -157
  64. package/dist/browser/operations/roleAssignments.js.map +1 -1
  65. package/dist/browser/operations/roleDefinitions.js +23 -40
  66. package/dist/browser/operations/roleDefinitions.js.map +1 -1
  67. package/dist/browser/operations/roleEligibilityScheduleInstances.js +23 -40
  68. package/dist/browser/operations/roleEligibilityScheduleInstances.js.map +1 -1
  69. package/dist/browser/operations/roleEligibilityScheduleRequests.js +23 -40
  70. package/dist/browser/operations/roleEligibilityScheduleRequests.js.map +1 -1
  71. package/dist/browser/operations/roleEligibilitySchedules.js +23 -40
  72. package/dist/browser/operations/roleEligibilitySchedules.js.map +1 -1
  73. package/dist/browser/operations/roleManagementPolicies.js +23 -40
  74. package/dist/browser/operations/roleManagementPolicies.js.map +1 -1
  75. package/dist/browser/operations/roleManagementPolicyAssignments.js +23 -40
  76. package/dist/browser/operations/roleManagementPolicyAssignments.js.map +1 -1
  77. package/dist/browser/operations/scopeAccessReviewDefaultSettings.js +1 -0
  78. package/dist/browser/operations/scopeAccessReviewDefaultSettings.js.map +1 -1
  79. package/dist/browser/operations/scopeAccessReviewHistoryDefinition.js +1 -0
  80. package/dist/browser/operations/scopeAccessReviewHistoryDefinition.js.map +1 -1
  81. package/dist/browser/operations/scopeAccessReviewHistoryDefinitionInstance.js +1 -0
  82. package/dist/browser/operations/scopeAccessReviewHistoryDefinitionInstance.js.map +1 -1
  83. package/dist/browser/operations/scopeAccessReviewHistoryDefinitionInstances.js +23 -40
  84. package/dist/browser/operations/scopeAccessReviewHistoryDefinitionInstances.js.map +1 -1
  85. package/dist/browser/operations/scopeAccessReviewHistoryDefinitions.js +23 -40
  86. package/dist/browser/operations/scopeAccessReviewHistoryDefinitions.js.map +1 -1
  87. package/dist/browser/operations/scopeAccessReviewInstance.js +1 -0
  88. package/dist/browser/operations/scopeAccessReviewInstance.js.map +1 -1
  89. package/dist/browser/operations/scopeAccessReviewInstanceContactedReviewers.js +23 -40
  90. package/dist/browser/operations/scopeAccessReviewInstanceContactedReviewers.js.map +1 -1
  91. package/dist/browser/operations/scopeAccessReviewInstanceDecisions.js +23 -40
  92. package/dist/browser/operations/scopeAccessReviewInstanceDecisions.js.map +1 -1
  93. package/dist/browser/operations/scopeAccessReviewInstances.js +23 -40
  94. package/dist/browser/operations/scopeAccessReviewInstances.js.map +1 -1
  95. package/dist/browser/operations/scopeAccessReviewScheduleDefinitions.js +23 -40
  96. package/dist/browser/operations/scopeAccessReviewScheduleDefinitions.js.map +1 -1
  97. package/dist/browser/operations/tenantLevelAccessReviewInstanceContactedReviewers.js +23 -40
  98. package/dist/browser/operations/tenantLevelAccessReviewInstanceContactedReviewers.js.map +1 -1
  99. package/dist/browser/pagingHelper.js +2 -4
  100. package/dist/browser/pagingHelper.js.map +1 -1
  101. package/dist/commonjs/authorizationManagementClient.js +58 -5
  102. package/dist/commonjs/authorizationManagementClient.js.map +1 -1
  103. package/dist/commonjs/lroImpl.js +7 -3
  104. package/dist/commonjs/lroImpl.js.map +1 -1
  105. package/dist/commonjs/models/mappers.js +118 -51
  106. package/dist/commonjs/models/mappers.js.map +1 -1
  107. package/dist/commonjs/operations/accessReviewDefaultSettingsOperations.js +1 -0
  108. package/dist/commonjs/operations/accessReviewDefaultSettingsOperations.js.map +1 -1
  109. package/dist/commonjs/operations/accessReviewHistoryDefinitionInstance.js +1 -0
  110. package/dist/commonjs/operations/accessReviewHistoryDefinitionInstance.js.map +1 -1
  111. package/dist/commonjs/operations/accessReviewHistoryDefinitionInstances.js +23 -39
  112. package/dist/commonjs/operations/accessReviewHistoryDefinitionInstances.js.map +1 -1
  113. package/dist/commonjs/operations/accessReviewHistoryDefinitionOperations.js +1 -0
  114. package/dist/commonjs/operations/accessReviewHistoryDefinitionOperations.js.map +1 -1
  115. package/dist/commonjs/operations/accessReviewHistoryDefinitions.js +23 -39
  116. package/dist/commonjs/operations/accessReviewHistoryDefinitions.js.map +1 -1
  117. package/dist/commonjs/operations/accessReviewInstanceContactedReviewers.js +23 -39
  118. package/dist/commonjs/operations/accessReviewInstanceContactedReviewers.js.map +1 -1
  119. package/dist/commonjs/operations/accessReviewInstanceDecisions.js +23 -39
  120. package/dist/commonjs/operations/accessReviewInstanceDecisions.js.map +1 -1
  121. package/dist/commonjs/operations/accessReviewInstanceMyDecisions.js +23 -39
  122. package/dist/commonjs/operations/accessReviewInstanceMyDecisions.js.map +1 -1
  123. package/dist/commonjs/operations/accessReviewInstanceOperations.js +1 -0
  124. package/dist/commonjs/operations/accessReviewInstanceOperations.js.map +1 -1
  125. package/dist/commonjs/operations/accessReviewInstances.js +23 -39
  126. package/dist/commonjs/operations/accessReviewInstances.js.map +1 -1
  127. package/dist/commonjs/operations/accessReviewInstancesAssignedForMyApproval.js +23 -39
  128. package/dist/commonjs/operations/accessReviewInstancesAssignedForMyApproval.js.map +1 -1
  129. package/dist/commonjs/operations/accessReviewScheduleDefinitions.js +23 -39
  130. package/dist/commonjs/operations/accessReviewScheduleDefinitions.js.map +1 -1
  131. package/dist/commonjs/operations/accessReviewScheduleDefinitionsAssignedForMyApproval.js +23 -39
  132. package/dist/commonjs/operations/accessReviewScheduleDefinitionsAssignedForMyApproval.js.map +1 -1
  133. package/dist/commonjs/operations/alertConfigurations.js +23 -39
  134. package/dist/commonjs/operations/alertConfigurations.js.map +1 -1
  135. package/dist/commonjs/operations/alertDefinitions.js +23 -39
  136. package/dist/commonjs/operations/alertDefinitions.js.map +1 -1
  137. package/dist/commonjs/operations/alertIncidents.js +23 -39
  138. package/dist/commonjs/operations/alertIncidents.js.map +1 -1
  139. package/dist/commonjs/operations/alertOperation.js +1 -0
  140. package/dist/commonjs/operations/alertOperation.js.map +1 -1
  141. package/dist/commonjs/operations/alerts.js +45 -51
  142. package/dist/commonjs/operations/alerts.js.map +1 -1
  143. package/dist/commonjs/operations/classicAdministrators.js +23 -39
  144. package/dist/commonjs/operations/classicAdministrators.js.map +1 -1
  145. package/dist/commonjs/operations/denyAssignments.js +89 -156
  146. package/dist/commonjs/operations/denyAssignments.js.map +1 -1
  147. package/dist/commonjs/operations/eligibleChildResources.js +23 -39
  148. package/dist/commonjs/operations/eligibleChildResources.js.map +1 -1
  149. package/dist/commonjs/operations/globalAdministrator.js +1 -0
  150. package/dist/commonjs/operations/globalAdministrator.js.map +1 -1
  151. package/dist/commonjs/operations/operations.js +23 -39
  152. package/dist/commonjs/operations/operations.js.map +1 -1
  153. package/dist/commonjs/operations/permissions.js +45 -78
  154. package/dist/commonjs/operations/permissions.js.map +1 -1
  155. package/dist/commonjs/operations/providerOperationsMetadataOperations.js +23 -39
  156. package/dist/commonjs/operations/providerOperationsMetadataOperations.js.map +1 -1
  157. package/dist/commonjs/operations/roleAssignmentScheduleInstances.js +23 -39
  158. package/dist/commonjs/operations/roleAssignmentScheduleInstances.js.map +1 -1
  159. package/dist/commonjs/operations/roleAssignmentScheduleRequests.js +23 -39
  160. package/dist/commonjs/operations/roleAssignmentScheduleRequests.js.map +1 -1
  161. package/dist/commonjs/operations/roleAssignmentSchedules.js +23 -39
  162. package/dist/commonjs/operations/roleAssignmentSchedules.js.map +1 -1
  163. package/dist/commonjs/operations/roleAssignments.js +89 -156
  164. package/dist/commonjs/operations/roleAssignments.js.map +1 -1
  165. package/dist/commonjs/operations/roleDefinitions.js +23 -39
  166. package/dist/commonjs/operations/roleDefinitions.js.map +1 -1
  167. package/dist/commonjs/operations/roleEligibilityScheduleInstances.js +23 -39
  168. package/dist/commonjs/operations/roleEligibilityScheduleInstances.js.map +1 -1
  169. package/dist/commonjs/operations/roleEligibilityScheduleRequests.js +23 -39
  170. package/dist/commonjs/operations/roleEligibilityScheduleRequests.js.map +1 -1
  171. package/dist/commonjs/operations/roleEligibilitySchedules.js +23 -39
  172. package/dist/commonjs/operations/roleEligibilitySchedules.js.map +1 -1
  173. package/dist/commonjs/operations/roleManagementPolicies.js +23 -39
  174. package/dist/commonjs/operations/roleManagementPolicies.js.map +1 -1
  175. package/dist/commonjs/operations/roleManagementPolicyAssignments.js +23 -39
  176. package/dist/commonjs/operations/roleManagementPolicyAssignments.js.map +1 -1
  177. package/dist/commonjs/operations/scopeAccessReviewDefaultSettings.js +1 -0
  178. package/dist/commonjs/operations/scopeAccessReviewDefaultSettings.js.map +1 -1
  179. package/dist/commonjs/operations/scopeAccessReviewHistoryDefinition.js +1 -0
  180. package/dist/commonjs/operations/scopeAccessReviewHistoryDefinition.js.map +1 -1
  181. package/dist/commonjs/operations/scopeAccessReviewHistoryDefinitionInstance.js +1 -0
  182. package/dist/commonjs/operations/scopeAccessReviewHistoryDefinitionInstance.js.map +1 -1
  183. package/dist/commonjs/operations/scopeAccessReviewHistoryDefinitionInstances.js +23 -39
  184. package/dist/commonjs/operations/scopeAccessReviewHistoryDefinitionInstances.js.map +1 -1
  185. package/dist/commonjs/operations/scopeAccessReviewHistoryDefinitions.js +23 -39
  186. package/dist/commonjs/operations/scopeAccessReviewHistoryDefinitions.js.map +1 -1
  187. package/dist/commonjs/operations/scopeAccessReviewInstance.js +1 -0
  188. package/dist/commonjs/operations/scopeAccessReviewInstance.js.map +1 -1
  189. package/dist/commonjs/operations/scopeAccessReviewInstanceContactedReviewers.js +23 -39
  190. package/dist/commonjs/operations/scopeAccessReviewInstanceContactedReviewers.js.map +1 -1
  191. package/dist/commonjs/operations/scopeAccessReviewInstanceDecisions.js +23 -39
  192. package/dist/commonjs/operations/scopeAccessReviewInstanceDecisions.js.map +1 -1
  193. package/dist/commonjs/operations/scopeAccessReviewInstances.js +23 -39
  194. package/dist/commonjs/operations/scopeAccessReviewInstances.js.map +1 -1
  195. package/dist/commonjs/operations/scopeAccessReviewScheduleDefinitions.js +23 -39
  196. package/dist/commonjs/operations/scopeAccessReviewScheduleDefinitions.js.map +1 -1
  197. package/dist/commonjs/operations/tenantLevelAccessReviewInstanceContactedReviewers.js +23 -39
  198. package/dist/commonjs/operations/tenantLevelAccessReviewInstanceContactedReviewers.js.map +1 -1
  199. package/dist/commonjs/pagingHelper.js +2 -4
  200. package/dist/commonjs/pagingHelper.js.map +1 -1
  201. package/dist/commonjs/tsdoc-metadata.json +11 -11
  202. package/dist/esm/authorizationManagementClient.js +58 -5
  203. package/dist/esm/authorizationManagementClient.js.map +1 -1
  204. package/dist/esm/lroImpl.js +7 -3
  205. package/dist/esm/lroImpl.js.map +1 -1
  206. package/dist/esm/models/mappers.js +118 -51
  207. package/dist/esm/models/mappers.js.map +1 -1
  208. package/dist/esm/operations/accessReviewDefaultSettingsOperations.js +1 -0
  209. package/dist/esm/operations/accessReviewDefaultSettingsOperations.js.map +1 -1
  210. package/dist/esm/operations/accessReviewHistoryDefinitionInstance.js +1 -0
  211. package/dist/esm/operations/accessReviewHistoryDefinitionInstance.js.map +1 -1
  212. package/dist/esm/operations/accessReviewHistoryDefinitionInstances.js +23 -40
  213. package/dist/esm/operations/accessReviewHistoryDefinitionInstances.js.map +1 -1
  214. package/dist/esm/operations/accessReviewHistoryDefinitionOperations.js +1 -0
  215. package/dist/esm/operations/accessReviewHistoryDefinitionOperations.js.map +1 -1
  216. package/dist/esm/operations/accessReviewHistoryDefinitions.js +23 -40
  217. package/dist/esm/operations/accessReviewHistoryDefinitions.js.map +1 -1
  218. package/dist/esm/operations/accessReviewInstanceContactedReviewers.js +23 -40
  219. package/dist/esm/operations/accessReviewInstanceContactedReviewers.js.map +1 -1
  220. package/dist/esm/operations/accessReviewInstanceDecisions.js +23 -40
  221. package/dist/esm/operations/accessReviewInstanceDecisions.js.map +1 -1
  222. package/dist/esm/operations/accessReviewInstanceMyDecisions.js +23 -40
  223. package/dist/esm/operations/accessReviewInstanceMyDecisions.js.map +1 -1
  224. package/dist/esm/operations/accessReviewInstanceOperations.js +1 -0
  225. package/dist/esm/operations/accessReviewInstanceOperations.js.map +1 -1
  226. package/dist/esm/operations/accessReviewInstances.js +23 -40
  227. package/dist/esm/operations/accessReviewInstances.js.map +1 -1
  228. package/dist/esm/operations/accessReviewInstancesAssignedForMyApproval.js +23 -40
  229. package/dist/esm/operations/accessReviewInstancesAssignedForMyApproval.js.map +1 -1
  230. package/dist/esm/operations/accessReviewScheduleDefinitions.js +23 -40
  231. package/dist/esm/operations/accessReviewScheduleDefinitions.js.map +1 -1
  232. package/dist/esm/operations/accessReviewScheduleDefinitionsAssignedForMyApproval.js +23 -40
  233. package/dist/esm/operations/accessReviewScheduleDefinitionsAssignedForMyApproval.js.map +1 -1
  234. package/dist/esm/operations/alertConfigurations.js +23 -40
  235. package/dist/esm/operations/alertConfigurations.js.map +1 -1
  236. package/dist/esm/operations/alertDefinitions.js +23 -40
  237. package/dist/esm/operations/alertDefinitions.js.map +1 -1
  238. package/dist/esm/operations/alertIncidents.js +23 -40
  239. package/dist/esm/operations/alertIncidents.js.map +1 -1
  240. package/dist/esm/operations/alertOperation.js +1 -0
  241. package/dist/esm/operations/alertOperation.js.map +1 -1
  242. package/dist/esm/operations/alerts.js +45 -52
  243. package/dist/esm/operations/alerts.js.map +1 -1
  244. package/dist/esm/operations/classicAdministrators.js +23 -40
  245. package/dist/esm/operations/classicAdministrators.js.map +1 -1
  246. package/dist/esm/operations/denyAssignments.js +89 -157
  247. package/dist/esm/operations/denyAssignments.js.map +1 -1
  248. package/dist/esm/operations/eligibleChildResources.js +23 -40
  249. package/dist/esm/operations/eligibleChildResources.js.map +1 -1
  250. package/dist/esm/operations/globalAdministrator.js +1 -0
  251. package/dist/esm/operations/globalAdministrator.js.map +1 -1
  252. package/dist/esm/operations/operations.js +23 -40
  253. package/dist/esm/operations/operations.js.map +1 -1
  254. package/dist/esm/operations/permissions.js +45 -79
  255. package/dist/esm/operations/permissions.js.map +1 -1
  256. package/dist/esm/operations/providerOperationsMetadataOperations.js +23 -40
  257. package/dist/esm/operations/providerOperationsMetadataOperations.js.map +1 -1
  258. package/dist/esm/operations/roleAssignmentScheduleInstances.js +23 -40
  259. package/dist/esm/operations/roleAssignmentScheduleInstances.js.map +1 -1
  260. package/dist/esm/operations/roleAssignmentScheduleRequests.js +23 -40
  261. package/dist/esm/operations/roleAssignmentScheduleRequests.js.map +1 -1
  262. package/dist/esm/operations/roleAssignmentSchedules.js +23 -40
  263. package/dist/esm/operations/roleAssignmentSchedules.js.map +1 -1
  264. package/dist/esm/operations/roleAssignments.js +89 -157
  265. package/dist/esm/operations/roleAssignments.js.map +1 -1
  266. package/dist/esm/operations/roleDefinitions.js +23 -40
  267. package/dist/esm/operations/roleDefinitions.js.map +1 -1
  268. package/dist/esm/operations/roleEligibilityScheduleInstances.js +23 -40
  269. package/dist/esm/operations/roleEligibilityScheduleInstances.js.map +1 -1
  270. package/dist/esm/operations/roleEligibilityScheduleRequests.js +23 -40
  271. package/dist/esm/operations/roleEligibilityScheduleRequests.js.map +1 -1
  272. package/dist/esm/operations/roleEligibilitySchedules.js +23 -40
  273. package/dist/esm/operations/roleEligibilitySchedules.js.map +1 -1
  274. package/dist/esm/operations/roleManagementPolicies.js +23 -40
  275. package/dist/esm/operations/roleManagementPolicies.js.map +1 -1
  276. package/dist/esm/operations/roleManagementPolicyAssignments.js +23 -40
  277. package/dist/esm/operations/roleManagementPolicyAssignments.js.map +1 -1
  278. package/dist/esm/operations/scopeAccessReviewDefaultSettings.js +1 -0
  279. package/dist/esm/operations/scopeAccessReviewDefaultSettings.js.map +1 -1
  280. package/dist/esm/operations/scopeAccessReviewHistoryDefinition.js +1 -0
  281. package/dist/esm/operations/scopeAccessReviewHistoryDefinition.js.map +1 -1
  282. package/dist/esm/operations/scopeAccessReviewHistoryDefinitionInstance.js +1 -0
  283. package/dist/esm/operations/scopeAccessReviewHistoryDefinitionInstance.js.map +1 -1
  284. package/dist/esm/operations/scopeAccessReviewHistoryDefinitionInstances.js +23 -40
  285. package/dist/esm/operations/scopeAccessReviewHistoryDefinitionInstances.js.map +1 -1
  286. package/dist/esm/operations/scopeAccessReviewHistoryDefinitions.js +23 -40
  287. package/dist/esm/operations/scopeAccessReviewHistoryDefinitions.js.map +1 -1
  288. package/dist/esm/operations/scopeAccessReviewInstance.js +1 -0
  289. package/dist/esm/operations/scopeAccessReviewInstance.js.map +1 -1
  290. package/dist/esm/operations/scopeAccessReviewInstanceContactedReviewers.js +23 -40
  291. package/dist/esm/operations/scopeAccessReviewInstanceContactedReviewers.js.map +1 -1
  292. package/dist/esm/operations/scopeAccessReviewInstanceDecisions.js +23 -40
  293. package/dist/esm/operations/scopeAccessReviewInstanceDecisions.js.map +1 -1
  294. package/dist/esm/operations/scopeAccessReviewInstances.js +23 -40
  295. package/dist/esm/operations/scopeAccessReviewInstances.js.map +1 -1
  296. package/dist/esm/operations/scopeAccessReviewScheduleDefinitions.js +23 -40
  297. package/dist/esm/operations/scopeAccessReviewScheduleDefinitions.js.map +1 -1
  298. package/dist/esm/operations/tenantLevelAccessReviewInstanceContactedReviewers.js +23 -40
  299. package/dist/esm/operations/tenantLevelAccessReviewInstanceContactedReviewers.js.map +1 -1
  300. package/dist/esm/pagingHelper.js +2 -4
  301. package/dist/esm/pagingHelper.js.map +1 -1
  302. package/dist/react-native/authorizationManagementClient.js +58 -5
  303. package/dist/react-native/authorizationManagementClient.js.map +1 -1
  304. package/dist/react-native/lroImpl.js +7 -3
  305. package/dist/react-native/lroImpl.js.map +1 -1
  306. package/dist/react-native/models/mappers.js +118 -51
  307. package/dist/react-native/models/mappers.js.map +1 -1
  308. package/dist/react-native/operations/accessReviewDefaultSettingsOperations.js +1 -0
  309. package/dist/react-native/operations/accessReviewDefaultSettingsOperations.js.map +1 -1
  310. package/dist/react-native/operations/accessReviewHistoryDefinitionInstance.js +1 -0
  311. package/dist/react-native/operations/accessReviewHistoryDefinitionInstance.js.map +1 -1
  312. package/dist/react-native/operations/accessReviewHistoryDefinitionInstances.js +23 -40
  313. package/dist/react-native/operations/accessReviewHistoryDefinitionInstances.js.map +1 -1
  314. package/dist/react-native/operations/accessReviewHistoryDefinitionOperations.js +1 -0
  315. package/dist/react-native/operations/accessReviewHistoryDefinitionOperations.js.map +1 -1
  316. package/dist/react-native/operations/accessReviewHistoryDefinitions.js +23 -40
  317. package/dist/react-native/operations/accessReviewHistoryDefinitions.js.map +1 -1
  318. package/dist/react-native/operations/accessReviewInstanceContactedReviewers.js +23 -40
  319. package/dist/react-native/operations/accessReviewInstanceContactedReviewers.js.map +1 -1
  320. package/dist/react-native/operations/accessReviewInstanceDecisions.js +23 -40
  321. package/dist/react-native/operations/accessReviewInstanceDecisions.js.map +1 -1
  322. package/dist/react-native/operations/accessReviewInstanceMyDecisions.js +23 -40
  323. package/dist/react-native/operations/accessReviewInstanceMyDecisions.js.map +1 -1
  324. package/dist/react-native/operations/accessReviewInstanceOperations.js +1 -0
  325. package/dist/react-native/operations/accessReviewInstanceOperations.js.map +1 -1
  326. package/dist/react-native/operations/accessReviewInstances.js +23 -40
  327. package/dist/react-native/operations/accessReviewInstances.js.map +1 -1
  328. package/dist/react-native/operations/accessReviewInstancesAssignedForMyApproval.js +23 -40
  329. package/dist/react-native/operations/accessReviewInstancesAssignedForMyApproval.js.map +1 -1
  330. package/dist/react-native/operations/accessReviewScheduleDefinitions.js +23 -40
  331. package/dist/react-native/operations/accessReviewScheduleDefinitions.js.map +1 -1
  332. package/dist/react-native/operations/accessReviewScheduleDefinitionsAssignedForMyApproval.js +23 -40
  333. package/dist/react-native/operations/accessReviewScheduleDefinitionsAssignedForMyApproval.js.map +1 -1
  334. package/dist/react-native/operations/alertConfigurations.js +23 -40
  335. package/dist/react-native/operations/alertConfigurations.js.map +1 -1
  336. package/dist/react-native/operations/alertDefinitions.js +23 -40
  337. package/dist/react-native/operations/alertDefinitions.js.map +1 -1
  338. package/dist/react-native/operations/alertIncidents.js +23 -40
  339. package/dist/react-native/operations/alertIncidents.js.map +1 -1
  340. package/dist/react-native/operations/alertOperation.js +1 -0
  341. package/dist/react-native/operations/alertOperation.js.map +1 -1
  342. package/dist/react-native/operations/alerts.js +45 -52
  343. package/dist/react-native/operations/alerts.js.map +1 -1
  344. package/dist/react-native/operations/classicAdministrators.js +23 -40
  345. package/dist/react-native/operations/classicAdministrators.js.map +1 -1
  346. package/dist/react-native/operations/denyAssignments.js +89 -157
  347. package/dist/react-native/operations/denyAssignments.js.map +1 -1
  348. package/dist/react-native/operations/eligibleChildResources.js +23 -40
  349. package/dist/react-native/operations/eligibleChildResources.js.map +1 -1
  350. package/dist/react-native/operations/globalAdministrator.js +1 -0
  351. package/dist/react-native/operations/globalAdministrator.js.map +1 -1
  352. package/dist/react-native/operations/operations.js +23 -40
  353. package/dist/react-native/operations/operations.js.map +1 -1
  354. package/dist/react-native/operations/permissions.js +45 -79
  355. package/dist/react-native/operations/permissions.js.map +1 -1
  356. package/dist/react-native/operations/providerOperationsMetadataOperations.js +23 -40
  357. package/dist/react-native/operations/providerOperationsMetadataOperations.js.map +1 -1
  358. package/dist/react-native/operations/roleAssignmentScheduleInstances.js +23 -40
  359. package/dist/react-native/operations/roleAssignmentScheduleInstances.js.map +1 -1
  360. package/dist/react-native/operations/roleAssignmentScheduleRequests.js +23 -40
  361. package/dist/react-native/operations/roleAssignmentScheduleRequests.js.map +1 -1
  362. package/dist/react-native/operations/roleAssignmentSchedules.js +23 -40
  363. package/dist/react-native/operations/roleAssignmentSchedules.js.map +1 -1
  364. package/dist/react-native/operations/roleAssignments.js +89 -157
  365. package/dist/react-native/operations/roleAssignments.js.map +1 -1
  366. package/dist/react-native/operations/roleDefinitions.js +23 -40
  367. package/dist/react-native/operations/roleDefinitions.js.map +1 -1
  368. package/dist/react-native/operations/roleEligibilityScheduleInstances.js +23 -40
  369. package/dist/react-native/operations/roleEligibilityScheduleInstances.js.map +1 -1
  370. package/dist/react-native/operations/roleEligibilityScheduleRequests.js +23 -40
  371. package/dist/react-native/operations/roleEligibilityScheduleRequests.js.map +1 -1
  372. package/dist/react-native/operations/roleEligibilitySchedules.js +23 -40
  373. package/dist/react-native/operations/roleEligibilitySchedules.js.map +1 -1
  374. package/dist/react-native/operations/roleManagementPolicies.js +23 -40
  375. package/dist/react-native/operations/roleManagementPolicies.js.map +1 -1
  376. package/dist/react-native/operations/roleManagementPolicyAssignments.js +23 -40
  377. package/dist/react-native/operations/roleManagementPolicyAssignments.js.map +1 -1
  378. package/dist/react-native/operations/scopeAccessReviewDefaultSettings.js +1 -0
  379. package/dist/react-native/operations/scopeAccessReviewDefaultSettings.js.map +1 -1
  380. package/dist/react-native/operations/scopeAccessReviewHistoryDefinition.js +1 -0
  381. package/dist/react-native/operations/scopeAccessReviewHistoryDefinition.js.map +1 -1
  382. package/dist/react-native/operations/scopeAccessReviewHistoryDefinitionInstance.js +1 -0
  383. package/dist/react-native/operations/scopeAccessReviewHistoryDefinitionInstance.js.map +1 -1
  384. package/dist/react-native/operations/scopeAccessReviewHistoryDefinitionInstances.js +23 -40
  385. package/dist/react-native/operations/scopeAccessReviewHistoryDefinitionInstances.js.map +1 -1
  386. package/dist/react-native/operations/scopeAccessReviewHistoryDefinitions.js +23 -40
  387. package/dist/react-native/operations/scopeAccessReviewHistoryDefinitions.js.map +1 -1
  388. package/dist/react-native/operations/scopeAccessReviewInstance.js +1 -0
  389. package/dist/react-native/operations/scopeAccessReviewInstance.js.map +1 -1
  390. package/dist/react-native/operations/scopeAccessReviewInstanceContactedReviewers.js +23 -40
  391. package/dist/react-native/operations/scopeAccessReviewInstanceContactedReviewers.js.map +1 -1
  392. package/dist/react-native/operations/scopeAccessReviewInstanceDecisions.js +23 -40
  393. package/dist/react-native/operations/scopeAccessReviewInstanceDecisions.js.map +1 -1
  394. package/dist/react-native/operations/scopeAccessReviewInstances.js +23 -40
  395. package/dist/react-native/operations/scopeAccessReviewInstances.js.map +1 -1
  396. package/dist/react-native/operations/scopeAccessReviewScheduleDefinitions.js +23 -40
  397. package/dist/react-native/operations/scopeAccessReviewScheduleDefinitions.js.map +1 -1
  398. package/dist/react-native/operations/tenantLevelAccessReviewInstanceContactedReviewers.js +23 -40
  399. package/dist/react-native/operations/tenantLevelAccessReviewInstanceContactedReviewers.js.map +1 -1
  400. package/dist/react-native/pagingHelper.js +2 -4
  401. package/dist/react-native/pagingHelper.js.map +1 -1
  402. package/package.json +2 -2
  403. package/review/arm-authorization-node.api.md +3229 -3229
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
13
12
  /// <reference lib="esnext.asynciterable" />
14
13
  /** Class containing RoleAssignmentScheduleInstances operations. */
15
14
  export class RoleAssignmentScheduleInstancesImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class RoleAssignmentScheduleInstances class.
18
18
  * @param client Reference to the service client
@@ -35,52 +35,35 @@ export class RoleAssignmentScheduleInstancesImpl {
35
35
  return this;
36
36
  },
37
37
  byPage: (settings) => {
38
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
38
+ if (settings?.maxPageSize) {
39
39
  throw new Error("maxPageSize is not supported by this operation.");
40
40
  }
41
41
  return this.listForScopePagingPage(scope, options, settings);
42
42
  }
43
43
  };
44
44
  }
45
- listForScopePagingPage(scope, options, settings) {
46
- return __asyncGenerator(this, arguments, function* listForScopePagingPage_1() {
47
- let result;
48
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
49
- if (!continuationToken) {
50
- result = yield __await(this._listForScope(scope, options));
51
- let page = result.value || [];
52
- continuationToken = result.nextLink;
53
- setContinuationToken(page, continuationToken);
54
- yield yield __await(page);
55
- }
56
- while (continuationToken) {
57
- result = yield __await(this._listForScopeNext(scope, continuationToken, options));
58
- continuationToken = result.nextLink;
59
- let page = result.value || [];
60
- setContinuationToken(page, continuationToken);
61
- yield yield __await(page);
62
- }
63
- });
45
+ async *listForScopePagingPage(scope, options, settings) {
46
+ let result;
47
+ let continuationToken = settings?.continuationToken;
48
+ if (!continuationToken) {
49
+ result = await this._listForScope(scope, options);
50
+ let page = result.value || [];
51
+ continuationToken = result.nextLink;
52
+ setContinuationToken(page, continuationToken);
53
+ yield page;
54
+ }
55
+ while (continuationToken) {
56
+ result = await this._listForScopeNext(scope, continuationToken, options);
57
+ continuationToken = result.nextLink;
58
+ let page = result.value || [];
59
+ setContinuationToken(page, continuationToken);
60
+ yield page;
61
+ }
64
62
  }
65
- listForScopePagingAll(scope, options) {
66
- return __asyncGenerator(this, arguments, function* listForScopePagingAll_1() {
67
- var _a, e_1, _b, _c;
68
- try {
69
- for (var _d = true, _e = __asyncValues(this.listForScopePagingPage(scope, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
70
- _c = _f.value;
71
- _d = false;
72
- const page = _c;
73
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
74
- }
75
- }
76
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
77
- finally {
78
- try {
79
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
80
- }
81
- finally { if (e_1) throw e_1.error; }
82
- }
83
- });
63
+ async *listForScopePagingAll(scope, options) {
64
+ for await (const page of this.listForScopePagingPage(scope, options)) {
65
+ yield* page;
66
+ }
84
67
  }
85
68
  /**
86
69
  * Gets role assignment schedule instances of a role assignment schedule.
@@ -1 +1 @@
1
- {"version":3,"file":"roleAssignmentScheduleInstances.js","sourceRoot":"","sources":["../../../src/operations/roleAssignmentScheduleInstances.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UA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U;SAC/B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,KAAK,CAAC;IACxE,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 { RoleAssignmentScheduleInstances } 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 { AuthorizationManagementClient } from \"../authorizationManagementClient.js\";\nimport {\n RoleAssignmentScheduleInstance,\n RoleAssignmentScheduleInstancesListForScopeNextOptionalParams,\n RoleAssignmentScheduleInstancesListForScopeOptionalParams,\n RoleAssignmentScheduleInstancesListForScopeResponse,\n RoleAssignmentScheduleInstancesGetOptionalParams,\n RoleAssignmentScheduleInstancesGetResponse,\n RoleAssignmentScheduleInstancesListForScopeNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RoleAssignmentScheduleInstances operations. */\nexport class RoleAssignmentScheduleInstancesImpl\n implements RoleAssignmentScheduleInstances {\n private readonly client: AuthorizationManagementClient;\n\n /**\n * Initialize a new instance of the class RoleAssignmentScheduleInstances class.\n * @param client Reference to the service client\n */\n constructor(client: AuthorizationManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets role assignment schedule instances of a role assignment schedule.\n * @param scope The scope of the role assignment schedule.\n * @param options The options parameters.\n */\n public listForScope(\n scope: string,\n options?: RoleAssignmentScheduleInstancesListForScopeOptionalParams\n ): PagedAsyncIterableIterator<RoleAssignmentScheduleInstance> {\n const iter = this.listForScopePagingAll(scope, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listForScopePagingPage(scope, options, settings);\n }\n };\n }\n\n private async *listForScopePagingPage(\n scope: string,\n options?: RoleAssignmentScheduleInstancesListForScopeOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<RoleAssignmentScheduleInstance[]> {\n let result: RoleAssignmentScheduleInstancesListForScopeResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listForScope(scope, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listForScopeNext(scope, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listForScopePagingAll(\n scope: string,\n options?: RoleAssignmentScheduleInstancesListForScopeOptionalParams\n ): AsyncIterableIterator<RoleAssignmentScheduleInstance> {\n for await (const page of this.listForScopePagingPage(scope, options)) {\n yield* page;\n }\n }\n\n /**\n * Gets role assignment schedule instances of a role assignment schedule.\n * @param scope The scope of the role assignment schedule.\n * @param options The options parameters.\n */\n private _listForScope(\n scope: string,\n options?: RoleAssignmentScheduleInstancesListForScopeOptionalParams\n ): Promise<RoleAssignmentScheduleInstancesListForScopeResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n listForScopeOperationSpec\n );\n }\n\n /**\n * Gets the specified role assignment schedule instance.\n * @param scope The scope of the role assignments schedules.\n * @param roleAssignmentScheduleInstanceName The name (hash of schedule name + time) of the role\n * assignment schedule to get.\n * @param options The options parameters.\n */\n get(\n scope: string,\n roleAssignmentScheduleInstanceName: string,\n options?: RoleAssignmentScheduleInstancesGetOptionalParams\n ): Promise<RoleAssignmentScheduleInstancesGetResponse> {\n return this.client.sendOperationRequest(\n { scope, roleAssignmentScheduleInstanceName, options },\n getOperationSpec\n );\n }\n\n /**\n * ListForScopeNext\n * @param scope The scope of the role assignment schedule.\n * @param nextLink The nextLink from the previous successful call to the ListForScope method.\n * @param options The options parameters.\n */\n private _listForScopeNext(\n scope: string,\n nextLink: string,\n options?: RoleAssignmentScheduleInstancesListForScopeNextOptionalParams\n ): Promise<RoleAssignmentScheduleInstancesListForScopeNextResponse> {\n return this.client.sendOperationRequest(\n { scope, nextLink, options },\n listForScopeNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listForScopeOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleInstances\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RoleAssignmentScheduleInstanceListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.filter, Parameters.apiVersion4],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleInstances/{roleAssignmentScheduleInstanceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RoleAssignmentScheduleInstance\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion4],\n urlParameters: [\n Parameters.$host,\n Parameters.scope,\n Parameters.roleAssignmentScheduleInstanceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listForScopeNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RoleAssignmentScheduleInstanceListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"roleAssignmentScheduleInstances.js","sourceRoot":"","sources":["../../../src/operations/roleAssignmentScheduleInstances.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAYtD,4CAA4C;AAC5C,mEAAmE;AACnE,MAAM,OAAO,mCAAmC;IAE7B,MAAM,CAAgC;IAEvD;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,YAAY,CACjB,KAAa,EACb,OAAmE;QAEnE,MAAM,IAAI,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QACxD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,sBAAsB,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;YAC/D,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,sBAAsB,CACnC,KAAa,EACb,OAAmE,EACnE,QAAuB;QAEvB,IAAI,MAA2D,CAAC;QAChE,IAAI,iBAAiB,GAAG,QAAQ,EAAE,iBAAiB,CAAC;QACpD,IAAI,CAAC,iBAAiB,EAAE,CAAC;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K;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wCAAwC;SAC7D;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,KAAK,CAAC;IACxE,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 { RoleAssignmentScheduleInstances } 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 { AuthorizationManagementClient } from \"../authorizationManagementClient.js\";\nimport {\n RoleAssignmentScheduleInstance,\n RoleAssignmentScheduleInstancesListForScopeNextOptionalParams,\n RoleAssignmentScheduleInstancesListForScopeOptionalParams,\n RoleAssignmentScheduleInstancesListForScopeResponse,\n RoleAssignmentScheduleInstancesGetOptionalParams,\n RoleAssignmentScheduleInstancesGetResponse,\n RoleAssignmentScheduleInstancesListForScopeNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RoleAssignmentScheduleInstances operations. */\nexport class RoleAssignmentScheduleInstancesImpl\n implements RoleAssignmentScheduleInstances {\n private readonly client: AuthorizationManagementClient;\n\n /**\n * Initialize a new instance of the class RoleAssignmentScheduleInstances class.\n * @param client Reference to the service client\n */\n constructor(client: AuthorizationManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets role assignment schedule instances of a role assignment schedule.\n * @param scope The scope of the role assignment schedule.\n * @param options The options parameters.\n */\n public listForScope(\n scope: string,\n options?: RoleAssignmentScheduleInstancesListForScopeOptionalParams\n ): PagedAsyncIterableIterator<RoleAssignmentScheduleInstance> {\n const iter = this.listForScopePagingAll(scope, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listForScopePagingPage(scope, options, settings);\n }\n };\n }\n\n private async *listForScopePagingPage(\n scope: string,\n options?: RoleAssignmentScheduleInstancesListForScopeOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<RoleAssignmentScheduleInstance[]> {\n let result: RoleAssignmentScheduleInstancesListForScopeResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listForScope(scope, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listForScopeNext(scope, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listForScopePagingAll(\n scope: string,\n options?: RoleAssignmentScheduleInstancesListForScopeOptionalParams\n ): AsyncIterableIterator<RoleAssignmentScheduleInstance> {\n for await (const page of this.listForScopePagingPage(scope, options)) {\n yield* page;\n }\n }\n\n /**\n * Gets role assignment schedule instances of a role assignment schedule.\n * @param scope The scope of the role assignment schedule.\n * @param options The options parameters.\n */\n private _listForScope(\n scope: string,\n options?: RoleAssignmentScheduleInstancesListForScopeOptionalParams\n ): Promise<RoleAssignmentScheduleInstancesListForScopeResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n listForScopeOperationSpec\n );\n }\n\n /**\n * Gets the specified role assignment schedule instance.\n * @param scope The scope of the role assignments schedules.\n * @param roleAssignmentScheduleInstanceName The name (hash of schedule name + time) of the role\n * assignment schedule to get.\n * @param options The options parameters.\n */\n get(\n scope: string,\n roleAssignmentScheduleInstanceName: string,\n options?: RoleAssignmentScheduleInstancesGetOptionalParams\n ): Promise<RoleAssignmentScheduleInstancesGetResponse> {\n return this.client.sendOperationRequest(\n { scope, roleAssignmentScheduleInstanceName, options },\n getOperationSpec\n );\n }\n\n /**\n * ListForScopeNext\n * @param scope The scope of the role assignment schedule.\n * @param nextLink The nextLink from the previous successful call to the ListForScope method.\n * @param options The options parameters.\n */\n private _listForScopeNext(\n scope: string,\n nextLink: string,\n options?: RoleAssignmentScheduleInstancesListForScopeNextOptionalParams\n ): Promise<RoleAssignmentScheduleInstancesListForScopeNextResponse> {\n return this.client.sendOperationRequest(\n { scope, nextLink, options },\n listForScopeNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listForScopeOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleInstances\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RoleAssignmentScheduleInstanceListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.filter, Parameters.apiVersion4],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleInstances/{roleAssignmentScheduleInstanceName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RoleAssignmentScheduleInstance\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion4],\n urlParameters: [\n Parameters.$host,\n Parameters.scope,\n Parameters.roleAssignmentScheduleInstanceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listForScopeNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RoleAssignmentScheduleInstanceListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
13
12
  /// <reference lib="esnext.asynciterable" />
14
13
  /** Class containing RoleAssignmentScheduleRequests operations. */
15
14
  export class RoleAssignmentScheduleRequestsImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class RoleAssignmentScheduleRequests class.
18
18
  * @param client Reference to the service client
@@ -35,52 +35,35 @@ export class RoleAssignmentScheduleRequestsImpl {
35
35
  return this;
36
36
  },
37
37
  byPage: (settings) => {
38
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
38
+ if (settings?.maxPageSize) {
39
39
  throw new Error("maxPageSize is not supported by this operation.");
40
40
  }
41
41
  return this.listForScopePagingPage(scope, options, settings);
42
42
  }
43
43
  };
44
44
  }
45
- listForScopePagingPage(scope, options, settings) {
46
- return __asyncGenerator(this, arguments, function* listForScopePagingPage_1() {
47
- let result;
48
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
49
- if (!continuationToken) {
50
- result = yield __await(this._listForScope(scope, options));
51
- let page = result.value || [];
52
- continuationToken = result.nextLink;
53
- setContinuationToken(page, continuationToken);
54
- yield yield __await(page);
55
- }
56
- while (continuationToken) {
57
- result = yield __await(this._listForScopeNext(scope, continuationToken, options));
58
- continuationToken = result.nextLink;
59
- let page = result.value || [];
60
- setContinuationToken(page, continuationToken);
61
- yield yield __await(page);
62
- }
63
- });
45
+ async *listForScopePagingPage(scope, options, settings) {
46
+ let result;
47
+ let continuationToken = settings?.continuationToken;
48
+ if (!continuationToken) {
49
+ result = await this._listForScope(scope, options);
50
+ let page = result.value || [];
51
+ continuationToken = result.nextLink;
52
+ setContinuationToken(page, continuationToken);
53
+ yield page;
54
+ }
55
+ while (continuationToken) {
56
+ result = await this._listForScopeNext(scope, continuationToken, options);
57
+ continuationToken = result.nextLink;
58
+ let page = result.value || [];
59
+ setContinuationToken(page, continuationToken);
60
+ yield page;
61
+ }
64
62
  }
65
- listForScopePagingAll(scope, options) {
66
- return __asyncGenerator(this, arguments, function* listForScopePagingAll_1() {
67
- var _a, e_1, _b, _c;
68
- try {
69
- for (var _d = true, _e = __asyncValues(this.listForScopePagingPage(scope, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
70
- _c = _f.value;
71
- _d = false;
72
- const page = _c;
73
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
74
- }
75
- }
76
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
77
- finally {
78
- try {
79
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
80
- }
81
- finally { if (e_1) throw e_1.error; }
82
- }
83
- });
63
+ async *listForScopePagingAll(scope, options) {
64
+ for await (const page of this.listForScopePagingPage(scope, options)) {
65
+ yield* page;
66
+ }
84
67
  }
85
68
  /**
86
69
  * Creates a role assignment schedule request.
@@ -1 +1 @@
1
- {"version":3,"file":"roleAssignmentScheduleRequests.js","sourceRoot":"","sources":["../../../src/operations/roleAssignmentScheduleRequests.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAiBtD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AK;QAChB,UAAU,CAAC,iCAAiC;KAC7C;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EACF,wHAAwH;IAC1H,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,WAAW;IACnC,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iCAAiC;KAC7C;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,6BAA6B,GAA6B;IAC9D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uCAAuC;SAC5D;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,KAAK,CAAC;IACxE,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 { RoleAssignmentScheduleRequests } 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 { AuthorizationManagementClient } from \"../authorizationManagementClient.js\";\nimport {\n RoleAssignmentScheduleRequest,\n RoleAssignmentScheduleRequestsListForScopeNextOptionalParams,\n RoleAssignmentScheduleRequestsListForScopeOptionalParams,\n RoleAssignmentScheduleRequestsListForScopeResponse,\n RoleAssignmentScheduleRequestsCreateOptionalParams,\n RoleAssignmentScheduleRequestsCreateResponse,\n RoleAssignmentScheduleRequestsGetOptionalParams,\n RoleAssignmentScheduleRequestsGetResponse,\n RoleAssignmentScheduleRequestsCancelOptionalParams,\n RoleAssignmentScheduleRequestsValidateOptionalParams,\n RoleAssignmentScheduleRequestsValidateResponse,\n RoleAssignmentScheduleRequestsListForScopeNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RoleAssignmentScheduleRequests operations. */\nexport class RoleAssignmentScheduleRequestsImpl\n implements RoleAssignmentScheduleRequests {\n private readonly client: AuthorizationManagementClient;\n\n /**\n * Initialize a new instance of the class RoleAssignmentScheduleRequests class.\n * @param client Reference to the service client\n */\n constructor(client: AuthorizationManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets role assignment schedule requests for a scope.\n * @param scope The scope of the role assignments schedule requests.\n * @param options The options parameters.\n */\n public listForScope(\n scope: string,\n options?: RoleAssignmentScheduleRequestsListForScopeOptionalParams\n ): PagedAsyncIterableIterator<RoleAssignmentScheduleRequest> {\n const iter = this.listForScopePagingAll(scope, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listForScopePagingPage(scope, options, settings);\n }\n };\n }\n\n private async *listForScopePagingPage(\n scope: string,\n options?: RoleAssignmentScheduleRequestsListForScopeOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<RoleAssignmentScheduleRequest[]> {\n let result: RoleAssignmentScheduleRequestsListForScopeResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listForScope(scope, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listForScopeNext(scope, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listForScopePagingAll(\n scope: string,\n options?: RoleAssignmentScheduleRequestsListForScopeOptionalParams\n ): AsyncIterableIterator<RoleAssignmentScheduleRequest> {\n for await (const page of this.listForScopePagingPage(scope, options)) {\n yield* page;\n }\n }\n\n /**\n * Creates a role assignment schedule request.\n * @param scope The scope of the role assignment schedule request to create. The scope can be any REST\n * resource instance. For example, use\n * '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/' for a subscription,\n * '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}'\n * for a resource group, and\n * '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}'\n * for a resource.\n * @param roleAssignmentScheduleRequestName A GUID for the role assignment to create. The name must be\n * unique and different for each role assignment.\n * @param parameters Parameters for the role assignment schedule request.\n * @param options The options parameters.\n */\n create(\n scope: string,\n roleAssignmentScheduleRequestName: string,\n parameters: RoleAssignmentScheduleRequest,\n options?: RoleAssignmentScheduleRequestsCreateOptionalParams\n ): Promise<RoleAssignmentScheduleRequestsCreateResponse> {\n return this.client.sendOperationRequest(\n { scope, roleAssignmentScheduleRequestName, parameters, options },\n createOperationSpec\n );\n }\n\n /**\n * Get the specified role assignment schedule request.\n * @param scope The scope of the role assignment schedule request.\n * @param roleAssignmentScheduleRequestName The name (guid) of the role assignment schedule request to\n * get.\n * @param options The options parameters.\n */\n get(\n scope: string,\n roleAssignmentScheduleRequestName: string,\n options?: RoleAssignmentScheduleRequestsGetOptionalParams\n ): Promise<RoleAssignmentScheduleRequestsGetResponse> {\n return this.client.sendOperationRequest(\n { scope, roleAssignmentScheduleRequestName, options },\n getOperationSpec\n );\n }\n\n /**\n * Gets role assignment schedule requests for a scope.\n * @param scope The scope of the role assignments schedule requests.\n * @param options The options parameters.\n */\n private _listForScope(\n scope: string,\n options?: RoleAssignmentScheduleRequestsListForScopeOptionalParams\n ): Promise<RoleAssignmentScheduleRequestsListForScopeResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n listForScopeOperationSpec\n );\n }\n\n /**\n * Cancels a pending role assignment schedule request.\n * @param scope The scope of the role assignment request to cancel.\n * @param roleAssignmentScheduleRequestName The name of the role assignment request to cancel.\n * @param options The options parameters.\n */\n cancel(\n scope: string,\n roleAssignmentScheduleRequestName: string,\n options?: RoleAssignmentScheduleRequestsCancelOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { scope, roleAssignmentScheduleRequestName, options },\n cancelOperationSpec\n );\n }\n\n /**\n * Validates a new role assignment schedule request.\n * @param scope The scope of the role assignment request to validate.\n * @param roleAssignmentScheduleRequestName The name of the role assignment request to validate.\n * @param parameters Parameters for the role assignment schedule request.\n * @param options The options parameters.\n */\n validate(\n scope: string,\n roleAssignmentScheduleRequestName: string,\n parameters: RoleAssignmentScheduleRequest,\n options?: RoleAssignmentScheduleRequestsValidateOptionalParams\n ): Promise<RoleAssignmentScheduleRequestsValidateResponse> {\n return this.client.sendOperationRequest(\n { scope, roleAssignmentScheduleRequestName, parameters, options },\n validateOperationSpec\n );\n }\n\n /**\n * ListForScopeNext\n * @param scope The scope of the role assignments schedule requests.\n * @param nextLink The nextLink from the previous successful call to the ListForScope method.\n * @param options The options parameters.\n */\n private _listForScopeNext(\n scope: string,\n nextLink: string,\n options?: RoleAssignmentScheduleRequestsListForScopeNextOptionalParams\n ): Promise<RoleAssignmentScheduleRequestsListForScopeNextResponse> {\n return this.client.sendOperationRequest(\n { scope, nextLink, options },\n listForScopeNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/{roleAssignmentScheduleRequestName}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n bodyMapper: Mappers.RoleAssignmentScheduleRequest\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [\n Parameters.$host,\n Parameters.scope,\n Parameters.roleAssignmentScheduleRequestName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/{roleAssignmentScheduleRequestName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RoleAssignmentScheduleRequest\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [\n Parameters.$host,\n Parameters.scope,\n Parameters.roleAssignmentScheduleRequestName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listForScopeOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RoleAssignmentScheduleRequestListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.filter, Parameters.apiVersion5],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst cancelOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/{roleAssignmentScheduleRequestName}/cancel\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [\n Parameters.$host,\n Parameters.scope,\n Parameters.roleAssignmentScheduleRequestName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst validateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/{roleAssignmentScheduleRequestName}/validate\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RoleAssignmentScheduleRequest\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [\n Parameters.$host,\n Parameters.scope,\n Parameters.roleAssignmentScheduleRequestName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listForScopeNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RoleAssignmentScheduleRequestListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"roleAssignmentScheduleRequests.js","sourceRoot":"","sources":["../../../src/operations/roleAssignmentScheduleRequests.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAiBtD,4CAA4C;AAC5C,kEAAkE;AAClE,MAAM,OAAO,kCAAkC;IAE5B,MAAM,CAAgC;IAEvD;;;OAGG;IACH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D;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,WAAW;IACnC,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,iCAAiC;KAC7C;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,6BAA6B,GAA6B;IAC9D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uCAAuC;SAC5D;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,KAAK,CAAC;IACxE,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 { RoleAssignmentScheduleRequests } 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 { AuthorizationManagementClient } from \"../authorizationManagementClient.js\";\nimport {\n RoleAssignmentScheduleRequest,\n RoleAssignmentScheduleRequestsListForScopeNextOptionalParams,\n RoleAssignmentScheduleRequestsListForScopeOptionalParams,\n RoleAssignmentScheduleRequestsListForScopeResponse,\n RoleAssignmentScheduleRequestsCreateOptionalParams,\n RoleAssignmentScheduleRequestsCreateResponse,\n RoleAssignmentScheduleRequestsGetOptionalParams,\n RoleAssignmentScheduleRequestsGetResponse,\n RoleAssignmentScheduleRequestsCancelOptionalParams,\n RoleAssignmentScheduleRequestsValidateOptionalParams,\n RoleAssignmentScheduleRequestsValidateResponse,\n RoleAssignmentScheduleRequestsListForScopeNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RoleAssignmentScheduleRequests operations. */\nexport class RoleAssignmentScheduleRequestsImpl\n implements RoleAssignmentScheduleRequests {\n private readonly client: AuthorizationManagementClient;\n\n /**\n * Initialize a new instance of the class RoleAssignmentScheduleRequests class.\n * @param client Reference to the service client\n */\n constructor(client: AuthorizationManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets role assignment schedule requests for a scope.\n * @param scope The scope of the role assignments schedule requests.\n * @param options The options parameters.\n */\n public listForScope(\n scope: string,\n options?: RoleAssignmentScheduleRequestsListForScopeOptionalParams\n ): PagedAsyncIterableIterator<RoleAssignmentScheduleRequest> {\n const iter = this.listForScopePagingAll(scope, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listForScopePagingPage(scope, options, settings);\n }\n };\n }\n\n private async *listForScopePagingPage(\n scope: string,\n options?: RoleAssignmentScheduleRequestsListForScopeOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<RoleAssignmentScheduleRequest[]> {\n let result: RoleAssignmentScheduleRequestsListForScopeResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listForScope(scope, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listForScopeNext(scope, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listForScopePagingAll(\n scope: string,\n options?: RoleAssignmentScheduleRequestsListForScopeOptionalParams\n ): AsyncIterableIterator<RoleAssignmentScheduleRequest> {\n for await (const page of this.listForScopePagingPage(scope, options)) {\n yield* page;\n }\n }\n\n /**\n * Creates a role assignment schedule request.\n * @param scope The scope of the role assignment schedule request to create. The scope can be any REST\n * resource instance. For example, use\n * '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/' for a subscription,\n * '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}'\n * for a resource group, and\n * '/providers/Microsoft.Subscription/subscriptions/{subscription-id}/resourceGroups/{resource-group-name}/providers/{resource-provider}/{resource-type}/{resource-name}'\n * for a resource.\n * @param roleAssignmentScheduleRequestName A GUID for the role assignment to create. The name must be\n * unique and different for each role assignment.\n * @param parameters Parameters for the role assignment schedule request.\n * @param options The options parameters.\n */\n create(\n scope: string,\n roleAssignmentScheduleRequestName: string,\n parameters: RoleAssignmentScheduleRequest,\n options?: RoleAssignmentScheduleRequestsCreateOptionalParams\n ): Promise<RoleAssignmentScheduleRequestsCreateResponse> {\n return this.client.sendOperationRequest(\n { scope, roleAssignmentScheduleRequestName, parameters, options },\n createOperationSpec\n );\n }\n\n /**\n * Get the specified role assignment schedule request.\n * @param scope The scope of the role assignment schedule request.\n * @param roleAssignmentScheduleRequestName The name (guid) of the role assignment schedule request to\n * get.\n * @param options The options parameters.\n */\n get(\n scope: string,\n roleAssignmentScheduleRequestName: string,\n options?: RoleAssignmentScheduleRequestsGetOptionalParams\n ): Promise<RoleAssignmentScheduleRequestsGetResponse> {\n return this.client.sendOperationRequest(\n { scope, roleAssignmentScheduleRequestName, options },\n getOperationSpec\n );\n }\n\n /**\n * Gets role assignment schedule requests for a scope.\n * @param scope The scope of the role assignments schedule requests.\n * @param options The options parameters.\n */\n private _listForScope(\n scope: string,\n options?: RoleAssignmentScheduleRequestsListForScopeOptionalParams\n ): Promise<RoleAssignmentScheduleRequestsListForScopeResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n listForScopeOperationSpec\n );\n }\n\n /**\n * Cancels a pending role assignment schedule request.\n * @param scope The scope of the role assignment request to cancel.\n * @param roleAssignmentScheduleRequestName The name of the role assignment request to cancel.\n * @param options The options parameters.\n */\n cancel(\n scope: string,\n roleAssignmentScheduleRequestName: string,\n options?: RoleAssignmentScheduleRequestsCancelOptionalParams\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { scope, roleAssignmentScheduleRequestName, options },\n cancelOperationSpec\n );\n }\n\n /**\n * Validates a new role assignment schedule request.\n * @param scope The scope of the role assignment request to validate.\n * @param roleAssignmentScheduleRequestName The name of the role assignment request to validate.\n * @param parameters Parameters for the role assignment schedule request.\n * @param options The options parameters.\n */\n validate(\n scope: string,\n roleAssignmentScheduleRequestName: string,\n parameters: RoleAssignmentScheduleRequest,\n options?: RoleAssignmentScheduleRequestsValidateOptionalParams\n ): Promise<RoleAssignmentScheduleRequestsValidateResponse> {\n return this.client.sendOperationRequest(\n { scope, roleAssignmentScheduleRequestName, parameters, options },\n validateOperationSpec\n );\n }\n\n /**\n * ListForScopeNext\n * @param scope The scope of the role assignments schedule requests.\n * @param nextLink The nextLink from the previous successful call to the ListForScope method.\n * @param options The options parameters.\n */\n private _listForScopeNext(\n scope: string,\n nextLink: string,\n options?: RoleAssignmentScheduleRequestsListForScopeNextOptionalParams\n ): Promise<RoleAssignmentScheduleRequestsListForScopeNextResponse> {\n return this.client.sendOperationRequest(\n { scope, nextLink, options },\n listForScopeNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/{roleAssignmentScheduleRequestName}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {\n bodyMapper: Mappers.RoleAssignmentScheduleRequest\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [\n Parameters.$host,\n Parameters.scope,\n Parameters.roleAssignmentScheduleRequestName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/{roleAssignmentScheduleRequestName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RoleAssignmentScheduleRequest\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [\n Parameters.$host,\n Parameters.scope,\n Parameters.roleAssignmentScheduleRequestName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listForScopeOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RoleAssignmentScheduleRequestListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.filter, Parameters.apiVersion5],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst cancelOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/{roleAssignmentScheduleRequestName}/cancel\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [\n Parameters.$host,\n Parameters.scope,\n Parameters.roleAssignmentScheduleRequestName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst validateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleAssignmentScheduleRequests/{roleAssignmentScheduleRequestName}/validate\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RoleAssignmentScheduleRequest\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.parameters1,\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [\n Parameters.$host,\n Parameters.scope,\n Parameters.roleAssignmentScheduleRequestName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst listForScopeNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RoleAssignmentScheduleRequestListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
13
12
  /// <reference lib="esnext.asynciterable" />
14
13
  /** Class containing RoleAssignmentSchedules operations. */
15
14
  export class RoleAssignmentSchedulesImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class RoleAssignmentSchedules class.
18
18
  * @param client Reference to the service client
@@ -35,52 +35,35 @@ export class RoleAssignmentSchedulesImpl {
35
35
  return this;
36
36
  },
37
37
  byPage: (settings) => {
38
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
38
+ if (settings?.maxPageSize) {
39
39
  throw new Error("maxPageSize is not supported by this operation.");
40
40
  }
41
41
  return this.listForScopePagingPage(scope, options, settings);
42
42
  }
43
43
  };
44
44
  }
45
- listForScopePagingPage(scope, options, settings) {
46
- return __asyncGenerator(this, arguments, function* listForScopePagingPage_1() {
47
- let result;
48
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
49
- if (!continuationToken) {
50
- result = yield __await(this._listForScope(scope, options));
51
- let page = result.value || [];
52
- continuationToken = result.nextLink;
53
- setContinuationToken(page, continuationToken);
54
- yield yield __await(page);
55
- }
56
- while (continuationToken) {
57
- result = yield __await(this._listForScopeNext(scope, continuationToken, options));
58
- continuationToken = result.nextLink;
59
- let page = result.value || [];
60
- setContinuationToken(page, continuationToken);
61
- yield yield __await(page);
62
- }
63
- });
45
+ async *listForScopePagingPage(scope, options, settings) {
46
+ let result;
47
+ let continuationToken = settings?.continuationToken;
48
+ if (!continuationToken) {
49
+ result = await this._listForScope(scope, options);
50
+ let page = result.value || [];
51
+ continuationToken = result.nextLink;
52
+ setContinuationToken(page, continuationToken);
53
+ yield page;
54
+ }
55
+ while (continuationToken) {
56
+ result = await this._listForScopeNext(scope, continuationToken, options);
57
+ continuationToken = result.nextLink;
58
+ let page = result.value || [];
59
+ setContinuationToken(page, continuationToken);
60
+ yield page;
61
+ }
64
62
  }
65
- listForScopePagingAll(scope, options) {
66
- return __asyncGenerator(this, arguments, function* listForScopePagingAll_1() {
67
- var _a, e_1, _b, _c;
68
- try {
69
- for (var _d = true, _e = __asyncValues(this.listForScopePagingPage(scope, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
70
- _c = _f.value;
71
- _d = false;
72
- const page = _c;
73
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
74
- }
75
- }
76
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
77
- finally {
78
- try {
79
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
80
- }
81
- finally { if (e_1) throw e_1.error; }
82
- }
83
- });
63
+ async *listForScopePagingAll(scope, options) {
64
+ for await (const page of this.listForScopePagingPage(scope, options)) {
65
+ yield* page;
66
+ }
84
67
  }
85
68
  /**
86
69
  * Get the specified role assignment schedule for a resource scope
@@ -1 +1 @@
1
- {"version":3,"file":"roleAssignmentSchedules.js","sourceRoot":"","sources":["../../../src/operations/roleAssignmentSchedules.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAYtD,4CAA4C;AAC5C,2DAA2D;AAC3D,MAAM,OAAO,2BAA2B;IAGtC;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,YAAY,CACjB,KAAa,EACb,OAA2D;QAE3D,MAAM,IAAI,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QACxD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,sBAAsB,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;YAC/D,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,sBAAsB,CACnC,KAAa,EACb,OAA2D,EAC3D,QAAuB;;YAEvB,IAAI,MAAmD,CAAC;YACxD,IAAI,iBAAiB,GAAG,QAAQ,a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AC,WAAW,CAAC;IAC5D,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC;IACnD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,6BAA6B,GAA6B;IAC9D,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,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,KAAK,CAAC;IACxE,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 { RoleAssignmentSchedules } 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 { AuthorizationManagementClient } from \"../authorizationManagementClient.js\";\nimport {\n RoleAssignmentSchedule,\n RoleAssignmentSchedulesListForScopeNextOptionalParams,\n RoleAssignmentSchedulesListForScopeOptionalParams,\n RoleAssignmentSchedulesListForScopeResponse,\n RoleAssignmentSchedulesGetOptionalParams,\n RoleAssignmentSchedulesGetResponse,\n RoleAssignmentSchedulesListForScopeNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RoleAssignmentSchedules operations. */\nexport class RoleAssignmentSchedulesImpl implements RoleAssignmentSchedules {\n private readonly client: AuthorizationManagementClient;\n\n /**\n * Initialize a new instance of the class RoleAssignmentSchedules class.\n * @param client Reference to the service client\n */\n constructor(client: AuthorizationManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets role assignment schedules for a resource scope.\n * @param scope The scope of the role assignments schedules.\n * @param options The options parameters.\n */\n public listForScope(\n scope: string,\n options?: RoleAssignmentSchedulesListForScopeOptionalParams\n ): PagedAsyncIterableIterator<RoleAssignmentSchedule> {\n const iter = this.listForScopePagingAll(scope, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listForScopePagingPage(scope, options, settings);\n }\n };\n }\n\n private async *listForScopePagingPage(\n scope: string,\n options?: RoleAssignmentSchedulesListForScopeOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<RoleAssignmentSchedule[]> {\n let result: RoleAssignmentSchedulesListForScopeResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listForScope(scope, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listForScopeNext(scope, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listForScopePagingAll(\n scope: string,\n options?: RoleAssignmentSchedulesListForScopeOptionalParams\n ): AsyncIterableIterator<RoleAssignmentSchedule> {\n for await (const page of this.listForScopePagingPage(scope, options)) {\n yield* page;\n }\n }\n\n /**\n * Get the specified role assignment schedule for a resource scope\n * @param scope The scope of the role assignment schedule.\n * @param roleAssignmentScheduleName The name (guid) of the role assignment schedule to get.\n * @param options The options parameters.\n */\n get(\n scope: string,\n roleAssignmentScheduleName: string,\n options?: RoleAssignmentSchedulesGetOptionalParams\n ): Promise<RoleAssignmentSchedulesGetResponse> {\n return this.client.sendOperationRequest(\n { scope, roleAssignmentScheduleName, options },\n getOperationSpec\n );\n }\n\n /**\n * Gets role assignment schedules for a resource scope.\n * @param scope The scope of the role assignments schedules.\n * @param options The options parameters.\n */\n private _listForScope(\n scope: string,\n options?: RoleAssignmentSchedulesListForScopeOptionalParams\n ): Promise<RoleAssignmentSchedulesListForScopeResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n listForScopeOperationSpec\n );\n }\n\n /**\n * ListForScopeNext\n * @param scope The scope of the role assignments schedules.\n * @param nextLink The nextLink from the previous successful call to the ListForScope method.\n * @param options The options parameters.\n */\n private _listForScopeNext(\n scope: string,\n nextLink: string,\n options?: RoleAssignmentSchedulesListForScopeNextOptionalParams\n ): Promise<RoleAssignmentSchedulesListForScopeNextResponse> {\n return this.client.sendOperationRequest(\n { scope, nextLink, options },\n listForScopeNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleAssignmentSchedules/{roleAssignmentScheduleName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RoleAssignmentSchedule\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion4],\n urlParameters: [\n Parameters.$host,\n Parameters.scope,\n Parameters.roleAssignmentScheduleName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listForScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Authorization/roleAssignmentSchedules\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RoleAssignmentScheduleListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.filter, Parameters.apiVersion4],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listForScopeNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RoleAssignmentScheduleListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"roleAssignmentSchedules.js","sourceRoot":"","sources":["../../../src/operations/roleAssignmentSchedules.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAYtD,4CAA4C;AAC5C,2DAA2D;AAC3D,MAAM,OAAO,2BAA2B;IACrB,MAAM,CAAgC;IAEvD;;;OAGG;IACH,YAAY,MAAqC;QAC/C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACI,YAAY,CACjB,KAAa,EACb,OAA2D;QAE3D,MAAM,IAAI,GAAG,IAAI,CAAC,qBAAqB,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QACxD,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,sBAAsB,CAAC,KAAK,EAAE,OAAO,EAAE,QAAQ,CAAC,CAAC;YAC/D,CAAC;SACF,CAAC;IACJ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,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,KAAK,CAAC;IACnD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,6BAA6B,GAA6B;IAC9D,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,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,KAAK,CAAC;IACxE,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 { RoleAssignmentSchedules } 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 { AuthorizationManagementClient } from \"../authorizationManagementClient.js\";\nimport {\n RoleAssignmentSchedule,\n RoleAssignmentSchedulesListForScopeNextOptionalParams,\n RoleAssignmentSchedulesListForScopeOptionalParams,\n RoleAssignmentSchedulesListForScopeResponse,\n RoleAssignmentSchedulesGetOptionalParams,\n RoleAssignmentSchedulesGetResponse,\n RoleAssignmentSchedulesListForScopeNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing RoleAssignmentSchedules operations. */\nexport class RoleAssignmentSchedulesImpl implements RoleAssignmentSchedules {\n private readonly client: AuthorizationManagementClient;\n\n /**\n * Initialize a new instance of the class RoleAssignmentSchedules class.\n * @param client Reference to the service client\n */\n constructor(client: AuthorizationManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets role assignment schedules for a resource scope.\n * @param scope The scope of the role assignments schedules.\n * @param options The options parameters.\n */\n public listForScope(\n scope: string,\n options?: RoleAssignmentSchedulesListForScopeOptionalParams\n ): PagedAsyncIterableIterator<RoleAssignmentSchedule> {\n const iter = this.listForScopePagingAll(scope, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listForScopePagingPage(scope, options, settings);\n }\n };\n }\n\n private async *listForScopePagingPage(\n scope: string,\n options?: RoleAssignmentSchedulesListForScopeOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<RoleAssignmentSchedule[]> {\n let result: RoleAssignmentSchedulesListForScopeResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listForScope(scope, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listForScopeNext(scope, continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listForScopePagingAll(\n scope: string,\n options?: RoleAssignmentSchedulesListForScopeOptionalParams\n ): AsyncIterableIterator<RoleAssignmentSchedule> {\n for await (const page of this.listForScopePagingPage(scope, options)) {\n yield* page;\n }\n }\n\n /**\n * Get the specified role assignment schedule for a resource scope\n * @param scope The scope of the role assignment schedule.\n * @param roleAssignmentScheduleName The name (guid) of the role assignment schedule to get.\n * @param options The options parameters.\n */\n get(\n scope: string,\n roleAssignmentScheduleName: string,\n options?: RoleAssignmentSchedulesGetOptionalParams\n ): Promise<RoleAssignmentSchedulesGetResponse> {\n return this.client.sendOperationRequest(\n { scope, roleAssignmentScheduleName, options },\n getOperationSpec\n );\n }\n\n /**\n * Gets role assignment schedules for a resource scope.\n * @param scope The scope of the role assignments schedules.\n * @param options The options parameters.\n */\n private _listForScope(\n scope: string,\n options?: RoleAssignmentSchedulesListForScopeOptionalParams\n ): Promise<RoleAssignmentSchedulesListForScopeResponse> {\n return this.client.sendOperationRequest(\n { scope, options },\n listForScopeOperationSpec\n );\n }\n\n /**\n * ListForScopeNext\n * @param scope The scope of the role assignments schedules.\n * @param nextLink The nextLink from the previous successful call to the ListForScope method.\n * @param options The options parameters.\n */\n private _listForScopeNext(\n scope: string,\n nextLink: string,\n options?: RoleAssignmentSchedulesListForScopeNextOptionalParams\n ): Promise<RoleAssignmentSchedulesListForScopeNextResponse> {\n return this.client.sendOperationRequest(\n { scope, nextLink, options },\n listForScopeNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/{scope}/providers/Microsoft.Authorization/roleAssignmentSchedules/{roleAssignmentScheduleName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RoleAssignmentSchedule\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion4],\n urlParameters: [\n Parameters.$host,\n Parameters.scope,\n Parameters.roleAssignmentScheduleName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listForScopeOperationSpec: coreClient.OperationSpec = {\n path: \"/{scope}/providers/Microsoft.Authorization/roleAssignmentSchedules\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RoleAssignmentScheduleListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.filter, Parameters.apiVersion4],\n urlParameters: [Parameters.$host, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listForScopeNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RoleAssignmentScheduleListResult\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}