@azure/arm-synapse 9.0.0-alpha.20250718.1 → 9.0.0-alpha.20250730.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (634) hide show
  1. package/dist/browser/lroImpl.js +11 -3
  2. package/dist/browser/lroImpl.js.map +1 -1
  3. package/dist/browser/models/mappers.js +1142 -531
  4. package/dist/browser/models/mappers.js.map +1 -1
  5. package/dist/browser/operations/azureADOnlyAuthentications.js +34 -46
  6. package/dist/browser/operations/azureADOnlyAuthentications.js.map +1 -1
  7. package/dist/browser/operations/bigDataPools.js +45 -52
  8. package/dist/browser/operations/bigDataPools.js.map +1 -1
  9. package/dist/browser/operations/dataMaskingPolicies.js +1 -0
  10. package/dist/browser/operations/dataMaskingPolicies.js.map +1 -1
  11. package/dist/browser/operations/dataMaskingRules.js +10 -27
  12. package/dist/browser/operations/dataMaskingRules.js.map +1 -1
  13. package/dist/browser/operations/extendedSqlPoolBlobAuditingPolicies.js +23 -40
  14. package/dist/browser/operations/extendedSqlPoolBlobAuditingPolicies.js.map +1 -1
  15. package/dist/browser/operations/get.js +1 -0
  16. package/dist/browser/operations/get.js.map +1 -1
  17. package/dist/browser/operations/integrationRuntimeAuthKeysOperations.js +1 -0
  18. package/dist/browser/operations/integrationRuntimeAuthKeysOperations.js.map +1 -1
  19. package/dist/browser/operations/integrationRuntimeConnectionInfos.js +1 -0
  20. package/dist/browser/operations/integrationRuntimeConnectionInfos.js.map +1 -1
  21. package/dist/browser/operations/integrationRuntimeCredentials.js +1 -0
  22. package/dist/browser/operations/integrationRuntimeCredentials.js.map +1 -1
  23. package/dist/browser/operations/integrationRuntimeMonitoringDataOperations.js +1 -0
  24. package/dist/browser/operations/integrationRuntimeMonitoringDataOperations.js.map +1 -1
  25. package/dist/browser/operations/integrationRuntimeNodeIpAddressOperations.js +1 -0
  26. package/dist/browser/operations/integrationRuntimeNodeIpAddressOperations.js.map +1 -1
  27. package/dist/browser/operations/integrationRuntimeNodes.js +1 -0
  28. package/dist/browser/operations/integrationRuntimeNodes.js.map +1 -1
  29. package/dist/browser/operations/integrationRuntimeObjectMetadata.js +12 -6
  30. package/dist/browser/operations/integrationRuntimeObjectMetadata.js.map +1 -1
  31. package/dist/browser/operations/integrationRuntimeStatusOperations.js +1 -0
  32. package/dist/browser/operations/integrationRuntimeStatusOperations.js.map +1 -1
  33. package/dist/browser/operations/integrationRuntimes.js +89 -76
  34. package/dist/browser/operations/integrationRuntimes.js.map +1 -1
  35. package/dist/browser/operations/ipFirewallRules.js +56 -58
  36. package/dist/browser/operations/ipFirewallRules.js.map +1 -1
  37. package/dist/browser/operations/keys.js +23 -40
  38. package/dist/browser/operations/keys.js.map +1 -1
  39. package/dist/browser/operations/kustoOperations.js +23 -40
  40. package/dist/browser/operations/kustoOperations.js.map +1 -1
  41. package/dist/browser/operations/kustoPoolAttachedDatabaseConfigurations.js +32 -39
  42. package/dist/browser/operations/kustoPoolAttachedDatabaseConfigurations.js.map +1 -1
  43. package/dist/browser/operations/kustoPoolChildResource.js +1 -0
  44. package/dist/browser/operations/kustoPoolChildResource.js.map +1 -1
  45. package/dist/browser/operations/kustoPoolDataConnections.js +54 -51
  46. package/dist/browser/operations/kustoPoolDataConnections.js.map +1 -1
  47. package/dist/browser/operations/kustoPoolDatabasePrincipalAssignments.js +32 -39
  48. package/dist/browser/operations/kustoPoolDatabasePrincipalAssignments.js.map +1 -1
  49. package/dist/browser/operations/kustoPoolDatabases.js +43 -45
  50. package/dist/browser/operations/kustoPoolDatabases.js.map +1 -1
  51. package/dist/browser/operations/kustoPoolPrincipalAssignments.js +32 -39
  52. package/dist/browser/operations/kustoPoolPrincipalAssignments.js.map +1 -1
  53. package/dist/browser/operations/kustoPoolPrivateLinkResourcesOperations.js +10 -27
  54. package/dist/browser/operations/kustoPoolPrivateLinkResourcesOperations.js.map +1 -1
  55. package/dist/browser/operations/kustoPools.js +125 -153
  56. package/dist/browser/operations/kustoPools.js.map +1 -1
  57. package/dist/browser/operations/libraries.js +23 -40
  58. package/dist/browser/operations/libraries.js.map +1 -1
  59. package/dist/browser/operations/library.js +1 -0
  60. package/dist/browser/operations/library.js.map +1 -1
  61. package/dist/browser/operations/operations.js +1 -0
  62. package/dist/browser/operations/operations.js.map +1 -1
  63. package/dist/browser/operations/privateEndpointConnections.js +45 -52
  64. package/dist/browser/operations/privateEndpointConnections.js.map +1 -1
  65. package/dist/browser/operations/privateEndpointConnectionsPrivateLinkHub.js +23 -40
  66. package/dist/browser/operations/privateEndpointConnectionsPrivateLinkHub.js.map +1 -1
  67. package/dist/browser/operations/privateLinkHubPrivateLinkResources.js +23 -40
  68. package/dist/browser/operations/privateLinkHubPrivateLinkResources.js.map +1 -1
  69. package/dist/browser/operations/privateLinkHubs.js +56 -85
  70. package/dist/browser/operations/privateLinkHubs.js.map +1 -1
  71. package/dist/browser/operations/privateLinkResourcesOperations.js +23 -40
  72. package/dist/browser/operations/privateLinkResourcesOperations.js.map +1 -1
  73. package/dist/browser/operations/restorableDroppedSqlPools.js +10 -27
  74. package/dist/browser/operations/restorableDroppedSqlPools.js.map +1 -1
  75. package/dist/browser/operations/sparkConfiguration.js +1 -0
  76. package/dist/browser/operations/sparkConfiguration.js.map +1 -1
  77. package/dist/browser/operations/sparkConfigurations.js +23 -40
  78. package/dist/browser/operations/sparkConfigurations.js.map +1 -1
  79. package/dist/browser/operations/sqlPoolBlobAuditingPolicies.js +23 -40
  80. package/dist/browser/operations/sqlPoolBlobAuditingPolicies.js.map +1 -1
  81. package/dist/browser/operations/sqlPoolColumns.js +1 -0
  82. package/dist/browser/operations/sqlPoolColumns.js.map +1 -1
  83. package/dist/browser/operations/sqlPoolConnectionPolicies.js +1 -0
  84. package/dist/browser/operations/sqlPoolConnectionPolicies.js.map +1 -1
  85. package/dist/browser/operations/sqlPoolDataWarehouseUserActivities.js +1 -0
  86. package/dist/browser/operations/sqlPoolDataWarehouseUserActivities.js.map +1 -1
  87. package/dist/browser/operations/sqlPoolGeoBackupPolicies.js +10 -27
  88. package/dist/browser/operations/sqlPoolGeoBackupPolicies.js.map +1 -1
  89. package/dist/browser/operations/sqlPoolMaintenanceWindowOptions.js +1 -0
  90. package/dist/browser/operations/sqlPoolMaintenanceWindowOptions.js.map +1 -1
  91. package/dist/browser/operations/sqlPoolMaintenanceWindows.js +1 -0
  92. package/dist/browser/operations/sqlPoolMaintenanceWindows.js.map +1 -1
  93. package/dist/browser/operations/sqlPoolMetadataSyncConfigs.js +1 -0
  94. package/dist/browser/operations/sqlPoolMetadataSyncConfigs.js.map +1 -1
  95. package/dist/browser/operations/sqlPoolOperationResults.js +12 -6
  96. package/dist/browser/operations/sqlPoolOperationResults.js.map +1 -1
  97. package/dist/browser/operations/sqlPoolOperations.js +23 -40
  98. package/dist/browser/operations/sqlPoolOperations.js.map +1 -1
  99. package/dist/browser/operations/sqlPoolRecommendedSensitivityLabels.js +1 -0
  100. package/dist/browser/operations/sqlPoolRecommendedSensitivityLabels.js.map +1 -1
  101. package/dist/browser/operations/sqlPoolReplicationLinks.js +23 -40
  102. package/dist/browser/operations/sqlPoolReplicationLinks.js.map +1 -1
  103. package/dist/browser/operations/sqlPoolRestorePoints.js +34 -46
  104. package/dist/browser/operations/sqlPoolRestorePoints.js.map +1 -1
  105. package/dist/browser/operations/sqlPoolSchemas.js +23 -40
  106. package/dist/browser/operations/sqlPoolSchemas.js.map +1 -1
  107. package/dist/browser/operations/sqlPoolSecurityAlertPolicies.js +23 -40
  108. package/dist/browser/operations/sqlPoolSecurityAlertPolicies.js.map +1 -1
  109. package/dist/browser/operations/sqlPoolSensitivityLabels.js +45 -79
  110. package/dist/browser/operations/sqlPoolSensitivityLabels.js.map +1 -1
  111. package/dist/browser/operations/sqlPoolTableColumns.js +23 -40
  112. package/dist/browser/operations/sqlPoolTableColumns.js.map +1 -1
  113. package/dist/browser/operations/sqlPoolTables.js +23 -40
  114. package/dist/browser/operations/sqlPoolTables.js.map +1 -1
  115. package/dist/browser/operations/sqlPoolTransparentDataEncryptions.js +23 -40
  116. package/dist/browser/operations/sqlPoolTransparentDataEncryptions.js.map +1 -1
  117. package/dist/browser/operations/sqlPoolUsages.js +23 -40
  118. package/dist/browser/operations/sqlPoolUsages.js.map +1 -1
  119. package/dist/browser/operations/sqlPoolVulnerabilityAssessmentRuleBaselines.js +1 -0
  120. package/dist/browser/operations/sqlPoolVulnerabilityAssessmentRuleBaselines.js.map +1 -1
  121. package/dist/browser/operations/sqlPoolVulnerabilityAssessmentScans.js +34 -46
  122. package/dist/browser/operations/sqlPoolVulnerabilityAssessmentScans.js.map +1 -1
  123. package/dist/browser/operations/sqlPoolVulnerabilityAssessments.js +23 -40
  124. package/dist/browser/operations/sqlPoolVulnerabilityAssessments.js.map +1 -1
  125. package/dist/browser/operations/sqlPoolWorkloadClassifier.js +45 -52
  126. package/dist/browser/operations/sqlPoolWorkloadClassifier.js.map +1 -1
  127. package/dist/browser/operations/sqlPoolWorkloadGroup.js +45 -52
  128. package/dist/browser/operations/sqlPoolWorkloadGroup.js.map +1 -1
  129. package/dist/browser/operations/sqlPools.js +78 -70
  130. package/dist/browser/operations/sqlPools.js.map +1 -1
  131. package/dist/browser/operations/workspaceAadAdmins.js +23 -12
  132. package/dist/browser/operations/workspaceAadAdmins.js.map +1 -1
  133. package/dist/browser/operations/workspaceManagedIdentitySqlControlSettings.js +12 -6
  134. package/dist/browser/operations/workspaceManagedIdentitySqlControlSettings.js.map +1 -1
  135. package/dist/browser/operations/workspaceManagedSqlServerBlobAuditingPolicies.js +34 -46
  136. package/dist/browser/operations/workspaceManagedSqlServerBlobAuditingPolicies.js.map +1 -1
  137. package/dist/browser/operations/workspaceManagedSqlServerDedicatedSQLMinimalTlsSettings.js +34 -46
  138. package/dist/browser/operations/workspaceManagedSqlServerDedicatedSQLMinimalTlsSettings.js.map +1 -1
  139. package/dist/browser/operations/workspaceManagedSqlServerEncryptionProtector.js +45 -52
  140. package/dist/browser/operations/workspaceManagedSqlServerEncryptionProtector.js.map +1 -1
  141. package/dist/browser/operations/workspaceManagedSqlServerExtendedBlobAuditingPolicies.js +34 -46
  142. package/dist/browser/operations/workspaceManagedSqlServerExtendedBlobAuditingPolicies.js.map +1 -1
  143. package/dist/browser/operations/workspaceManagedSqlServerRecoverableSqlPools.js +23 -40
  144. package/dist/browser/operations/workspaceManagedSqlServerRecoverableSqlPools.js.map +1 -1
  145. package/dist/browser/operations/workspaceManagedSqlServerSecurityAlertPolicy.js +34 -46
  146. package/dist/browser/operations/workspaceManagedSqlServerSecurityAlertPolicy.js.map +1 -1
  147. package/dist/browser/operations/workspaceManagedSqlServerUsages.js +23 -40
  148. package/dist/browser/operations/workspaceManagedSqlServerUsages.js.map +1 -1
  149. package/dist/browser/operations/workspaceManagedSqlServerVulnerabilityAssessments.js +23 -40
  150. package/dist/browser/operations/workspaceManagedSqlServerVulnerabilityAssessments.js.map +1 -1
  151. package/dist/browser/operations/workspaceSqlAadAdmins.js +23 -12
  152. package/dist/browser/operations/workspaceSqlAadAdmins.js.map +1 -1
  153. package/dist/browser/operations/workspaces.js +78 -97
  154. package/dist/browser/operations/workspaces.js.map +1 -1
  155. package/dist/browser/pagingHelper.js +2 -4
  156. package/dist/browser/pagingHelper.js.map +1 -1
  157. package/dist/browser/synapseManagementClient.js +87 -5
  158. package/dist/browser/synapseManagementClient.js.map +1 -1
  159. package/dist/commonjs/lroImpl.js +11 -3
  160. package/dist/commonjs/lroImpl.js.map +1 -1
  161. package/dist/commonjs/models/mappers.js +1142 -531
  162. package/dist/commonjs/models/mappers.js.map +1 -1
  163. package/dist/commonjs/operations/azureADOnlyAuthentications.js +34 -45
  164. package/dist/commonjs/operations/azureADOnlyAuthentications.js.map +1 -1
  165. package/dist/commonjs/operations/bigDataPools.js +45 -51
  166. package/dist/commonjs/operations/bigDataPools.js.map +1 -1
  167. package/dist/commonjs/operations/dataMaskingPolicies.js +1 -0
  168. package/dist/commonjs/operations/dataMaskingPolicies.js.map +1 -1
  169. package/dist/commonjs/operations/dataMaskingRules.js +10 -26
  170. package/dist/commonjs/operations/dataMaskingRules.js.map +1 -1
  171. package/dist/commonjs/operations/extendedSqlPoolBlobAuditingPolicies.js +23 -39
  172. package/dist/commonjs/operations/extendedSqlPoolBlobAuditingPolicies.js.map +1 -1
  173. package/dist/commonjs/operations/get.js +1 -0
  174. package/dist/commonjs/operations/get.js.map +1 -1
  175. package/dist/commonjs/operations/integrationRuntimeAuthKeysOperations.js +1 -0
  176. package/dist/commonjs/operations/integrationRuntimeAuthKeysOperations.js.map +1 -1
  177. package/dist/commonjs/operations/integrationRuntimeConnectionInfos.js +1 -0
  178. package/dist/commonjs/operations/integrationRuntimeConnectionInfos.js.map +1 -1
  179. package/dist/commonjs/operations/integrationRuntimeCredentials.js +1 -0
  180. package/dist/commonjs/operations/integrationRuntimeCredentials.js.map +1 -1
  181. package/dist/commonjs/operations/integrationRuntimeMonitoringDataOperations.js +1 -0
  182. package/dist/commonjs/operations/integrationRuntimeMonitoringDataOperations.js.map +1 -1
  183. package/dist/commonjs/operations/integrationRuntimeNodeIpAddressOperations.js +1 -0
  184. package/dist/commonjs/operations/integrationRuntimeNodeIpAddressOperations.js.map +1 -1
  185. package/dist/commonjs/operations/integrationRuntimeNodes.js +1 -0
  186. package/dist/commonjs/operations/integrationRuntimeNodes.js.map +1 -1
  187. package/dist/commonjs/operations/integrationRuntimeObjectMetadata.js +12 -6
  188. package/dist/commonjs/operations/integrationRuntimeObjectMetadata.js.map +1 -1
  189. package/dist/commonjs/operations/integrationRuntimeStatusOperations.js +1 -0
  190. package/dist/commonjs/operations/integrationRuntimeStatusOperations.js.map +1 -1
  191. package/dist/commonjs/operations/integrationRuntimes.js +89 -75
  192. package/dist/commonjs/operations/integrationRuntimes.js.map +1 -1
  193. package/dist/commonjs/operations/ipFirewallRules.js +56 -57
  194. package/dist/commonjs/operations/ipFirewallRules.js.map +1 -1
  195. package/dist/commonjs/operations/keys.js +23 -39
  196. package/dist/commonjs/operations/keys.js.map +1 -1
  197. package/dist/commonjs/operations/kustoOperations.js +23 -39
  198. package/dist/commonjs/operations/kustoOperations.js.map +1 -1
  199. package/dist/commonjs/operations/kustoPoolAttachedDatabaseConfigurations.js +32 -38
  200. package/dist/commonjs/operations/kustoPoolAttachedDatabaseConfigurations.js.map +1 -1
  201. package/dist/commonjs/operations/kustoPoolChildResource.js +1 -0
  202. package/dist/commonjs/operations/kustoPoolChildResource.js.map +1 -1
  203. package/dist/commonjs/operations/kustoPoolDataConnections.js +54 -50
  204. package/dist/commonjs/operations/kustoPoolDataConnections.js.map +1 -1
  205. package/dist/commonjs/operations/kustoPoolDatabasePrincipalAssignments.js +32 -38
  206. package/dist/commonjs/operations/kustoPoolDatabasePrincipalAssignments.js.map +1 -1
  207. package/dist/commonjs/operations/kustoPoolDatabases.js +43 -44
  208. package/dist/commonjs/operations/kustoPoolDatabases.js.map +1 -1
  209. package/dist/commonjs/operations/kustoPoolPrincipalAssignments.js +32 -38
  210. package/dist/commonjs/operations/kustoPoolPrincipalAssignments.js.map +1 -1
  211. package/dist/commonjs/operations/kustoPoolPrivateLinkResourcesOperations.js +10 -26
  212. package/dist/commonjs/operations/kustoPoolPrivateLinkResourcesOperations.js.map +1 -1
  213. package/dist/commonjs/operations/kustoPools.js +125 -152
  214. package/dist/commonjs/operations/kustoPools.js.map +1 -1
  215. package/dist/commonjs/operations/libraries.js +23 -39
  216. package/dist/commonjs/operations/libraries.js.map +1 -1
  217. package/dist/commonjs/operations/library.js +1 -0
  218. package/dist/commonjs/operations/library.js.map +1 -1
  219. package/dist/commonjs/operations/operations.js +1 -0
  220. package/dist/commonjs/operations/operations.js.map +1 -1
  221. package/dist/commonjs/operations/privateEndpointConnections.js +45 -51
  222. package/dist/commonjs/operations/privateEndpointConnections.js.map +1 -1
  223. package/dist/commonjs/operations/privateEndpointConnectionsPrivateLinkHub.js +23 -39
  224. package/dist/commonjs/operations/privateEndpointConnectionsPrivateLinkHub.js.map +1 -1
  225. package/dist/commonjs/operations/privateLinkHubPrivateLinkResources.js +23 -39
  226. package/dist/commonjs/operations/privateLinkHubPrivateLinkResources.js.map +1 -1
  227. package/dist/commonjs/operations/privateLinkHubs.js +56 -84
  228. package/dist/commonjs/operations/privateLinkHubs.js.map +1 -1
  229. package/dist/commonjs/operations/privateLinkResourcesOperations.js +23 -39
  230. package/dist/commonjs/operations/privateLinkResourcesOperations.js.map +1 -1
  231. package/dist/commonjs/operations/restorableDroppedSqlPools.js +10 -26
  232. package/dist/commonjs/operations/restorableDroppedSqlPools.js.map +1 -1
  233. package/dist/commonjs/operations/sparkConfiguration.js +1 -0
  234. package/dist/commonjs/operations/sparkConfiguration.js.map +1 -1
  235. package/dist/commonjs/operations/sparkConfigurations.js +23 -39
  236. package/dist/commonjs/operations/sparkConfigurations.js.map +1 -1
  237. package/dist/commonjs/operations/sqlPoolBlobAuditingPolicies.js +23 -39
  238. package/dist/commonjs/operations/sqlPoolBlobAuditingPolicies.js.map +1 -1
  239. package/dist/commonjs/operations/sqlPoolColumns.js +1 -0
  240. package/dist/commonjs/operations/sqlPoolColumns.js.map +1 -1
  241. package/dist/commonjs/operations/sqlPoolConnectionPolicies.js +1 -0
  242. package/dist/commonjs/operations/sqlPoolConnectionPolicies.js.map +1 -1
  243. package/dist/commonjs/operations/sqlPoolDataWarehouseUserActivities.js +1 -0
  244. package/dist/commonjs/operations/sqlPoolDataWarehouseUserActivities.js.map +1 -1
  245. package/dist/commonjs/operations/sqlPoolGeoBackupPolicies.js +10 -26
  246. package/dist/commonjs/operations/sqlPoolGeoBackupPolicies.js.map +1 -1
  247. package/dist/commonjs/operations/sqlPoolMaintenanceWindowOptions.js +1 -0
  248. package/dist/commonjs/operations/sqlPoolMaintenanceWindowOptions.js.map +1 -1
  249. package/dist/commonjs/operations/sqlPoolMaintenanceWindows.js +1 -0
  250. package/dist/commonjs/operations/sqlPoolMaintenanceWindows.js.map +1 -1
  251. package/dist/commonjs/operations/sqlPoolMetadataSyncConfigs.js +1 -0
  252. package/dist/commonjs/operations/sqlPoolMetadataSyncConfigs.js.map +1 -1
  253. package/dist/commonjs/operations/sqlPoolOperationResults.js +12 -6
  254. package/dist/commonjs/operations/sqlPoolOperationResults.js.map +1 -1
  255. package/dist/commonjs/operations/sqlPoolOperations.js +23 -39
  256. package/dist/commonjs/operations/sqlPoolOperations.js.map +1 -1
  257. package/dist/commonjs/operations/sqlPoolRecommendedSensitivityLabels.js +1 -0
  258. package/dist/commonjs/operations/sqlPoolRecommendedSensitivityLabels.js.map +1 -1
  259. package/dist/commonjs/operations/sqlPoolReplicationLinks.js +23 -39
  260. package/dist/commonjs/operations/sqlPoolReplicationLinks.js.map +1 -1
  261. package/dist/commonjs/operations/sqlPoolRestorePoints.js +34 -45
  262. package/dist/commonjs/operations/sqlPoolRestorePoints.js.map +1 -1
  263. package/dist/commonjs/operations/sqlPoolSchemas.js +23 -39
  264. package/dist/commonjs/operations/sqlPoolSchemas.js.map +1 -1
  265. package/dist/commonjs/operations/sqlPoolSecurityAlertPolicies.js +23 -39
  266. package/dist/commonjs/operations/sqlPoolSecurityAlertPolicies.js.map +1 -1
  267. package/dist/commonjs/operations/sqlPoolSensitivityLabels.js +45 -78
  268. package/dist/commonjs/operations/sqlPoolSensitivityLabels.js.map +1 -1
  269. package/dist/commonjs/operations/sqlPoolTableColumns.js +23 -39
  270. package/dist/commonjs/operations/sqlPoolTableColumns.js.map +1 -1
  271. package/dist/commonjs/operations/sqlPoolTables.js +23 -39
  272. package/dist/commonjs/operations/sqlPoolTables.js.map +1 -1
  273. package/dist/commonjs/operations/sqlPoolTransparentDataEncryptions.js +23 -39
  274. package/dist/commonjs/operations/sqlPoolTransparentDataEncryptions.js.map +1 -1
  275. package/dist/commonjs/operations/sqlPoolUsages.js +23 -39
  276. package/dist/commonjs/operations/sqlPoolUsages.js.map +1 -1
  277. package/dist/commonjs/operations/sqlPoolVulnerabilityAssessmentRuleBaselines.js +1 -0
  278. package/dist/commonjs/operations/sqlPoolVulnerabilityAssessmentRuleBaselines.js.map +1 -1
  279. package/dist/commonjs/operations/sqlPoolVulnerabilityAssessmentScans.js +34 -45
  280. package/dist/commonjs/operations/sqlPoolVulnerabilityAssessmentScans.js.map +1 -1
  281. package/dist/commonjs/operations/sqlPoolVulnerabilityAssessments.js +23 -39
  282. package/dist/commonjs/operations/sqlPoolVulnerabilityAssessments.js.map +1 -1
  283. package/dist/commonjs/operations/sqlPoolWorkloadClassifier.js +45 -51
  284. package/dist/commonjs/operations/sqlPoolWorkloadClassifier.js.map +1 -1
  285. package/dist/commonjs/operations/sqlPoolWorkloadGroup.js +45 -51
  286. package/dist/commonjs/operations/sqlPoolWorkloadGroup.js.map +1 -1
  287. package/dist/commonjs/operations/sqlPools.js +78 -69
  288. package/dist/commonjs/operations/sqlPools.js.map +1 -1
  289. package/dist/commonjs/operations/workspaceAadAdmins.js +23 -12
  290. package/dist/commonjs/operations/workspaceAadAdmins.js.map +1 -1
  291. package/dist/commonjs/operations/workspaceManagedIdentitySqlControlSettings.js +12 -6
  292. package/dist/commonjs/operations/workspaceManagedIdentitySqlControlSettings.js.map +1 -1
  293. package/dist/commonjs/operations/workspaceManagedSqlServerBlobAuditingPolicies.js +34 -45
  294. package/dist/commonjs/operations/workspaceManagedSqlServerBlobAuditingPolicies.js.map +1 -1
  295. package/dist/commonjs/operations/workspaceManagedSqlServerDedicatedSQLMinimalTlsSettings.js +34 -45
  296. package/dist/commonjs/operations/workspaceManagedSqlServerDedicatedSQLMinimalTlsSettings.js.map +1 -1
  297. package/dist/commonjs/operations/workspaceManagedSqlServerEncryptionProtector.js +45 -51
  298. package/dist/commonjs/operations/workspaceManagedSqlServerEncryptionProtector.js.map +1 -1
  299. package/dist/commonjs/operations/workspaceManagedSqlServerExtendedBlobAuditingPolicies.js +34 -45
  300. package/dist/commonjs/operations/workspaceManagedSqlServerExtendedBlobAuditingPolicies.js.map +1 -1
  301. package/dist/commonjs/operations/workspaceManagedSqlServerRecoverableSqlPools.js +23 -39
  302. package/dist/commonjs/operations/workspaceManagedSqlServerRecoverableSqlPools.js.map +1 -1
  303. package/dist/commonjs/operations/workspaceManagedSqlServerSecurityAlertPolicy.js +34 -45
  304. package/dist/commonjs/operations/workspaceManagedSqlServerSecurityAlertPolicy.js.map +1 -1
  305. package/dist/commonjs/operations/workspaceManagedSqlServerUsages.js +23 -39
  306. package/dist/commonjs/operations/workspaceManagedSqlServerUsages.js.map +1 -1
  307. package/dist/commonjs/operations/workspaceManagedSqlServerVulnerabilityAssessments.js +23 -39
  308. package/dist/commonjs/operations/workspaceManagedSqlServerVulnerabilityAssessments.js.map +1 -1
  309. package/dist/commonjs/operations/workspaceSqlAadAdmins.js +23 -12
  310. package/dist/commonjs/operations/workspaceSqlAadAdmins.js.map +1 -1
  311. package/dist/commonjs/operations/workspaces.js +78 -96
  312. package/dist/commonjs/operations/workspaces.js.map +1 -1
  313. package/dist/commonjs/pagingHelper.js +2 -4
  314. package/dist/commonjs/pagingHelper.js.map +1 -1
  315. package/dist/commonjs/synapseManagementClient.js +87 -5
  316. package/dist/commonjs/synapseManagementClient.js.map +1 -1
  317. package/dist/commonjs/tsdoc-metadata.json +1 -1
  318. package/dist/esm/lroImpl.js +11 -3
  319. package/dist/esm/lroImpl.js.map +1 -1
  320. package/dist/esm/models/mappers.js +1142 -531
  321. package/dist/esm/models/mappers.js.map +1 -1
  322. package/dist/esm/operations/azureADOnlyAuthentications.js +34 -46
  323. package/dist/esm/operations/azureADOnlyAuthentications.js.map +1 -1
  324. package/dist/esm/operations/bigDataPools.js +45 -52
  325. package/dist/esm/operations/bigDataPools.js.map +1 -1
  326. package/dist/esm/operations/dataMaskingPolicies.js +1 -0
  327. package/dist/esm/operations/dataMaskingPolicies.js.map +1 -1
  328. package/dist/esm/operations/dataMaskingRules.js +10 -27
  329. package/dist/esm/operations/dataMaskingRules.js.map +1 -1
  330. package/dist/esm/operations/extendedSqlPoolBlobAuditingPolicies.js +23 -40
  331. package/dist/esm/operations/extendedSqlPoolBlobAuditingPolicies.js.map +1 -1
  332. package/dist/esm/operations/get.js +1 -0
  333. package/dist/esm/operations/get.js.map +1 -1
  334. package/dist/esm/operations/integrationRuntimeAuthKeysOperations.js +1 -0
  335. package/dist/esm/operations/integrationRuntimeAuthKeysOperations.js.map +1 -1
  336. package/dist/esm/operations/integrationRuntimeConnectionInfos.js +1 -0
  337. package/dist/esm/operations/integrationRuntimeConnectionInfos.js.map +1 -1
  338. package/dist/esm/operations/integrationRuntimeCredentials.js +1 -0
  339. package/dist/esm/operations/integrationRuntimeCredentials.js.map +1 -1
  340. package/dist/esm/operations/integrationRuntimeMonitoringDataOperations.js +1 -0
  341. package/dist/esm/operations/integrationRuntimeMonitoringDataOperations.js.map +1 -1
  342. package/dist/esm/operations/integrationRuntimeNodeIpAddressOperations.js +1 -0
  343. package/dist/esm/operations/integrationRuntimeNodeIpAddressOperations.js.map +1 -1
  344. package/dist/esm/operations/integrationRuntimeNodes.js +1 -0
  345. package/dist/esm/operations/integrationRuntimeNodes.js.map +1 -1
  346. package/dist/esm/operations/integrationRuntimeObjectMetadata.js +12 -6
  347. package/dist/esm/operations/integrationRuntimeObjectMetadata.js.map +1 -1
  348. package/dist/esm/operations/integrationRuntimeStatusOperations.js +1 -0
  349. package/dist/esm/operations/integrationRuntimeStatusOperations.js.map +1 -1
  350. package/dist/esm/operations/integrationRuntimes.js +89 -76
  351. package/dist/esm/operations/integrationRuntimes.js.map +1 -1
  352. package/dist/esm/operations/ipFirewallRules.js +56 -58
  353. package/dist/esm/operations/ipFirewallRules.js.map +1 -1
  354. package/dist/esm/operations/keys.js +23 -40
  355. package/dist/esm/operations/keys.js.map +1 -1
  356. package/dist/esm/operations/kustoOperations.js +23 -40
  357. package/dist/esm/operations/kustoOperations.js.map +1 -1
  358. package/dist/esm/operations/kustoPoolAttachedDatabaseConfigurations.js +32 -39
  359. package/dist/esm/operations/kustoPoolAttachedDatabaseConfigurations.js.map +1 -1
  360. package/dist/esm/operations/kustoPoolChildResource.js +1 -0
  361. package/dist/esm/operations/kustoPoolChildResource.js.map +1 -1
  362. package/dist/esm/operations/kustoPoolDataConnections.js +54 -51
  363. package/dist/esm/operations/kustoPoolDataConnections.js.map +1 -1
  364. package/dist/esm/operations/kustoPoolDatabasePrincipalAssignments.js +32 -39
  365. package/dist/esm/operations/kustoPoolDatabasePrincipalAssignments.js.map +1 -1
  366. package/dist/esm/operations/kustoPoolDatabases.js +43 -45
  367. package/dist/esm/operations/kustoPoolDatabases.js.map +1 -1
  368. package/dist/esm/operations/kustoPoolPrincipalAssignments.js +32 -39
  369. package/dist/esm/operations/kustoPoolPrincipalAssignments.js.map +1 -1
  370. package/dist/esm/operations/kustoPoolPrivateLinkResourcesOperations.js +10 -27
  371. package/dist/esm/operations/kustoPoolPrivateLinkResourcesOperations.js.map +1 -1
  372. package/dist/esm/operations/kustoPools.js +125 -153
  373. package/dist/esm/operations/kustoPools.js.map +1 -1
  374. package/dist/esm/operations/libraries.js +23 -40
  375. package/dist/esm/operations/libraries.js.map +1 -1
  376. package/dist/esm/operations/library.js +1 -0
  377. package/dist/esm/operations/library.js.map +1 -1
  378. package/dist/esm/operations/operations.js +1 -0
  379. package/dist/esm/operations/operations.js.map +1 -1
  380. package/dist/esm/operations/privateEndpointConnections.js +45 -52
  381. package/dist/esm/operations/privateEndpointConnections.js.map +1 -1
  382. package/dist/esm/operations/privateEndpointConnectionsPrivateLinkHub.js +23 -40
  383. package/dist/esm/operations/privateEndpointConnectionsPrivateLinkHub.js.map +1 -1
  384. package/dist/esm/operations/privateLinkHubPrivateLinkResources.js +23 -40
  385. package/dist/esm/operations/privateLinkHubPrivateLinkResources.js.map +1 -1
  386. package/dist/esm/operations/privateLinkHubs.js +56 -85
  387. package/dist/esm/operations/privateLinkHubs.js.map +1 -1
  388. package/dist/esm/operations/privateLinkResourcesOperations.js +23 -40
  389. package/dist/esm/operations/privateLinkResourcesOperations.js.map +1 -1
  390. package/dist/esm/operations/restorableDroppedSqlPools.js +10 -27
  391. package/dist/esm/operations/restorableDroppedSqlPools.js.map +1 -1
  392. package/dist/esm/operations/sparkConfiguration.js +1 -0
  393. package/dist/esm/operations/sparkConfiguration.js.map +1 -1
  394. package/dist/esm/operations/sparkConfigurations.js +23 -40
  395. package/dist/esm/operations/sparkConfigurations.js.map +1 -1
  396. package/dist/esm/operations/sqlPoolBlobAuditingPolicies.js +23 -40
  397. package/dist/esm/operations/sqlPoolBlobAuditingPolicies.js.map +1 -1
  398. package/dist/esm/operations/sqlPoolColumns.js +1 -0
  399. package/dist/esm/operations/sqlPoolColumns.js.map +1 -1
  400. package/dist/esm/operations/sqlPoolConnectionPolicies.js +1 -0
  401. package/dist/esm/operations/sqlPoolConnectionPolicies.js.map +1 -1
  402. package/dist/esm/operations/sqlPoolDataWarehouseUserActivities.js +1 -0
  403. package/dist/esm/operations/sqlPoolDataWarehouseUserActivities.js.map +1 -1
  404. package/dist/esm/operations/sqlPoolGeoBackupPolicies.js +10 -27
  405. package/dist/esm/operations/sqlPoolGeoBackupPolicies.js.map +1 -1
  406. package/dist/esm/operations/sqlPoolMaintenanceWindowOptions.js +1 -0
  407. package/dist/esm/operations/sqlPoolMaintenanceWindowOptions.js.map +1 -1
  408. package/dist/esm/operations/sqlPoolMaintenanceWindows.js +1 -0
  409. package/dist/esm/operations/sqlPoolMaintenanceWindows.js.map +1 -1
  410. package/dist/esm/operations/sqlPoolMetadataSyncConfigs.js +1 -0
  411. package/dist/esm/operations/sqlPoolMetadataSyncConfigs.js.map +1 -1
  412. package/dist/esm/operations/sqlPoolOperationResults.js +12 -6
  413. package/dist/esm/operations/sqlPoolOperationResults.js.map +1 -1
  414. package/dist/esm/operations/sqlPoolOperations.js +23 -40
  415. package/dist/esm/operations/sqlPoolOperations.js.map +1 -1
  416. package/dist/esm/operations/sqlPoolRecommendedSensitivityLabels.js +1 -0
  417. package/dist/esm/operations/sqlPoolRecommendedSensitivityLabels.js.map +1 -1
  418. package/dist/esm/operations/sqlPoolReplicationLinks.js +23 -40
  419. package/dist/esm/operations/sqlPoolReplicationLinks.js.map +1 -1
  420. package/dist/esm/operations/sqlPoolRestorePoints.js +34 -46
  421. package/dist/esm/operations/sqlPoolRestorePoints.js.map +1 -1
  422. package/dist/esm/operations/sqlPoolSchemas.js +23 -40
  423. package/dist/esm/operations/sqlPoolSchemas.js.map +1 -1
  424. package/dist/esm/operations/sqlPoolSecurityAlertPolicies.js +23 -40
  425. package/dist/esm/operations/sqlPoolSecurityAlertPolicies.js.map +1 -1
  426. package/dist/esm/operations/sqlPoolSensitivityLabels.js +45 -79
  427. package/dist/esm/operations/sqlPoolSensitivityLabels.js.map +1 -1
  428. package/dist/esm/operations/sqlPoolTableColumns.js +23 -40
  429. package/dist/esm/operations/sqlPoolTableColumns.js.map +1 -1
  430. package/dist/esm/operations/sqlPoolTables.js +23 -40
  431. package/dist/esm/operations/sqlPoolTables.js.map +1 -1
  432. package/dist/esm/operations/sqlPoolTransparentDataEncryptions.js +23 -40
  433. package/dist/esm/operations/sqlPoolTransparentDataEncryptions.js.map +1 -1
  434. package/dist/esm/operations/sqlPoolUsages.js +23 -40
  435. package/dist/esm/operations/sqlPoolUsages.js.map +1 -1
  436. package/dist/esm/operations/sqlPoolVulnerabilityAssessmentRuleBaselines.js +1 -0
  437. package/dist/esm/operations/sqlPoolVulnerabilityAssessmentRuleBaselines.js.map +1 -1
  438. package/dist/esm/operations/sqlPoolVulnerabilityAssessmentScans.js +34 -46
  439. package/dist/esm/operations/sqlPoolVulnerabilityAssessmentScans.js.map +1 -1
  440. package/dist/esm/operations/sqlPoolVulnerabilityAssessments.js +23 -40
  441. package/dist/esm/operations/sqlPoolVulnerabilityAssessments.js.map +1 -1
  442. package/dist/esm/operations/sqlPoolWorkloadClassifier.js +45 -52
  443. package/dist/esm/operations/sqlPoolWorkloadClassifier.js.map +1 -1
  444. package/dist/esm/operations/sqlPoolWorkloadGroup.js +45 -52
  445. package/dist/esm/operations/sqlPoolWorkloadGroup.js.map +1 -1
  446. package/dist/esm/operations/sqlPools.js +78 -70
  447. package/dist/esm/operations/sqlPools.js.map +1 -1
  448. package/dist/esm/operations/workspaceAadAdmins.js +23 -12
  449. package/dist/esm/operations/workspaceAadAdmins.js.map +1 -1
  450. package/dist/esm/operations/workspaceManagedIdentitySqlControlSettings.js +12 -6
  451. package/dist/esm/operations/workspaceManagedIdentitySqlControlSettings.js.map +1 -1
  452. package/dist/esm/operations/workspaceManagedSqlServerBlobAuditingPolicies.js +34 -46
  453. package/dist/esm/operations/workspaceManagedSqlServerBlobAuditingPolicies.js.map +1 -1
  454. package/dist/esm/operations/workspaceManagedSqlServerDedicatedSQLMinimalTlsSettings.js +34 -46
  455. package/dist/esm/operations/workspaceManagedSqlServerDedicatedSQLMinimalTlsSettings.js.map +1 -1
  456. package/dist/esm/operations/workspaceManagedSqlServerEncryptionProtector.js +45 -52
  457. package/dist/esm/operations/workspaceManagedSqlServerEncryptionProtector.js.map +1 -1
  458. package/dist/esm/operations/workspaceManagedSqlServerExtendedBlobAuditingPolicies.js +34 -46
  459. package/dist/esm/operations/workspaceManagedSqlServerExtendedBlobAuditingPolicies.js.map +1 -1
  460. package/dist/esm/operations/workspaceManagedSqlServerRecoverableSqlPools.js +23 -40
  461. package/dist/esm/operations/workspaceManagedSqlServerRecoverableSqlPools.js.map +1 -1
  462. package/dist/esm/operations/workspaceManagedSqlServerSecurityAlertPolicy.js +34 -46
  463. package/dist/esm/operations/workspaceManagedSqlServerSecurityAlertPolicy.js.map +1 -1
  464. package/dist/esm/operations/workspaceManagedSqlServerUsages.js +23 -40
  465. package/dist/esm/operations/workspaceManagedSqlServerUsages.js.map +1 -1
  466. package/dist/esm/operations/workspaceManagedSqlServerVulnerabilityAssessments.js +23 -40
  467. package/dist/esm/operations/workspaceManagedSqlServerVulnerabilityAssessments.js.map +1 -1
  468. package/dist/esm/operations/workspaceSqlAadAdmins.js +23 -12
  469. package/dist/esm/operations/workspaceSqlAadAdmins.js.map +1 -1
  470. package/dist/esm/operations/workspaces.js +78 -97
  471. package/dist/esm/operations/workspaces.js.map +1 -1
  472. package/dist/esm/pagingHelper.js +2 -4
  473. package/dist/esm/pagingHelper.js.map +1 -1
  474. package/dist/esm/synapseManagementClient.js +87 -5
  475. package/dist/esm/synapseManagementClient.js.map +1 -1
  476. package/dist/react-native/lroImpl.js +11 -3
  477. package/dist/react-native/lroImpl.js.map +1 -1
  478. package/dist/react-native/models/mappers.js +1142 -531
  479. package/dist/react-native/models/mappers.js.map +1 -1
  480. package/dist/react-native/operations/azureADOnlyAuthentications.js +34 -46
  481. package/dist/react-native/operations/azureADOnlyAuthentications.js.map +1 -1
  482. package/dist/react-native/operations/bigDataPools.js +45 -52
  483. package/dist/react-native/operations/bigDataPools.js.map +1 -1
  484. package/dist/react-native/operations/dataMaskingPolicies.js +1 -0
  485. package/dist/react-native/operations/dataMaskingPolicies.js.map +1 -1
  486. package/dist/react-native/operations/dataMaskingRules.js +10 -27
  487. package/dist/react-native/operations/dataMaskingRules.js.map +1 -1
  488. package/dist/react-native/operations/extendedSqlPoolBlobAuditingPolicies.js +23 -40
  489. package/dist/react-native/operations/extendedSqlPoolBlobAuditingPolicies.js.map +1 -1
  490. package/dist/react-native/operations/get.js +1 -0
  491. package/dist/react-native/operations/get.js.map +1 -1
  492. package/dist/react-native/operations/integrationRuntimeAuthKeysOperations.js +1 -0
  493. package/dist/react-native/operations/integrationRuntimeAuthKeysOperations.js.map +1 -1
  494. package/dist/react-native/operations/integrationRuntimeConnectionInfos.js +1 -0
  495. package/dist/react-native/operations/integrationRuntimeConnectionInfos.js.map +1 -1
  496. package/dist/react-native/operations/integrationRuntimeCredentials.js +1 -0
  497. package/dist/react-native/operations/integrationRuntimeCredentials.js.map +1 -1
  498. package/dist/react-native/operations/integrationRuntimeMonitoringDataOperations.js +1 -0
  499. package/dist/react-native/operations/integrationRuntimeMonitoringDataOperations.js.map +1 -1
  500. package/dist/react-native/operations/integrationRuntimeNodeIpAddressOperations.js +1 -0
  501. package/dist/react-native/operations/integrationRuntimeNodeIpAddressOperations.js.map +1 -1
  502. package/dist/react-native/operations/integrationRuntimeNodes.js +1 -0
  503. package/dist/react-native/operations/integrationRuntimeNodes.js.map +1 -1
  504. package/dist/react-native/operations/integrationRuntimeObjectMetadata.js +12 -6
  505. package/dist/react-native/operations/integrationRuntimeObjectMetadata.js.map +1 -1
  506. package/dist/react-native/operations/integrationRuntimeStatusOperations.js +1 -0
  507. package/dist/react-native/operations/integrationRuntimeStatusOperations.js.map +1 -1
  508. package/dist/react-native/operations/integrationRuntimes.js +89 -76
  509. package/dist/react-native/operations/integrationRuntimes.js.map +1 -1
  510. package/dist/react-native/operations/ipFirewallRules.js +56 -58
  511. package/dist/react-native/operations/ipFirewallRules.js.map +1 -1
  512. package/dist/react-native/operations/keys.js +23 -40
  513. package/dist/react-native/operations/keys.js.map +1 -1
  514. package/dist/react-native/operations/kustoOperations.js +23 -40
  515. package/dist/react-native/operations/kustoOperations.js.map +1 -1
  516. package/dist/react-native/operations/kustoPoolAttachedDatabaseConfigurations.js +32 -39
  517. package/dist/react-native/operations/kustoPoolAttachedDatabaseConfigurations.js.map +1 -1
  518. package/dist/react-native/operations/kustoPoolChildResource.js +1 -0
  519. package/dist/react-native/operations/kustoPoolChildResource.js.map +1 -1
  520. package/dist/react-native/operations/kustoPoolDataConnections.js +54 -51
  521. package/dist/react-native/operations/kustoPoolDataConnections.js.map +1 -1
  522. package/dist/react-native/operations/kustoPoolDatabasePrincipalAssignments.js +32 -39
  523. package/dist/react-native/operations/kustoPoolDatabasePrincipalAssignments.js.map +1 -1
  524. package/dist/react-native/operations/kustoPoolDatabases.js +43 -45
  525. package/dist/react-native/operations/kustoPoolDatabases.js.map +1 -1
  526. package/dist/react-native/operations/kustoPoolPrincipalAssignments.js +32 -39
  527. package/dist/react-native/operations/kustoPoolPrincipalAssignments.js.map +1 -1
  528. package/dist/react-native/operations/kustoPoolPrivateLinkResourcesOperations.js +10 -27
  529. package/dist/react-native/operations/kustoPoolPrivateLinkResourcesOperations.js.map +1 -1
  530. package/dist/react-native/operations/kustoPools.js +125 -153
  531. package/dist/react-native/operations/kustoPools.js.map +1 -1
  532. package/dist/react-native/operations/libraries.js +23 -40
  533. package/dist/react-native/operations/libraries.js.map +1 -1
  534. package/dist/react-native/operations/library.js +1 -0
  535. package/dist/react-native/operations/library.js.map +1 -1
  536. package/dist/react-native/operations/operations.js +1 -0
  537. package/dist/react-native/operations/operations.js.map +1 -1
  538. package/dist/react-native/operations/privateEndpointConnections.js +45 -52
  539. package/dist/react-native/operations/privateEndpointConnections.js.map +1 -1
  540. package/dist/react-native/operations/privateEndpointConnectionsPrivateLinkHub.js +23 -40
  541. package/dist/react-native/operations/privateEndpointConnectionsPrivateLinkHub.js.map +1 -1
  542. package/dist/react-native/operations/privateLinkHubPrivateLinkResources.js +23 -40
  543. package/dist/react-native/operations/privateLinkHubPrivateLinkResources.js.map +1 -1
  544. package/dist/react-native/operations/privateLinkHubs.js +56 -85
  545. package/dist/react-native/operations/privateLinkHubs.js.map +1 -1
  546. package/dist/react-native/operations/privateLinkResourcesOperations.js +23 -40
  547. package/dist/react-native/operations/privateLinkResourcesOperations.js.map +1 -1
  548. package/dist/react-native/operations/restorableDroppedSqlPools.js +10 -27
  549. package/dist/react-native/operations/restorableDroppedSqlPools.js.map +1 -1
  550. package/dist/react-native/operations/sparkConfiguration.js +1 -0
  551. package/dist/react-native/operations/sparkConfiguration.js.map +1 -1
  552. package/dist/react-native/operations/sparkConfigurations.js +23 -40
  553. package/dist/react-native/operations/sparkConfigurations.js.map +1 -1
  554. package/dist/react-native/operations/sqlPoolBlobAuditingPolicies.js +23 -40
  555. package/dist/react-native/operations/sqlPoolBlobAuditingPolicies.js.map +1 -1
  556. package/dist/react-native/operations/sqlPoolColumns.js +1 -0
  557. package/dist/react-native/operations/sqlPoolColumns.js.map +1 -1
  558. package/dist/react-native/operations/sqlPoolConnectionPolicies.js +1 -0
  559. package/dist/react-native/operations/sqlPoolConnectionPolicies.js.map +1 -1
  560. package/dist/react-native/operations/sqlPoolDataWarehouseUserActivities.js +1 -0
  561. package/dist/react-native/operations/sqlPoolDataWarehouseUserActivities.js.map +1 -1
  562. package/dist/react-native/operations/sqlPoolGeoBackupPolicies.js +10 -27
  563. package/dist/react-native/operations/sqlPoolGeoBackupPolicies.js.map +1 -1
  564. package/dist/react-native/operations/sqlPoolMaintenanceWindowOptions.js +1 -0
  565. package/dist/react-native/operations/sqlPoolMaintenanceWindowOptions.js.map +1 -1
  566. package/dist/react-native/operations/sqlPoolMaintenanceWindows.js +1 -0
  567. package/dist/react-native/operations/sqlPoolMaintenanceWindows.js.map +1 -1
  568. package/dist/react-native/operations/sqlPoolMetadataSyncConfigs.js +1 -0
  569. package/dist/react-native/operations/sqlPoolMetadataSyncConfigs.js.map +1 -1
  570. package/dist/react-native/operations/sqlPoolOperationResults.js +12 -6
  571. package/dist/react-native/operations/sqlPoolOperationResults.js.map +1 -1
  572. package/dist/react-native/operations/sqlPoolOperations.js +23 -40
  573. package/dist/react-native/operations/sqlPoolOperations.js.map +1 -1
  574. package/dist/react-native/operations/sqlPoolRecommendedSensitivityLabels.js +1 -0
  575. package/dist/react-native/operations/sqlPoolRecommendedSensitivityLabels.js.map +1 -1
  576. package/dist/react-native/operations/sqlPoolReplicationLinks.js +23 -40
  577. package/dist/react-native/operations/sqlPoolReplicationLinks.js.map +1 -1
  578. package/dist/react-native/operations/sqlPoolRestorePoints.js +34 -46
  579. package/dist/react-native/operations/sqlPoolRestorePoints.js.map +1 -1
  580. package/dist/react-native/operations/sqlPoolSchemas.js +23 -40
  581. package/dist/react-native/operations/sqlPoolSchemas.js.map +1 -1
  582. package/dist/react-native/operations/sqlPoolSecurityAlertPolicies.js +23 -40
  583. package/dist/react-native/operations/sqlPoolSecurityAlertPolicies.js.map +1 -1
  584. package/dist/react-native/operations/sqlPoolSensitivityLabels.js +45 -79
  585. package/dist/react-native/operations/sqlPoolSensitivityLabels.js.map +1 -1
  586. package/dist/react-native/operations/sqlPoolTableColumns.js +23 -40
  587. package/dist/react-native/operations/sqlPoolTableColumns.js.map +1 -1
  588. package/dist/react-native/operations/sqlPoolTables.js +23 -40
  589. package/dist/react-native/operations/sqlPoolTables.js.map +1 -1
  590. package/dist/react-native/operations/sqlPoolTransparentDataEncryptions.js +23 -40
  591. package/dist/react-native/operations/sqlPoolTransparentDataEncryptions.js.map +1 -1
  592. package/dist/react-native/operations/sqlPoolUsages.js +23 -40
  593. package/dist/react-native/operations/sqlPoolUsages.js.map +1 -1
  594. package/dist/react-native/operations/sqlPoolVulnerabilityAssessmentRuleBaselines.js +1 -0
  595. package/dist/react-native/operations/sqlPoolVulnerabilityAssessmentRuleBaselines.js.map +1 -1
  596. package/dist/react-native/operations/sqlPoolVulnerabilityAssessmentScans.js +34 -46
  597. package/dist/react-native/operations/sqlPoolVulnerabilityAssessmentScans.js.map +1 -1
  598. package/dist/react-native/operations/sqlPoolVulnerabilityAssessments.js +23 -40
  599. package/dist/react-native/operations/sqlPoolVulnerabilityAssessments.js.map +1 -1
  600. package/dist/react-native/operations/sqlPoolWorkloadClassifier.js +45 -52
  601. package/dist/react-native/operations/sqlPoolWorkloadClassifier.js.map +1 -1
  602. package/dist/react-native/operations/sqlPoolWorkloadGroup.js +45 -52
  603. package/dist/react-native/operations/sqlPoolWorkloadGroup.js.map +1 -1
  604. package/dist/react-native/operations/sqlPools.js +78 -70
  605. package/dist/react-native/operations/sqlPools.js.map +1 -1
  606. package/dist/react-native/operations/workspaceAadAdmins.js +23 -12
  607. package/dist/react-native/operations/workspaceAadAdmins.js.map +1 -1
  608. package/dist/react-native/operations/workspaceManagedIdentitySqlControlSettings.js +12 -6
  609. package/dist/react-native/operations/workspaceManagedIdentitySqlControlSettings.js.map +1 -1
  610. package/dist/react-native/operations/workspaceManagedSqlServerBlobAuditingPolicies.js +34 -46
  611. package/dist/react-native/operations/workspaceManagedSqlServerBlobAuditingPolicies.js.map +1 -1
  612. package/dist/react-native/operations/workspaceManagedSqlServerDedicatedSQLMinimalTlsSettings.js +34 -46
  613. package/dist/react-native/operations/workspaceManagedSqlServerDedicatedSQLMinimalTlsSettings.js.map +1 -1
  614. package/dist/react-native/operations/workspaceManagedSqlServerEncryptionProtector.js +45 -52
  615. package/dist/react-native/operations/workspaceManagedSqlServerEncryptionProtector.js.map +1 -1
  616. package/dist/react-native/operations/workspaceManagedSqlServerExtendedBlobAuditingPolicies.js +34 -46
  617. package/dist/react-native/operations/workspaceManagedSqlServerExtendedBlobAuditingPolicies.js.map +1 -1
  618. package/dist/react-native/operations/workspaceManagedSqlServerRecoverableSqlPools.js +23 -40
  619. package/dist/react-native/operations/workspaceManagedSqlServerRecoverableSqlPools.js.map +1 -1
  620. package/dist/react-native/operations/workspaceManagedSqlServerSecurityAlertPolicy.js +34 -46
  621. package/dist/react-native/operations/workspaceManagedSqlServerSecurityAlertPolicy.js.map +1 -1
  622. package/dist/react-native/operations/workspaceManagedSqlServerUsages.js +23 -40
  623. package/dist/react-native/operations/workspaceManagedSqlServerUsages.js.map +1 -1
  624. package/dist/react-native/operations/workspaceManagedSqlServerVulnerabilityAssessments.js +23 -40
  625. package/dist/react-native/operations/workspaceManagedSqlServerVulnerabilityAssessments.js.map +1 -1
  626. package/dist/react-native/operations/workspaceSqlAadAdmins.js +23 -12
  627. package/dist/react-native/operations/workspaceSqlAadAdmins.js.map +1 -1
  628. package/dist/react-native/operations/workspaces.js +78 -97
  629. package/dist/react-native/operations/workspaces.js.map +1 -1
  630. package/dist/react-native/pagingHelper.js +2 -4
  631. package/dist/react-native/pagingHelper.js.map +1 -1
  632. package/dist/react-native/synapseManagementClient.js +87 -5
  633. package/dist/react-native/synapseManagementClient.js.map +1 -1
  634. package/package.json +2 -2
@@ -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 Keys operations. */
15
14
  export class KeysImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class Keys class.
18
18
  * @param client Reference to the service client
@@ -36,52 +36,35 @@ export class KeysImpl {
36
36
  return this;
37
37
  },
38
38
  byPage: (settings) => {
39
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
39
+ if (settings?.maxPageSize) {
40
40
  throw new Error("maxPageSize is not supported by this operation.");
41
41
  }
42
42
  return this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings);
43
43
  }
44
44
  };
45
45
  }
46
- listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings) {
47
- return __asyncGenerator(this, arguments, function* listByWorkspacePagingPage_1() {
48
- let result;
49
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
50
- if (!continuationToken) {
51
- result = yield __await(this._listByWorkspace(resourceGroupName, workspaceName, options));
52
- let page = result.value || [];
53
- continuationToken = result.nextLink;
54
- setContinuationToken(page, continuationToken);
55
- yield yield __await(page);
56
- }
57
- while (continuationToken) {
58
- result = yield __await(this._listByWorkspaceNext(resourceGroupName, workspaceName, continuationToken, options));
59
- continuationToken = result.nextLink;
60
- let page = result.value || [];
61
- setContinuationToken(page, continuationToken);
62
- yield yield __await(page);
63
- }
64
- });
46
+ async *listByWorkspacePagingPage(resourceGroupName, workspaceName, options, settings) {
47
+ let result;
48
+ let continuationToken = settings?.continuationToken;
49
+ if (!continuationToken) {
50
+ result = await this._listByWorkspace(resourceGroupName, workspaceName, options);
51
+ let page = result.value || [];
52
+ continuationToken = result.nextLink;
53
+ setContinuationToken(page, continuationToken);
54
+ yield page;
55
+ }
56
+ while (continuationToken) {
57
+ result = await this._listByWorkspaceNext(resourceGroupName, workspaceName, continuationToken, options);
58
+ continuationToken = result.nextLink;
59
+ let page = result.value || [];
60
+ setContinuationToken(page, continuationToken);
61
+ yield page;
62
+ }
65
63
  }
66
- listByWorkspacePagingAll(resourceGroupName, workspaceName, options) {
67
- return __asyncGenerator(this, arguments, function* listByWorkspacePagingAll_1() {
68
- var _a, e_1, _b, _c;
69
- try {
70
- for (var _d = true, _e = __asyncValues(this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
71
- _c = _f.value;
72
- _d = false;
73
- const page = _c;
74
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
75
- }
76
- }
77
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
78
- finally {
79
- try {
80
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
81
- }
82
- finally { if (e_1) throw e_1.error; }
83
- }
84
- });
64
+ async *listByWorkspacePagingAll(resourceGroupName, workspaceName, options) {
65
+ for await (const page of this.listByWorkspacePagingPage(resourceGroupName, workspaceName, options)) {
66
+ yield* page;
67
+ }
85
68
  }
86
69
  /**
87
70
  * Returns a list of keys in a workspace
@@ -1 +1 @@
1
- {"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../src/operations/keys.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;AAgBtD,4CAA4C;AAC5C,wCAAwC;AACxC,MAAM,OAAO,QAAQ;IAGnB;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,eAAe,CACpB,iBAAyB,EACzB,aAAqB,EACrB,OAA2C;QAE3C,MAAM,IAAI,GAAG,IAAI,CAAC,wBAAwB,CACxC,iBAAiB,EACjB,aAAa,EACb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,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gCAAgC,GAA6B;IACjE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Keys } 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 { SynapseManagementClient } from \"../synapseManagementClient.js\";\nimport {\n Key,\n KeysListByWorkspaceNextOptionalParams,\n KeysListByWorkspaceOptionalParams,\n KeysListByWorkspaceResponse,\n KeysGetOptionalParams,\n KeysGetResponse,\n KeysCreateOrUpdateOptionalParams,\n KeysCreateOrUpdateResponse,\n KeysDeleteOptionalParams,\n KeysDeleteResponse,\n KeysListByWorkspaceNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Keys operations. */\nexport class KeysImpl implements Keys {\n private readonly client: SynapseManagementClient;\n\n /**\n * Initialize a new instance of the class Keys class.\n * @param client Reference to the service client\n */\n constructor(client: SynapseManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns a list of keys in a workspace\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n public listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n options?: KeysListByWorkspaceOptionalParams\n ): PagedAsyncIterableIterator<Key> {\n const iter = this.listByWorkspacePagingAll(\n resourceGroupName,\n workspaceName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByWorkspacePagingPage(\n resourceGroupName,\n workspaceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByWorkspacePagingPage(\n resourceGroupName: string,\n workspaceName: string,\n options?: KeysListByWorkspaceOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Key[]> {\n let result: KeysListByWorkspaceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByWorkspace(\n resourceGroupName,\n workspaceName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByWorkspaceNext(\n resourceGroupName,\n workspaceName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByWorkspacePagingAll(\n resourceGroupName: string,\n workspaceName: string,\n options?: KeysListByWorkspaceOptionalParams\n ): AsyncIterableIterator<Key> {\n for await (const page of this.listByWorkspacePagingPage(\n resourceGroupName,\n workspaceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Returns a list of keys in a workspace\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n private _listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n options?: KeysListByWorkspaceOptionalParams\n ): Promise<KeysListByWorkspaceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n listByWorkspaceOperationSpec\n );\n }\n\n /**\n * Gets a workspace key\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param keyName The name of the workspace key\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n keyName: string,\n options?: KeysGetOptionalParams\n ): Promise<KeysGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, keyName, options },\n getOperationSpec\n );\n }\n\n /**\n * Creates or updates a workspace key\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param keyName The name of the workspace key\n * @param keyProperties Key put request properties\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n workspaceName: string,\n keyName: string,\n keyProperties: Key,\n options?: KeysCreateOrUpdateOptionalParams\n ): Promise<KeysCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, keyName, keyProperties, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Deletes a workspace key\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param keyName The name of the workspace key\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n workspaceName: string,\n keyName: string,\n options?: KeysDeleteOptionalParams\n ): Promise<KeysDeleteResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, keyName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * ListByWorkspaceNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method.\n * @param options The options parameters.\n */\n private _listByWorkspaceNext(\n resourceGroupName: string,\n workspaceName: string,\n nextLink: string,\n options?: KeysListByWorkspaceNextOptionalParams\n ): Promise<KeysListByWorkspaceNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, nextLink, options },\n listByWorkspaceNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByWorkspaceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/keys\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.KeyInfoListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/keys/{keyName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Key\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.keyName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/keys/{keyName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Key\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.keyProperties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.keyName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/keys/{keyName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.Key\n },\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.keyName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByWorkspaceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.KeyInfoListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"keys.js","sourceRoot":"","sources":["../../../src/operations/keys.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;AAgBtD,4CAA4C;AAC5C,wCAAwC;AACxC,MAAM,OAAO,QAAQ;IACF,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,eAAe,CACpB,iBAAyB,EACzB,aAAqB,EACrB,OAA2C;QAE3C,MA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AAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iBAAiB;SACtC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { Keys } 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 { SynapseManagementClient } from \"../synapseManagementClient.js\";\nimport {\n Key,\n KeysListByWorkspaceNextOptionalParams,\n KeysListByWorkspaceOptionalParams,\n KeysListByWorkspaceResponse,\n KeysGetOptionalParams,\n KeysGetResponse,\n KeysCreateOrUpdateOptionalParams,\n KeysCreateOrUpdateResponse,\n KeysDeleteOptionalParams,\n KeysDeleteResponse,\n KeysListByWorkspaceNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Keys operations. */\nexport class KeysImpl implements Keys {\n private readonly client: SynapseManagementClient;\n\n /**\n * Initialize a new instance of the class Keys class.\n * @param client Reference to the service client\n */\n constructor(client: SynapseManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns a list of keys in a workspace\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n public listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n options?: KeysListByWorkspaceOptionalParams\n ): PagedAsyncIterableIterator<Key> {\n const iter = this.listByWorkspacePagingAll(\n resourceGroupName,\n workspaceName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByWorkspacePagingPage(\n resourceGroupName,\n workspaceName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByWorkspacePagingPage(\n resourceGroupName: string,\n workspaceName: string,\n options?: KeysListByWorkspaceOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Key[]> {\n let result: KeysListByWorkspaceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByWorkspace(\n resourceGroupName,\n workspaceName,\n options\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByWorkspaceNext(\n resourceGroupName,\n workspaceName,\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByWorkspacePagingAll(\n resourceGroupName: string,\n workspaceName: string,\n options?: KeysListByWorkspaceOptionalParams\n ): AsyncIterableIterator<Key> {\n for await (const page of this.listByWorkspacePagingPage(\n resourceGroupName,\n workspaceName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Returns a list of keys in a workspace\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param options The options parameters.\n */\n private _listByWorkspace(\n resourceGroupName: string,\n workspaceName: string,\n options?: KeysListByWorkspaceOptionalParams\n ): Promise<KeysListByWorkspaceResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, options },\n listByWorkspaceOperationSpec\n );\n }\n\n /**\n * Gets a workspace key\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param keyName The name of the workspace key\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n workspaceName: string,\n keyName: string,\n options?: KeysGetOptionalParams\n ): Promise<KeysGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, keyName, options },\n getOperationSpec\n );\n }\n\n /**\n * Creates or updates a workspace key\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param keyName The name of the workspace key\n * @param keyProperties Key put request properties\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n workspaceName: string,\n keyName: string,\n keyProperties: Key,\n options?: KeysCreateOrUpdateOptionalParams\n ): Promise<KeysCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, keyName, keyProperties, options },\n createOrUpdateOperationSpec\n );\n }\n\n /**\n * Deletes a workspace key\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param keyName The name of the workspace key\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n workspaceName: string,\n keyName: string,\n options?: KeysDeleteOptionalParams\n ): Promise<KeysDeleteResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, keyName, options },\n deleteOperationSpec\n );\n }\n\n /**\n * ListByWorkspaceNext\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param workspaceName The name of the workspace.\n * @param nextLink The nextLink from the previous successful call to the ListByWorkspace method.\n * @param options The options parameters.\n */\n private _listByWorkspaceNext(\n resourceGroupName: string,\n workspaceName: string,\n nextLink: string,\n options?: KeysListByWorkspaceNextOptionalParams\n ): Promise<KeysListByWorkspaceNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, workspaceName, nextLink, options },\n listByWorkspaceNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByWorkspaceOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/keys\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.KeyInfoListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/keys/{keyName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Key\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.keyName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/keys/{keyName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Key\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.keyProperties,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.keyName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/keys/{keyName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {\n bodyMapper: Mappers.Key\n },\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.keyName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listByWorkspaceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.KeyInfoListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.nextLink\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
9
8
  import { setContinuationToken } from "../pagingHelper.js";
10
9
  import * as coreClient from "@azure/core-client";
11
10
  import * as Mappers from "../models/mappers.js";
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
13
12
  /// <reference lib="esnext.asynciterable" />
14
13
  /** Class containing KustoOperations operations. */
15
14
  export class KustoOperationsImpl {
15
+ client;
16
16
  /**
17
17
  * Initialize a new instance of the class KustoOperations class.
18
18
  * @param client Reference to the service client
@@ -34,52 +34,35 @@ export class KustoOperationsImpl {
34
34
  return this;
35
35
  },
36
36
  byPage: (settings) => {
37
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
37
+ if (settings?.maxPageSize) {
38
38
  throw new Error("maxPageSize is not supported by this operation.");
39
39
  }
40
40
  return this.listPagingPage(options, settings);
41
41
  }
42
42
  };
43
43
  }
44
- listPagingPage(options, settings) {
45
- return __asyncGenerator(this, arguments, function* listPagingPage_1() {
46
- let result;
47
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
48
- if (!continuationToken) {
49
- result = yield __await(this._list(options));
50
- let page = result.value || [];
51
- continuationToken = result.nextLink;
52
- setContinuationToken(page, continuationToken);
53
- yield yield __await(page);
54
- }
55
- while (continuationToken) {
56
- result = yield __await(this._listNext(continuationToken, options));
57
- continuationToken = result.nextLink;
58
- let page = result.value || [];
59
- setContinuationToken(page, continuationToken);
60
- yield yield __await(page);
61
- }
62
- });
44
+ async *listPagingPage(options, settings) {
45
+ let result;
46
+ let continuationToken = settings?.continuationToken;
47
+ if (!continuationToken) {
48
+ result = await this._list(options);
49
+ let page = result.value || [];
50
+ continuationToken = result.nextLink;
51
+ setContinuationToken(page, continuationToken);
52
+ yield page;
53
+ }
54
+ while (continuationToken) {
55
+ result = await this._listNext(continuationToken, options);
56
+ continuationToken = result.nextLink;
57
+ let page = result.value || [];
58
+ setContinuationToken(page, continuationToken);
59
+ yield page;
60
+ }
63
61
  }
64
- listPagingAll(options) {
65
- return __asyncGenerator(this, arguments, function* listPagingAll_1() {
66
- var _a, e_1, _b, _c;
67
- try {
68
- for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
69
- _c = _f.value;
70
- _d = false;
71
- const page = _c;
72
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
73
- }
74
- }
75
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
76
- finally {
77
- try {
78
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
79
- }
80
- finally { if (e_1) throw e_1.error; }
81
- }
82
- });
62
+ async *listPagingAll(options) {
63
+ for await (const page of this.listPagingPage(options)) {
64
+ yield* page;
65
+ }
83
66
  }
84
67
  /**
85
68
  * Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider.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,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,8CAA8C;IACpD,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,CAAC;IACjC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,qBAAqB,GAA6B;IACtD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,aAAa,EAAE,CAAC,UAAU,CAAC,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC;IACtD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { KustoOperations } 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 { SynapseManagementClient } from \"../synapseManagementClient.js\";\nimport {\n Operation,\n KustoOperationsListNextOptionalParams,\n KustoOperationsListOptionalParams,\n KustoOperationsListResponse,\n KustoOperationsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing KustoOperations operations. */\nexport class KustoOperationsImpl implements KustoOperations {\n private readonly client: SynapseManagementClient;\n\n /**\n * Initialize a new instance of the class KustoOperations class.\n * @param client Reference to the service client\n */\n constructor(client: SynapseManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider.\n * @param options The options parameters.\n */\n public list(\n options?: KustoOperationsListOptionalParams\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: KustoOperationsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Operation[]> {\n let result: KustoOperationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: KustoOperationsListOptionalParams\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider.\n * @param options The options parameters.\n */\n private _list(\n options?: KustoOperationsListOptionalParams\n ): Promise<KustoOperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: KustoOperationsListNextOptionalParams\n ): Promise<KustoOperationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Synapse/kustooperations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"kustoOperations.js","sourceRoot":"","sources":["../../../src/operations/kustoOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,4CAA4C;AAC5C,mDAAmD;AACnD,MAAM,OAAO,mBAAmB;IACb,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAA2C;QAE3C,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,C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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 { KustoOperations } 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 { SynapseManagementClient } from \"../synapseManagementClient.js\";\nimport {\n Operation,\n KustoOperationsListNextOptionalParams,\n KustoOperationsListOptionalParams,\n KustoOperationsListResponse,\n KustoOperationsListNextResponse\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing KustoOperations operations. */\nexport class KustoOperationsImpl implements KustoOperations {\n private readonly client: SynapseManagementClient;\n\n /**\n * Initialize a new instance of the class KustoOperations class.\n * @param client Reference to the service client\n */\n constructor(client: SynapseManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider.\n * @param options The options parameters.\n */\n public list(\n options?: KustoOperationsListOptionalParams\n ): PagedAsyncIterableIterator<Operation> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n }\n };\n }\n\n private async *listPagingPage(\n options?: KustoOperationsListOptionalParams,\n settings?: PageSettings\n ): AsyncIterableIterator<Operation[]> {\n let result: KustoOperationsListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: KustoOperationsListOptionalParams\n ): AsyncIterableIterator<Operation> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists available operations for the Kusto sub-resources inside Microsoft.Synapse provider.\n * @param options The options parameters.\n */\n private _list(\n options?: KustoOperationsListOptionalParams\n ): Promise<KustoOperationsListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: KustoOperationsListNextOptionalParams\n ): Promise<KustoOperationsListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/providers/Microsoft.Synapse/kustooperations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.$host],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.OperationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n urlParameters: [Parameters.$host, Parameters.nextLink],\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 * as coreClient from "@azure/core-client";
10
9
  import * as Mappers from "../models/mappers.js";
11
10
  import * as Parameters from "../models/parameters.js";
@@ -14,6 +13,7 @@ import { LroImpl } from "../lroImpl.js";
14
13
  /// <reference lib="esnext.asynciterable" />
15
14
  /** Class containing KustoPoolAttachedDatabaseConfigurations operations. */
16
15
  export class KustoPoolAttachedDatabaseConfigurationsImpl {
16
+ client;
17
17
  /**
18
18
  * Initialize a new instance of the class KustoPoolAttachedDatabaseConfigurations class.
19
19
  * @param client Reference to the service client
@@ -38,39 +38,22 @@ export class KustoPoolAttachedDatabaseConfigurationsImpl {
38
38
  return this;
39
39
  },
40
40
  byPage: (settings) => {
41
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
41
+ if (settings?.maxPageSize) {
42
42
  throw new Error("maxPageSize is not supported by this operation.");
43
43
  }
44
44
  return this.listByKustoPoolPagingPage(workspaceName, kustoPoolName, resourceGroupName, options, settings);
45
45
  }
46
46
  };
47
47
  }
48
- listByKustoPoolPagingPage(workspaceName, kustoPoolName, resourceGroupName, options, _settings) {
49
- return __asyncGenerator(this, arguments, function* listByKustoPoolPagingPage_1() {
50
- let result;
51
- result = yield __await(this._listByKustoPool(workspaceName, kustoPoolName, resourceGroupName, options));
52
- yield yield __await(result.value || []);
53
- });
48
+ async *listByKustoPoolPagingPage(workspaceName, kustoPoolName, resourceGroupName, options, _settings) {
49
+ let result;
50
+ result = await this._listByKustoPool(workspaceName, kustoPoolName, resourceGroupName, options);
51
+ yield result.value || [];
54
52
  }
55
- listByKustoPoolPagingAll(workspaceName, kustoPoolName, resourceGroupName, options) {
56
- return __asyncGenerator(this, arguments, function* listByKustoPoolPagingAll_1() {
57
- var _a, e_1, _b, _c;
58
- try {
59
- for (var _d = true, _e = __asyncValues(this.listByKustoPoolPagingPage(workspaceName, kustoPoolName, resourceGroupName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
60
- _c = _f.value;
61
- _d = false;
62
- const page = _c;
63
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
64
- }
65
- }
66
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
67
- finally {
68
- try {
69
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
70
- }
71
- finally { if (e_1) throw e_1.error; }
72
- }
73
- });
53
+ async *listByKustoPoolPagingAll(workspaceName, kustoPoolName, resourceGroupName, options) {
54
+ for await (const page of this.listByKustoPoolPagingPage(workspaceName, kustoPoolName, resourceGroupName, options)) {
55
+ yield* page;
56
+ }
74
57
  }
75
58
  /**
76
59
  * Returns the list of attached database configurations of the given Kusto Pool.
@@ -113,14 +96,19 @@ export class KustoPoolAttachedDatabaseConfigurationsImpl {
113
96
  return this.client.sendOperationRequest(args, spec);
114
97
  };
115
98
  const sendOperation = async (args, spec) => {
116
- var _a;
117
99
  let currentRawResponse = undefined;
118
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
100
+ const providedCallback = args.options?.onResponse;
119
101
  const callback = (rawResponse, flatResponse) => {
120
102
  currentRawResponse = rawResponse;
121
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
103
+ providedCallback?.(rawResponse, flatResponse);
104
+ };
105
+ const updatedArgs = {
106
+ ...args,
107
+ options: {
108
+ ...args.options,
109
+ onResponse: callback
110
+ }
122
111
  };
123
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
124
112
  const flatResponse = await directSendOperation(updatedArgs, spec);
125
113
  return {
126
114
  flatResponse,
@@ -140,8 +128,8 @@ export class KustoPoolAttachedDatabaseConfigurationsImpl {
140
128
  options
141
129
  }, createOrUpdateOperationSpec);
142
130
  const poller = new LroEngine(lro, {
143
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
144
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
131
+ resumeFrom: options?.resumeFrom,
132
+ intervalInMs: options?.updateIntervalInMs
145
133
  });
146
134
  await poller.poll();
147
135
  return poller;
@@ -172,14 +160,19 @@ export class KustoPoolAttachedDatabaseConfigurationsImpl {
172
160
  return this.client.sendOperationRequest(args, spec);
173
161
  };
174
162
  const sendOperation = async (args, spec) => {
175
- var _a;
176
163
  let currentRawResponse = undefined;
177
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
164
+ const providedCallback = args.options?.onResponse;
178
165
  const callback = (rawResponse, flatResponse) => {
179
166
  currentRawResponse = rawResponse;
180
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
167
+ providedCallback?.(rawResponse, flatResponse);
168
+ };
169
+ const updatedArgs = {
170
+ ...args,
171
+ options: {
172
+ ...args.options,
173
+ onResponse: callback
174
+ }
181
175
  };
182
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
183
176
  const flatResponse = await directSendOperation(updatedArgs, spec);
184
177
  return {
185
178
  flatResponse,
@@ -198,8 +191,8 @@ export class KustoPoolAttachedDatabaseConfigurationsImpl {
198
191
  options
199
192
  }, deleteOperationSpec);
200
193
  const poller = new LroEngine(lro, {
201
- resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
202
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
194
+ resumeFrom: options?.resumeFrom,
195
+ intervalInMs: options?.updateIntervalInMs
203
196
  });
204
197
  await poller.poll();
205
198
  return poller;
@@ -1 +1 @@
1
- {"version":3,"file":"kustoPoolAttachedDatabaseConfigurations.js","sourceRoot":"","sources":["../../../src/operations/kustoPoolAttachedDatabaseConfigurations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EA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AC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EACF,yNAAyN;IAC3N,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iCAAiC;KAC7C;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { KustoPoolAttachedDatabaseConfigurations } 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 { SynapseManagementClient } from \"../synapseManagementClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n AttachedDatabaseConfiguration,\n KustoPoolAttachedDatabaseConfigurationsListByKustoPoolOptionalParams,\n KustoPoolAttachedDatabaseConfigurationsListByKustoPoolResponse,\n KustoPoolAttachedDatabaseConfigurationsGetOptionalParams,\n KustoPoolAttachedDatabaseConfigurationsGetResponse,\n KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateOptionalParams,\n KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateResponse,\n KustoPoolAttachedDatabaseConfigurationsDeleteOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing KustoPoolAttachedDatabaseConfigurations operations. */\nexport class KustoPoolAttachedDatabaseConfigurationsImpl\n implements KustoPoolAttachedDatabaseConfigurations {\n private readonly client: SynapseManagementClient;\n\n /**\n * Initialize a new instance of the class KustoPoolAttachedDatabaseConfigurations class.\n * @param client Reference to the service client\n */\n constructor(client: SynapseManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns the list of attached database configurations of the given Kusto Pool.\n * @param workspaceName The name of the workspace.\n * @param kustoPoolName The name of the Kusto pool.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByKustoPool(\n workspaceName: string,\n kustoPoolName: string,\n resourceGroupName: string,\n options?: KustoPoolAttachedDatabaseConfigurationsListByKustoPoolOptionalParams\n ): PagedAsyncIterableIterator<AttachedDatabaseConfiguration> {\n const iter = this.listByKustoPoolPagingAll(\n workspaceName,\n kustoPoolName,\n resourceGroupName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByKustoPoolPagingPage(\n workspaceName,\n kustoPoolName,\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByKustoPoolPagingPage(\n workspaceName: string,\n kustoPoolName: string,\n resourceGroupName: string,\n options?: KustoPoolAttachedDatabaseConfigurationsListByKustoPoolOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<AttachedDatabaseConfiguration[]> {\n let result: KustoPoolAttachedDatabaseConfigurationsListByKustoPoolResponse;\n result = await this._listByKustoPool(\n workspaceName,\n kustoPoolName,\n resourceGroupName,\n options\n );\n yield result.value || [];\n }\n\n private async *listByKustoPoolPagingAll(\n workspaceName: string,\n kustoPoolName: string,\n resourceGroupName: string,\n options?: KustoPoolAttachedDatabaseConfigurationsListByKustoPoolOptionalParams\n ): AsyncIterableIterator<AttachedDatabaseConfiguration> {\n for await (const page of this.listByKustoPoolPagingPage(\n workspaceName,\n kustoPoolName,\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Returns the list of attached database configurations of the given Kusto Pool.\n * @param workspaceName The name of the workspace.\n * @param kustoPoolName The name of the Kusto pool.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByKustoPool(\n workspaceName: string,\n kustoPoolName: string,\n resourceGroupName: string,\n options?: KustoPoolAttachedDatabaseConfigurationsListByKustoPoolOptionalParams\n ): Promise<KustoPoolAttachedDatabaseConfigurationsListByKustoPoolResponse> {\n return this.client.sendOperationRequest(\n { workspaceName, kustoPoolName, resourceGroupName, options },\n listByKustoPoolOperationSpec\n );\n }\n\n /**\n * Returns an attached database configuration.\n * @param workspaceName The name of the workspace.\n * @param kustoPoolName The name of the Kusto pool.\n * @param attachedDatabaseConfigurationName The name of the attached database configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n get(\n workspaceName: string,\n kustoPoolName: string,\n attachedDatabaseConfigurationName: string,\n resourceGroupName: string,\n options?: KustoPoolAttachedDatabaseConfigurationsGetOptionalParams\n ): Promise<KustoPoolAttachedDatabaseConfigurationsGetResponse> {\n return this.client.sendOperationRequest(\n {\n workspaceName,\n kustoPoolName,\n attachedDatabaseConfigurationName,\n resourceGroupName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Creates or updates an attached database configuration.\n * @param workspaceName The name of the workspace.\n * @param kustoPoolName The name of the Kusto pool.\n * @param attachedDatabaseConfigurationName The name of the attached database configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param parameters The database parameters supplied to the CreateOrUpdate operation.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n workspaceName: string,\n kustoPoolName: string,\n attachedDatabaseConfigurationName: string,\n resourceGroupName: string,\n parameters: AttachedDatabaseConfiguration,\n options?: KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<\n KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateResponse\n >,\n KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n {\n workspaceName,\n kustoPoolName,\n attachedDatabaseConfigurationName,\n resourceGroupName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates or updates an attached database configuration.\n * @param workspaceName The name of the workspace.\n * @param kustoPoolName The name of the Kusto pool.\n * @param attachedDatabaseConfigurationName The name of the attached database configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param parameters The database parameters supplied to the CreateOrUpdate operation.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n workspaceName: string,\n kustoPoolName: string,\n attachedDatabaseConfigurationName: string,\n resourceGroupName: string,\n parameters: AttachedDatabaseConfiguration,\n options?: KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateOptionalParams\n ): Promise<KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n workspaceName,\n kustoPoolName,\n attachedDatabaseConfigurationName,\n resourceGroupName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes the attached database configuration with the given name.\n * @param workspaceName The name of the workspace.\n * @param kustoPoolName The name of the Kusto pool.\n * @param attachedDatabaseConfigurationName The name of the attached database configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n async beginDelete(\n workspaceName: string,\n kustoPoolName: string,\n attachedDatabaseConfigurationName: string,\n resourceGroupName: string,\n options?: KustoPoolAttachedDatabaseConfigurationsDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n {\n workspaceName,\n kustoPoolName,\n attachedDatabaseConfigurationName,\n resourceGroupName,\n options\n },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the attached database configuration with the given name.\n * @param workspaceName The name of the workspace.\n * @param kustoPoolName The name of the Kusto pool.\n * @param attachedDatabaseConfigurationName The name of the attached database configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n workspaceName: string,\n kustoPoolName: string,\n attachedDatabaseConfigurationName: string,\n resourceGroupName: string,\n options?: KustoPoolAttachedDatabaseConfigurationsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n workspaceName,\n kustoPoolName,\n attachedDatabaseConfigurationName,\n resourceGroupName,\n options\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByKustoPoolOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AttachedDatabaseConfigurationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.kustoPoolName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AttachedDatabaseConfiguration\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.kustoPoolName1,\n Parameters.attachedDatabaseConfigurationName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.AttachedDatabaseConfiguration\n },\n 201: {\n bodyMapper: Mappers.AttachedDatabaseConfiguration\n },\n 202: {\n bodyMapper: Mappers.AttachedDatabaseConfiguration\n },\n 204: {\n bodyMapper: Mappers.AttachedDatabaseConfiguration\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters25,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.kustoPoolName1,\n Parameters.attachedDatabaseConfigurationName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.kustoPoolName1,\n Parameters.attachedDatabaseConfigurationName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
1
+ {"version":3,"file":"kustoPoolAttachedDatabaseConfigurations.js","sourceRoot":"","sources":["../../../src/operations/kustoPoolAttachedDatabaseConfigurations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAEtD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAYxC,4CAA4C;AAC5C,2EAA2E;AAC3E,MAAM,OAAO,2CAA2C;IAErC,MAAM,CAA0B;IAEjD;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;OAMG;IACI,eAAe,CACpB,aAAqB,EACrB,aAAqB,EACrB,iBAAyB,EACzB,OAA8E;QAE9E,MAAM,IAAI,GAAG,IAAI,CAAC,wBAAwB,CACxC,aAAa,EACb,aAAa,EACb,iBAAiB,EACjB,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,yBAAyB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AAC,YAAY;IACpC,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,cAAc;QACzB,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,mBAAmB,GAA6B;IACpD,IAAI,EACF,yNAAyN;IAC3N,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iCAAiC;KAC7C;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { KustoPoolAttachedDatabaseConfigurations } 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 { SynapseManagementClient } from \"../synapseManagementClient.js\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl.js\";\nimport {\n AttachedDatabaseConfiguration,\n KustoPoolAttachedDatabaseConfigurationsListByKustoPoolOptionalParams,\n KustoPoolAttachedDatabaseConfigurationsListByKustoPoolResponse,\n KustoPoolAttachedDatabaseConfigurationsGetOptionalParams,\n KustoPoolAttachedDatabaseConfigurationsGetResponse,\n KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateOptionalParams,\n KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateResponse,\n KustoPoolAttachedDatabaseConfigurationsDeleteOptionalParams\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing KustoPoolAttachedDatabaseConfigurations operations. */\nexport class KustoPoolAttachedDatabaseConfigurationsImpl\n implements KustoPoolAttachedDatabaseConfigurations {\n private readonly client: SynapseManagementClient;\n\n /**\n * Initialize a new instance of the class KustoPoolAttachedDatabaseConfigurations class.\n * @param client Reference to the service client\n */\n constructor(client: SynapseManagementClient) {\n this.client = client;\n }\n\n /**\n * Returns the list of attached database configurations of the given Kusto Pool.\n * @param workspaceName The name of the workspace.\n * @param kustoPoolName The name of the Kusto pool.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n public listByKustoPool(\n workspaceName: string,\n kustoPoolName: string,\n resourceGroupName: string,\n options?: KustoPoolAttachedDatabaseConfigurationsListByKustoPoolOptionalParams\n ): PagedAsyncIterableIterator<AttachedDatabaseConfiguration> {\n const iter = this.listByKustoPoolPagingAll(\n workspaceName,\n kustoPoolName,\n resourceGroupName,\n options\n );\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByKustoPoolPagingPage(\n workspaceName,\n kustoPoolName,\n resourceGroupName,\n options,\n settings\n );\n }\n };\n }\n\n private async *listByKustoPoolPagingPage(\n workspaceName: string,\n kustoPoolName: string,\n resourceGroupName: string,\n options?: KustoPoolAttachedDatabaseConfigurationsListByKustoPoolOptionalParams,\n _settings?: PageSettings\n ): AsyncIterableIterator<AttachedDatabaseConfiguration[]> {\n let result: KustoPoolAttachedDatabaseConfigurationsListByKustoPoolResponse;\n result = await this._listByKustoPool(\n workspaceName,\n kustoPoolName,\n resourceGroupName,\n options\n );\n yield result.value || [];\n }\n\n private async *listByKustoPoolPagingAll(\n workspaceName: string,\n kustoPoolName: string,\n resourceGroupName: string,\n options?: KustoPoolAttachedDatabaseConfigurationsListByKustoPoolOptionalParams\n ): AsyncIterableIterator<AttachedDatabaseConfiguration> {\n for await (const page of this.listByKustoPoolPagingPage(\n workspaceName,\n kustoPoolName,\n resourceGroupName,\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Returns the list of attached database configurations of the given Kusto Pool.\n * @param workspaceName The name of the workspace.\n * @param kustoPoolName The name of the Kusto pool.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n private _listByKustoPool(\n workspaceName: string,\n kustoPoolName: string,\n resourceGroupName: string,\n options?: KustoPoolAttachedDatabaseConfigurationsListByKustoPoolOptionalParams\n ): Promise<KustoPoolAttachedDatabaseConfigurationsListByKustoPoolResponse> {\n return this.client.sendOperationRequest(\n { workspaceName, kustoPoolName, resourceGroupName, options },\n listByKustoPoolOperationSpec\n );\n }\n\n /**\n * Returns an attached database configuration.\n * @param workspaceName The name of the workspace.\n * @param kustoPoolName The name of the Kusto pool.\n * @param attachedDatabaseConfigurationName The name of the attached database configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n get(\n workspaceName: string,\n kustoPoolName: string,\n attachedDatabaseConfigurationName: string,\n resourceGroupName: string,\n options?: KustoPoolAttachedDatabaseConfigurationsGetOptionalParams\n ): Promise<KustoPoolAttachedDatabaseConfigurationsGetResponse> {\n return this.client.sendOperationRequest(\n {\n workspaceName,\n kustoPoolName,\n attachedDatabaseConfigurationName,\n resourceGroupName,\n options\n },\n getOperationSpec\n );\n }\n\n /**\n * Creates or updates an attached database configuration.\n * @param workspaceName The name of the workspace.\n * @param kustoPoolName The name of the Kusto pool.\n * @param attachedDatabaseConfigurationName The name of the attached database configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param parameters The database parameters supplied to the CreateOrUpdate operation.\n * @param options The options parameters.\n */\n async beginCreateOrUpdate(\n workspaceName: string,\n kustoPoolName: string,\n attachedDatabaseConfigurationName: string,\n resourceGroupName: string,\n parameters: AttachedDatabaseConfiguration,\n options?: KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<\n KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateResponse\n >,\n KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateResponse> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n {\n workspaceName,\n kustoPoolName,\n attachedDatabaseConfigurationName,\n resourceGroupName,\n parameters,\n options\n },\n createOrUpdateOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates or updates an attached database configuration.\n * @param workspaceName The name of the workspace.\n * @param kustoPoolName The name of the Kusto pool.\n * @param attachedDatabaseConfigurationName The name of the attached database configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param parameters The database parameters supplied to the CreateOrUpdate operation.\n * @param options The options parameters.\n */\n async beginCreateOrUpdateAndWait(\n workspaceName: string,\n kustoPoolName: string,\n attachedDatabaseConfigurationName: string,\n resourceGroupName: string,\n parameters: AttachedDatabaseConfiguration,\n options?: KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateOptionalParams\n ): Promise<KustoPoolAttachedDatabaseConfigurationsCreateOrUpdateResponse> {\n const poller = await this.beginCreateOrUpdate(\n workspaceName,\n kustoPoolName,\n attachedDatabaseConfigurationName,\n resourceGroupName,\n parameters,\n options\n );\n return poller.pollUntilDone();\n }\n\n /**\n * Deletes the attached database configuration with the given name.\n * @param workspaceName The name of the workspace.\n * @param kustoPoolName The name of the Kusto pool.\n * @param attachedDatabaseConfigurationName The name of the attached database configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n async beginDelete(\n workspaceName: string,\n kustoPoolName: string,\n attachedDatabaseConfigurationName: string,\n resourceGroupName: string,\n options?: KustoPoolAttachedDatabaseConfigurationsDeleteOptionalParams\n ): Promise<PollerLike<PollOperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<void> => {\n return this.client.sendOperationRequest(args, spec);\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n {\n workspaceName,\n kustoPoolName,\n attachedDatabaseConfigurationName,\n resourceGroupName,\n options\n },\n deleteOperationSpec\n );\n const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes the attached database configuration with the given name.\n * @param workspaceName The name of the workspace.\n * @param kustoPoolName The name of the Kusto pool.\n * @param attachedDatabaseConfigurationName The name of the attached database configuration.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param options The options parameters.\n */\n async beginDeleteAndWait(\n workspaceName: string,\n kustoPoolName: string,\n attachedDatabaseConfigurationName: string,\n resourceGroupName: string,\n options?: KustoPoolAttachedDatabaseConfigurationsDeleteOptionalParams\n ): Promise<void> {\n const poller = await this.beginDelete(\n workspaceName,\n kustoPoolName,\n attachedDatabaseConfigurationName,\n resourceGroupName,\n options\n );\n return poller.pollUntilDone();\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByKustoPoolOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AttachedDatabaseConfigurationListResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.kustoPoolName1\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.AttachedDatabaseConfiguration\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.kustoPoolName1,\n Parameters.attachedDatabaseConfigurationName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.AttachedDatabaseConfiguration\n },\n 201: {\n bodyMapper: Mappers.AttachedDatabaseConfiguration\n },\n 202: {\n bodyMapper: Mappers.AttachedDatabaseConfiguration\n },\n 204: {\n bodyMapper: Mappers.AttachedDatabaseConfiguration\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.parameters25,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.kustoPoolName1,\n Parameters.attachedDatabaseConfigurationName\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/attachedDatabaseConfigurations/{attachedDatabaseConfigurationName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.kustoPoolName1,\n Parameters.attachedDatabaseConfigurationName\n ],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
10
10
  import * as Parameters from "../models/parameters.js";
11
11
  /** Class containing KustoPoolChildResource operations. */
12
12
  export class KustoPoolChildResourceImpl {
13
+ client;
13
14
  /**
14
15
  * Initialize a new instance of the class KustoPoolChildResource class.
15
16
  * @param client Reference to the service client
@@ -1 +1 @@
1
- {"version":3,"file":"kustoPoolChildResource.js","sourceRoot":"","sources":["../../../src/operations/kustoPoolChildResource.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAQtD,0DAA0D;AAC1D,MAAM,OAAO,0BAA0B;IAGrC;;;OAGG;IACH,YAAY,MAA+B;QACzC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACH,qBAAqB,CACnB,aAAqB,EACrB,aAAqB,EACrB,iBAAyB,EACzB,YAAsC,EACtC,OAAmE;QAEnE,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,aAAa;YACb,aAAa;YACb,iBAAiB;YACjB,YAAY;YACZ,OAAO;SACR,EACD,kCAAkC,CACnC,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,kCAAkC,GAA6B;IACnE,IAAI,EACF,4KAA4K;IAC9K,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,eAAe;SACpC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,WAAW,EAAE,UAAU,CAAC,YAAY;IACpC,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,aAAa;QACxB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { KustoPoolChildResource } 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 { SynapseManagementClient } from \"../synapseManagementClient.js\";\nimport {\n DatabaseCheckNameRequest,\n KustoPoolChildResourceCheckNameAvailabilityOptionalParams,\n KustoPoolChildResourceCheckNameAvailabilityResponse\n} from \"../models/index.js\";\n\n/** Class containing KustoPoolChildResource operations. */\nexport class KustoPoolChildResourceImpl implements KustoPoolChildResource {\n private readonly client: SynapseManagementClient;\n\n /**\n * Initialize a new instance of the class KustoPoolChildResource class.\n * @param client Reference to the service client\n */\n constructor(client: SynapseManagementClient) {\n this.client = client;\n }\n\n /**\n * Checks that the Kusto Pool child resource name is valid and is not already in use.\n * @param workspaceName The name of the workspace.\n * @param kustoPoolName The name of the Kusto pool.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Kusto Pool child resource.\n * @param options The options parameters.\n */\n checkNameAvailability(\n workspaceName: string,\n kustoPoolName: string,\n resourceGroupName: string,\n resourceName: DatabaseCheckNameRequest,\n options?: KustoPoolChildResourceCheckNameAvailabilityOptionalParams\n ): Promise<KustoPoolChildResourceCheckNameAvailabilityResponse> {\n return this.client.sendOperationRequest(\n {\n workspaceName,\n kustoPoolName,\n resourceGroupName,\n resourceName,\n options\n },\n checkNameAvailabilityOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.resourceName,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.kustoPoolName1\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}
1
+ {"version":3,"file":"kustoPoolChildResource.js","sourceRoot":"","sources":["../../../src/operations/kustoPoolChildResource.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;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* 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 { KustoPoolChildResource } 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 { SynapseManagementClient } from \"../synapseManagementClient.js\";\nimport {\n DatabaseCheckNameRequest,\n KustoPoolChildResourceCheckNameAvailabilityOptionalParams,\n KustoPoolChildResourceCheckNameAvailabilityResponse\n} from \"../models/index.js\";\n\n/** Class containing KustoPoolChildResource operations. */\nexport class KustoPoolChildResourceImpl implements KustoPoolChildResource {\n private readonly client: SynapseManagementClient;\n\n /**\n * Initialize a new instance of the class KustoPoolChildResource class.\n * @param client Reference to the service client\n */\n constructor(client: SynapseManagementClient) {\n this.client = client;\n }\n\n /**\n * Checks that the Kusto Pool child resource name is valid and is not already in use.\n * @param workspaceName The name of the workspace.\n * @param kustoPoolName The name of the Kusto pool.\n * @param resourceGroupName The name of the resource group. The name is case insensitive.\n * @param resourceName The name of the Kusto Pool child resource.\n * @param options The options parameters.\n */\n checkNameAvailability(\n workspaceName: string,\n kustoPoolName: string,\n resourceGroupName: string,\n resourceName: DatabaseCheckNameRequest,\n options?: KustoPoolChildResourceCheckNameAvailabilityOptionalParams\n ): Promise<KustoPoolChildResourceCheckNameAvailabilityResponse> {\n return this.client.sendOperationRequest(\n {\n workspaceName,\n kustoPoolName,\n resourceGroupName,\n resourceName,\n options\n },\n checkNameAvailabilityOperationSpec\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst checkNameAvailabilityOperationSpec: coreClient.OperationSpec = {\n path:\n \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Synapse/workspaces/{workspaceName}/kustoPools/{kustoPoolName}/checkNameAvailability\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CheckNameResult\n },\n default: {\n bodyMapper: Mappers.ErrorResponse\n }\n },\n requestBody: Parameters.resourceName,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.workspaceName,\n Parameters.kustoPoolName1\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\n"]}