@azure/synapse-artifacts 1.0.0-alpha.20250620.1 → 1.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 (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
@@ -1 +1 @@
1
- {"version":3,"file":"library.js","sourceRoot":"","sources":["../../../src/operations/library.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,8CAA8C;AAE9C,wDAA0D;AAE1D,uEAAiD;AAEjD,sEAAgD;AAChD,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AAP,OAAO,GAAI,EAAE,EACb,KAAK,EAAE,cAAc,EAAE,EAAE;YACvB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,cAAc,EAAE,EAC5B,qBAAqB,CACc,CAAC;QACxC,CAAC,CACF,CAAC;IACJ,CAAC;CACF;AA1ZD,kCA0ZC","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 { Library } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport type * as coreRestPipeline from \"@azure/core-rest-pipeline\";\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 LibraryResource,\n LibraryListNextOptionalParams,\n LibraryListOptionalParams,\n LibraryListOperationResponse,\n LibraryFlushOptionalParams,\n LibraryGetOperationResultOptionalParams,\n LibraryGetOperationResultResponse,\n LibraryDeleteOptionalParams,\n LibraryGetOptionalParams,\n LibraryGetResponse,\n LibraryCreateOptionalParams,\n LibraryAppendOptionalParams,\n LibraryListNextResponse,\n} from \"../models/index.js\";\n\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LibraryListResponse,\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 flushOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries/{libraryName}/flush\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.libraryName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationResultOperationSpec: coreClient.OperationSpec = {\n path: \"/libraryOperationResults/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LibraryResource,\n },\n 202: {\n bodyMapper: Mappers.OperationResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.operationId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries/{libraryName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.libraryName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries/{libraryName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LibraryResource,\n },\n 304: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.libraryName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries/{libraryName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.libraryName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst appendOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries/{libraryName}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.content,\n queryParameters: [Parameters.apiVersion5, Parameters.comp],\n urlParameters: [Parameters.endpoint, Parameters.libraryName],\n headerParameters: [\n Parameters.contentType1,\n Parameters.accept1,\n Parameters.blobConditionAppendPosition,\n ],\n mediaType: \"binary\",\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LibraryListResponse,\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 Library operations. */\nexport class LibraryImpl implements Library {\n private readonly client: ArtifactsClient;\n\n /**\n * Initialize a new instance of the class Library class.\n * @param client - Reference to the service client\n */\n constructor(client: ArtifactsClient) {\n this.client = client;\n }\n\n /**\n * Lists Library.\n * @param options - The options parameters.\n */\n public list(options?: LibraryListOptionalParams): PagedAsyncIterableIterator<LibraryResource> {\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?: LibraryListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<LibraryResource[]> {\n let result: LibraryListOperationResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(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._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n const page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: LibraryListOptionalParams,\n ): AsyncIterableIterator<LibraryResource> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists Library.\n * @param options - The options parameters.\n */\n private async _list(options?: LibraryListOptionalParams): Promise<LibraryListOperationResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._list\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { updatedOptions },\n listOperationSpec,\n ) as Promise<LibraryListOperationResponse>;\n },\n );\n }\n\n /**\n * Flush Library\n * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options - The options parameters.\n */\n async beginFlush(\n libraryName: string,\n options?: LibraryFlushOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return tracingClient.withSpan(\"ArtifactsClient.beginFlush\", options ?? {}, async () => {\n return this.client.sendOperationRequest(args, spec) as Promise<void>;\n });\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<{\n flatResponse: void;\n rawResponse: {\n statusCode: number;\n body: any;\n headers: coreRestPipeline.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: { libraryName, options },\n spec: flushOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Flush Library\n * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options - The options parameters.\n */\n async beginFlushAndWait(\n libraryName: string,\n options?: LibraryFlushOptionalParams,\n ): Promise<void> {\n const poller = await this.beginFlush(libraryName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Get Operation result for Library\n * @param operationId - operation id for which status is requested\n * @param options - The options parameters.\n */\n async getOperationResult(\n operationId: string,\n options?: LibraryGetOperationResultOptionalParams,\n ): Promise<LibraryGetOperationResultResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.getOperationResult\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { operationId, updatedOptions },\n getOperationResultOperationSpec,\n ) as Promise<LibraryGetOperationResultResponse>;\n },\n );\n }\n\n /**\n * Delete Library\n * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options - The options parameters.\n */\n async beginDelete(\n libraryName: string,\n options?: LibraryDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return tracingClient.withSpan(\"ArtifactsClient.beginDelete\", options ?? {}, async () => {\n return this.client.sendOperationRequest(args, spec) as Promise<void>;\n });\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<{\n flatResponse: void;\n rawResponse: {\n statusCode: number;\n body: any;\n headers: coreRestPipeline.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: { libraryName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete Library\n * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options - The options parameters.\n */\n async beginDeleteAndWait(\n libraryName: string,\n options?: LibraryDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(libraryName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Get Library\n * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options - The options parameters.\n */\n async get(libraryName: string, options?: LibraryGetOptionalParams): Promise<LibraryGetResponse> {\n return tracingClient.withSpan(\"ArtifactsClient.get\", options ?? {}, async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { libraryName, updatedOptions },\n getOperationSpec,\n ) as Promise<LibraryGetResponse>;\n });\n }\n\n /**\n * Creates a library with the library name.\n * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options - The options parameters.\n */\n async beginCreate(\n libraryName: string,\n options?: LibraryCreateOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return tracingClient.withSpan(\"ArtifactsClient.beginCreate\", options ?? {}, async () => {\n return this.client.sendOperationRequest(args, spec) as Promise<void>;\n });\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<{\n flatResponse: void;\n rawResponse: {\n statusCode: number;\n body: any;\n headers: coreRestPipeline.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: { libraryName, options },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a library with the library name.\n * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options - The options parameters.\n */\n async beginCreateAndWait(\n libraryName: string,\n options?: LibraryCreateOptionalParams,\n ): Promise<void> {\n const poller = await this.beginCreate(libraryName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Append the content to the library resource created using the create operation. The maximum content\n * size is 4MiB. Content larger than 4MiB must be appended in 4MiB chunks\n * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param content - Library file chunk.\n * @param options - The options parameters.\n */\n async append(\n libraryName: string,\n content: coreRestPipeline.RequestBodyType,\n options?: LibraryAppendOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.append\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { libraryName, content, updatedOptions },\n appendOperationSpec,\n ) as Promise<void>;\n },\n );\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 async _listNext(\n nextLink: string,\n options?: LibraryListNextOptionalParams,\n ): Promise<LibraryListNextResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._listNext\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { nextLink, updatedOptions },\n listNextOperationSpec,\n ) as Promise<LibraryListNextResponse>;\n },\n );\n }\n}\n"]}
1
+ {"version":3,"file":"library.js","sourceRoot":"","sources":["../../../src/operations/library.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,8CAA8C;AAE9C,wDAA0D;AAE1D,uEAAiD;AAEjD,sEAAgD;AAChD,4EAAsD;AAGtD,8CAAmD;AACnD,8CAA8C;AAiB9C,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,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,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;IACpC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,kBAAkB,GAA6B;IACnD,IAAI,EAAE,gCAAgC;IACtC,UAAU,EAAE,MAAM;IACl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,CACrB,QAAgB,EAChB,OAAuC;QAEvC,OAAO,0BAAa,CAAC,QAAQ,CAC3B,2BAA2B,EAC3B,OAAO,IAAI,EAAE,EACb,KAAK,EAAE,cAAc,EAAE,EAAE;YACvB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,cAAc,EAAE,EAC5B,qBAAqB,CACc,CAAC;QACxC,CAAC,CACF,CAAC;IACJ,CAAC;CACF;AA1ZD,kCA0ZC","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 { Library } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport type * as coreRestPipeline from \"@azure/core-rest-pipeline\";\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 LibraryResource,\n LibraryListNextOptionalParams,\n LibraryListOptionalParams,\n LibraryListOperationResponse,\n LibraryFlushOptionalParams,\n LibraryGetOperationResultOptionalParams,\n LibraryGetOperationResultResponse,\n LibraryDeleteOptionalParams,\n LibraryGetOptionalParams,\n LibraryGetResponse,\n LibraryCreateOptionalParams,\n LibraryAppendOptionalParams,\n LibraryListNextResponse,\n} from \"../models/index.js\";\n\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LibraryListResponse,\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 flushOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries/{libraryName}/flush\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.libraryName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationResultOperationSpec: coreClient.OperationSpec = {\n path: \"/libraryOperationResults/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LibraryResource,\n },\n 202: {\n bodyMapper: Mappers.OperationResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.operationId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries/{libraryName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.libraryName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries/{libraryName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LibraryResource,\n },\n 304: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.libraryName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries/{libraryName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.libraryName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst appendOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries/{libraryName}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.content,\n queryParameters: [Parameters.apiVersion5, Parameters.comp],\n urlParameters: [Parameters.endpoint, Parameters.libraryName],\n headerParameters: [\n Parameters.contentType1,\n Parameters.accept1,\n Parameters.blobConditionAppendPosition,\n ],\n mediaType: \"binary\",\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LibraryListResponse,\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 Library operations. */\nexport class LibraryImpl implements Library {\n private readonly client: ArtifactsClient;\n\n /**\n * Initialize a new instance of the class Library class.\n * @param client - Reference to the service client\n */\n constructor(client: ArtifactsClient) {\n this.client = client;\n }\n\n /**\n * Lists Library.\n * @param options - The options parameters.\n */\n public list(options?: LibraryListOptionalParams): PagedAsyncIterableIterator<LibraryResource> {\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?: LibraryListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<LibraryResource[]> {\n let result: LibraryListOperationResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(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._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n const page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: LibraryListOptionalParams,\n ): AsyncIterableIterator<LibraryResource> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists Library.\n * @param options - The options parameters.\n */\n private async _list(options?: LibraryListOptionalParams): Promise<LibraryListOperationResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._list\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { updatedOptions },\n listOperationSpec,\n ) as Promise<LibraryListOperationResponse>;\n },\n );\n }\n\n /**\n * Flush Library\n * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options - The options parameters.\n */\n async beginFlush(\n libraryName: string,\n options?: LibraryFlushOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return tracingClient.withSpan(\"ArtifactsClient.beginFlush\", options ?? {}, async () => {\n return this.client.sendOperationRequest(args, spec) as Promise<void>;\n });\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<{\n flatResponse: void;\n rawResponse: {\n statusCode: number;\n body: any;\n headers: coreRestPipeline.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: { libraryName, options },\n spec: flushOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Flush Library\n * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options - The options parameters.\n */\n async beginFlushAndWait(\n libraryName: string,\n options?: LibraryFlushOptionalParams,\n ): Promise<void> {\n const poller = await this.beginFlush(libraryName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Get Operation result for Library\n * @param operationId - operation id for which status is requested\n * @param options - The options parameters.\n */\n async getOperationResult(\n operationId: string,\n options?: LibraryGetOperationResultOptionalParams,\n ): Promise<LibraryGetOperationResultResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.getOperationResult\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { operationId, updatedOptions },\n getOperationResultOperationSpec,\n ) as Promise<LibraryGetOperationResultResponse>;\n },\n );\n }\n\n /**\n * Delete Library\n * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options - The options parameters.\n */\n async beginDelete(\n libraryName: string,\n options?: LibraryDeleteOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return tracingClient.withSpan(\"ArtifactsClient.beginDelete\", options ?? {}, async () => {\n return this.client.sendOperationRequest(args, spec) as Promise<void>;\n });\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<{\n flatResponse: void;\n rawResponse: {\n statusCode: number;\n body: any;\n headers: coreRestPipeline.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: { libraryName, options },\n spec: deleteOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Delete Library\n * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options - The options parameters.\n */\n async beginDeleteAndWait(\n libraryName: string,\n options?: LibraryDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(libraryName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Get Library\n * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options - The options parameters.\n */\n async get(libraryName: string, options?: LibraryGetOptionalParams): Promise<LibraryGetResponse> {\n return tracingClient.withSpan(\"ArtifactsClient.get\", options ?? {}, async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { libraryName, updatedOptions },\n getOperationSpec,\n ) as Promise<LibraryGetResponse>;\n });\n }\n\n /**\n * Creates a library with the library name.\n * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options - The options parameters.\n */\n async beginCreate(\n libraryName: string,\n options?: LibraryCreateOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return tracingClient.withSpan(\"ArtifactsClient.beginCreate\", options ?? {}, async () => {\n return this.client.sendOperationRequest(args, spec) as Promise<void>;\n });\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<{\n flatResponse: void;\n rawResponse: {\n statusCode: number;\n body: any;\n headers: coreRestPipeline.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: { libraryName, options },\n spec: createOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a library with the library name.\n * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options - The options parameters.\n */\n async beginCreateAndWait(\n libraryName: string,\n options?: LibraryCreateOptionalParams,\n ): Promise<void> {\n const poller = await this.beginCreate(libraryName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Append the content to the library resource created using the create operation. The maximum content\n * size is 4MiB. Content larger than 4MiB must be appended in 4MiB chunks\n * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param content - Library file chunk.\n * @param options - The options parameters.\n */\n async append(\n libraryName: string,\n content: coreRestPipeline.RequestBodyType,\n options?: LibraryAppendOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.append\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { libraryName, content, updatedOptions },\n appendOperationSpec,\n ) as Promise<void>;\n },\n );\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 async _listNext(\n nextLink: string,\n options?: LibraryListNextOptionalParams,\n ): Promise<LibraryListNextResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._listNext\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { nextLink, updatedOptions },\n listNextOperationSpec,\n ) as Promise<LibraryListNextResponse>;\n },\n );\n }\n}\n"]}
@@ -236,6 +236,7 @@ const listByWorkspaceNextOperationSpec = {
236
236
  };
237
237
  /** Class containing LinkConnectionOperations operations. */
238
238
  class LinkConnectionOperationsImpl {
239
+ client;
239
240
  /**
240
241
  * Initialize a new instance of the class LinkConnectionOperations class.
241
242
  * @param client - Reference to the service client
@@ -257,59 +258,42 @@ class LinkConnectionOperationsImpl {
257
258
  return this;
258
259
  },
259
260
  byPage: (settings) => {
260
- if (settings === null || settings === void 0 ? void 0 : settings.maxPageSize) {
261
+ if (settings?.maxPageSize) {
261
262
  throw new Error("maxPageSize is not supported by this operation.");
262
263
  }
263
264
  return this.listByWorkspacePagingPage(options, settings);
264
265
  },
265
266
  };
266
267
  }
267
- listByWorkspacePagingPage(options, settings) {
268
- return tslib_1.__asyncGenerator(this, arguments, function* listByWorkspacePagingPage_1() {
269
- let result;
270
- let continuationToken = settings === null || settings === void 0 ? void 0 : settings.continuationToken;
271
- if (!continuationToken) {
272
- result = yield tslib_1.__await(this._listByWorkspace(options));
273
- const page = result.value || [];
274
- continuationToken = result.nextLink;
275
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
276
- yield yield tslib_1.__await(page);
277
- }
278
- while (continuationToken) {
279
- result = yield tslib_1.__await(this._listByWorkspaceNext(continuationToken, options));
280
- continuationToken = result.nextLink;
281
- const page = result.value || [];
282
- (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
283
- yield yield tslib_1.__await(page);
284
- }
285
- });
268
+ async *listByWorkspacePagingPage(options, settings) {
269
+ let result;
270
+ let continuationToken = settings?.continuationToken;
271
+ if (!continuationToken) {
272
+ result = await this._listByWorkspace(options);
273
+ const page = result.value || [];
274
+ continuationToken = result.nextLink;
275
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
276
+ yield page;
277
+ }
278
+ while (continuationToken) {
279
+ result = await this._listByWorkspaceNext(continuationToken, options);
280
+ continuationToken = result.nextLink;
281
+ const page = result.value || [];
282
+ (0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
283
+ yield page;
284
+ }
286
285
  }
287
- listByWorkspacePagingAll(options) {
288
- return tslib_1.__asyncGenerator(this, arguments, function* listByWorkspacePagingAll_1() {
289
- var _a, e_1, _b, _c;
290
- try {
291
- for (var _d = true, _e = tslib_1.__asyncValues(this.listByWorkspacePagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
292
- _c = _f.value;
293
- _d = false;
294
- const page = _c;
295
- yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
296
- }
297
- }
298
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
299
- finally {
300
- try {
301
- if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
302
- }
303
- finally { if (e_1) throw e_1.error; }
304
- }
305
- });
286
+ async *listByWorkspacePagingAll(options) {
287
+ for await (const page of this.listByWorkspacePagingPage(options)) {
288
+ yield* page;
289
+ }
306
290
  }
307
291
  /**
308
292
  * List link connections
309
293
  * @param options - The options parameters.
310
294
  */
311
295
  async _listByWorkspace(options) {
312
- return tracing_js_1.tracingClient.withSpan("ArtifactsClient._listByWorkspace", options !== null && options !== void 0 ? options : {}, async (updatedOptions) => {
296
+ return tracing_js_1.tracingClient.withSpan("ArtifactsClient._listByWorkspace", options ?? {}, async (updatedOptions) => {
313
297
  return this.client.sendOperationRequest({ updatedOptions }, listByWorkspaceOperationSpec);
314
298
  });
315
299
  }
@@ -320,7 +304,7 @@ class LinkConnectionOperationsImpl {
320
304
  * @param options - The options parameters.
321
305
  */
322
306
  async createOrUpdate(linkConnectionName, linkConnection, options) {
323
- return tracing_js_1.tracingClient.withSpan("ArtifactsClient.createOrUpdate", options !== null && options !== void 0 ? options : {}, async (updatedOptions) => {
307
+ return tracing_js_1.tracingClient.withSpan("ArtifactsClient.createOrUpdate", options ?? {}, async (updatedOptions) => {
324
308
  return this.client.sendOperationRequest({ linkConnectionName, linkConnection, updatedOptions }, createOrUpdateOperationSpec);
325
309
  });
326
310
  }
@@ -330,7 +314,7 @@ class LinkConnectionOperationsImpl {
330
314
  * @param options - The options parameters.
331
315
  */
332
316
  async get(linkConnectionName, options) {
333
- return tracing_js_1.tracingClient.withSpan("ArtifactsClient.get", options !== null && options !== void 0 ? options : {}, async (updatedOptions) => {
317
+ return tracing_js_1.tracingClient.withSpan("ArtifactsClient.get", options ?? {}, async (updatedOptions) => {
334
318
  return this.client.sendOperationRequest({ linkConnectionName, updatedOptions }, getOperationSpec);
335
319
  });
336
320
  }
@@ -340,7 +324,7 @@ class LinkConnectionOperationsImpl {
340
324
  * @param options - The options parameters.
341
325
  */
342
326
  async delete(linkConnectionName, options) {
343
- return tracing_js_1.tracingClient.withSpan("ArtifactsClient.delete", options !== null && options !== void 0 ? options : {}, async (updatedOptions) => {
327
+ return tracing_js_1.tracingClient.withSpan("ArtifactsClient.delete", options ?? {}, async (updatedOptions) => {
344
328
  return this.client.sendOperationRequest({ linkConnectionName, updatedOptions }, deleteOperationSpec);
345
329
  });
346
330
  }
@@ -351,7 +335,7 @@ class LinkConnectionOperationsImpl {
351
335
  * @param options - The options parameters.
352
336
  */
353
337
  async editTables(linkConnectionName, editTablesRequest, options) {
354
- return tracing_js_1.tracingClient.withSpan("ArtifactsClient.editTables", options !== null && options !== void 0 ? options : {}, async (updatedOptions) => {
338
+ return tracing_js_1.tracingClient.withSpan("ArtifactsClient.editTables", options ?? {}, async (updatedOptions) => {
355
339
  return this.client.sendOperationRequest({ linkConnectionName, editTablesRequest, updatedOptions }, editTablesOperationSpec);
356
340
  });
357
341
  }
@@ -362,7 +346,7 @@ class LinkConnectionOperationsImpl {
362
346
  * @param options - The options parameters.
363
347
  */
364
348
  async start(linkConnectionName, options) {
365
- return tracing_js_1.tracingClient.withSpan("ArtifactsClient.start", options !== null && options !== void 0 ? options : {}, async (updatedOptions) => {
349
+ return tracing_js_1.tracingClient.withSpan("ArtifactsClient.start", options ?? {}, async (updatedOptions) => {
366
350
  return this.client.sendOperationRequest({ linkConnectionName, updatedOptions }, startOperationSpec);
367
351
  });
368
352
  }
@@ -373,7 +357,7 @@ class LinkConnectionOperationsImpl {
373
357
  * @param options - The options parameters.
374
358
  */
375
359
  async stop(linkConnectionName, options) {
376
- return tracing_js_1.tracingClient.withSpan("ArtifactsClient.stop", options !== null && options !== void 0 ? options : {}, async (updatedOptions) => {
360
+ return tracing_js_1.tracingClient.withSpan("ArtifactsClient.stop", options ?? {}, async (updatedOptions) => {
377
361
  return this.client.sendOperationRequest({ linkConnectionName, updatedOptions }, stopOperationSpec);
378
362
  });
379
363
  }
@@ -383,7 +367,7 @@ class LinkConnectionOperationsImpl {
383
367
  * @param options - The options parameters.
384
368
  */
385
369
  async getDetailedStatus(linkConnectionName, options) {
386
- return tracing_js_1.tracingClient.withSpan("ArtifactsClient.getDetailedStatus", options !== null && options !== void 0 ? options : {}, async (updatedOptions) => {
370
+ return tracing_js_1.tracingClient.withSpan("ArtifactsClient.getDetailedStatus", options ?? {}, async (updatedOptions) => {
387
371
  return this.client.sendOperationRequest({ linkConnectionName, updatedOptions }, getDetailedStatusOperationSpec);
388
372
  });
389
373
  }
@@ -393,7 +377,7 @@ class LinkConnectionOperationsImpl {
393
377
  * @param options - The options parameters.
394
378
  */
395
379
  async listLinkTables(linkConnectionName, options) {
396
- return tracing_js_1.tracingClient.withSpan("ArtifactsClient.listLinkTables", options !== null && options !== void 0 ? options : {}, async (updatedOptions) => {
380
+ return tracing_js_1.tracingClient.withSpan("ArtifactsClient.listLinkTables", options ?? {}, async (updatedOptions) => {
397
381
  return this.client.sendOperationRequest({ linkConnectionName, updatedOptions }, listLinkTablesOperationSpec);
398
382
  });
399
383
  }
@@ -404,7 +388,7 @@ class LinkConnectionOperationsImpl {
404
388
  * @param options - The options parameters.
405
389
  */
406
390
  async queryTableStatus(linkConnectionName, queryTableStatusRequest, options) {
407
- return tracing_js_1.tracingClient.withSpan("ArtifactsClient.queryTableStatus", options !== null && options !== void 0 ? options : {}, async (updatedOptions) => {
391
+ return tracing_js_1.tracingClient.withSpan("ArtifactsClient.queryTableStatus", options ?? {}, async (updatedOptions) => {
408
392
  return this.client.sendOperationRequest({ linkConnectionName, queryTableStatusRequest, updatedOptions }, queryTableStatusOperationSpec);
409
393
  });
410
394
  }
@@ -415,7 +399,7 @@ class LinkConnectionOperationsImpl {
415
399
  * @param options - The options parameters.
416
400
  */
417
401
  async updateLandingZoneCredential(linkConnectionName, updateLandingZoneCredentialRequest, options) {
418
- return tracing_js_1.tracingClient.withSpan("ArtifactsClient.updateLandingZoneCredential", options !== null && options !== void 0 ? options : {}, async (updatedOptions) => {
402
+ return tracing_js_1.tracingClient.withSpan("ArtifactsClient.updateLandingZoneCredential", options ?? {}, async (updatedOptions) => {
419
403
  return this.client.sendOperationRequest({ linkConnectionName, updateLandingZoneCredentialRequest, updatedOptions }, updateLandingZoneCredentialOperationSpec);
420
404
  });
421
405
  }
@@ -426,7 +410,7 @@ class LinkConnectionOperationsImpl {
426
410
  * @param options - The options parameters.
427
411
  */
428
412
  async pause(linkConnectionName, options) {
429
- return tracing_js_1.tracingClient.withSpan("ArtifactsClient.pause", options !== null && options !== void 0 ? options : {}, async (updatedOptions) => {
413
+ return tracing_js_1.tracingClient.withSpan("ArtifactsClient.pause", options ?? {}, async (updatedOptions) => {
430
414
  return this.client.sendOperationRequest({ linkConnectionName, updatedOptions }, pauseOperationSpec);
431
415
  });
432
416
  }
@@ -437,7 +421,7 @@ class LinkConnectionOperationsImpl {
437
421
  * @param options - The options parameters.
438
422
  */
439
423
  async resume(linkConnectionName, options) {
440
- return tracing_js_1.tracingClient.withSpan("ArtifactsClient.resume", options !== null && options !== void 0 ? options : {}, async (updatedOptions) => {
424
+ return tracing_js_1.tracingClient.withSpan("ArtifactsClient.resume", options ?? {}, async (updatedOptions) => {
441
425
  return this.client.sendOperationRequest({ linkConnectionName, updatedOptions }, resumeOperationSpec);
442
426
  });
443
427
  }
@@ -447,7 +431,7 @@ class LinkConnectionOperationsImpl {
447
431
  * @param options - The options parameters.
448
432
  */
449
433
  async _listByWorkspaceNext(nextLink, options) {
450
- return tracing_js_1.tracingClient.withSpan("ArtifactsClient._listByWorkspaceNext", options !== null && options !== void 0 ? options : {}, async (updatedOptions) => {
434
+ return tracing_js_1.tracingClient.withSpan("ArtifactsClient._listByWorkspaceNext", options ?? {}, async (updatedOptions) => {
451
435
  return this.client.sendOperationRequest({ nextLink, updatedOptions }, listByWorkspaceNextOperationSpec);
452
436
  });
453
437
  }
@@ -1 +1 @@
1
- {"version":3,"file":"linkConnectionOperations.js","sourceRoot":"","sources":["../../../src/operations/linkConnectionOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,8CAA8C;AAE9C,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AA8BtD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,4BAA4B,GAA6B;IAC7D,IAAI,EAAE,kBAAkB;IACxB,UAAU,EAAE,KAAK;IACjB,SAAS,EA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,EAAE;YACvB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,cAAc,EAAE,EAC5B,gCAAgC,CACqB,CAAC;QAC1D,CAAC,CACF,CAAC;IACJ,CAAC;CACF;AAxWD,oEAwWC","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 { LinkConnectionOperations } 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 LinkConnectionResource,\n LinkConnectionListByWorkspaceNextOptionalParams,\n LinkConnectionListByWorkspaceOptionalParams,\n LinkConnectionListByWorkspaceResponse,\n LinkConnectionCreateOrUpdateOptionalParams,\n LinkConnectionCreateOrUpdateResponse,\n LinkConnectionGetOptionalParams,\n LinkConnectionGetResponse,\n LinkConnectionDeleteOptionalParams,\n EditTablesRequest,\n LinkConnectionEditTablesOptionalParams,\n LinkConnectionStartOptionalParams,\n LinkConnectionStopOptionalParams,\n LinkConnectionGetDetailedStatusOptionalParams,\n LinkConnectionGetDetailedStatusResponse,\n LinkConnectionListLinkTablesOptionalParams,\n LinkConnectionListLinkTablesResponse,\n QueryTableStatusRequest,\n LinkConnectionQueryTableStatusOptionalParams,\n LinkConnectionQueryTableStatusResponse,\n UpdateLandingZoneCredential,\n LinkConnectionUpdateLandingZoneCredentialOptionalParams,\n LinkConnectionPauseOptionalParams,\n LinkConnectionResumeOptionalParams,\n LinkConnectionListByWorkspaceNextResponse,\n} from \"../models/index.js\";\n\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByWorkspaceOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkConnectionListResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkConnectionResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.linkConnection,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkConnectionResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst editTablesOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/edittables\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.editTablesRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst startOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/start\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst stopOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/stop\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getDetailedStatusOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/detailedstatus\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkConnectionDetailedStatus,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listLinkTablesOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/linktables\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkTableListResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst queryTableStatusOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/querytablestatus\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkConnectionQueryTableStatus,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.queryTableStatusRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateLandingZoneCredentialOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/updateLandingZoneCredential\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.updateLandingZoneCredentialRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst pauseOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/pause\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst resumeOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/resume\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByWorkspaceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkConnectionListResponse,\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 LinkConnectionOperations operations. */\nexport class LinkConnectionOperationsImpl implements LinkConnectionOperations {\n private readonly client: ArtifactsClient;\n\n /**\n * Initialize a new instance of the class LinkConnectionOperations class.\n * @param client - Reference to the service client\n */\n constructor(client: ArtifactsClient) {\n this.client = client;\n }\n\n /**\n * List link connections\n * @param options - The options parameters.\n */\n public listByWorkspace(\n options?: LinkConnectionListByWorkspaceOptionalParams,\n ): PagedAsyncIterableIterator<LinkConnectionResource> {\n const iter = this.listByWorkspacePagingAll(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.listByWorkspacePagingPage(options, settings);\n },\n };\n }\n\n private async *listByWorkspacePagingPage(\n options?: LinkConnectionListByWorkspaceOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<LinkConnectionResource[]> {\n let result: LinkConnectionListByWorkspaceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByWorkspace(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._listByWorkspaceNext(continuationToken, options);\n continuationToken = result.nextLink;\n const page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByWorkspacePagingAll(\n options?: LinkConnectionListByWorkspaceOptionalParams,\n ): AsyncIterableIterator<LinkConnectionResource> {\n for await (const page of this.listByWorkspacePagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List link connections\n * @param options - The options parameters.\n */\n private async _listByWorkspace(\n options?: LinkConnectionListByWorkspaceOptionalParams,\n ): Promise<LinkConnectionListByWorkspaceResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._listByWorkspace\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { updatedOptions },\n listByWorkspaceOperationSpec,\n ) as Promise<LinkConnectionListByWorkspaceResponse>;\n },\n );\n }\n\n /**\n * Creates or updates a link connection\n * @param linkConnectionName - The link connection name\n * @param linkConnection - Link connection resource definition\n * @param options - The options parameters.\n */\n async createOrUpdate(\n linkConnectionName: string,\n linkConnection: LinkConnectionResource,\n options?: LinkConnectionCreateOrUpdateOptionalParams,\n ): Promise<LinkConnectionCreateOrUpdateResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.createOrUpdate\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, linkConnection, updatedOptions },\n createOrUpdateOperationSpec,\n ) as Promise<LinkConnectionCreateOrUpdateResponse>;\n },\n );\n }\n\n /**\n * Get a link connection\n * @param linkConnectionName - The link connection name\n * @param options - The options parameters.\n */\n async get(\n linkConnectionName: string,\n options?: LinkConnectionGetOptionalParams,\n ): Promise<LinkConnectionGetResponse> {\n return tracingClient.withSpan(\"ArtifactsClient.get\", options ?? {}, async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, updatedOptions },\n getOperationSpec,\n ) as Promise<LinkConnectionGetResponse>;\n });\n }\n\n /**\n * Delete a link connection\n * @param linkConnectionName - The link connection name\n * @param options - The options parameters.\n */\n async delete(\n linkConnectionName: string,\n options?: LinkConnectionDeleteOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.delete\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, updatedOptions },\n deleteOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Edit tables for a link connection\n * @param linkConnectionName - The link connection name\n * @param editTablesRequest - Edit tables request\n * @param options - The options parameters.\n */\n async editTables(\n linkConnectionName: string,\n editTablesRequest: EditTablesRequest,\n options?: LinkConnectionEditTablesOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.editTables\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, editTablesRequest, updatedOptions },\n editTablesOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Start a link connection. It may take a few minutes from Starting to Running, monitor the status with\n * LinkConnection_GetDetailedStatus.\n * @param linkConnectionName - The link connection name\n * @param options - The options parameters.\n */\n async start(\n linkConnectionName: string,\n options?: LinkConnectionStartOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.start\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, updatedOptions },\n startOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Stop a link connection. It may take a few minutes from Stopping to stopped, monitor the status with\n * LinkConnection_GetDetailedStatus.\n * @param linkConnectionName - The link connection name\n * @param options - The options parameters.\n */\n async stop(\n linkConnectionName: string,\n options?: LinkConnectionStopOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\"ArtifactsClient.stop\", options ?? {}, async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, updatedOptions },\n stopOperationSpec,\n ) as Promise<void>;\n });\n }\n\n /**\n * Get the detailed status of a link connection\n * @param linkConnectionName - The link connection name\n * @param options - The options parameters.\n */\n async getDetailedStatus(\n linkConnectionName: string,\n options?: LinkConnectionGetDetailedStatusOptionalParams,\n ): Promise<LinkConnectionGetDetailedStatusResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.getDetailedStatus\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, updatedOptions },\n getDetailedStatusOperationSpec,\n ) as Promise<LinkConnectionGetDetailedStatusResponse>;\n },\n );\n }\n\n /**\n * List the link tables of a link connection\n * @param linkConnectionName - The link connection name\n * @param options - The options parameters.\n */\n async listLinkTables(\n linkConnectionName: string,\n options?: LinkConnectionListLinkTablesOptionalParams,\n ): Promise<LinkConnectionListLinkTablesResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.listLinkTables\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, updatedOptions },\n listLinkTablesOperationSpec,\n ) as Promise<LinkConnectionListLinkTablesResponse>;\n },\n );\n }\n\n /**\n * Query the link table status of a link connection\n * @param linkConnectionName - The link connection name\n * @param queryTableStatusRequest - Query table status request\n * @param options - The options parameters.\n */\n async queryTableStatus(\n linkConnectionName: string,\n queryTableStatusRequest: QueryTableStatusRequest,\n options?: LinkConnectionQueryTableStatusOptionalParams,\n ): Promise<LinkConnectionQueryTableStatusResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.queryTableStatus\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, queryTableStatusRequest, updatedOptions },\n queryTableStatusOperationSpec,\n ) as Promise<LinkConnectionQueryTableStatusResponse>;\n },\n );\n }\n\n /**\n * Update landing zone credential of a link connection\n * @param linkConnectionName - The link connection name\n * @param updateLandingZoneCredentialRequest - update landing zone credential request\n * @param options - The options parameters.\n */\n async updateLandingZoneCredential(\n linkConnectionName: string,\n updateLandingZoneCredentialRequest: UpdateLandingZoneCredential,\n options?: LinkConnectionUpdateLandingZoneCredentialOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.updateLandingZoneCredential\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, updateLandingZoneCredentialRequest, updatedOptions },\n updateLandingZoneCredentialOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Pause a link connection. It may take a few minutes from Pausing to Paused, monitor the status with\n * LinkConnection_GetDetailedStatus.\n * @param linkConnectionName - The link connection name\n * @param options - The options parameters.\n */\n async pause(\n linkConnectionName: string,\n options?: LinkConnectionPauseOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.pause\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, updatedOptions },\n pauseOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Resume a link connection. It may take a few minutes from Resuming to Running, monitor the status\n * with LinkConnection_GetDetailedStatus.\n * @param linkConnectionName - The link connection name\n * @param options - The options parameters.\n */\n async resume(\n linkConnectionName: string,\n options?: LinkConnectionResumeOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.resume\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, updatedOptions },\n resumeOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * ListByWorkspaceNext\n * @param nextLink - The nextLink from the previous successful call to the ListByWorkspace method.\n * @param options - The options parameters.\n */\n private async _listByWorkspaceNext(\n nextLink: string,\n options?: LinkConnectionListByWorkspaceNextOptionalParams,\n ): Promise<LinkConnectionListByWorkspaceNextResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._listByWorkspaceNext\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { nextLink, updatedOptions },\n listByWorkspaceNextOperationSpec,\n ) as Promise<LinkConnectionListByWorkspaceNextResponse>;\n },\n );\n }\n}\n"]}
1
+ {"version":3,"file":"linkConnectionOperations.js","sourceRoot":"","sources":["../../../src/operations/linkConnectionOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,8CAA8C;AAE9C,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AA8BtD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,4BAA4B,GAA6B;IAC7D,IAAI,EAAE,kBAAkB;IACxB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,0BAA0B;SAC/C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC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ACtC,kBAAkB,CACF,CAAC;QACrB,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,MAAM,CACV,kBAA0B,EAC1B,OAA4C;QAE5C,OAAO,0BAAa,CAAC,QAAQ,CAC3B,wBAAwB,EACxB,OAAO,IAAI,EAAE,EACb,KAAK,EAAE,cAAc,EAAE,EAAE;YACvB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,kBAAkB,EAAE,cAAc,EAAE,EACtC,mBAAmB,CACH,CAAC;QACrB,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACK,KAAK,CAAC,oBAAoB,CAChC,QAAgB,EAChB,OAAyD;QAEzD,OAAO,0BAAa,CAAC,QAAQ,CAC3B,sCAAsC,EACtC,OAAO,IAAI,EAAE,EACb,KAAK,EAAE,cAAc,EAAE,EAAE;YACvB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,cAAc,EAAE,EAC5B,gCAAgC,CACqB,CAAC;QAC1D,CAAC,CACF,CAAC;IACJ,CAAC;CACF;AAxWD,oEAwWC","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 { LinkConnectionOperations } 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 LinkConnectionResource,\n LinkConnectionListByWorkspaceNextOptionalParams,\n LinkConnectionListByWorkspaceOptionalParams,\n LinkConnectionListByWorkspaceResponse,\n LinkConnectionCreateOrUpdateOptionalParams,\n LinkConnectionCreateOrUpdateResponse,\n LinkConnectionGetOptionalParams,\n LinkConnectionGetResponse,\n LinkConnectionDeleteOptionalParams,\n EditTablesRequest,\n LinkConnectionEditTablesOptionalParams,\n LinkConnectionStartOptionalParams,\n LinkConnectionStopOptionalParams,\n LinkConnectionGetDetailedStatusOptionalParams,\n LinkConnectionGetDetailedStatusResponse,\n LinkConnectionListLinkTablesOptionalParams,\n LinkConnectionListLinkTablesResponse,\n QueryTableStatusRequest,\n LinkConnectionQueryTableStatusOptionalParams,\n LinkConnectionQueryTableStatusResponse,\n UpdateLandingZoneCredential,\n LinkConnectionUpdateLandingZoneCredentialOptionalParams,\n LinkConnectionPauseOptionalParams,\n LinkConnectionResumeOptionalParams,\n LinkConnectionListByWorkspaceNextResponse,\n} from \"../models/index.js\";\n\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByWorkspaceOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkConnectionListResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkConnectionResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.linkConnection,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkConnectionResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst editTablesOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/edittables\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.editTablesRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst startOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/start\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst stopOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/stop\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getDetailedStatusOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/detailedstatus\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkConnectionDetailedStatus,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listLinkTablesOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/linktables\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkTableListResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst queryTableStatusOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/querytablestatus\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkConnectionQueryTableStatus,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.queryTableStatusRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst updateLandingZoneCredentialOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/updateLandingZoneCredential\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.updateLandingZoneCredentialRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst pauseOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/pause\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst resumeOperationSpec: coreClient.OperationSpec = {\n path: \"/linkconnections/{linkConnectionName}/resume\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.linkConnectionName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByWorkspaceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LinkConnectionListResponse,\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 LinkConnectionOperations operations. */\nexport class LinkConnectionOperationsImpl implements LinkConnectionOperations {\n private readonly client: ArtifactsClient;\n\n /**\n * Initialize a new instance of the class LinkConnectionOperations class.\n * @param client - Reference to the service client\n */\n constructor(client: ArtifactsClient) {\n this.client = client;\n }\n\n /**\n * List link connections\n * @param options - The options parameters.\n */\n public listByWorkspace(\n options?: LinkConnectionListByWorkspaceOptionalParams,\n ): PagedAsyncIterableIterator<LinkConnectionResource> {\n const iter = this.listByWorkspacePagingAll(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.listByWorkspacePagingPage(options, settings);\n },\n };\n }\n\n private async *listByWorkspacePagingPage(\n options?: LinkConnectionListByWorkspaceOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<LinkConnectionResource[]> {\n let result: LinkConnectionListByWorkspaceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByWorkspace(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._listByWorkspaceNext(continuationToken, options);\n continuationToken = result.nextLink;\n const page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByWorkspacePagingAll(\n options?: LinkConnectionListByWorkspaceOptionalParams,\n ): AsyncIterableIterator<LinkConnectionResource> {\n for await (const page of this.listByWorkspacePagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * List link connections\n * @param options - The options parameters.\n */\n private async _listByWorkspace(\n options?: LinkConnectionListByWorkspaceOptionalParams,\n ): Promise<LinkConnectionListByWorkspaceResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._listByWorkspace\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { updatedOptions },\n listByWorkspaceOperationSpec,\n ) as Promise<LinkConnectionListByWorkspaceResponse>;\n },\n );\n }\n\n /**\n * Creates or updates a link connection\n * @param linkConnectionName - The link connection name\n * @param linkConnection - Link connection resource definition\n * @param options - The options parameters.\n */\n async createOrUpdate(\n linkConnectionName: string,\n linkConnection: LinkConnectionResource,\n options?: LinkConnectionCreateOrUpdateOptionalParams,\n ): Promise<LinkConnectionCreateOrUpdateResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.createOrUpdate\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, linkConnection, updatedOptions },\n createOrUpdateOperationSpec,\n ) as Promise<LinkConnectionCreateOrUpdateResponse>;\n },\n );\n }\n\n /**\n * Get a link connection\n * @param linkConnectionName - The link connection name\n * @param options - The options parameters.\n */\n async get(\n linkConnectionName: string,\n options?: LinkConnectionGetOptionalParams,\n ): Promise<LinkConnectionGetResponse> {\n return tracingClient.withSpan(\"ArtifactsClient.get\", options ?? {}, async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, updatedOptions },\n getOperationSpec,\n ) as Promise<LinkConnectionGetResponse>;\n });\n }\n\n /**\n * Delete a link connection\n * @param linkConnectionName - The link connection name\n * @param options - The options parameters.\n */\n async delete(\n linkConnectionName: string,\n options?: LinkConnectionDeleteOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.delete\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, updatedOptions },\n deleteOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Edit tables for a link connection\n * @param linkConnectionName - The link connection name\n * @param editTablesRequest - Edit tables request\n * @param options - The options parameters.\n */\n async editTables(\n linkConnectionName: string,\n editTablesRequest: EditTablesRequest,\n options?: LinkConnectionEditTablesOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.editTables\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, editTablesRequest, updatedOptions },\n editTablesOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Start a link connection. It may take a few minutes from Starting to Running, monitor the status with\n * LinkConnection_GetDetailedStatus.\n * @param linkConnectionName - The link connection name\n * @param options - The options parameters.\n */\n async start(\n linkConnectionName: string,\n options?: LinkConnectionStartOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.start\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, updatedOptions },\n startOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Stop a link connection. It may take a few minutes from Stopping to stopped, monitor the status with\n * LinkConnection_GetDetailedStatus.\n * @param linkConnectionName - The link connection name\n * @param options - The options parameters.\n */\n async stop(\n linkConnectionName: string,\n options?: LinkConnectionStopOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\"ArtifactsClient.stop\", options ?? {}, async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, updatedOptions },\n stopOperationSpec,\n ) as Promise<void>;\n });\n }\n\n /**\n * Get the detailed status of a link connection\n * @param linkConnectionName - The link connection name\n * @param options - The options parameters.\n */\n async getDetailedStatus(\n linkConnectionName: string,\n options?: LinkConnectionGetDetailedStatusOptionalParams,\n ): Promise<LinkConnectionGetDetailedStatusResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.getDetailedStatus\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, updatedOptions },\n getDetailedStatusOperationSpec,\n ) as Promise<LinkConnectionGetDetailedStatusResponse>;\n },\n );\n }\n\n /**\n * List the link tables of a link connection\n * @param linkConnectionName - The link connection name\n * @param options - The options parameters.\n */\n async listLinkTables(\n linkConnectionName: string,\n options?: LinkConnectionListLinkTablesOptionalParams,\n ): Promise<LinkConnectionListLinkTablesResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.listLinkTables\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, updatedOptions },\n listLinkTablesOperationSpec,\n ) as Promise<LinkConnectionListLinkTablesResponse>;\n },\n );\n }\n\n /**\n * Query the link table status of a link connection\n * @param linkConnectionName - The link connection name\n * @param queryTableStatusRequest - Query table status request\n * @param options - The options parameters.\n */\n async queryTableStatus(\n linkConnectionName: string,\n queryTableStatusRequest: QueryTableStatusRequest,\n options?: LinkConnectionQueryTableStatusOptionalParams,\n ): Promise<LinkConnectionQueryTableStatusResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.queryTableStatus\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, queryTableStatusRequest, updatedOptions },\n queryTableStatusOperationSpec,\n ) as Promise<LinkConnectionQueryTableStatusResponse>;\n },\n );\n }\n\n /**\n * Update landing zone credential of a link connection\n * @param linkConnectionName - The link connection name\n * @param updateLandingZoneCredentialRequest - update landing zone credential request\n * @param options - The options parameters.\n */\n async updateLandingZoneCredential(\n linkConnectionName: string,\n updateLandingZoneCredentialRequest: UpdateLandingZoneCredential,\n options?: LinkConnectionUpdateLandingZoneCredentialOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.updateLandingZoneCredential\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, updateLandingZoneCredentialRequest, updatedOptions },\n updateLandingZoneCredentialOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Pause a link connection. It may take a few minutes from Pausing to Paused, monitor the status with\n * LinkConnection_GetDetailedStatus.\n * @param linkConnectionName - The link connection name\n * @param options - The options parameters.\n */\n async pause(\n linkConnectionName: string,\n options?: LinkConnectionPauseOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.pause\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, updatedOptions },\n pauseOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Resume a link connection. It may take a few minutes from Resuming to Running, monitor the status\n * with LinkConnection_GetDetailedStatus.\n * @param linkConnectionName - The link connection name\n * @param options - The options parameters.\n */\n async resume(\n linkConnectionName: string,\n options?: LinkConnectionResumeOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.resume\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { linkConnectionName, updatedOptions },\n resumeOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * ListByWorkspaceNext\n * @param nextLink - The nextLink from the previous successful call to the ListByWorkspace method.\n * @param options - The options parameters.\n */\n private async _listByWorkspaceNext(\n nextLink: string,\n options?: LinkConnectionListByWorkspaceNextOptionalParams,\n ): Promise<LinkConnectionListByWorkspaceNextResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._listByWorkspaceNext\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { nextLink, updatedOptions },\n listByWorkspaceNextOperationSpec,\n ) as Promise<LinkConnectionListByWorkspaceNextResponse>;\n },\n );\n }\n}\n"]}