@azure/synapse-artifacts 1.0.0-beta.4 → 1.0.0-beta.8

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 (170) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/README.md +6 -4
  3. package/dist/index.js +18462 -16154
  4. package/dist/index.js.map +1 -1
  5. package/dist-esm/src/artifactsClient.js +20 -15
  6. package/dist-esm/src/artifactsClient.js.map +1 -1
  7. package/dist-esm/src/artifactsClientContext.js +14 -37
  8. package/dist-esm/src/artifactsClientContext.js.map +1 -1
  9. package/dist-esm/src/index.js +1 -2
  10. package/dist-esm/src/index.js.map +1 -1
  11. package/dist-esm/src/lroImpl.js +25 -0
  12. package/dist-esm/src/lroImpl.js.map +1 -0
  13. package/dist-esm/src/models/index.js +767 -1
  14. package/dist-esm/src/models/index.js.map +1 -1
  15. package/dist-esm/src/models/mappers.js +8083 -7446
  16. package/dist-esm/src/models/mappers.js.map +1 -1
  17. package/dist-esm/src/models/parameters.js +259 -165
  18. package/dist-esm/src/models/parameters.js.map +1 -1
  19. package/dist-esm/src/operations/bigDataPools.js +38 -50
  20. package/dist-esm/src/operations/bigDataPools.js.map +1 -1
  21. package/dist-esm/src/operations/dataFlowDebugSession.js +165 -153
  22. package/dist-esm/src/operations/dataFlowDebugSession.js.map +1 -1
  23. package/dist-esm/src/operations/dataFlowOperations.js +433 -0
  24. package/dist-esm/src/operations/dataFlowOperations.js.map +1 -0
  25. package/dist-esm/src/operations/datasetOperations.js +433 -0
  26. package/dist-esm/src/operations/datasetOperations.js.map +1 -0
  27. package/dist-esm/src/operations/index.js +19 -14
  28. package/dist-esm/src/operations/index.js.map +1 -1
  29. package/dist-esm/src/operations/integrationRuntimes.js +38 -50
  30. package/dist-esm/src/operations/integrationRuntimes.js.map +1 -1
  31. package/dist-esm/src/operations/kqlScriptOperations.js +303 -0
  32. package/dist-esm/src/operations/kqlScriptOperations.js.map +1 -0
  33. package/dist-esm/src/operations/kqlScripts.js +150 -0
  34. package/dist-esm/src/operations/kqlScripts.js.map +1 -0
  35. package/dist-esm/src/operations/library.js +222 -194
  36. package/dist-esm/src/operations/library.js.map +1 -1
  37. package/dist-esm/src/operations/linkedServiceOperations.js +434 -0
  38. package/dist-esm/src/operations/linkedServiceOperations.js.map +1 -0
  39. package/dist-esm/src/operations/metastore.js +182 -0
  40. package/dist-esm/src/operations/metastore.js.map +1 -0
  41. package/dist-esm/src/operations/notebookOperationResult.js +64 -0
  42. package/dist-esm/src/operations/notebookOperationResult.js.map +1 -0
  43. package/dist-esm/src/operations/notebookOperations.js +558 -0
  44. package/dist-esm/src/operations/notebookOperations.js.map +1 -0
  45. package/dist-esm/src/operations/pipelineOperations.js +479 -0
  46. package/dist-esm/src/operations/pipelineOperations.js.map +1 -0
  47. package/dist-esm/src/operations/pipelineRunOperations.js +185 -0
  48. package/dist-esm/src/operations/pipelineRunOperations.js.map +1 -0
  49. package/dist-esm/src/operations/sparkConfigurationOperations.js +434 -0
  50. package/dist-esm/src/operations/sparkConfigurationOperations.js.map +1 -0
  51. package/dist-esm/src/operations/sparkJobDefinitionOperations.js +602 -0
  52. package/dist-esm/src/operations/sparkJobDefinitionOperations.js.map +1 -0
  53. package/dist-esm/src/operations/sqlPools.js +38 -50
  54. package/dist-esm/src/operations/sqlPools.js.map +1 -1
  55. package/dist-esm/src/operations/sqlScriptOperations.js +434 -0
  56. package/dist-esm/src/operations/sqlScriptOperations.js.map +1 -0
  57. package/dist-esm/src/operations/triggerOperations.js +705 -0
  58. package/dist-esm/src/operations/triggerOperations.js.map +1 -0
  59. package/dist-esm/src/operations/triggerRunOperations.js +147 -0
  60. package/dist-esm/src/operations/triggerRunOperations.js.map +1 -0
  61. package/dist-esm/src/operations/workspaceGitRepoManagement.js +26 -29
  62. package/dist-esm/src/operations/workspaceGitRepoManagement.js.map +1 -1
  63. package/dist-esm/src/operations/workspaceOperations.js +62 -0
  64. package/dist-esm/src/operations/workspaceOperations.js.map +1 -0
  65. package/dist-esm/src/operationsInterfaces/bigDataPools.js.map +1 -1
  66. package/dist-esm/src/operationsInterfaces/dataFlowDebugSession.js +1 -1
  67. package/dist-esm/src/operationsInterfaces/dataFlowDebugSession.js.map +1 -1
  68. package/dist-esm/src/operationsInterfaces/{dataset.js → dataFlowOperations.js} +2 -2
  69. package/dist-esm/src/operationsInterfaces/dataFlowOperations.js.map +1 -0
  70. package/dist-esm/src/operationsInterfaces/{pipelineRun.js → datasetOperations.js} +1 -1
  71. package/dist-esm/src/operationsInterfaces/datasetOperations.js.map +1 -0
  72. package/dist-esm/src/operationsInterfaces/index.js +19 -14
  73. package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
  74. package/dist-esm/src/operationsInterfaces/integrationRuntimes.js.map +1 -1
  75. package/dist-esm/src/operationsInterfaces/kqlScriptOperations.js +9 -0
  76. package/dist-esm/src/operationsInterfaces/kqlScriptOperations.js.map +1 -0
  77. package/dist-esm/src/operationsInterfaces/{triggerRun.js → kqlScripts.js} +1 -1
  78. package/dist-esm/src/operationsInterfaces/kqlScripts.js.map +1 -0
  79. package/dist-esm/src/operationsInterfaces/library.js +1 -1
  80. package/dist-esm/src/operationsInterfaces/library.js.map +1 -1
  81. package/dist-esm/src/operationsInterfaces/linkedServiceOperations.js +9 -0
  82. package/dist-esm/src/operationsInterfaces/linkedServiceOperations.js.map +1 -0
  83. package/dist-esm/src/operationsInterfaces/{workspace.js → metastore.js} +1 -1
  84. package/dist-esm/src/operationsInterfaces/metastore.js.map +1 -0
  85. package/dist-esm/src/operationsInterfaces/notebookOperationResult.js +9 -0
  86. package/dist-esm/src/operationsInterfaces/notebookOperationResult.js.map +1 -0
  87. package/dist-esm/src/operationsInterfaces/notebookOperations.js +9 -0
  88. package/dist-esm/src/operationsInterfaces/notebookOperations.js.map +1 -0
  89. package/dist-esm/src/operationsInterfaces/pipelineOperations.js +9 -0
  90. package/dist-esm/src/operationsInterfaces/pipelineOperations.js.map +1 -0
  91. package/dist-esm/src/operationsInterfaces/pipelineRunOperations.js +9 -0
  92. package/dist-esm/src/operationsInterfaces/pipelineRunOperations.js.map +1 -0
  93. package/dist-esm/src/operationsInterfaces/{dataFlow.js → sparkConfigurationOperations.js} +2 -2
  94. package/dist-esm/src/operationsInterfaces/sparkConfigurationOperations.js.map +1 -0
  95. package/dist-esm/src/operationsInterfaces/sparkJobDefinitionOperations.js +9 -0
  96. package/dist-esm/src/operationsInterfaces/sparkJobDefinitionOperations.js.map +1 -0
  97. package/dist-esm/src/operationsInterfaces/sqlPools.js.map +1 -1
  98. package/dist-esm/src/operationsInterfaces/sqlScriptOperations.js +9 -0
  99. package/dist-esm/src/operationsInterfaces/sqlScriptOperations.js.map +1 -0
  100. package/dist-esm/src/operationsInterfaces/triggerOperations.js +9 -0
  101. package/dist-esm/src/operationsInterfaces/triggerOperations.js.map +1 -0
  102. package/dist-esm/src/operationsInterfaces/triggerRunOperations.js +9 -0
  103. package/dist-esm/src/operationsInterfaces/triggerRunOperations.js.map +1 -0
  104. package/dist-esm/src/operationsInterfaces/workspaceOperations.js +9 -0
  105. package/dist-esm/src/operationsInterfaces/workspaceOperations.js.map +1 -0
  106. package/package.json +20 -30
  107. package/types/synapse-artifacts.d.ts +2037 -1319
  108. package/dist-esm/src/lro/azureAsyncOperationStrategy.js +0 -149
  109. package/dist-esm/src/lro/azureAsyncOperationStrategy.js.map +0 -1
  110. package/dist-esm/src/lro/bodyPollingStrategy.js +0 -45
  111. package/dist-esm/src/lro/bodyPollingStrategy.js.map +0 -1
  112. package/dist-esm/src/lro/constants.js +0 -9
  113. package/dist-esm/src/lro/constants.js.map +0 -1
  114. package/dist-esm/src/lro/index.js +0 -15
  115. package/dist-esm/src/lro/index.js.map +0 -1
  116. package/dist-esm/src/lro/locationStrategy.js +0 -54
  117. package/dist-esm/src/lro/locationStrategy.js.map +0 -1
  118. package/dist-esm/src/lro/lroPolicy.js +0 -32
  119. package/dist-esm/src/lro/lroPolicy.js.map +0 -1
  120. package/dist-esm/src/lro/lroPoller.js +0 -74
  121. package/dist-esm/src/lro/lroPoller.js.map +0 -1
  122. package/dist-esm/src/lro/models.js +0 -9
  123. package/dist-esm/src/lro/models.js.map +0 -1
  124. package/dist-esm/src/lro/operation.js +0 -72
  125. package/dist-esm/src/lro/operation.js.map +0 -1
  126. package/dist-esm/src/lro/passthroughStrategy.js +0 -27
  127. package/dist-esm/src/lro/passthroughStrategy.js.map +0 -1
  128. package/dist-esm/src/lro/requestUtils.js +0 -82
  129. package/dist-esm/src/lro/requestUtils.js.map +0 -1
  130. package/dist-esm/src/operations/dataFlow.js +0 -391
  131. package/dist-esm/src/operations/dataFlow.js.map +0 -1
  132. package/dist-esm/src/operations/dataset.js +0 -391
  133. package/dist-esm/src/operations/dataset.js.map +0 -1
  134. package/dist-esm/src/operations/linkedService.js +0 -392
  135. package/dist-esm/src/operations/linkedService.js.map +0 -1
  136. package/dist-esm/src/operations/notebook.js +0 -527
  137. package/dist-esm/src/operations/notebook.js.map +0 -1
  138. package/dist-esm/src/operations/pipeline.js +0 -443
  139. package/dist-esm/src/operations/pipeline.js.map +0 -1
  140. package/dist-esm/src/operations/pipelineRun.js +0 -208
  141. package/dist-esm/src/operations/pipelineRun.js.map +0 -1
  142. package/dist-esm/src/operations/sparkJobDefinition.js +0 -520
  143. package/dist-esm/src/operations/sparkJobDefinition.js.map +0 -1
  144. package/dist-esm/src/operations/sqlScript.js +0 -392
  145. package/dist-esm/src/operations/sqlScript.js.map +0 -1
  146. package/dist-esm/src/operations/trigger.js +0 -609
  147. package/dist-esm/src/operations/trigger.js.map +0 -1
  148. package/dist-esm/src/operations/triggerRun.js +0 -160
  149. package/dist-esm/src/operations/triggerRun.js.map +0 -1
  150. package/dist-esm/src/operations/workspace.js +0 -68
  151. package/dist-esm/src/operations/workspace.js.map +0 -1
  152. package/dist-esm/src/operationsInterfaces/dataFlow.js.map +0 -1
  153. package/dist-esm/src/operationsInterfaces/dataset.js.map +0 -1
  154. package/dist-esm/src/operationsInterfaces/linkedService.js +0 -9
  155. package/dist-esm/src/operationsInterfaces/linkedService.js.map +0 -1
  156. package/dist-esm/src/operationsInterfaces/notebook.js +0 -9
  157. package/dist-esm/src/operationsInterfaces/notebook.js.map +0 -1
  158. package/dist-esm/src/operationsInterfaces/pipeline.js +0 -9
  159. package/dist-esm/src/operationsInterfaces/pipeline.js.map +0 -1
  160. package/dist-esm/src/operationsInterfaces/pipelineRun.js.map +0 -1
  161. package/dist-esm/src/operationsInterfaces/sparkJobDefinition.js +0 -9
  162. package/dist-esm/src/operationsInterfaces/sparkJobDefinition.js.map +0 -1
  163. package/dist-esm/src/operationsInterfaces/sqlScript.js +0 -9
  164. package/dist-esm/src/operationsInterfaces/sqlScript.js.map +0 -1
  165. package/dist-esm/src/operationsInterfaces/trigger.js +0 -9
  166. package/dist-esm/src/operationsInterfaces/trigger.js.map +0 -1
  167. package/dist-esm/src/operationsInterfaces/triggerRun.js.map +0 -1
  168. package/dist-esm/src/operationsInterfaces/workspace.js.map +0 -1
  169. package/dist-esm/src/utils/constants.js +0 -9
  170. package/dist-esm/src/utils/constants.js.map +0 -1
@@ -5,7 +5,7 @@
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 { LinkedServiceImpl, DatasetImpl, PipelineImpl, PipelineRunImpl, TriggerImpl, TriggerRunImpl, DataFlowImpl, DataFlowDebugSessionImpl, SqlScriptImpl, SparkJobDefinitionImpl, NotebookImpl, WorkspaceImpl, SqlPoolsImpl, BigDataPoolsImpl, IntegrationRuntimesImpl, LibraryImpl, WorkspaceGitRepoManagementImpl } from "./operations";
8
+ import { KqlScriptsImpl, KqlScriptOperationsImpl, MetastoreImpl, SparkConfigurationOperationsImpl, BigDataPoolsImpl, DataFlowOperationsImpl, DataFlowDebugSessionImpl, DatasetOperationsImpl, WorkspaceGitRepoManagementImpl, IntegrationRuntimesImpl, LibraryImpl, LinkedServiceOperationsImpl, NotebookOperationsImpl, NotebookOperationResultImpl, PipelineOperationsImpl, PipelineRunOperationsImpl, SparkJobDefinitionOperationsImpl, SqlPoolsImpl, SqlScriptOperationsImpl, TriggerOperationsImpl, TriggerRunOperationsImpl, WorkspaceOperationsImpl } from "./operations";
9
9
  import { ArtifactsClientContext } from "./artifactsClientContext";
10
10
  export class ArtifactsClient extends ArtifactsClientContext {
11
11
  /**
@@ -17,23 +17,28 @@ export class ArtifactsClient extends ArtifactsClientContext {
17
17
  */
18
18
  constructor(credentials, endpoint, options) {
19
19
  super(credentials, endpoint, options);
20
- this.linkedService = new LinkedServiceImpl(this);
21
- this.dataset = new DatasetImpl(this);
22
- this.pipeline = new PipelineImpl(this);
23
- this.pipelineRun = new PipelineRunImpl(this);
24
- this.trigger = new TriggerImpl(this);
25
- this.triggerRun = new TriggerRunImpl(this);
26
- this.dataFlow = new DataFlowImpl(this);
27
- this.dataFlowDebugSession = new DataFlowDebugSessionImpl(this);
28
- this.sqlScript = new SqlScriptImpl(this);
29
- this.sparkJobDefinition = new SparkJobDefinitionImpl(this);
30
- this.notebook = new NotebookImpl(this);
31
- this.workspace = new WorkspaceImpl(this);
32
- this.sqlPools = new SqlPoolsImpl(this);
20
+ this.kqlScripts = new KqlScriptsImpl(this);
21
+ this.kqlScriptOperations = new KqlScriptOperationsImpl(this);
22
+ this.metastore = new MetastoreImpl(this);
23
+ this.sparkConfigurationOperations = new SparkConfigurationOperationsImpl(this);
33
24
  this.bigDataPools = new BigDataPoolsImpl(this);
25
+ this.dataFlowOperations = new DataFlowOperationsImpl(this);
26
+ this.dataFlowDebugSession = new DataFlowDebugSessionImpl(this);
27
+ this.datasetOperations = new DatasetOperationsImpl(this);
28
+ this.workspaceGitRepoManagement = new WorkspaceGitRepoManagementImpl(this);
34
29
  this.integrationRuntimes = new IntegrationRuntimesImpl(this);
35
30
  this.library = new LibraryImpl(this);
36
- this.workspaceGitRepoManagement = new WorkspaceGitRepoManagementImpl(this);
31
+ this.linkedServiceOperations = new LinkedServiceOperationsImpl(this);
32
+ this.notebookOperations = new NotebookOperationsImpl(this);
33
+ this.notebookOperationResult = new NotebookOperationResultImpl(this);
34
+ this.pipelineOperations = new PipelineOperationsImpl(this);
35
+ this.pipelineRunOperations = new PipelineRunOperationsImpl(this);
36
+ this.sparkJobDefinitionOperations = new SparkJobDefinitionOperationsImpl(this);
37
+ this.sqlPools = new SqlPoolsImpl(this);
38
+ this.sqlScriptOperations = new SqlScriptOperationsImpl(this);
39
+ this.triggerOperations = new TriggerOperationsImpl(this);
40
+ this.triggerRunOperations = new TriggerRunOperationsImpl(this);
41
+ this.workspaceOperations = new WorkspaceOperationsImpl(this);
37
42
  }
38
43
  }
39
44
  //# sourceMappingURL=artifactsClient.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"artifactsClient.js","sourceRoot":"","sources":["../../src/artifactsClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EACL,iBAAiB,EACjB,WAAW,EACX,YAAY,EACZ,eAAe,EACf,WAAW,EACX,cAAc,EACd,YAAY,EACZ,wBAAwB,EACxB,aAAa,EACb,sBAAsB,EACtB,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,uBAAuB,EACvB,WAAW,EACX,8BAA8B,EAC/B,MAAM,cAAc,CAAC;AAoBtB,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,MAAM,OAAO,eAAgB,SAAQ,sBAAsB;IACzD;;;;;;OAMG;IACH,YACE,WAAyE,EACzE,QAAgB,EAChB,OAAuC;QAEvC,KAAK,CAAC,WAAW,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;QACtC,IAAI,CAAC,aAAa,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,CAAC;QACjD,IAAI,CAAC,OAAO,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,QAAQ,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,WAAW,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,CAAC;QAC7C,IAAI,CAAC,OAAO,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,QAAQ,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,oBAAoB,GAAG,IAAI,wBAAwB,CAAC,IAAI,CAAC,CAAC;QAC/D,IAAI,CAAC,SAAS,GAAG,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,kBAAkB,GAAG,IAAI,sBAAsB,CAAC,IAAI,CAAC,CAAC;QAC3D,IAAI,CAAC,QAAQ,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,SAAS,GAAG,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,QAAQ,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,YAAY,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,mBAAmB,GAAG,IAAI,uBAAuB,CAAC,IAAI,CAAC,CAAC;QAC7D,IAAI,CAAC,OAAO,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,0BAA0B,GAAG,IAAI,8BAA8B,CAAC,IAAI,CAAC,CAAC;IAC7E,CAAC;CAmBF","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 coreHttp from \"@azure/core-http\";\nimport {\n LinkedServiceImpl,\n DatasetImpl,\n PipelineImpl,\n PipelineRunImpl,\n TriggerImpl,\n TriggerRunImpl,\n DataFlowImpl,\n DataFlowDebugSessionImpl,\n SqlScriptImpl,\n SparkJobDefinitionImpl,\n NotebookImpl,\n WorkspaceImpl,\n SqlPoolsImpl,\n BigDataPoolsImpl,\n IntegrationRuntimesImpl,\n LibraryImpl,\n WorkspaceGitRepoManagementImpl\n} from \"./operations\";\nimport {\n LinkedService,\n Dataset,\n Pipeline,\n PipelineRun,\n Trigger,\n TriggerRun,\n DataFlow,\n DataFlowDebugSession,\n SqlScript,\n SparkJobDefinition,\n Notebook,\n Workspace,\n SqlPools,\n BigDataPools,\n IntegrationRuntimes,\n Library,\n WorkspaceGitRepoManagement\n} from \"./operationsInterfaces\";\nimport { ArtifactsClientContext } from \"./artifactsClientContext\";\nimport { ArtifactsClientOptionalParams } from \"./models\";\n\nexport class ArtifactsClient extends ArtifactsClientContext {\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: coreHttp.TokenCredential | coreHttp.ServiceClientCredentials,\n endpoint: string,\n options?: ArtifactsClientOptionalParams\n ) {\n super(credentials, endpoint, options);\n this.linkedService = new LinkedServiceImpl(this);\n this.dataset = new DatasetImpl(this);\n this.pipeline = new PipelineImpl(this);\n this.pipelineRun = new PipelineRunImpl(this);\n this.trigger = new TriggerImpl(this);\n this.triggerRun = new TriggerRunImpl(this);\n this.dataFlow = new DataFlowImpl(this);\n this.dataFlowDebugSession = new DataFlowDebugSessionImpl(this);\n this.sqlScript = new SqlScriptImpl(this);\n this.sparkJobDefinition = new SparkJobDefinitionImpl(this);\n this.notebook = new NotebookImpl(this);\n this.workspace = new WorkspaceImpl(this);\n this.sqlPools = new SqlPoolsImpl(this);\n this.bigDataPools = new BigDataPoolsImpl(this);\n this.integrationRuntimes = new IntegrationRuntimesImpl(this);\n this.library = new LibraryImpl(this);\n this.workspaceGitRepoManagement = new WorkspaceGitRepoManagementImpl(this);\n }\n\n linkedService: LinkedService;\n dataset: Dataset;\n pipeline: Pipeline;\n pipelineRun: PipelineRun;\n trigger: Trigger;\n triggerRun: TriggerRun;\n dataFlow: DataFlow;\n dataFlowDebugSession: DataFlowDebugSession;\n sqlScript: SqlScript;\n sparkJobDefinition: SparkJobDefinition;\n notebook: Notebook;\n workspace: Workspace;\n sqlPools: SqlPools;\n bigDataPools: BigDataPools;\n integrationRuntimes: IntegrationRuntimes;\n library: Library;\n workspaceGitRepoManagement: WorkspaceGitRepoManagement;\n}\n"]}
1
+ {"version":3,"file":"artifactsClient.js","sourceRoot":"","sources":["../../src/artifactsClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EACL,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,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,EACxB,MAAM,cAAc,CAAC;AAyBtB,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAGlE,MAAM,OAAO,eAAgB,SAAQ,sBAAsB;IACzD;;;;;;OAMG;IACH,YACE,WAAqC,EACrC,QAAgB,EAChB,OAAuC;QAEvC,KAAK,CAAC,WAAW,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;QACtC,IAAI,CAAC,UAAU,GAAG,IAAI,cAAc,CAAC,IAAI,CAAC,CAAC;QAC3C,IAAI,CAAC,mBAAmB,GAAG,IAAI,uBAAuB,CAAC,IAAI,CAAC,CAAC;QAC7D,IAAI,CAAC,SAAS,GAAG,IAAI,aAAa,CAAC,IAAI,CAAC,CAAC;QACzC,IAAI,CAAC,4BAA4B,GAAG,IAAI,gCAAgC,CACtE,IAAI,CACL,CAAC;QACF,IAAI,CAAC,YAAY,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC;QAC/C,IAAI,CAAC,kBAAkB,GAAG,IAAI,sBAAsB,CAAC,IAAI,CAAC,CAAC;QAC3D,IAAI,CAAC,oBAAoB,GAAG,IAAI,wBAAwB,CAAC,IAAI,CAAC,CAAC;QAC/D,IAAI,CAAC,iBAAiB,GAAG,IAAI,qBAAqB,CAAC,IAAI,CAAC,CAAC;QACzD,IAAI,CAAC,0BAA0B,GAAG,IAAI,8BAA8B,CAAC,IAAI,CAAC,CAAC;QAC3E,IAAI,CAAC,mBAAmB,GAAG,IAAI,uBAAuB,CAAC,IAAI,CAAC,CAAC;QAC7D,IAAI,CAAC,OAAO,GAAG,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC;QACrC,IAAI,CAAC,uBAAuB,GAAG,IAAI,2BAA2B,CAAC,IAAI,CAAC,CAAC;QACrE,IAAI,CAAC,kBAAkB,GAAG,IAAI,sBAAsB,CAAC,IAAI,CAAC,CAAC;QAC3D,IAAI,CAAC,uBAAuB,GAAG,IAAI,2BAA2B,CAAC,IAAI,CAAC,CAAC;QACrE,IAAI,CAAC,kBAAkB,GAAG,IAAI,sBAAsB,CAAC,IAAI,CAAC,CAAC;QAC3D,IAAI,CAAC,qBAAqB,GAAG,IAAI,yBAAyB,CAAC,IAAI,CAAC,CAAC;QACjE,IAAI,CAAC,4BAA4B,GAAG,IAAI,gCAAgC,CACtE,IAAI,CACL,CAAC;QACF,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;CAwBF","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 coreAuth from \"@azure/core-auth\";\nimport {\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\";\nimport {\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\";\nimport { ArtifactsClientContext } from \"./artifactsClientContext\";\nimport { ArtifactsClientOptionalParams } from \"./models\";\n\nexport class ArtifactsClient extends ArtifactsClientContext {\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 super(credentials, endpoint, options);\n this.kqlScripts = new KqlScriptsImpl(this);\n this.kqlScriptOperations = new KqlScriptOperationsImpl(this);\n this.metastore = new MetastoreImpl(this);\n this.sparkConfigurationOperations = new SparkConfigurationOperationsImpl(\n this\n );\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(\n this\n );\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 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,11 +5,8 @@
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 * as coreHttp from "@azure/core-http";
9
- import { lroPolicy } from "./lro";
10
- const packageName = "@azure/synapse-artifacts";
11
- const packageVersion = "1.0.0-beta.4";
12
- export class ArtifactsClientContext extends coreHttp.ServiceClient {
8
+ import * as coreClient from "@azure/core-client";
9
+ export class ArtifactsClientContext extends coreClient.ServiceClient {
13
10
  /**
14
11
  * Initializes a new instance of the ArtifactsClientContext class.
15
12
  * @param credentials Subscription credentials which uniquely identify client subscription.
@@ -28,43 +25,23 @@ export class ArtifactsClientContext extends coreHttp.ServiceClient {
28
25
  if (!options) {
29
26
  options = {};
30
27
  }
31
- if (!options.userAgent) {
32
- const defaultUserAgent = coreHttp.getDefaultUserAgentValue();
33
- options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;
34
- }
28
+ const defaults = {
29
+ requestContentType: "application/json; charset=utf-8",
30
+ credential: credentials
31
+ };
32
+ const packageDetails = `azsdk-js-synapse-artifacts/1.0.0-beta.8`;
33
+ const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
34
+ ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
35
+ : `${packageDetails}`;
35
36
  if (!options.credentialScopes) {
36
37
  options.credentialScopes = ["https://dev.azuresynapse.net/.default"];
37
38
  }
38
- // Building the request policy fatories based on the passed factories and the
39
- // any required factories needed by the client.
40
- if (Array.isArray(options.requestPolicyFactories)) {
41
- // When an array of factories is passed in, we'll just add the required factories,
42
- // in this case lroPolicy(). It is important to note that passing an array of factories
43
- // to a new client, bypasses core-http default factories. Just the pipelines provided will be run.
44
- options.requestPolicyFactories = [lroPolicy(), ...options.requestPolicyFactories];
45
- }
46
- else if (options.requestPolicyFactories) {
47
- // When we were passed a requestPolicyFactories as a function, we'll create a new one that adds the factories provided
48
- // in the options plus the required policies. When using this path, the pipelines passed to the client will be added to the
49
- // default policies added by core-http
50
- const optionsPolicies = options.requestPolicyFactories([lroPolicy()]) || [lroPolicy()];
51
- options.requestPolicyFactories = (defaultFactories) => [
52
- ...optionsPolicies,
53
- ...defaultFactories
54
- ];
55
- }
56
- else {
57
- // In case no request policy factories were provided, we'll just need to create a function that will add
58
- // the lroPolicy to the default pipelines added by core-http
59
- options.requestPolicyFactories = (defaultFactories) => [lroPolicy(), ...defaultFactories];
60
- }
61
- super(credentials, options);
62
- this.requestContentType = "application/json; charset=utf-8";
63
- this.baseUri = options.endpoint || "{endpoint}";
39
+ const optionsWithDefaults = Object.assign(Object.assign(Object.assign({}, defaults), options), { userAgentOptions: {
40
+ userAgentPrefix
41
+ }, baseUri: options.endpoint || "{endpoint}" });
42
+ super(optionsWithDefaults);
64
43
  // Parameter assignments
65
44
  this.endpoint = endpoint;
66
- // Assigning values to Constant parameters
67
- this.apiVersion = options.apiVersion || "2019-06-01-preview";
68
45
  }
69
46
  }
70
47
  //# sourceMappingURL=artifactsClientContext.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"artifactsClientContext.js","sourceRoot":"","sources":["../../src/artifactsClientContext.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAE7C,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,MAAM,WAAW,GAAG,0BAA0B,CAAC;AAC/C,MAAM,cAAc,GAAG,cAAc,CAAC;AAEtC,MAAM,OAAO,sBAAuB,SAAQ,QAAQ,CAAC,aAAa;IAIhE;;;;;;OAMG;IACH,YACE,WAAyE,EACzE,QAAgB,EAChB,OAAuC;QAEvC,IAAI,WAAW,KAAK,SAAS,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD;QACD,IAAI,QAAQ,KAAK,SAAS,EAAE;YAC1B,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;SAC9C;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QAED,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE;YACtB,MAAM,gBAAgB,GAAG,QAAQ,CAAC,wBAAwB,EAAE,CAAC;YAC7D,OAAO,CAAC,SAAS,GAAG,GAAG,WAAW,IAAI,cAAc,IAAI,gBAAgB,EAAE,CAAC;SAC5E;QAED,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE;YAC7B,OAAO,CAAC,gBAAgB,GAAG,CAAC,uCAAuC,CAAC,CAAC;SACtE;QAED,6EAA6E;QAC7E,+CAA+C;QAC/C,IAAI,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,sBAAsB,CAAC,EAAE;YACjD,kFAAkF;YAClF,uFAAuF;YACvF,kGAAkG;YAClG,OAAO,CAAC,sBAAsB,GAAG,CAAC,SAAS,EAAE,EAAE,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;SACnF;aAAM,IAAI,OAAO,CAAC,sBAAsB,EAAE;YACzC,sHAAsH;YACtH,2HAA2H;YAC3H,sCAAsC;YACtC,MAAM,eAAe,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,SAAS,EAAE,CAAC,CAAC;YACvF,OAAO,CAAC,sBAAsB,GAAG,CAAC,gBAAgB,EAAE,EAAE,CAAC;gBACrD,GAAG,eAAe;gBAClB,GAAG,gBAAgB;aACpB,CAAC;SACH;aAAM;YACL,wGAAwG;YACxG,4DAA4D;YAC5D,OAAO,CAAC,sBAAsB,GAAG,CAAC,gBAAgB,EAAE,EAAE,CAAC,CAAC,SAAS,EAAE,EAAE,GAAG,gBAAgB,CAAC,CAAC;SAC3F;QAED,KAAK,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QAE5B,IAAI,CAAC,kBAAkB,GAAG,iCAAiC,CAAC;QAE5D,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,QAAQ,IAAI,YAAY,CAAC;QAEhD,wBAAwB;QACxB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QAEzB,0CAA0C;QAC1C,IAAI,CAAC,UAAU,GAAG,OAAO,CAAC,UAAU,IAAI,oBAAoB,CAAC;IAC/D,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreHttp from \"@azure/core-http\";\nimport { ArtifactsClientOptionalParams } from \"./models\";\nimport { lroPolicy } from \"./lro\";\n\nconst packageName = \"@azure/synapse-artifacts\";\nconst packageVersion = \"1.0.0-beta.4\";\n\nexport class ArtifactsClientContext extends coreHttp.ServiceClient {\n endpoint: string;\n apiVersion: string;\n\n /**\n * Initializes a new instance of the ArtifactsClientContext 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: coreHttp.TokenCredential | coreHttp.ServiceClientCredentials,\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\n if (!options.userAgent) {\n const defaultUserAgent = coreHttp.getDefaultUserAgentValue();\n options.userAgent = `${packageName}/${packageVersion} ${defaultUserAgent}`;\n }\n\n if (!options.credentialScopes) {\n options.credentialScopes = [\"https://dev.azuresynapse.net/.default\"];\n }\n\n // Building the request policy fatories based on the passed factories and the\n // any required factories needed by the client.\n if (Array.isArray(options.requestPolicyFactories)) {\n // When an array of factories is passed in, we'll just add the required factories,\n // in this case lroPolicy(). It is important to note that passing an array of factories\n // to a new client, bypasses core-http default factories. Just the pipelines provided will be run.\n options.requestPolicyFactories = [lroPolicy(), ...options.requestPolicyFactories];\n } else if (options.requestPolicyFactories) {\n // When we were passed a requestPolicyFactories as a function, we'll create a new one that adds the factories provided\n // in the options plus the required policies. When using this path, the pipelines passed to the client will be added to the\n // default policies added by core-http\n const optionsPolicies = options.requestPolicyFactories([lroPolicy()]) || [lroPolicy()];\n options.requestPolicyFactories = (defaultFactories) => [\n ...optionsPolicies,\n ...defaultFactories\n ];\n } else {\n // In case no request policy factories were provided, we'll just need to create a function that will add\n // the lroPolicy to the default pipelines added by core-http\n options.requestPolicyFactories = (defaultFactories) => [lroPolicy(), ...defaultFactories];\n }\n\n super(credentials, options);\n\n this.requestContentType = \"application/json; charset=utf-8\";\n\n this.baseUri = options.endpoint || \"{endpoint}\";\n\n // Parameter assignments\n this.endpoint = endpoint;\n\n // Assigning values to Constant parameters\n this.apiVersion = options.apiVersion || \"2019-06-01-preview\";\n }\n}\n"]}
1
+ {"version":3,"file":"artifactsClientContext.js","sourceRoot":"","sources":["../../src/artifactsClientContext.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAIjD,MAAM,OAAO,sBAAuB,SAAQ,UAAU,CAAC,aAAa;IAGlE;;;;;;OAMG;IACH,YACE,WAAqC,EACrC,QAAgB,EAChB,OAAuC;QAEvC,IAAI,WAAW,KAAK,SAAS,EAAE;YAC7B,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;SACjD;QACD,IAAI,QAAQ,KAAK,SAAS,EAAE;YAC1B,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;SAC9C;QAED,0CAA0C;QAC1C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,GAAG,EAAE,CAAC;SACd;QACD,MAAM,QAAQ,GAAkC;YAC9C,kBAAkB,EAAE,iCAAiC;YACrD,UAAU,EAAE,WAAW;SACxB,CAAC;QAEF,MAAM,cAAc,GAAG,yCAAyC,CAAC;QACjE,MAAM,eAAe,GACnB,OAAO,CAAC,gBAAgB,IAAI,OAAO,CAAC,gBAAgB,CAAC,eAAe;YAClE,CAAC,CAAC,GAAG,OAAO,CAAC,gBAAgB,CAAC,eAAe,IAAI,cAAc,EAAE;YACjE,CAAC,CAAC,GAAG,cAAc,EAAE,CAAC;QAE1B,IAAI,CAAC,OAAO,CAAC,gBAAgB,EAAE;YAC7B,OAAO,CAAC,gBAAgB,GAAG,CAAC,uCAAuC,CAAC,CAAC;SACtE;QACD,MAAM,mBAAmB,iDACpB,QAAQ,GACR,OAAO,KACV,gBAAgB,EAAE;gBAChB,eAAe;aAChB,EACD,OAAO,EAAE,OAAO,CAAC,QAAQ,IAAI,YAAY,GAC1C,CAAC;QACF,KAAK,CAAC,mBAAmB,CAAC,CAAC;QAC3B,wBAAwB;QACxB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreAuth from \"@azure/core-auth\";\nimport { ArtifactsClientOptionalParams } from \"./models\";\n\nexport class ArtifactsClientContext extends coreClient.ServiceClient {\n endpoint: string;\n\n /**\n * Initializes a new instance of the ArtifactsClientContext 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.8`;\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 baseUri: options.endpoint || \"{endpoint}\"\n };\n super(optionsWithDefaults);\n // Parameter assignments\n this.endpoint = endpoint;\n }\n}\n"]}
@@ -6,9 +6,8 @@
6
6
  * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
7
  */
8
8
  /// <reference lib="esnext.asynciterable" />
9
- import "@azure/core-paging";
10
9
  export * from "./models";
11
- export { LROPoller } from "./lro";
12
10
  export { ArtifactsClient } from "./artifactsClient";
13
11
  export { ArtifactsClientContext } from "./artifactsClientContext";
12
+ export * from "./operationsInterfaces";
14
13
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,4CAA4C;AAE5C,OAAO,oBAAoB,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,OAAO,EACL,SAAS,EAQV,MAAM,OAAO,CAAC;AAKf,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,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/// <reference lib=\"esnext.asynciterable\" />\n\nimport \"@azure/core-paging\";\nexport * from \"./models\";\nexport {\n LROPoller,\n LROPollerOptions,\n LROOperationStep,\n LROStrategy,\n LROResponseInfo,\n BaseResult,\n LROOperationState,\n SendOperationFn\n} from \"./lro\";\nexport { LROOperationResponse } from \"./lro/models\";\n\nexport { FinalStateVia } from \"./lro/models\";\n\nexport { ArtifactsClient } from \"./artifactsClient\";\nexport { ArtifactsClientContext } from \"./artifactsClientContext\";\nexport {\n Library as LibraryOperaion,\n BigDataPools as BigDataPoolsOperation,\n DataFlow as DataFlowOperation,\n DataFlowDebugSession as DataFlowDebugSessionOperation,\n Dataset as DatasetOperation,\n WorkspaceGitRepoManagement as WorkspaceGitRepoManagementOperation,\n Workspace as WorkspaceOperation,\n TriggerRun as TriggerRunOperation,\n Trigger as TriggerOperation,\n SqlScript as SqlScriptOperation,\n SqlPools as SqlPoolsOperation,\n SparkJobDefinition as SparkJobDefinitionOperation,\n PipelineRun as PipelineRunOperation,\n Pipeline as PipelineOperation,\n Notebook as NotebookOperation,\n LinkedService as LinkedServiceOperation,\n IntegrationRuntimes as IntegrationRuntimesOperation\n} from \"./operationsInterfaces\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,4CAA4C;AAC5C,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAClE,cAAc,wBAAwB,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\n/// <reference lib=\"esnext.asynciterable\" />\nexport * from \"./models\";\nexport { ArtifactsClient } from \"./artifactsClient\";\nexport { ArtifactsClientContext } from \"./artifactsClientContext\";\nexport * from \"./operationsInterfaces\";\n"]}
@@ -0,0 +1,25 @@
1
+ /*
2
+ * Copyright (c) Microsoft Corporation.
3
+ * Licensed under the MIT License.
4
+ *
5
+ * Code generated by Microsoft (R) AutoRest Code Generator.
6
+ * Changes may cause incorrect behavior and will be lost if the code is regenerated.
7
+ */
8
+ import { __rest } from "tslib";
9
+ export class LroImpl {
10
+ constructor(sendOperationFn, args, spec, requestPath = spec.path, requestMethod = spec.httpMethod) {
11
+ this.sendOperationFn = sendOperationFn;
12
+ this.args = args;
13
+ this.spec = spec;
14
+ this.requestPath = requestPath;
15
+ this.requestMethod = requestMethod;
16
+ }
17
+ async sendInitialRequest() {
18
+ return this.sendOperationFn(this.args, this.spec);
19
+ }
20
+ async sendPollRequest(path) {
21
+ const _a = this.spec, { requestBody } = _a, restSpec = __rest(_a, ["requestBody"]);
22
+ return this.sendOperationFn(this.args, Object.assign(Object.assign({}, restSpec), { path, httpMethod: "GET" }));
23
+ }
24
+ }
25
+ //# sourceMappingURL=lroImpl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAIH,MAAM,OAAO,OAAO;IAClB,YACU,eAAkE,EAClE,IAA6B,EAC7B,IAIe,EAChB,cAAsB,IAAI,CAAC,IAAK,EAChC,gBAAwB,IAAI,CAAC,UAAU;QARtC,oBAAe,GAAf,eAAe,CAAmD;QAClE,SAAI,GAAJ,IAAI,CAAyB;QAC7B,SAAI,GAAJ,IAAI,CAIW;QAChB,gBAAW,GAAX,WAAW,CAAqB;QAChC,kBAAa,GAAb,aAAa,CAA0B;IAC7C,CAAC;IACG,KAAK,CAAC,kBAAkB;QAC7B,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IACM,KAAK,CAAC,eAAe,CAAC,IAAY;QACvC,MAAM,KAA+B,IAAI,CAAC,IAAI,EAAxC,EAAE,WAAW,OAA2B,EAAtB,QAAQ,cAA1B,eAA4B,CAAY,CAAC;QAC/C,OAAO,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,IAAI,kCAChC,QAAQ,KACX,IAAI,EACJ,UAAU,EAAE,KAAK,IACjB,CAAC;IACL,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport class LroImpl<T> implements LongRunningOperation<T> {\n constructor(\n private sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>,\n private args: Record<string, unknown>,\n private spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>,\n public requestPath: string = spec.path!,\n public requestMethod: string = spec.httpMethod\n ) {}\n public async sendInitialRequest(): Promise<LroResponse<T>> {\n return this.sendOperationFn(this.args, this.spec);\n }\n public async sendPollRequest(path: string): Promise<LroResponse<T>> {\n const { requestBody, ...restSpec } = this.spec;\n return this.sendOperationFn(this.args, {\n ...restSpec,\n path,\n httpMethod: \"GET\"\n });\n }\n}\n"]}