@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
@@ -9,6 +9,7 @@ import * as coreClient from "@azure/core-client";
9
9
  import * as coreRestPipeline from "@azure/core-rest-pipeline";
10
10
  import { LinkConnectionOperationsImpl, RunNotebookImpl, KqlScriptsImpl, KqlScriptOperationsImpl, MetastoreImpl, SparkConfigurationOperationsImpl, BigDataPoolsImpl, DataFlowOperationsImpl, DataFlowDebugSessionImpl, DatasetOperationsImpl, WorkspaceGitRepoManagementImpl, IntegrationRuntimesImpl, LibraryImpl, LinkedServiceOperationsImpl, NotebookOperationsImpl, NotebookOperationResultImpl, PipelineOperationsImpl, PipelineRunOperationsImpl, SparkJobDefinitionOperationsImpl, SqlPoolsImpl, SqlScriptOperationsImpl, TriggerOperationsImpl, TriggerRunOperationsImpl, WorkspaceOperationsImpl, } from "./operations/index.js";
11
11
  export class ArtifactsClient extends coreClient.ServiceClient {
12
+ endpoint;
12
13
  /**
13
14
  * Initializes a new instance of the ArtifactsClient class.
14
15
  * @param credentials - Subscription credentials which uniquely identify client subscription.
@@ -17,7 +18,6 @@ export class ArtifactsClient extends coreClient.ServiceClient {
17
18
  * @param options - The parameter options
18
19
  */
19
20
  constructor(credentials, endpoint, options) {
20
- var _a, _b, _c;
21
21
  if (credentials === undefined) {
22
22
  throw new Error("'credentials' cannot be null");
23
23
  }
@@ -39,12 +39,17 @@ export class ArtifactsClient extends coreClient.ServiceClient {
39
39
  if (!options.credentialScopes) {
40
40
  options.credentialScopes = ["https://dev.azuresynapse.net/.default"];
41
41
  }
42
- const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
42
+ const optionsWithDefaults = {
43
+ ...defaults,
44
+ ...options,
45
+ userAgentOptions: {
43
46
  userAgentPrefix,
44
- }, endpoint: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "{endpoint}" });
47
+ },
48
+ endpoint: options.endpoint ?? options.baseUri ?? "{endpoint}",
49
+ };
45
50
  super(optionsWithDefaults);
46
51
  let bearerTokenAuthenticationPolicyFound = false;
47
- if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
52
+ if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
48
53
  const pipelinePolicies = options.pipeline.getOrderedPolicies();
49
54
  bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName);
50
55
  }
@@ -57,7 +62,7 @@ export class ArtifactsClient extends coreClient.ServiceClient {
57
62
  });
58
63
  this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
59
64
  credential: credentials,
60
- scopes: (_c = optionsWithDefaults.credentialScopes) !== null && _c !== void 0 ? _c : `${optionsWithDefaults.endpoint}/.default`,
65
+ scopes: optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,
61
66
  challengeCallbacks: {
62
67
  authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
63
68
  },
@@ -90,5 +95,29 @@ export class ArtifactsClient extends coreClient.ServiceClient {
90
95
  this.triggerRunOperations = new TriggerRunOperationsImpl(this);
91
96
  this.workspaceOperations = new WorkspaceOperationsImpl(this);
92
97
  }
98
+ linkConnectionOperations;
99
+ runNotebook;
100
+ kqlScripts;
101
+ kqlScriptOperations;
102
+ metastore;
103
+ sparkConfigurationOperations;
104
+ bigDataPools;
105
+ dataFlowOperations;
106
+ dataFlowDebugSession;
107
+ datasetOperations;
108
+ workspaceGitRepoManagement;
109
+ integrationRuntimes;
110
+ library;
111
+ linkedServiceOperations;
112
+ notebookOperations;
113
+ notebookOperationResult;
114
+ pipelineOperations;
115
+ pipelineRunOperations;
116
+ sparkJobDefinitionOperations;
117
+ sqlPools;
118
+ sqlScriptOperations;
119
+ triggerOperations;
120
+ triggerRunOperations;
121
+ workspaceOperations;
93
122
  }
94
123
  //# sourceMappingURL=artifactsClient.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"artifactsClient.js","sourceRoot":"","sources":["../../src/artifactsClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;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AAC,qBAAqB,GAAG,IAAI,yBAAyB,CAAC,IAAI,CAAC,CAAC;QACjE,IAAI,CAAC,4BAA4B,GAAG,IAAI,gCAAgC,CAAC,IAAI,CAAC,CAAC;QAC/E,IAAI,CAAC,QAAQ,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,mBAAmB,GAAG,IAAI,uBAAuB,CAAC,IAAI,CAAC,CAAC;QAC7D,IAAI,CAAC,iBAAiB,GAAG,IAAI,qBAAqB,CAAC,IAAI,CAAC,CAAC;QACzD,IAAI,CAAC,oBAAoB,GAAG,IAAI,wBAAwB,CAAC,IAAI,CAAC,CAAC;QAC/D,IAAI,CAAC,mBAAmB,GAAG,IAAI,uBAAuB,CAAC,IAAI,CAAC,CAAC;IAC/D,CAAC;CA0BF","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 * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport type * as coreAuth from \"@azure/core-auth\";\nimport {\n LinkConnectionOperationsImpl,\n RunNotebookImpl,\n KqlScriptsImpl,\n KqlScriptOperationsImpl,\n MetastoreImpl,\n SparkConfigurationOperationsImpl,\n BigDataPoolsImpl,\n DataFlowOperationsImpl,\n DataFlowDebugSessionImpl,\n DatasetOperationsImpl,\n WorkspaceGitRepoManagementImpl,\n IntegrationRuntimesImpl,\n LibraryImpl,\n LinkedServiceOperationsImpl,\n NotebookOperationsImpl,\n NotebookOperationResultImpl,\n PipelineOperationsImpl,\n PipelineRunOperationsImpl,\n SparkJobDefinitionOperationsImpl,\n SqlPoolsImpl,\n SqlScriptOperationsImpl,\n TriggerOperationsImpl,\n TriggerRunOperationsImpl,\n WorkspaceOperationsImpl,\n} from \"./operations/index.js\";\nimport type {\n LinkConnectionOperations,\n RunNotebook,\n KqlScripts,\n KqlScriptOperations,\n Metastore,\n SparkConfigurationOperations,\n BigDataPools,\n DataFlowOperations,\n DataFlowDebugSession,\n DatasetOperations,\n WorkspaceGitRepoManagement,\n IntegrationRuntimes,\n Library,\n LinkedServiceOperations,\n NotebookOperations,\n NotebookOperationResult,\n PipelineOperations,\n PipelineRunOperations,\n SparkJobDefinitionOperations,\n SqlPools,\n SqlScriptOperations,\n TriggerOperations,\n TriggerRunOperations,\n WorkspaceOperations,\n} from \"./operationsInterfaces/index.js\";\nimport type { ArtifactsClientOptionalParams } from \"./models/index.js\";\n\nexport class ArtifactsClient extends coreClient.ServiceClient {\n endpoint: string;\n\n /**\n * Initializes a new instance of the ArtifactsClient class.\n * @param credentials - Subscription credentials which uniquely identify client subscription.\n * @param endpoint - The workspace development endpoint, for example\n * `https://myworkspace.dev.azuresynapse.net`.\n * @param options - The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n endpoint: string,\n options?: ArtifactsClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (endpoint === undefined) {\n throw new Error(\"'endpoint' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ArtifactsClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-synapse-artifacts/1.0.0-beta.16`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n if (!options.credentialScopes) {\n options.credentialScopes = [\"https://dev.azuresynapse.net/.default\"];\n }\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint: options.endpoint ?? options.baseUri ?? \"{endpoint}\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length === 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.endpoint = endpoint;\n this.linkConnectionOperations = new LinkConnectionOperationsImpl(this);\n this.runNotebook = new RunNotebookImpl(this);\n this.kqlScripts = new KqlScriptsImpl(this);\n this.kqlScriptOperations = new KqlScriptOperationsImpl(this);\n this.metastore = new MetastoreImpl(this);\n this.sparkConfigurationOperations = new SparkConfigurationOperationsImpl(this);\n this.bigDataPools = new BigDataPoolsImpl(this);\n this.dataFlowOperations = new DataFlowOperationsImpl(this);\n this.dataFlowDebugSession = new DataFlowDebugSessionImpl(this);\n this.datasetOperations = new DatasetOperationsImpl(this);\n this.workspaceGitRepoManagement = new WorkspaceGitRepoManagementImpl(this);\n this.integrationRuntimes = new IntegrationRuntimesImpl(this);\n this.library = new LibraryImpl(this);\n this.linkedServiceOperations = new LinkedServiceOperationsImpl(this);\n this.notebookOperations = new NotebookOperationsImpl(this);\n this.notebookOperationResult = new NotebookOperationResultImpl(this);\n this.pipelineOperations = new PipelineOperationsImpl(this);\n this.pipelineRunOperations = new PipelineRunOperationsImpl(this);\n this.sparkJobDefinitionOperations = new SparkJobDefinitionOperationsImpl(this);\n this.sqlPools = new SqlPoolsImpl(this);\n this.sqlScriptOperations = new SqlScriptOperationsImpl(this);\n this.triggerOperations = new TriggerOperationsImpl(this);\n this.triggerRunOperations = new TriggerRunOperationsImpl(this);\n this.workspaceOperations = new WorkspaceOperationsImpl(this);\n }\n\n linkConnectionOperations: LinkConnectionOperations;\n runNotebook: RunNotebook;\n kqlScripts: KqlScripts;\n kqlScriptOperations: KqlScriptOperations;\n metastore: Metastore;\n sparkConfigurationOperations: SparkConfigurationOperations;\n bigDataPools: BigDataPools;\n dataFlowOperations: DataFlowOperations;\n dataFlowDebugSession: DataFlowDebugSession;\n datasetOperations: DatasetOperations;\n workspaceGitRepoManagement: WorkspaceGitRepoManagement;\n integrationRuntimes: IntegrationRuntimes;\n library: Library;\n linkedServiceOperations: LinkedServiceOperations;\n notebookOperations: NotebookOperations;\n notebookOperationResult: NotebookOperationResult;\n pipelineOperations: PipelineOperations;\n pipelineRunOperations: PipelineRunOperations;\n sparkJobDefinitionOperations: SparkJobDefinitionOperations;\n sqlPools: SqlPools;\n sqlScriptOperations: SqlScriptOperations;\n triggerOperations: TriggerOperations;\n triggerRunOperations: TriggerRunOperations;\n workspaceOperations: WorkspaceOperations;\n}\n"]}
1
+ {"version":3,"file":"artifactsClient.js","sourceRoot":"","sources":["../../src/artifactsClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,4BAA4B,EAC5B,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,aAAa,EACb,gCAAgC,EAChC,gBAAgB,EAChB,sBAAsB,EACtB,wBAAwB,EACxB,qBAAqB,EACrB,8BAA8B,EAC9B,uBAAuB,EACvB,WAAW,EACX,2BAA2B,EAC3B,sBAAsB,EACtB,2BAA2B,EAC3B,sBAAsB,EACtB,yBAAyB,EACzB,gCAAgC,EAChC,YAAY,EACZ,uBAAuB,EACvB,qBA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CAAC,CAAC;QACzD,IAAI,CAAC,oBAAoB,GAAG,IAAI,wBAAwB,CAAC,IAAI,CAAC,CAAC;QAC/D,IAAI,CAAC,mBAAmB,GAAG,IAAI,uBAAuB,CAAC,IAAI,CAAC,CAAC;IAC/D,CAAC;IAED,wBAAwB,CAA2B;IACnD,WAAW,CAAc;IACzB,UAAU,CAAa;IACvB,mBAAmB,CAAsB;IACzC,SAAS,CAAY;IACrB,4BAA4B,CAA+B;IAC3D,YAAY,CAAe;IAC3B,kBAAkB,CAAqB;IACvC,oBAAoB,CAAuB;IAC3C,iBAAiB,CAAoB;IACrC,0BAA0B,CAA6B;IACvD,mBAAmB,CAAsB;IACzC,OAAO,CAAU;IACjB,uBAAuB,CAA0B;IACjD,kBAAkB,CAAqB;IACvC,uBAAuB,CAA0B;IACjD,kBAAkB,CAAqB;IACvC,qBAAqB,CAAwB;IAC7C,4BAA4B,CAA+B;IAC3D,QAAQ,CAAW;IACnB,mBAAmB,CAAsB;IACzC,iBAAiB,CAAoB;IACrC,oBAAoB,CAAuB;IAC3C,mBAAmB,CAAsB;CAC1C","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 * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport type * as coreAuth from \"@azure/core-auth\";\nimport {\n LinkConnectionOperationsImpl,\n RunNotebookImpl,\n KqlScriptsImpl,\n KqlScriptOperationsImpl,\n MetastoreImpl,\n SparkConfigurationOperationsImpl,\n BigDataPoolsImpl,\n DataFlowOperationsImpl,\n DataFlowDebugSessionImpl,\n DatasetOperationsImpl,\n WorkspaceGitRepoManagementImpl,\n IntegrationRuntimesImpl,\n LibraryImpl,\n LinkedServiceOperationsImpl,\n NotebookOperationsImpl,\n NotebookOperationResultImpl,\n PipelineOperationsImpl,\n PipelineRunOperationsImpl,\n SparkJobDefinitionOperationsImpl,\n SqlPoolsImpl,\n SqlScriptOperationsImpl,\n TriggerOperationsImpl,\n TriggerRunOperationsImpl,\n WorkspaceOperationsImpl,\n} from \"./operations/index.js\";\nimport type {\n LinkConnectionOperations,\n RunNotebook,\n KqlScripts,\n KqlScriptOperations,\n Metastore,\n SparkConfigurationOperations,\n BigDataPools,\n DataFlowOperations,\n DataFlowDebugSession,\n DatasetOperations,\n WorkspaceGitRepoManagement,\n IntegrationRuntimes,\n Library,\n LinkedServiceOperations,\n NotebookOperations,\n NotebookOperationResult,\n PipelineOperations,\n PipelineRunOperations,\n SparkJobDefinitionOperations,\n SqlPools,\n SqlScriptOperations,\n TriggerOperations,\n TriggerRunOperations,\n WorkspaceOperations,\n} from \"./operationsInterfaces/index.js\";\nimport type { ArtifactsClientOptionalParams } from \"./models/index.js\";\n\nexport class ArtifactsClient extends coreClient.ServiceClient {\n endpoint: string;\n\n /**\n * Initializes a new instance of the ArtifactsClient class.\n * @param credentials - Subscription credentials which uniquely identify client subscription.\n * @param endpoint - The workspace development endpoint, for example\n * `https://myworkspace.dev.azuresynapse.net`.\n * @param options - The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n endpoint: string,\n options?: ArtifactsClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (endpoint === undefined) {\n throw new Error(\"'endpoint' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ArtifactsClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-synapse-artifacts/1.0.0-beta.16`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n if (!options.credentialScopes) {\n options.credentialScopes = [\"https://dev.azuresynapse.net/.default\"];\n }\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint: options.endpoint ?? options.baseUri ?? \"{endpoint}\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length === 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.endpoint = endpoint;\n this.linkConnectionOperations = new LinkConnectionOperationsImpl(this);\n this.runNotebook = new RunNotebookImpl(this);\n this.kqlScripts = new KqlScriptsImpl(this);\n this.kqlScriptOperations = new KqlScriptOperationsImpl(this);\n this.metastore = new MetastoreImpl(this);\n this.sparkConfigurationOperations = new SparkConfigurationOperationsImpl(this);\n this.bigDataPools = new BigDataPoolsImpl(this);\n this.dataFlowOperations = new DataFlowOperationsImpl(this);\n this.dataFlowDebugSession = new DataFlowDebugSessionImpl(this);\n this.datasetOperations = new DatasetOperationsImpl(this);\n this.workspaceGitRepoManagement = new WorkspaceGitRepoManagementImpl(this);\n this.integrationRuntimes = new IntegrationRuntimesImpl(this);\n this.library = new LibraryImpl(this);\n this.linkedServiceOperations = new LinkedServiceOperationsImpl(this);\n this.notebookOperations = new NotebookOperationsImpl(this);\n this.notebookOperationResult = new NotebookOperationResultImpl(this);\n this.pipelineOperations = new PipelineOperationsImpl(this);\n this.pipelineRunOperations = new PipelineRunOperationsImpl(this);\n this.sparkJobDefinitionOperations = new SparkJobDefinitionOperationsImpl(this);\n this.sqlPools = new SqlPoolsImpl(this);\n this.sqlScriptOperations = new SqlScriptOperationsImpl(this);\n this.triggerOperations = new TriggerOperationsImpl(this);\n this.triggerRunOperations = new TriggerRunOperationsImpl(this);\n this.workspaceOperations = new WorkspaceOperationsImpl(this);\n }\n\n linkConnectionOperations: LinkConnectionOperations;\n runNotebook: RunNotebook;\n kqlScripts: KqlScripts;\n kqlScriptOperations: KqlScriptOperations;\n metastore: Metastore;\n sparkConfigurationOperations: SparkConfigurationOperations;\n bigDataPools: BigDataPools;\n dataFlowOperations: DataFlowOperations;\n dataFlowDebugSession: DataFlowDebugSession;\n datasetOperations: DatasetOperations;\n workspaceGitRepoManagement: WorkspaceGitRepoManagement;\n integrationRuntimes: IntegrationRuntimes;\n library: Library;\n linkedServiceOperations: LinkedServiceOperations;\n notebookOperations: NotebookOperations;\n notebookOperationResult: NotebookOperationResult;\n pipelineOperations: PipelineOperations;\n pipelineRunOperations: PipelineRunOperations;\n sparkJobDefinitionOperations: SparkJobDefinitionOperations;\n sqlPools: SqlPools;\n sqlScriptOperations: SqlScriptOperations;\n triggerOperations: TriggerOperations;\n triggerRunOperations: TriggerRunOperations;\n workspaceOperations: WorkspaceOperations;\n}\n"]}
@@ -5,7 +5,6 @@
5
5
  * Code generated by Microsoft (R) AutoRest Code Generator.
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
- import { __rest } from "tslib";
9
8
  export function createLroSpec(inputs) {
10
9
  const { args, spec, sendOperationFn } = inputs;
11
10
  return {
@@ -13,8 +12,13 @@ export function createLroSpec(inputs) {
13
12
  requestPath: spec.path,
14
13
  sendInitialRequest: () => sendOperationFn(args, spec),
15
14
  sendPollRequest: (path, options) => {
16
- const { requestBody } = spec, restSpec = __rest(spec, ["requestBody"]);
17
- return sendOperationFn(args, Object.assign(Object.assign({}, restSpec), { httpMethod: "GET", path, abortSignal: options === null || options === void 0 ? void 0 : options.abortSignal }));
15
+ const { requestBody, ...restSpec } = spec;
16
+ return sendOperationFn(args, {
17
+ ...restSpec,
18
+ httpMethod: "GET",
19
+ path,
20
+ abortSignal: options?.abortSignal,
21
+ });
18
22
  },
19
23
  };
20
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAKH,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CAAC,IAAY,EAAE,OAA2C,EAAE,EAAE;YAC7E,MAAM,EAAE,WAAW,KAAkB,IAAI,EAAjB,QAAQ,UAAK,IAAI,EAAnC,eAA4B,CAAO,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,kCACtB,QAAQ,KACX,UAAU,EAAE,KAAK,EACjB,IAAI,EACJ,WAAW,EAAE,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,WAAW,IACjC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\nimport type { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (path: string, options?: { abortSignal?: AbortSignalLike }) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}
1
+ {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CAAC,IAAY,EAAE,OAA2C,EAAE,EAAE;YAC7E,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,EAAE;gBAC3B,GAAG,QAAQ;gBACX,UAAU,EAAE,KAAK;gBACjB,IAAI;gBACJ,WAAW,EAAE,OAAO,EAAE,WAAW;aAClC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\nimport type { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (path: string, options?: { abortSignal?: AbortSignalLike }) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}