@azure/synapse-artifacts 1.0.0-alpha.20250620.1 → 1.0.0-alpha.20250721.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. package/dist/browser/artifactsClient.js +34 -5
  2. package/dist/browser/artifactsClient.js.map +1 -1
  3. package/dist/browser/lroImpl.js +7 -3
  4. package/dist/browser/lroImpl.js.map +1 -1
  5. package/dist/browser/models/mappers.js +6060 -2770
  6. package/dist/browser/models/mappers.js.map +1 -1
  7. package/dist/browser/operations/bigDataPools.js +3 -2
  8. package/dist/browser/operations/bigDataPools.js.map +1 -1
  9. package/dist/browser/operations/dataFlowDebugSession.js +51 -58
  10. package/dist/browser/operations/dataFlowDebugSession.js.map +1 -1
  11. package/dist/browser/operations/dataFlowOperations.js +62 -64
  12. package/dist/browser/operations/dataFlowOperations.js.map +1 -1
  13. package/dist/browser/operations/datasetOperations.js +62 -64
  14. package/dist/browser/operations/datasetOperations.js.map +1 -1
  15. package/dist/browser/operations/integrationRuntimes.js +3 -2
  16. package/dist/browser/operations/integrationRuntimes.js.map +1 -1
  17. package/dist/browser/operations/kqlScriptOperations.js +38 -22
  18. package/dist/browser/operations/kqlScriptOperations.js.map +1 -1
  19. package/dist/browser/operations/kqlScripts.js +25 -42
  20. package/dist/browser/operations/kqlScripts.js.map +1 -1
  21. package/dist/browser/operations/library.js +64 -66
  22. package/dist/browser/operations/library.js.map +1 -1
  23. package/dist/browser/operations/linkConnectionOperations.js +37 -54
  24. package/dist/browser/operations/linkConnectionOperations.js.map +1 -1
  25. package/dist/browser/operations/linkedServiceOperations.js +62 -64
  26. package/dist/browser/operations/linkedServiceOperations.js.map +1 -1
  27. package/dist/browser/operations/metastore.js +5 -4
  28. package/dist/browser/operations/metastore.js.map +1 -1
  29. package/dist/browser/operations/notebookOperationResult.js +2 -1
  30. package/dist/browser/operations/notebookOperationResult.js.map +1 -1
  31. package/dist/browser/operations/notebookOperations.js +86 -105
  32. package/dist/browser/operations/notebookOperations.js.map +1 -1
  33. package/dist/browser/operations/pipelineOperations.js +63 -65
  34. package/dist/browser/operations/pipelineOperations.js.map +1 -1
  35. package/dist/browser/operations/pipelineRunOperations.js +5 -4
  36. package/dist/browser/operations/pipelineRunOperations.js.map +1 -1
  37. package/dist/browser/operations/runNotebook.js +16 -10
  38. package/dist/browser/operations/runNotebook.js.map +1 -1
  39. package/dist/browser/operations/sparkConfigurationOperations.js +62 -64
  40. package/dist/browser/operations/sparkConfigurationOperations.js.map +1 -1
  41. package/dist/browser/operations/sparkJobDefinitionOperations.js +86 -78
  42. package/dist/browser/operations/sparkJobDefinitionOperations.js.map +1 -1
  43. package/dist/browser/operations/sqlPools.js +3 -2
  44. package/dist/browser/operations/sqlPools.js.map +1 -1
  45. package/dist/browser/operations/sqlScriptOperations.js +62 -64
  46. package/dist/browser/operations/sqlScriptOperations.js.map +1 -1
  47. package/dist/browser/operations/triggerOperations.js +99 -86
  48. package/dist/browser/operations/triggerOperations.js.map +1 -1
  49. package/dist/browser/operations/triggerRunOperations.js +4 -3
  50. package/dist/browser/operations/triggerRunOperations.js.map +1 -1
  51. package/dist/browser/operations/workspaceGitRepoManagement.js +2 -1
  52. package/dist/browser/operations/workspaceGitRepoManagement.js.map +1 -1
  53. package/dist/browser/operations/workspaceOperations.js +2 -1
  54. package/dist/browser/operations/workspaceOperations.js.map +1 -1
  55. package/dist/browser/pagingHelper.js +2 -4
  56. package/dist/browser/pagingHelper.js.map +1 -1
  57. package/dist/commonjs/artifactsClient.js +34 -5
  58. package/dist/commonjs/artifactsClient.js.map +1 -1
  59. package/dist/commonjs/lroImpl.js +7 -3
  60. package/dist/commonjs/lroImpl.js.map +1 -1
  61. package/dist/commonjs/models/mappers.js +6060 -2770
  62. package/dist/commonjs/models/mappers.js.map +1 -1
  63. package/dist/commonjs/operations/bigDataPools.js +3 -2
  64. package/dist/commonjs/operations/bigDataPools.js.map +1 -1
  65. package/dist/commonjs/operations/dataFlowDebugSession.js +51 -57
  66. package/dist/commonjs/operations/dataFlowDebugSession.js.map +1 -1
  67. package/dist/commonjs/operations/dataFlowOperations.js +62 -63
  68. package/dist/commonjs/operations/dataFlowOperations.js.map +1 -1
  69. package/dist/commonjs/operations/datasetOperations.js +62 -63
  70. package/dist/commonjs/operations/datasetOperations.js.map +1 -1
  71. package/dist/commonjs/operations/integrationRuntimes.js +3 -2
  72. package/dist/commonjs/operations/integrationRuntimes.js.map +1 -1
  73. package/dist/commonjs/operations/kqlScriptOperations.js +38 -22
  74. package/dist/commonjs/operations/kqlScriptOperations.js.map +1 -1
  75. package/dist/commonjs/operations/kqlScripts.js +25 -41
  76. package/dist/commonjs/operations/kqlScripts.js.map +1 -1
  77. package/dist/commonjs/operations/library.js +64 -65
  78. package/dist/commonjs/operations/library.js.map +1 -1
  79. package/dist/commonjs/operations/linkConnectionOperations.js +37 -53
  80. package/dist/commonjs/operations/linkConnectionOperations.js.map +1 -1
  81. package/dist/commonjs/operations/linkedServiceOperations.js +62 -63
  82. package/dist/commonjs/operations/linkedServiceOperations.js.map +1 -1
  83. package/dist/commonjs/operations/metastore.js +5 -4
  84. package/dist/commonjs/operations/metastore.js.map +1 -1
  85. package/dist/commonjs/operations/notebookOperationResult.js +2 -1
  86. package/dist/commonjs/operations/notebookOperationResult.js.map +1 -1
  87. package/dist/commonjs/operations/notebookOperations.js +86 -104
  88. package/dist/commonjs/operations/notebookOperations.js.map +1 -1
  89. package/dist/commonjs/operations/pipelineOperations.js +63 -64
  90. package/dist/commonjs/operations/pipelineOperations.js.map +1 -1
  91. package/dist/commonjs/operations/pipelineRunOperations.js +5 -4
  92. package/dist/commonjs/operations/pipelineRunOperations.js.map +1 -1
  93. package/dist/commonjs/operations/runNotebook.js +16 -10
  94. package/dist/commonjs/operations/runNotebook.js.map +1 -1
  95. package/dist/commonjs/operations/sparkConfigurationOperations.js +62 -63
  96. package/dist/commonjs/operations/sparkConfigurationOperations.js.map +1 -1
  97. package/dist/commonjs/operations/sparkJobDefinitionOperations.js +86 -77
  98. package/dist/commonjs/operations/sparkJobDefinitionOperations.js.map +1 -1
  99. package/dist/commonjs/operations/sqlPools.js +3 -2
  100. package/dist/commonjs/operations/sqlPools.js.map +1 -1
  101. package/dist/commonjs/operations/sqlScriptOperations.js +62 -63
  102. package/dist/commonjs/operations/sqlScriptOperations.js.map +1 -1
  103. package/dist/commonjs/operations/triggerOperations.js +99 -85
  104. package/dist/commonjs/operations/triggerOperations.js.map +1 -1
  105. package/dist/commonjs/operations/triggerRunOperations.js +4 -3
  106. package/dist/commonjs/operations/triggerRunOperations.js.map +1 -1
  107. package/dist/commonjs/operations/workspaceGitRepoManagement.js +2 -1
  108. package/dist/commonjs/operations/workspaceGitRepoManagement.js.map +1 -1
  109. package/dist/commonjs/operations/workspaceOperations.js +2 -1
  110. package/dist/commonjs/operations/workspaceOperations.js.map +1 -1
  111. package/dist/commonjs/pagingHelper.js +2 -4
  112. package/dist/commonjs/pagingHelper.js.map +1 -1
  113. package/dist/commonjs/tsdoc-metadata.json +11 -11
  114. package/dist/esm/artifactsClient.js +34 -5
  115. package/dist/esm/artifactsClient.js.map +1 -1
  116. package/dist/esm/lroImpl.js +7 -3
  117. package/dist/esm/lroImpl.js.map +1 -1
  118. package/dist/esm/models/mappers.js +6060 -2770
  119. package/dist/esm/models/mappers.js.map +1 -1
  120. package/dist/esm/operations/bigDataPools.js +3 -2
  121. package/dist/esm/operations/bigDataPools.js.map +1 -1
  122. package/dist/esm/operations/dataFlowDebugSession.js +51 -58
  123. package/dist/esm/operations/dataFlowDebugSession.js.map +1 -1
  124. package/dist/esm/operations/dataFlowOperations.js +62 -64
  125. package/dist/esm/operations/dataFlowOperations.js.map +1 -1
  126. package/dist/esm/operations/datasetOperations.js +62 -64
  127. package/dist/esm/operations/datasetOperations.js.map +1 -1
  128. package/dist/esm/operations/integrationRuntimes.js +3 -2
  129. package/dist/esm/operations/integrationRuntimes.js.map +1 -1
  130. package/dist/esm/operations/kqlScriptOperations.js +38 -22
  131. package/dist/esm/operations/kqlScriptOperations.js.map +1 -1
  132. package/dist/esm/operations/kqlScripts.js +25 -42
  133. package/dist/esm/operations/kqlScripts.js.map +1 -1
  134. package/dist/esm/operations/library.js +64 -66
  135. package/dist/esm/operations/library.js.map +1 -1
  136. package/dist/esm/operations/linkConnectionOperations.js +37 -54
  137. package/dist/esm/operations/linkConnectionOperations.js.map +1 -1
  138. package/dist/esm/operations/linkedServiceOperations.js +62 -64
  139. package/dist/esm/operations/linkedServiceOperations.js.map +1 -1
  140. package/dist/esm/operations/metastore.js +5 -4
  141. package/dist/esm/operations/metastore.js.map +1 -1
  142. package/dist/esm/operations/notebookOperationResult.js +2 -1
  143. package/dist/esm/operations/notebookOperationResult.js.map +1 -1
  144. package/dist/esm/operations/notebookOperations.js +86 -105
  145. package/dist/esm/operations/notebookOperations.js.map +1 -1
  146. package/dist/esm/operations/pipelineOperations.js +63 -65
  147. package/dist/esm/operations/pipelineOperations.js.map +1 -1
  148. package/dist/esm/operations/pipelineRunOperations.js +5 -4
  149. package/dist/esm/operations/pipelineRunOperations.js.map +1 -1
  150. package/dist/esm/operations/runNotebook.js +16 -10
  151. package/dist/esm/operations/runNotebook.js.map +1 -1
  152. package/dist/esm/operations/sparkConfigurationOperations.js +62 -64
  153. package/dist/esm/operations/sparkConfigurationOperations.js.map +1 -1
  154. package/dist/esm/operations/sparkJobDefinitionOperations.js +86 -78
  155. package/dist/esm/operations/sparkJobDefinitionOperations.js.map +1 -1
  156. package/dist/esm/operations/sqlPools.js +3 -2
  157. package/dist/esm/operations/sqlPools.js.map +1 -1
  158. package/dist/esm/operations/sqlScriptOperations.js +62 -64
  159. package/dist/esm/operations/sqlScriptOperations.js.map +1 -1
  160. package/dist/esm/operations/triggerOperations.js +99 -86
  161. package/dist/esm/operations/triggerOperations.js.map +1 -1
  162. package/dist/esm/operations/triggerRunOperations.js +4 -3
  163. package/dist/esm/operations/triggerRunOperations.js.map +1 -1
  164. package/dist/esm/operations/workspaceGitRepoManagement.js +2 -1
  165. package/dist/esm/operations/workspaceGitRepoManagement.js.map +1 -1
  166. package/dist/esm/operations/workspaceOperations.js +2 -1
  167. package/dist/esm/operations/workspaceOperations.js.map +1 -1
  168. package/dist/esm/pagingHelper.js +2 -4
  169. package/dist/esm/pagingHelper.js.map +1 -1
  170. package/dist/react-native/artifactsClient.js +34 -5
  171. package/dist/react-native/artifactsClient.js.map +1 -1
  172. package/dist/react-native/lroImpl.js +7 -3
  173. package/dist/react-native/lroImpl.js.map +1 -1
  174. package/dist/react-native/models/mappers.js +6060 -2770
  175. package/dist/react-native/models/mappers.js.map +1 -1
  176. package/dist/react-native/operations/bigDataPools.js +3 -2
  177. package/dist/react-native/operations/bigDataPools.js.map +1 -1
  178. package/dist/react-native/operations/dataFlowDebugSession.js +51 -58
  179. package/dist/react-native/operations/dataFlowDebugSession.js.map +1 -1
  180. package/dist/react-native/operations/dataFlowOperations.js +62 -64
  181. package/dist/react-native/operations/dataFlowOperations.js.map +1 -1
  182. package/dist/react-native/operations/datasetOperations.js +62 -64
  183. package/dist/react-native/operations/datasetOperations.js.map +1 -1
  184. package/dist/react-native/operations/integrationRuntimes.js +3 -2
  185. package/dist/react-native/operations/integrationRuntimes.js.map +1 -1
  186. package/dist/react-native/operations/kqlScriptOperations.js +38 -22
  187. package/dist/react-native/operations/kqlScriptOperations.js.map +1 -1
  188. package/dist/react-native/operations/kqlScripts.js +25 -42
  189. package/dist/react-native/operations/kqlScripts.js.map +1 -1
  190. package/dist/react-native/operations/library.js +64 -66
  191. package/dist/react-native/operations/library.js.map +1 -1
  192. package/dist/react-native/operations/linkConnectionOperations.js +37 -54
  193. package/dist/react-native/operations/linkConnectionOperations.js.map +1 -1
  194. package/dist/react-native/operations/linkedServiceOperations.js +62 -64
  195. package/dist/react-native/operations/linkedServiceOperations.js.map +1 -1
  196. package/dist/react-native/operations/metastore.js +5 -4
  197. package/dist/react-native/operations/metastore.js.map +1 -1
  198. package/dist/react-native/operations/notebookOperationResult.js +2 -1
  199. package/dist/react-native/operations/notebookOperationResult.js.map +1 -1
  200. package/dist/react-native/operations/notebookOperations.js +86 -105
  201. package/dist/react-native/operations/notebookOperations.js.map +1 -1
  202. package/dist/react-native/operations/pipelineOperations.js +63 -65
  203. package/dist/react-native/operations/pipelineOperations.js.map +1 -1
  204. package/dist/react-native/operations/pipelineRunOperations.js +5 -4
  205. package/dist/react-native/operations/pipelineRunOperations.js.map +1 -1
  206. package/dist/react-native/operations/runNotebook.js +16 -10
  207. package/dist/react-native/operations/runNotebook.js.map +1 -1
  208. package/dist/react-native/operations/sparkConfigurationOperations.js +62 -64
  209. package/dist/react-native/operations/sparkConfigurationOperations.js.map +1 -1
  210. package/dist/react-native/operations/sparkJobDefinitionOperations.js +86 -78
  211. package/dist/react-native/operations/sparkJobDefinitionOperations.js.map +1 -1
  212. package/dist/react-native/operations/sqlPools.js +3 -2
  213. package/dist/react-native/operations/sqlPools.js.map +1 -1
  214. package/dist/react-native/operations/sqlScriptOperations.js +62 -64
  215. package/dist/react-native/operations/sqlScriptOperations.js.map +1 -1
  216. package/dist/react-native/operations/triggerOperations.js +99 -86
  217. package/dist/react-native/operations/triggerOperations.js.map +1 -1
  218. package/dist/react-native/operations/triggerRunOperations.js +4 -3
  219. package/dist/react-native/operations/triggerRunOperations.js.map +1 -1
  220. package/dist/react-native/operations/workspaceGitRepoManagement.js +2 -1
  221. package/dist/react-native/operations/workspaceGitRepoManagement.js.map +1 -1
  222. package/dist/react-native/operations/workspaceOperations.js +2 -1
  223. package/dist/react-native/operations/workspaceOperations.js.map +1 -1
  224. package/dist/react-native/pagingHelper.js +2 -4
  225. package/dist/react-native/pagingHelper.js.map +1 -1
  226. package/package.json +2 -2
@@ -45,6 +45,7 @@ const getOperationSpec = {
45
45
  };
46
46
  /** Class containing BigDataPools operations. */
47
47
  export class BigDataPoolsImpl {
48
+ client;
48
49
  /**
49
50
  * Initialize a new instance of the class BigDataPools class.
50
51
  * @param client - Reference to the service client
@@ -57,7 +58,7 @@ export class BigDataPoolsImpl {
57
58
  * @param options - The options parameters.
58
59
  */
59
60
  async list(options) {
60
- return tracingClient.withSpan("ArtifactsClient.list", options !== null && options !== void 0 ? options : {}, async (updatedOptions) => {
61
+ return tracingClient.withSpan("ArtifactsClient.list", options ?? {}, async (updatedOptions) => {
61
62
  return this.client.sendOperationRequest({ updatedOptions }, listOperationSpec);
62
63
  });
63
64
  }
@@ -67,7 +68,7 @@ export class BigDataPoolsImpl {
67
68
  * @param options - The options parameters.
68
69
  */
69
70
  async get(bigDataPoolName, options) {
70
- return tracingClient.withSpan("ArtifactsClient.get", options !== null && options !== void 0 ? options : {}, async (updatedOptions) => {
71
+ return tracingClient.withSpan("ArtifactsClient.get", options ?? {}, async (updatedOptions) => {
71
72
  return this.client.sendOperationRequest({ bigDataPoolName, updatedOptions }, getOperationSpec);
72
73
  });
73
74
  }
@@ -1 +1 @@
1
- {"version":3,"file":"bigDataPools.js","sourceRoot":"","sources":["../../../src/operations/bigDataPools.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAStD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,eAAe;IACrB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iCAAiC;SACtD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,C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ACnC,gBAAgB,CACmB,CAAC;QACxC,CAAC,CAAC,CAAC;IACL,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { tracingClient } from \"../tracing.js\";\nimport type { BigDataPools } 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 type { ArtifactsClient } from \"../artifactsClient.js\";\nimport type {\n BigDataPoolsListOptionalParams,\n BigDataPoolsListResponse,\n BigDataPoolsGetOptionalParams,\n BigDataPoolsGetResponse,\n} from \"../models/index.js\";\n\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/bigDataPools\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BigDataPoolResourceInfoListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorContract,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/bigDataPools/{bigDataPoolName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BigDataPoolResourceInfo,\n },\n default: {\n bodyMapper: Mappers.ErrorContract,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.bigDataPoolName],\n headerParameters: [Parameters.accept],\n serializer,\n};\n\n/** Class containing BigDataPools operations. */\nexport class BigDataPoolsImpl implements BigDataPools {\n private readonly client: ArtifactsClient;\n\n /**\n * Initialize a new instance of the class BigDataPools class.\n * @param client - Reference to the service client\n */\n constructor(client: ArtifactsClient) {\n this.client = client;\n }\n\n /**\n * List Big Data Pools\n * @param options - The options parameters.\n */\n async list(options?: BigDataPoolsListOptionalParams): Promise<BigDataPoolsListResponse> {\n return tracingClient.withSpan(\"ArtifactsClient.list\", options ?? {}, async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { updatedOptions },\n listOperationSpec,\n ) as Promise<BigDataPoolsListResponse>;\n });\n }\n\n /**\n * Get Big Data Pool\n * @param bigDataPoolName - The Big Data Pool name\n * @param options - The options parameters.\n */\n async get(\n bigDataPoolName: string,\n options?: BigDataPoolsGetOptionalParams,\n ): Promise<BigDataPoolsGetResponse> {\n return tracingClient.withSpan(\"ArtifactsClient.get\", options ?? {}, async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { bigDataPoolName, updatedOptions },\n getOperationSpec,\n ) as Promise<BigDataPoolsGetResponse>;\n });\n }\n}\n"]}
1
+ {"version":3,"file":"bigDataPools.js","sourceRoot":"","sources":["../../../src/operations/bigDataPools.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAStD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,eAAe;IACrB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iCAAiC;SACtD;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,QAAQ,CAAC;IACpC,gBAAgB,EAAE,CAAC,UAAU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soft 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 { tracingClient } from \"../tracing.js\";\nimport type { BigDataPools } 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 type { ArtifactsClient } from \"../artifactsClient.js\";\nimport type {\n BigDataPoolsListOptionalParams,\n BigDataPoolsListResponse,\n BigDataPoolsGetOptionalParams,\n BigDataPoolsGetResponse,\n} from \"../models/index.js\";\n\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/bigDataPools\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BigDataPoolResourceInfoListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorContract,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/bigDataPools/{bigDataPoolName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BigDataPoolResourceInfo,\n },\n default: {\n bodyMapper: Mappers.ErrorContract,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.bigDataPoolName],\n headerParameters: [Parameters.accept],\n serializer,\n};\n\n/** Class containing BigDataPools operations. */\nexport class BigDataPoolsImpl implements BigDataPools {\n private readonly client: ArtifactsClient;\n\n /**\n * Initialize a new instance of the class BigDataPools class.\n * @param client - Reference to the service client\n */\n constructor(client: ArtifactsClient) {\n this.client = client;\n }\n\n /**\n * List Big Data Pools\n * @param options - The options parameters.\n */\n async list(options?: BigDataPoolsListOptionalParams): Promise<BigDataPoolsListResponse> {\n return tracingClient.withSpan(\"ArtifactsClient.list\", options ?? {}, async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { updatedOptions },\n listOperationSpec,\n ) as Promise<BigDataPoolsListResponse>;\n });\n }\n\n /**\n * Get Big Data Pool\n * @param bigDataPoolName - The Big Data Pool name\n * @param options - The options parameters.\n */\n async get(\n bigDataPoolName: string,\n options?: BigDataPoolsGetOptionalParams,\n ): Promise<BigDataPoolsGetResponse> {\n return tracingClient.withSpan(\"ArtifactsClient.get\", options ?? {}, async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { bigDataPoolName, updatedOptions },\n getOperationSpec,\n ) as Promise<BigDataPoolsGetResponse>;\n });\n }\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 { tracingClient } from "../tracing.js";
10
9
  import { setContinuationToken } from "../pagingHelper.js";
11
10
  import * as coreClient from "@azure/core-client";
@@ -136,6 +135,7 @@ const queryDataFlowDebugSessionsByWorkspaceNextOperationSpec = {
136
135
  };
137
136
  /** Class containing DataFlowDebugSession operations. */
138
137
  export class DataFlowDebugSessionImpl {
138
+ client;
139
139
  /**
140
140
  * Initialize a new instance of the class DataFlowDebugSession class.
141
141
  * @param client - Reference to the service client
@@ -157,52 +157,35 @@ export class DataFlowDebugSessionImpl {
157
157
  return this;
158
158
  },
159
159
  byPage: (settings) => {
160
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
160
+ if (settings?.maxPageSize) {
161
161
  throw new Error("maxPageSize is not supported by this operation.");
162
162
  }
163
163
  return this.queryDataFlowDebugSessionsByWorkspacePagingPage(options, settings);
164
164
  },
165
165
  };
166
166
  }
167
- queryDataFlowDebugSessionsByWorkspacePagingPage(options, settings) {
168
- return __asyncGenerator(this, arguments, function* queryDataFlowDebugSessionsByWorkspacePagingPage_1() {
169
- let result;
170
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
171
- if (!continuationToken) {
172
- result = yield __await(this._queryDataFlowDebugSessionsByWorkspace(options));
173
- const page = result.value || [];
174
- continuationToken = result.nextLink;
175
- setContinuationToken(page, continuationToken);
176
- yield yield __await(page);
177
- }
178
- while (continuationToken) {
179
- result = yield __await(this._queryDataFlowDebugSessionsByWorkspaceNext(continuationToken, options));
180
- continuationToken = result.nextLink;
181
- const page = result.value || [];
182
- setContinuationToken(page, continuationToken);
183
- yield yield __await(page);
184
- }
185
- });
167
+ async *queryDataFlowDebugSessionsByWorkspacePagingPage(options, settings) {
168
+ let result;
169
+ let continuationToken = settings?.continuationToken;
170
+ if (!continuationToken) {
171
+ result = await this._queryDataFlowDebugSessionsByWorkspace(options);
172
+ const page = result.value || [];
173
+ continuationToken = result.nextLink;
174
+ setContinuationToken(page, continuationToken);
175
+ yield page;
176
+ }
177
+ while (continuationToken) {
178
+ result = await this._queryDataFlowDebugSessionsByWorkspaceNext(continuationToken, options);
179
+ continuationToken = result.nextLink;
180
+ const page = result.value || [];
181
+ setContinuationToken(page, continuationToken);
182
+ yield page;
183
+ }
186
184
  }
187
- queryDataFlowDebugSessionsByWorkspacePagingAll(options) {
188
- return __asyncGenerator(this, arguments, function* queryDataFlowDebugSessionsByWorkspacePagingAll_1() {
189
- var _a, e_1, _b, _c;
190
- try {
191
- for (var _d = true, _e = __asyncValues(this.queryDataFlowDebugSessionsByWorkspacePagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
192
- _c = _f.value;
193
- _d = false;
194
- const page = _c;
195
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
196
- }
197
- }
198
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
199
- finally {
200
- try {
201
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
202
- }
203
- finally { if (e_1) throw e_1.error; }
204
- }
205
- });
185
+ async *queryDataFlowDebugSessionsByWorkspacePagingAll(options) {
186
+ for await (const page of this.queryDataFlowDebugSessionsByWorkspacePagingPage(options)) {
187
+ yield* page;
188
+ }
206
189
  }
207
190
  /**
208
191
  * Creates a data flow debug session.
@@ -211,19 +194,24 @@ export class DataFlowDebugSessionImpl {
211
194
  */
212
195
  async beginCreateDataFlowDebugSession(request, options) {
213
196
  const directSendOperation = async (args, spec) => {
214
- return tracingClient.withSpan("ArtifactsClient.beginCreateDataFlowDebugSession", options !== null && options !== void 0 ? options : {}, async () => {
197
+ return tracingClient.withSpan("ArtifactsClient.beginCreateDataFlowDebugSession", options ?? {}, async () => {
215
198
  return this.client.sendOperationRequest(args, spec);
216
199
  });
217
200
  };
218
201
  const sendOperationFn = async (args, spec) => {
219
- var _a;
220
202
  let currentRawResponse = undefined;
221
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
203
+ const providedCallback = args.options?.onResponse;
222
204
  const callback = (rawResponse, flatResponse) => {
223
205
  currentRawResponse = rawResponse;
224
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
206
+ providedCallback?.(rawResponse, flatResponse);
207
+ };
208
+ const updatedArgs = {
209
+ ...args,
210
+ options: {
211
+ ...args.options,
212
+ onResponse: callback,
213
+ },
225
214
  };
226
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
227
215
  const flatResponse = await directSendOperation(updatedArgs, spec);
228
216
  return {
229
217
  flatResponse,
@@ -240,8 +228,8 @@ export class DataFlowDebugSessionImpl {
240
228
  spec: createDataFlowDebugSessionOperationSpec,
241
229
  });
242
230
  const poller = await createHttpPoller(lro, {
243
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
244
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
231
+ restoreFrom: options?.resumeFrom,
232
+ intervalInMs: options?.updateIntervalInMs,
245
233
  });
246
234
  await poller.poll();
247
235
  return poller;
@@ -260,7 +248,7 @@ export class DataFlowDebugSessionImpl {
260
248
  * @param options - The options parameters.
261
249
  */
262
250
  async _queryDataFlowDebugSessionsByWorkspace(options) {
263
- return tracingClient.withSpan("ArtifactsClient._queryDataFlowDebugSessionsByWorkspace", options !== null && options !== void 0 ? options : {}, async (updatedOptions) => {
251
+ return tracingClient.withSpan("ArtifactsClient._queryDataFlowDebugSessionsByWorkspace", options ?? {}, async (updatedOptions) => {
264
252
  return this.client.sendOperationRequest({ updatedOptions }, queryDataFlowDebugSessionsByWorkspaceOperationSpec);
265
253
  });
266
254
  }
@@ -270,7 +258,7 @@ export class DataFlowDebugSessionImpl {
270
258
  * @param options - The options parameters.
271
259
  */
272
260
  async addDataFlow(request, options) {
273
- return tracingClient.withSpan("ArtifactsClient.addDataFlow", options !== null && options !== void 0 ? options : {}, async (updatedOptions) => {
261
+ return tracingClient.withSpan("ArtifactsClient.addDataFlow", options ?? {}, async (updatedOptions) => {
274
262
  return this.client.sendOperationRequest({ request, updatedOptions }, addDataFlowOperationSpec);
275
263
  });
276
264
  }
@@ -280,7 +268,7 @@ export class DataFlowDebugSessionImpl {
280
268
  * @param options - The options parameters.
281
269
  */
282
270
  async deleteDataFlowDebugSession(request, options) {
283
- return tracingClient.withSpan("ArtifactsClient.deleteDataFlowDebugSession", options !== null && options !== void 0 ? options : {}, async (updatedOptions) => {
271
+ return tracingClient.withSpan("ArtifactsClient.deleteDataFlowDebugSession", options ?? {}, async (updatedOptions) => {
284
272
  return this.client.sendOperationRequest({ request, updatedOptions }, deleteDataFlowDebugSessionOperationSpec);
285
273
  });
286
274
  }
@@ -291,19 +279,24 @@ export class DataFlowDebugSessionImpl {
291
279
  */
292
280
  async beginExecuteCommand(request, options) {
293
281
  const directSendOperation = async (args, spec) => {
294
- return tracingClient.withSpan("ArtifactsClient.beginExecuteCommand", options !== null && options !== void 0 ? options : {}, async () => {
282
+ return tracingClient.withSpan("ArtifactsClient.beginExecuteCommand", options ?? {}, async () => {
295
283
  return this.client.sendOperationRequest(args, spec);
296
284
  });
297
285
  };
298
286
  const sendOperationFn = async (args, spec) => {
299
- var _a;
300
287
  let currentRawResponse = undefined;
301
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
288
+ const providedCallback = args.options?.onResponse;
302
289
  const callback = (rawResponse, flatResponse) => {
303
290
  currentRawResponse = rawResponse;
304
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
291
+ providedCallback?.(rawResponse, flatResponse);
292
+ };
293
+ const updatedArgs = {
294
+ ...args,
295
+ options: {
296
+ ...args.options,
297
+ onResponse: callback,
298
+ },
305
299
  };
306
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
307
300
  const flatResponse = await directSendOperation(updatedArgs, spec);
308
301
  return {
309
302
  flatResponse,
@@ -320,8 +313,8 @@ export class DataFlowDebugSessionImpl {
320
313
  spec: executeCommandOperationSpec,
321
314
  });
322
315
  const poller = await createHttpPoller(lro, {
323
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
324
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
316
+ restoreFrom: options?.resumeFrom,
317
+ intervalInMs: options?.updateIntervalInMs,
325
318
  });
326
319
  await poller.poll();
327
320
  return poller;
@@ -342,7 +335,7 @@ export class DataFlowDebugSessionImpl {
342
335
  * @param options - The options parameters.
343
336
  */
344
337
  async _queryDataFlowDebugSessionsByWorkspaceNext(nextLink, options) {
345
- return tracingClient.withSpan("ArtifactsClient._queryDataFlowDebugSessionsByWorkspaceNext", options !== null && options !== void 0 ? options : {}, async (updatedOptions) => {
338
+ return tracingClient.withSpan("ArtifactsClient._queryDataFlowDebugSessionsByWorkspaceNext", options ?? {}, async (updatedOptions) => {
346
339
  return this.client.sendOperationRequest({ nextLink, updatedOptions }, queryDataFlowDebugSessionsByWorkspaceNextOperationSpec);
347
340
  });
348
341
  }
@@ -1 +1 @@
1
- {"version":3,"file":"dataFlowDeb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EAAE,CAAC;IAChC,CAAC;IAED;;;;;OAKG;IACK,KAAK,CAAC,0CAA0C,CACtD,QAAgB,EAChB,OAAqF;QAErF,OAAO,aAAa,CAAC,QAAQ,CAC3B,4DAA4D,EAC5D,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,EACb,KAAK,EAAE,cAAc,EAAE,EAAE;YACvB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,cAAc,EAAE,EAC5B,sDAAsD,CAC2B,CAAC;QACtF,CAAC,CACF,CAAC;IACJ,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { tracingClient } from \"../tracing.js\";\nimport type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport type { DataFlowDebugSession } 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 type { ArtifactsClient } from \"../artifactsClient.js\";\nimport type { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport { createHttpPoller } from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport type {\n DataFlowDebugSessionInfo,\n DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceNextOptionalParams,\n DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceOptionalParams,\n DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceResponse,\n CreateDataFlowDebugSessionRequest,\n DataFlowDebugSessionCreateDataFlowDebugSessionOptionalParams,\n DataFlowDebugSessionCreateDataFlowDebugSessionResponse,\n DataFlowDebugPackage,\n DataFlowDebugSessionAddDataFlowOptionalParams,\n DataFlowDebugSessionAddDataFlowResponse,\n DeleteDataFlowDebugSessionRequest,\n DataFlowDebugSessionDeleteDataFlowDebugSessionOptionalParams,\n DataFlowDebugCommandRequest,\n DataFlowDebugSessionExecuteCommandOptionalParams,\n DataFlowDebugSessionExecuteCommandResponse,\n DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceNextResponse,\n DataFlowDebugCommandResponse,\n} from \"../models/index.js\";\nimport type { RawHttpHeaders } from \"@azure/core-rest-pipeline\";\n\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createDataFlowDebugSessionOperationSpec: coreClient.OperationSpec = {\n path: \"/createDataFlowDebugSession\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CreateDataFlowDebugSessionResponse,\n },\n 201: {\n bodyMapper: Mappers.CreateDataFlowDebugSessionResponse,\n },\n 202: {\n bodyMapper: Mappers.CreateDataFlowDebugSessionResponse,\n },\n 204: {\n bodyMapper: Mappers.CreateDataFlowDebugSessionResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.request1,\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst queryDataFlowDebugSessionsByWorkspaceOperationSpec: coreClient.OperationSpec = {\n path: \"/queryDataFlowDebugSessions\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.QueryDataFlowDebugSessionsResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst addDataFlowOperationSpec: coreClient.OperationSpec = {\n path: \"/addDataFlowToDebugSession\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AddDataFlowToDebugSessionResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.request2,\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteDataFlowDebugSessionOperationSpec: coreClient.OperationSpec = {\n path: \"/deleteDataFlowDebugSession\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.request3,\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst executeCommandOperationSpec: coreClient.OperationSpec = {\n path: \"/executeDataFlowDebugCommand\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataFlowDebugCommandResponse,\n },\n 201: {\n bodyMapper: Mappers.DataFlowDebugCommandResponse,\n },\n 202: {\n bodyMapper: Mappers.DataFlowDebugCommandResponse,\n },\n 204: {\n bodyMapper: Mappers.DataFlowDebugCommandResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.request4,\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst queryDataFlowDebugSessionsByWorkspaceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QueryDataFlowDebugSessionsResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n\n/** Class containing DataFlowDebugSession operations. */\nexport class DataFlowDebugSessionImpl implements DataFlowDebugSession {\n private readonly client: ArtifactsClient;\n\n /**\n * Initialize a new instance of the class DataFlowDebugSession class.\n * @param client - Reference to the service client\n */\n constructor(client: ArtifactsClient) {\n this.client = client;\n }\n\n /**\n * Query all active data flow debug sessions.\n * @param options - The options parameters.\n */\n public listQueryDataFlowDebugSessionsByWorkspace(\n options?: DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceOptionalParams,\n ): PagedAsyncIterableIterator<DataFlowDebugSessionInfo> {\n const iter = this.queryDataFlowDebugSessionsByWorkspacePagingAll(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.queryDataFlowDebugSessionsByWorkspacePagingPage(options, settings);\n },\n };\n }\n\n private async *queryDataFlowDebugSessionsByWorkspacePagingPage(\n options?: DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<DataFlowDebugSessionInfo[]> {\n let result: DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._queryDataFlowDebugSessionsByWorkspace(options);\n const page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._queryDataFlowDebugSessionsByWorkspaceNext(continuationToken, options);\n continuationToken = result.nextLink;\n const page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *queryDataFlowDebugSessionsByWorkspacePagingAll(\n options?: DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceOptionalParams,\n ): AsyncIterableIterator<DataFlowDebugSessionInfo> {\n for await (const page of this.queryDataFlowDebugSessionsByWorkspacePagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Creates a data flow debug session.\n * @param request - Data flow debug session definition\n * @param options - The options parameters.\n */\n async beginCreateDataFlowDebugSession(\n request: CreateDataFlowDebugSessionRequest,\n options?: DataFlowDebugSessionCreateDataFlowDebugSessionOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DataFlowDebugSessionCreateDataFlowDebugSessionResponse>,\n DataFlowDebugSessionCreateDataFlowDebugSessionResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<DataFlowDebugSessionCreateDataFlowDebugSessionResponse> => {\n return tracingClient.withSpan(\n \"ArtifactsClient.beginCreateDataFlowDebugSession\",\n options ?? {},\n async () => {\n return this.client.sendOperationRequest(\n args,\n spec,\n ) as Promise<DataFlowDebugSessionCreateDataFlowDebugSessionResponse>;\n },\n );\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | 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 = createLroSpec({\n sendOperationFn,\n args: { request, options },\n spec: createDataFlowDebugSessionOperationSpec,\n });\n const poller = await createHttpPoller<\n DataFlowDebugSessionCreateDataFlowDebugSessionResponse,\n OperationState<DataFlowDebugSessionCreateDataFlowDebugSessionResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a data flow debug session.\n * @param request - Data flow debug session definition\n * @param options - The options parameters.\n */\n async beginCreateDataFlowDebugSessionAndWait(\n request: CreateDataFlowDebugSessionRequest,\n options?: DataFlowDebugSessionCreateDataFlowDebugSessionOptionalParams,\n ): Promise<DataFlowDebugSessionCreateDataFlowDebugSessionResponse> {\n const poller = await this.beginCreateDataFlowDebugSession(request, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Query all active data flow debug sessions.\n * @param options - The options parameters.\n */\n private async _queryDataFlowDebugSessionsByWorkspace(\n options?: DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceOptionalParams,\n ): Promise<DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._queryDataFlowDebugSessionsByWorkspace\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { updatedOptions },\n queryDataFlowDebugSessionsByWorkspaceOperationSpec,\n ) as Promise<DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceResponse>;\n },\n );\n }\n\n /**\n * Add a data flow into debug session.\n * @param request - Data flow debug session definition with debug content.\n * @param options - The options parameters.\n */\n async addDataFlow(\n request: DataFlowDebugPackage,\n options?: DataFlowDebugSessionAddDataFlowOptionalParams,\n ): Promise<DataFlowDebugSessionAddDataFlowResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.addDataFlow\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { request, updatedOptions },\n addDataFlowOperationSpec,\n ) as Promise<DataFlowDebugSessionAddDataFlowResponse>;\n },\n );\n }\n\n /**\n * Deletes a data flow debug session.\n * @param request - Data flow debug session definition for deletion\n * @param options - The options parameters.\n */\n async deleteDataFlowDebugSession(\n request: DeleteDataFlowDebugSessionRequest,\n options?: DataFlowDebugSessionDeleteDataFlowDebugSessionOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.deleteDataFlowDebugSession\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { request, updatedOptions },\n deleteDataFlowDebugSessionOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Execute a data flow debug command.\n * @param request - Data flow debug command definition.\n * @param options - The options parameters.\n */\n async beginExecuteCommand(\n request: DataFlowDebugCommandRequest,\n options?: DataFlowDebugSessionExecuteCommandOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DataFlowDebugSessionExecuteCommandResponse>,\n DataFlowDebugSessionExecuteCommandResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<DataFlowDebugSessionExecuteCommandResponse> => {\n return tracingClient.withSpan(\n \"ArtifactsClient.beginExecuteCommand\",\n options ?? {},\n async () => {\n return this.client.sendOperationRequest(\n args,\n spec,\n ) as Promise<DataFlowDebugSessionExecuteCommandResponse>;\n },\n );\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<{\n flatResponse: DataFlowDebugCommandResponse;\n rawResponse: {\n statusCode: number;\n body: any;\n headers: RawHttpHeaders;\n };\n }> => {\n let currentRawResponse: coreClient.FullOperationResponse | 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 = createLroSpec({\n sendOperationFn,\n args: { request, options },\n spec: executeCommandOperationSpec,\n });\n const poller = await createHttpPoller<\n DataFlowDebugSessionExecuteCommandResponse,\n OperationState<DataFlowDebugSessionExecuteCommandResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Execute a data flow debug command.\n * @param request - Data flow debug command definition.\n * @param options - The options parameters.\n */\n async beginExecuteCommandAndWait(\n request: DataFlowDebugCommandRequest,\n options?: DataFlowDebugSessionExecuteCommandOptionalParams,\n ): Promise<DataFlowDebugSessionExecuteCommandResponse> {\n const poller = await this.beginExecuteCommand(request, options);\n return poller.pollUntilDone();\n }\n\n /**\n * QueryDataFlowDebugSessionsByWorkspaceNext\n * @param nextLink - The nextLink from the previous successful call to the\n * QueryDataFlowDebugSessionsByWorkspace method.\n * @param options - The options parameters.\n */\n private async _queryDataFlowDebugSessionsByWorkspaceNext(\n nextLink: string,\n options?: DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceNextOptionalParams,\n ): Promise<DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceNextResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._queryDataFlowDebugSessionsByWorkspaceNext\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { nextLink, updatedOptions },\n queryDataFlowDebugSessionsByWorkspaceNextOperationSpec,\n ) as Promise<DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceNextResponse>;\n },\n );\n }\n}\n"]}
1
+ {"version":3,"file":"dataFlowDebugSession.js","sourceRoot":"","sources":["../../../src/operations/dataFlowDebugSession.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,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;AAGtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAsB9C,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,K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,YAAY,EAAE,OAAO,EAAE,kBAAkB;SAC1C,CAAC,CAAC;QACH,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,OAAO,MAAM,CAAC;IAChB,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,0BAA0B,CAC9B,OAAoC,EACpC,OAA0D;QAE1D,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAChE,OAAO,MAAM,CAAC,aAAa,EAAE,CAAC;IAChC,CAAC;IAED;;;;;OAKG;IACK,KAAK,CAAC,0CAA0C,CACtD,QAAgB,EAChB,OAAqF;QAErF,OAAO,aAAa,CAAC,QAAQ,CAC3B,4DAA4D,EAC5D,OAAO,IAAI,EAAE,EACb,KAAK,EAAE,cAAc,EAAE,EAAE;YACvB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,cAAc,EAAE,EAC5B,sDAAsD,CAC2B,CAAC;QACtF,CAAC,CACF,CAAC;IACJ,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { tracingClient } from \"../tracing.js\";\nimport type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport type { DataFlowDebugSession } 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 type { ArtifactsClient } from \"../artifactsClient.js\";\nimport type { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport { createHttpPoller } from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport type {\n DataFlowDebugSessionInfo,\n DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceNextOptionalParams,\n DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceOptionalParams,\n DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceResponse,\n CreateDataFlowDebugSessionRequest,\n DataFlowDebugSessionCreateDataFlowDebugSessionOptionalParams,\n DataFlowDebugSessionCreateDataFlowDebugSessionResponse,\n DataFlowDebugPackage,\n DataFlowDebugSessionAddDataFlowOptionalParams,\n DataFlowDebugSessionAddDataFlowResponse,\n DeleteDataFlowDebugSessionRequest,\n DataFlowDebugSessionDeleteDataFlowDebugSessionOptionalParams,\n DataFlowDebugCommandRequest,\n DataFlowDebugSessionExecuteCommandOptionalParams,\n DataFlowDebugSessionExecuteCommandResponse,\n DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceNextResponse,\n DataFlowDebugCommandResponse,\n} from \"../models/index.js\";\nimport type { RawHttpHeaders } from \"@azure/core-rest-pipeline\";\n\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createDataFlowDebugSessionOperationSpec: coreClient.OperationSpec = {\n path: \"/createDataFlowDebugSession\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CreateDataFlowDebugSessionResponse,\n },\n 201: {\n bodyMapper: Mappers.CreateDataFlowDebugSessionResponse,\n },\n 202: {\n bodyMapper: Mappers.CreateDataFlowDebugSessionResponse,\n },\n 204: {\n bodyMapper: Mappers.CreateDataFlowDebugSessionResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.request1,\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst queryDataFlowDebugSessionsByWorkspaceOperationSpec: coreClient.OperationSpec = {\n path: \"/queryDataFlowDebugSessions\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.QueryDataFlowDebugSessionsResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst addDataFlowOperationSpec: coreClient.OperationSpec = {\n path: \"/addDataFlowToDebugSession\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AddDataFlowToDebugSessionResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.request2,\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteDataFlowDebugSessionOperationSpec: coreClient.OperationSpec = {\n path: \"/deleteDataFlowDebugSession\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.request3,\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst executeCommandOperationSpec: coreClient.OperationSpec = {\n path: \"/executeDataFlowDebugCommand\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataFlowDebugCommandResponse,\n },\n 201: {\n bodyMapper: Mappers.DataFlowDebugCommandResponse,\n },\n 202: {\n bodyMapper: Mappers.DataFlowDebugCommandResponse,\n },\n 204: {\n bodyMapper: Mappers.DataFlowDebugCommandResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.request4,\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst queryDataFlowDebugSessionsByWorkspaceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QueryDataFlowDebugSessionsResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n\n/** Class containing DataFlowDebugSession operations. */\nexport class DataFlowDebugSessionImpl implements DataFlowDebugSession {\n private readonly client: ArtifactsClient;\n\n /**\n * Initialize a new instance of the class DataFlowDebugSession class.\n * @param client - Reference to the service client\n */\n constructor(client: ArtifactsClient) {\n this.client = client;\n }\n\n /**\n * Query all active data flow debug sessions.\n * @param options - The options parameters.\n */\n public listQueryDataFlowDebugSessionsByWorkspace(\n options?: DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceOptionalParams,\n ): PagedAsyncIterableIterator<DataFlowDebugSessionInfo> {\n const iter = this.queryDataFlowDebugSessionsByWorkspacePagingAll(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.queryDataFlowDebugSessionsByWorkspacePagingPage(options, settings);\n },\n };\n }\n\n private async *queryDataFlowDebugSessionsByWorkspacePagingPage(\n options?: DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<DataFlowDebugSessionInfo[]> {\n let result: DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._queryDataFlowDebugSessionsByWorkspace(options);\n const page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._queryDataFlowDebugSessionsByWorkspaceNext(continuationToken, options);\n continuationToken = result.nextLink;\n const page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *queryDataFlowDebugSessionsByWorkspacePagingAll(\n options?: DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceOptionalParams,\n ): AsyncIterableIterator<DataFlowDebugSessionInfo> {\n for await (const page of this.queryDataFlowDebugSessionsByWorkspacePagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Creates a data flow debug session.\n * @param request - Data flow debug session definition\n * @param options - The options parameters.\n */\n async beginCreateDataFlowDebugSession(\n request: CreateDataFlowDebugSessionRequest,\n options?: DataFlowDebugSessionCreateDataFlowDebugSessionOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DataFlowDebugSessionCreateDataFlowDebugSessionResponse>,\n DataFlowDebugSessionCreateDataFlowDebugSessionResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<DataFlowDebugSessionCreateDataFlowDebugSessionResponse> => {\n return tracingClient.withSpan(\n \"ArtifactsClient.beginCreateDataFlowDebugSession\",\n options ?? {},\n async () => {\n return this.client.sendOperationRequest(\n args,\n spec,\n ) as Promise<DataFlowDebugSessionCreateDataFlowDebugSessionResponse>;\n },\n );\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ) => {\n let currentRawResponse: coreClient.FullOperationResponse | 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 = createLroSpec({\n sendOperationFn,\n args: { request, options },\n spec: createDataFlowDebugSessionOperationSpec,\n });\n const poller = await createHttpPoller<\n DataFlowDebugSessionCreateDataFlowDebugSessionResponse,\n OperationState<DataFlowDebugSessionCreateDataFlowDebugSessionResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a data flow debug session.\n * @param request - Data flow debug session definition\n * @param options - The options parameters.\n */\n async beginCreateDataFlowDebugSessionAndWait(\n request: CreateDataFlowDebugSessionRequest,\n options?: DataFlowDebugSessionCreateDataFlowDebugSessionOptionalParams,\n ): Promise<DataFlowDebugSessionCreateDataFlowDebugSessionResponse> {\n const poller = await this.beginCreateDataFlowDebugSession(request, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Query all active data flow debug sessions.\n * @param options - The options parameters.\n */\n private async _queryDataFlowDebugSessionsByWorkspace(\n options?: DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceOptionalParams,\n ): Promise<DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._queryDataFlowDebugSessionsByWorkspace\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { updatedOptions },\n queryDataFlowDebugSessionsByWorkspaceOperationSpec,\n ) as Promise<DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceResponse>;\n },\n );\n }\n\n /**\n * Add a data flow into debug session.\n * @param request - Data flow debug session definition with debug content.\n * @param options - The options parameters.\n */\n async addDataFlow(\n request: DataFlowDebugPackage,\n options?: DataFlowDebugSessionAddDataFlowOptionalParams,\n ): Promise<DataFlowDebugSessionAddDataFlowResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.addDataFlow\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { request, updatedOptions },\n addDataFlowOperationSpec,\n ) as Promise<DataFlowDebugSessionAddDataFlowResponse>;\n },\n );\n }\n\n /**\n * Deletes a data flow debug session.\n * @param request - Data flow debug session definition for deletion\n * @param options - The options parameters.\n */\n async deleteDataFlowDebugSession(\n request: DeleteDataFlowDebugSessionRequest,\n options?: DataFlowDebugSessionDeleteDataFlowDebugSessionOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.deleteDataFlowDebugSession\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { request, updatedOptions },\n deleteDataFlowDebugSessionOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Execute a data flow debug command.\n * @param request - Data flow debug command definition.\n * @param options - The options parameters.\n */\n async beginExecuteCommand(\n request: DataFlowDebugCommandRequest,\n options?: DataFlowDebugSessionExecuteCommandOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DataFlowDebugSessionExecuteCommandResponse>,\n DataFlowDebugSessionExecuteCommandResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<DataFlowDebugSessionExecuteCommandResponse> => {\n return tracingClient.withSpan(\n \"ArtifactsClient.beginExecuteCommand\",\n options ?? {},\n async () => {\n return this.client.sendOperationRequest(\n args,\n spec,\n ) as Promise<DataFlowDebugSessionExecuteCommandResponse>;\n },\n );\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<{\n flatResponse: DataFlowDebugCommandResponse;\n rawResponse: {\n statusCode: number;\n body: any;\n headers: RawHttpHeaders;\n };\n }> => {\n let currentRawResponse: coreClient.FullOperationResponse | 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 = createLroSpec({\n sendOperationFn,\n args: { request, options },\n spec: executeCommandOperationSpec,\n });\n const poller = await createHttpPoller<\n DataFlowDebugSessionExecuteCommandResponse,\n OperationState<DataFlowDebugSessionExecuteCommandResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Execute a data flow debug command.\n * @param request - Data flow debug command definition.\n * @param options - The options parameters.\n */\n async beginExecuteCommandAndWait(\n request: DataFlowDebugCommandRequest,\n options?: DataFlowDebugSessionExecuteCommandOptionalParams,\n ): Promise<DataFlowDebugSessionExecuteCommandResponse> {\n const poller = await this.beginExecuteCommand(request, options);\n return poller.pollUntilDone();\n }\n\n /**\n * QueryDataFlowDebugSessionsByWorkspaceNext\n * @param nextLink - The nextLink from the previous successful call to the\n * QueryDataFlowDebugSessionsByWorkspace method.\n * @param options - The options parameters.\n */\n private async _queryDataFlowDebugSessionsByWorkspaceNext(\n nextLink: string,\n options?: DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceNextOptionalParams,\n ): Promise<DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceNextResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._queryDataFlowDebugSessionsByWorkspaceNext\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { nextLink, updatedOptions },\n queryDataFlowDebugSessionsByWorkspaceNextOperationSpec,\n ) as Promise<DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceNextResponse>;\n },\n );\n }\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 { tracingClient } from "../tracing.js";
10
9
  import { setContinuationToken } from "../pagingHelper.js";
11
10
  import * as coreClient from "@azure/core-client";
@@ -127,6 +126,7 @@ const getDataFlowsByWorkspaceNextOperationSpec = {
127
126
  };
128
127
  /** Class containing DataFlowOperations operations. */
129
128
  export class DataFlowOperationsImpl {
129
+ client;
130
130
  /**
131
131
  * Initialize a new instance of the class DataFlowOperations class.
132
132
  * @param client - Reference to the service client
@@ -148,52 +148,35 @@ export class DataFlowOperationsImpl {
148
148
  return this;
149
149
  },
150
150
  byPage: (settings) => {
151
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
151
+ if (settings?.maxPageSize) {
152
152
  throw new Error("maxPageSize is not supported by this operation.");
153
153
  }
154
154
  return this.getDataFlowsByWorkspacePagingPage(options, settings);
155
155
  },
156
156
  };
157
157
  }
158
- getDataFlowsByWorkspacePagingPage(options, settings) {
159
- return __asyncGenerator(this, arguments, function* getDataFlowsByWorkspacePagingPage_1() {
160
- let result;
161
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
162
- if (!continuationToken) {
163
- result = yield __await(this._getDataFlowsByWorkspace(options));
164
- const page = result.value || [];
165
- continuationToken = result.nextLink;
166
- setContinuationToken(page, continuationToken);
167
- yield yield __await(page);
168
- }
169
- while (continuationToken) {
170
- result = yield __await(this._getDataFlowsByWorkspaceNext(continuationToken, options));
171
- continuationToken = result.nextLink;
172
- const page = result.value || [];
173
- setContinuationToken(page, continuationToken);
174
- yield yield __await(page);
175
- }
176
- });
158
+ async *getDataFlowsByWorkspacePagingPage(options, settings) {
159
+ let result;
160
+ let continuationToken = settings?.continuationToken;
161
+ if (!continuationToken) {
162
+ result = await this._getDataFlowsByWorkspace(options);
163
+ const page = result.value || [];
164
+ continuationToken = result.nextLink;
165
+ setContinuationToken(page, continuationToken);
166
+ yield page;
167
+ }
168
+ while (continuationToken) {
169
+ result = await this._getDataFlowsByWorkspaceNext(continuationToken, options);
170
+ continuationToken = result.nextLink;
171
+ const page = result.value || [];
172
+ setContinuationToken(page, continuationToken);
173
+ yield page;
174
+ }
177
175
  }
178
- getDataFlowsByWorkspacePagingAll(options) {
179
- return __asyncGenerator(this, arguments, function* getDataFlowsByWorkspacePagingAll_1() {
180
- var _a, e_1, _b, _c;
181
- try {
182
- for (var _d = true, _e = __asyncValues(this.getDataFlowsByWorkspacePagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
183
- _c = _f.value;
184
- _d = false;
185
- const page = _c;
186
- yield __await(yield* __asyncDelegator(__asyncValues(page)));
187
- }
188
- }
189
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
190
- finally {
191
- try {
192
- if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
193
- }
194
- finally { if (e_1) throw e_1.error; }
195
- }
196
- });
176
+ async *getDataFlowsByWorkspacePagingAll(options) {
177
+ for await (const page of this.getDataFlowsByWorkspacePagingPage(options)) {
178
+ yield* page;
179
+ }
197
180
  }
198
181
  /**
199
182
  * Creates or updates a data flow.
@@ -203,19 +186,24 @@ export class DataFlowOperationsImpl {
203
186
  */
204
187
  async beginCreateOrUpdateDataFlow(dataFlowName, dataFlow, options) {
205
188
  const directSendOperation = async (args, spec) => {
206
- return tracingClient.withSpan("ArtifactsClient.beginCreateOrUpdateDataFlow", options !== null && options !== void 0 ? options : {}, async () => {
189
+ return tracingClient.withSpan("ArtifactsClient.beginCreateOrUpdateDataFlow", options ?? {}, async () => {
207
190
  return this.client.sendOperationRequest(args, spec);
208
191
  });
209
192
  };
210
193
  const sendOperationFn = async (args, spec) => {
211
- var _a;
212
194
  let currentRawResponse = undefined;
213
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
195
+ const providedCallback = args.options?.onResponse;
214
196
  const callback = (rawResponse, flatResponse) => {
215
197
  currentRawResponse = rawResponse;
216
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
198
+ providedCallback?.(rawResponse, flatResponse);
199
+ };
200
+ const updatedArgs = {
201
+ ...args,
202
+ options: {
203
+ ...args.options,
204
+ onResponse: callback,
205
+ },
217
206
  };
218
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
219
207
  const flatResponse = await directSendOperation(updatedArgs, spec);
220
208
  return {
221
209
  flatResponse,
@@ -232,8 +220,8 @@ export class DataFlowOperationsImpl {
232
220
  spec: createOrUpdateDataFlowOperationSpec,
233
221
  });
234
222
  const poller = await createHttpPoller(lro, {
235
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
236
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
223
+ restoreFrom: options?.resumeFrom,
224
+ intervalInMs: options?.updateIntervalInMs,
237
225
  });
238
226
  await poller.poll();
239
227
  return poller;
@@ -254,7 +242,7 @@ export class DataFlowOperationsImpl {
254
242
  * @param options - The options parameters.
255
243
  */
256
244
  async getDataFlow(dataFlowName, options) {
257
- return tracingClient.withSpan("ArtifactsClient.getDataFlow", options !== null && options !== void 0 ? options : {}, async (updatedOptions) => {
245
+ return tracingClient.withSpan("ArtifactsClient.getDataFlow", options ?? {}, async (updatedOptions) => {
258
246
  return this.client.sendOperationRequest({ dataFlowName, updatedOptions }, getDataFlowOperationSpec);
259
247
  });
260
248
  }
@@ -265,19 +253,24 @@ export class DataFlowOperationsImpl {
265
253
  */
266
254
  async beginDeleteDataFlow(dataFlowName, options) {
267
255
  const directSendOperation = async (args, spec) => {
268
- return tracingClient.withSpan("ArtifactsClient.beginDeleteDataFlow", options !== null && options !== void 0 ? options : {}, async () => {
256
+ return tracingClient.withSpan("ArtifactsClient.beginDeleteDataFlow", options ?? {}, async () => {
269
257
  return this.client.sendOperationRequest(args, spec);
270
258
  });
271
259
  };
272
260
  const sendOperationFn = async (args, spec) => {
273
- var _a;
274
261
  let currentRawResponse = undefined;
275
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
262
+ const providedCallback = args.options?.onResponse;
276
263
  const callback = (rawResponse, flatResponse) => {
277
264
  currentRawResponse = rawResponse;
278
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
265
+ providedCallback?.(rawResponse, flatResponse);
266
+ };
267
+ const updatedArgs = {
268
+ ...args,
269
+ options: {
270
+ ...args.options,
271
+ onResponse: callback,
272
+ },
279
273
  };
280
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
281
274
  const flatResponse = await directSendOperation(updatedArgs, spec);
282
275
  return {
283
276
  flatResponse,
@@ -294,8 +287,8 @@ export class DataFlowOperationsImpl {
294
287
  spec: deleteDataFlowOperationSpec,
295
288
  });
296
289
  const poller = await createHttpPoller(lro, {
297
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
298
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
290
+ restoreFrom: options?.resumeFrom,
291
+ intervalInMs: options?.updateIntervalInMs,
299
292
  });
300
293
  await poller.poll();
301
294
  return poller;
@@ -317,19 +310,24 @@ export class DataFlowOperationsImpl {
317
310
  */
318
311
  async beginRenameDataFlow(dataFlowName, request, options) {
319
312
  const directSendOperation = async (args, spec) => {
320
- return tracingClient.withSpan("ArtifactsClient.beginRenameDataFlow", options !== null && options !== void 0 ? options : {}, async () => {
313
+ return tracingClient.withSpan("ArtifactsClient.beginRenameDataFlow", options ?? {}, async () => {
321
314
  return this.client.sendOperationRequest(args, spec);
322
315
  });
323
316
  };
324
317
  const sendOperationFn = async (args, spec) => {
325
- var _a;
326
318
  let currentRawResponse = undefined;
327
- const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
319
+ const providedCallback = args.options?.onResponse;
328
320
  const callback = (rawResponse, flatResponse) => {
329
321
  currentRawResponse = rawResponse;
330
- providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
322
+ providedCallback?.(rawResponse, flatResponse);
323
+ };
324
+ const updatedArgs = {
325
+ ...args,
326
+ options: {
327
+ ...args.options,
328
+ onResponse: callback,
329
+ },
331
330
  };
332
- const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
333
331
  const flatResponse = await directSendOperation(updatedArgs, spec);
334
332
  return {
335
333
  flatResponse,
@@ -346,8 +344,8 @@ export class DataFlowOperationsImpl {
346
344
  spec: renameDataFlowOperationSpec,
347
345
  });
348
346
  const poller = await createHttpPoller(lro, {
349
- restoreFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
350
- intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs,
347
+ restoreFrom: options?.resumeFrom,
348
+ intervalInMs: options?.updateIntervalInMs,
351
349
  });
352
350
  await poller.poll();
353
351
  return poller;
@@ -367,7 +365,7 @@ export class DataFlowOperationsImpl {
367
365
  * @param options - The options parameters.
368
366
  */
369
367
  async _getDataFlowsByWorkspace(options) {
370
- return tracingClient.withSpan("ArtifactsClient._getDataFlowsByWorkspace", options !== null && options !== void 0 ? options : {}, async (updatedOptions) => {
368
+ return tracingClient.withSpan("ArtifactsClient._getDataFlowsByWorkspace", options ?? {}, async (updatedOptions) => {
371
369
  return this.client.sendOperationRequest({ updatedOptions }, getDataFlowsByWorkspaceOperationSpec);
372
370
  });
373
371
  }
@@ -378,7 +376,7 @@ export class DataFlowOperationsImpl {
378
376
  * @param options - The options parameters.
379
377
  */
380
378
  async _getDataFlowsByWorkspaceNext(nextLink, options) {
381
- return tracingClient.withSpan("ArtifactsClient._getDataFlowsByWorkspaceNext", options !== null && options !== void 0 ? options : {}, async (updatedOptions) => {
379
+ return tracingClient.withSpan("ArtifactsClient._getDataFlowsByWorkspaceNext", options ?? {}, async (updatedOptions) => {
382
380
  return this.client.sendOperationRequest({ nextLink, updatedOptions }, getDataFlowsByWorkspaceNextOperationSpec);
383
381
  });
384
382
  }