@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.
- package/CHANGELOG.md +31 -0
- package/README.md +6 -4
- package/dist/index.js +18462 -16154
- package/dist/index.js.map +1 -1
- package/dist-esm/src/artifactsClient.js +20 -15
- package/dist-esm/src/artifactsClient.js.map +1 -1
- package/dist-esm/src/artifactsClientContext.js +14 -37
- package/dist-esm/src/artifactsClientContext.js.map +1 -1
- package/dist-esm/src/index.js +1 -2
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/lroImpl.js +25 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.js +767 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.js +8083 -7446
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/models/parameters.js +259 -165
- package/dist-esm/src/models/parameters.js.map +1 -1
- package/dist-esm/src/operations/bigDataPools.js +38 -50
- package/dist-esm/src/operations/bigDataPools.js.map +1 -1
- package/dist-esm/src/operations/dataFlowDebugSession.js +165 -153
- package/dist-esm/src/operations/dataFlowDebugSession.js.map +1 -1
- package/dist-esm/src/operations/dataFlowOperations.js +433 -0
- package/dist-esm/src/operations/dataFlowOperations.js.map +1 -0
- package/dist-esm/src/operations/datasetOperations.js +433 -0
- package/dist-esm/src/operations/datasetOperations.js.map +1 -0
- package/dist-esm/src/operations/index.js +19 -14
- package/dist-esm/src/operations/index.js.map +1 -1
- package/dist-esm/src/operations/integrationRuntimes.js +38 -50
- package/dist-esm/src/operations/integrationRuntimes.js.map +1 -1
- package/dist-esm/src/operations/kqlScriptOperations.js +303 -0
- package/dist-esm/src/operations/kqlScriptOperations.js.map +1 -0
- package/dist-esm/src/operations/kqlScripts.js +150 -0
- package/dist-esm/src/operations/kqlScripts.js.map +1 -0
- package/dist-esm/src/operations/library.js +222 -194
- package/dist-esm/src/operations/library.js.map +1 -1
- package/dist-esm/src/operations/linkedServiceOperations.js +434 -0
- package/dist-esm/src/operations/linkedServiceOperations.js.map +1 -0
- package/dist-esm/src/operations/metastore.js +182 -0
- package/dist-esm/src/operations/metastore.js.map +1 -0
- package/dist-esm/src/operations/notebookOperationResult.js +64 -0
- package/dist-esm/src/operations/notebookOperationResult.js.map +1 -0
- package/dist-esm/src/operations/notebookOperations.js +558 -0
- package/dist-esm/src/operations/notebookOperations.js.map +1 -0
- package/dist-esm/src/operations/pipelineOperations.js +479 -0
- package/dist-esm/src/operations/pipelineOperations.js.map +1 -0
- package/dist-esm/src/operations/pipelineRunOperations.js +185 -0
- package/dist-esm/src/operations/pipelineRunOperations.js.map +1 -0
- package/dist-esm/src/operations/sparkConfigurationOperations.js +434 -0
- package/dist-esm/src/operations/sparkConfigurationOperations.js.map +1 -0
- package/dist-esm/src/operations/sparkJobDefinitionOperations.js +602 -0
- package/dist-esm/src/operations/sparkJobDefinitionOperations.js.map +1 -0
- package/dist-esm/src/operations/sqlPools.js +38 -50
- package/dist-esm/src/operations/sqlPools.js.map +1 -1
- package/dist-esm/src/operations/sqlScriptOperations.js +434 -0
- package/dist-esm/src/operations/sqlScriptOperations.js.map +1 -0
- package/dist-esm/src/operations/triggerOperations.js +705 -0
- package/dist-esm/src/operations/triggerOperations.js.map +1 -0
- package/dist-esm/src/operations/triggerRunOperations.js +147 -0
- package/dist-esm/src/operations/triggerRunOperations.js.map +1 -0
- package/dist-esm/src/operations/workspaceGitRepoManagement.js +26 -29
- package/dist-esm/src/operations/workspaceGitRepoManagement.js.map +1 -1
- package/dist-esm/src/operations/workspaceOperations.js +62 -0
- package/dist-esm/src/operations/workspaceOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/bigDataPools.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/dataFlowDebugSession.js +1 -1
- package/dist-esm/src/operationsInterfaces/dataFlowDebugSession.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/{dataset.js → dataFlowOperations.js} +2 -2
- package/dist-esm/src/operationsInterfaces/dataFlowOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/{pipelineRun.js → datasetOperations.js} +1 -1
- package/dist-esm/src/operationsInterfaces/datasetOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +19 -14
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/integrationRuntimes.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/kqlScriptOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/kqlScriptOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/{triggerRun.js → kqlScripts.js} +1 -1
- package/dist-esm/src/operationsInterfaces/kqlScripts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/library.js +1 -1
- package/dist-esm/src/operationsInterfaces/library.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/linkedServiceOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/linkedServiceOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/{workspace.js → metastore.js} +1 -1
- package/dist-esm/src/operationsInterfaces/metastore.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/notebookOperationResult.js +9 -0
- package/dist-esm/src/operationsInterfaces/notebookOperationResult.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/notebookOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/notebookOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/pipelineOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/pipelineOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/pipelineRunOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/pipelineRunOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/{dataFlow.js → sparkConfigurationOperations.js} +2 -2
- package/dist-esm/src/operationsInterfaces/sparkConfigurationOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sparkJobDefinitionOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/sparkJobDefinitionOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/sqlPools.js.map +1 -1
- package/dist-esm/src/operationsInterfaces/sqlScriptOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/sqlScriptOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/triggerOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/triggerOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/triggerRunOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/triggerRunOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/workspaceOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/workspaceOperations.js.map +1 -0
- package/package.json +20 -30
- package/types/synapse-artifacts.d.ts +2037 -1319
- package/dist-esm/src/lro/azureAsyncOperationStrategy.js +0 -149
- package/dist-esm/src/lro/azureAsyncOperationStrategy.js.map +0 -1
- package/dist-esm/src/lro/bodyPollingStrategy.js +0 -45
- package/dist-esm/src/lro/bodyPollingStrategy.js.map +0 -1
- package/dist-esm/src/lro/constants.js +0 -9
- package/dist-esm/src/lro/constants.js.map +0 -1
- package/dist-esm/src/lro/index.js +0 -15
- package/dist-esm/src/lro/index.js.map +0 -1
- package/dist-esm/src/lro/locationStrategy.js +0 -54
- package/dist-esm/src/lro/locationStrategy.js.map +0 -1
- package/dist-esm/src/lro/lroPolicy.js +0 -32
- package/dist-esm/src/lro/lroPolicy.js.map +0 -1
- package/dist-esm/src/lro/lroPoller.js +0 -74
- package/dist-esm/src/lro/lroPoller.js.map +0 -1
- package/dist-esm/src/lro/models.js +0 -9
- package/dist-esm/src/lro/models.js.map +0 -1
- package/dist-esm/src/lro/operation.js +0 -72
- package/dist-esm/src/lro/operation.js.map +0 -1
- package/dist-esm/src/lro/passthroughStrategy.js +0 -27
- package/dist-esm/src/lro/passthroughStrategy.js.map +0 -1
- package/dist-esm/src/lro/requestUtils.js +0 -82
- package/dist-esm/src/lro/requestUtils.js.map +0 -1
- package/dist-esm/src/operations/dataFlow.js +0 -391
- package/dist-esm/src/operations/dataFlow.js.map +0 -1
- package/dist-esm/src/operations/dataset.js +0 -391
- package/dist-esm/src/operations/dataset.js.map +0 -1
- package/dist-esm/src/operations/linkedService.js +0 -392
- package/dist-esm/src/operations/linkedService.js.map +0 -1
- package/dist-esm/src/operations/notebook.js +0 -527
- package/dist-esm/src/operations/notebook.js.map +0 -1
- package/dist-esm/src/operations/pipeline.js +0 -443
- package/dist-esm/src/operations/pipeline.js.map +0 -1
- package/dist-esm/src/operations/pipelineRun.js +0 -208
- package/dist-esm/src/operations/pipelineRun.js.map +0 -1
- package/dist-esm/src/operations/sparkJobDefinition.js +0 -520
- package/dist-esm/src/operations/sparkJobDefinition.js.map +0 -1
- package/dist-esm/src/operations/sqlScript.js +0 -392
- package/dist-esm/src/operations/sqlScript.js.map +0 -1
- package/dist-esm/src/operations/trigger.js +0 -609
- package/dist-esm/src/operations/trigger.js.map +0 -1
- package/dist-esm/src/operations/triggerRun.js +0 -160
- package/dist-esm/src/operations/triggerRun.js.map +0 -1
- package/dist-esm/src/operations/workspace.js +0 -68
- package/dist-esm/src/operations/workspace.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/dataFlow.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/dataset.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/linkedService.js +0 -9
- package/dist-esm/src/operationsInterfaces/linkedService.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/notebook.js +0 -9
- package/dist-esm/src/operationsInterfaces/notebook.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/pipeline.js +0 -9
- package/dist-esm/src/operationsInterfaces/pipeline.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/pipelineRun.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/sparkJobDefinition.js +0 -9
- package/dist-esm/src/operationsInterfaces/sparkJobDefinition.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/sqlScript.js +0 -9
- package/dist-esm/src/operationsInterfaces/sqlScript.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/trigger.js +0 -9
- package/dist-esm/src/operationsInterfaces/trigger.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/triggerRun.js.map +0 -1
- package/dist-esm/src/operationsInterfaces/workspace.js.map +0 -1
- package/dist-esm/src/utils/constants.js +0 -9
- 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 {
|
|
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.
|
|
21
|
-
this.
|
|
22
|
-
this.
|
|
23
|
-
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.
|
|
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,
|
|
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
|
|
9
|
-
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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,
|
|
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"]}
|
package/dist-esm/src/index.js
CHANGED
|
@@ -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;
|
|
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"]}
|