@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,16 +5,16 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await
|
|
9
|
-
/// <reference lib="esnext.asynciterable" />
|
|
10
|
-
import { SpanStatusCode } from "@azure/core-tracing";
|
|
8
|
+
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
11
9
|
import { createSpan } from "../tracing";
|
|
12
|
-
import "@azure/core-
|
|
13
|
-
import * as
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as coreTracing from "@azure/core-tracing";
|
|
14
12
|
import * as Mappers from "../models/mappers";
|
|
15
13
|
import * as Parameters from "../models/parameters";
|
|
16
|
-
import {
|
|
17
|
-
|
|
14
|
+
import { LroEngine } from "@azure/core-lro";
|
|
15
|
+
import { LroImpl } from "../lroImpl";
|
|
16
|
+
/// <reference lib="esnext.asynciterable" />
|
|
17
|
+
/** Class containing DataFlowDebugSession operations. */
|
|
18
18
|
export class DataFlowDebugSessionImpl {
|
|
19
19
|
/**
|
|
20
20
|
* Initialize a new instance of the class DataFlowDebugSession class.
|
|
@@ -76,55 +76,16 @@ export class DataFlowDebugSessionImpl {
|
|
|
76
76
|
* @param request Data flow debug session definition
|
|
77
77
|
* @param options The options parameters.
|
|
78
78
|
*/
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
const operationArguments = {
|
|
83
|
-
request,
|
|
84
|
-
options: this.getOperationOptions(updatedOptions, "undefined")
|
|
85
|
-
};
|
|
86
|
-
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
87
|
-
try {
|
|
88
|
-
const result = yield this.client.sendOperationRequest(args, spec);
|
|
89
|
-
return result;
|
|
90
|
-
}
|
|
91
|
-
catch (error) {
|
|
92
|
-
span.setStatus({
|
|
93
|
-
code: SpanStatusCode.ERROR,
|
|
94
|
-
message: error.message
|
|
95
|
-
});
|
|
96
|
-
throw error;
|
|
97
|
-
}
|
|
98
|
-
finally {
|
|
99
|
-
span.end();
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
const initialOperationResult = yield sendOperation(operationArguments, createDataFlowDebugSessionOperationSpec);
|
|
103
|
-
return new LROPoller({
|
|
104
|
-
initialOperationArguments: operationArguments,
|
|
105
|
-
initialOperationSpec: createDataFlowDebugSessionOperationSpec,
|
|
106
|
-
initialOperationResult,
|
|
107
|
-
sendOperation
|
|
108
|
-
});
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Query all active data flow debug sessions.
|
|
113
|
-
* @param options The options parameters.
|
|
114
|
-
*/
|
|
115
|
-
_queryDataFlowDebugSessionsByWorkspace(options) {
|
|
116
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
117
|
-
const { span, updatedOptions } = createSpan("ArtifactsClient-_queryDataFlowDebugSessionsByWorkspace", options || {});
|
|
118
|
-
const operationArguments = {
|
|
119
|
-
options: coreHttp.operationOptionsToRequestOptionsBase(updatedOptions || {})
|
|
120
|
-
};
|
|
79
|
+
async beginCreateDataFlowDebugSession(request, options) {
|
|
80
|
+
const { span } = createSpan("ArtifactsClient-beginCreateDataFlowDebugSession", options || {});
|
|
81
|
+
const directSendOperation = async (args, spec) => {
|
|
121
82
|
try {
|
|
122
|
-
const result =
|
|
83
|
+
const result = await this.client.sendOperationRequest(args, spec);
|
|
123
84
|
return result;
|
|
124
85
|
}
|
|
125
86
|
catch (error) {
|
|
126
87
|
span.setStatus({
|
|
127
|
-
code: SpanStatusCode.
|
|
88
|
+
code: coreTracing.SpanStatusCode.UNSET,
|
|
128
89
|
message: error.message
|
|
129
90
|
});
|
|
130
91
|
throw error;
|
|
@@ -132,55 +93,121 @@ export class DataFlowDebugSessionImpl {
|
|
|
132
93
|
finally {
|
|
133
94
|
span.end();
|
|
134
95
|
}
|
|
96
|
+
};
|
|
97
|
+
const sendOperation = async (args, spec) => {
|
|
98
|
+
var _a;
|
|
99
|
+
let currentRawResponse = undefined;
|
|
100
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
101
|
+
const callback = (rawResponse, flatResponse) => {
|
|
102
|
+
currentRawResponse = rawResponse;
|
|
103
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
104
|
+
};
|
|
105
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
106
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
107
|
+
return {
|
|
108
|
+
flatResponse,
|
|
109
|
+
rawResponse: {
|
|
110
|
+
statusCode: currentRawResponse.status,
|
|
111
|
+
body: currentRawResponse.parsedBody,
|
|
112
|
+
headers: currentRawResponse.headers.toJSON()
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
const lro = new LroImpl(sendOperation, { request, options }, createDataFlowDebugSessionOperationSpec);
|
|
117
|
+
return new LroEngine(lro, {
|
|
118
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
119
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
135
120
|
});
|
|
136
121
|
}
|
|
122
|
+
/**
|
|
123
|
+
* Creates a data flow debug session.
|
|
124
|
+
* @param request Data flow debug session definition
|
|
125
|
+
* @param options The options parameters.
|
|
126
|
+
*/
|
|
127
|
+
async beginCreateDataFlowDebugSessionAndWait(request, options) {
|
|
128
|
+
const poller = await this.beginCreateDataFlowDebugSession(request, options);
|
|
129
|
+
return poller.pollUntilDone();
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Query all active data flow debug sessions.
|
|
133
|
+
* @param options The options parameters.
|
|
134
|
+
*/
|
|
135
|
+
async _queryDataFlowDebugSessionsByWorkspace(options) {
|
|
136
|
+
const { span } = createSpan("ArtifactsClient-_queryDataFlowDebugSessionsByWorkspace", options || {});
|
|
137
|
+
try {
|
|
138
|
+
const result = await this.client.sendOperationRequest({ options }, queryDataFlowDebugSessionsByWorkspaceOperationSpec);
|
|
139
|
+
return result;
|
|
140
|
+
}
|
|
141
|
+
catch (error) {
|
|
142
|
+
span.setStatus({
|
|
143
|
+
code: coreTracing.SpanStatusCode.UNSET,
|
|
144
|
+
message: error.message
|
|
145
|
+
});
|
|
146
|
+
throw error;
|
|
147
|
+
}
|
|
148
|
+
finally {
|
|
149
|
+
span.end();
|
|
150
|
+
}
|
|
151
|
+
}
|
|
137
152
|
/**
|
|
138
153
|
* Add a data flow into debug session.
|
|
139
154
|
* @param request Data flow debug session definition with debug content.
|
|
140
155
|
* @param options The options parameters.
|
|
141
156
|
*/
|
|
142
|
-
addDataFlow(request, options) {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
const
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
throw error;
|
|
159
|
-
}
|
|
160
|
-
finally {
|
|
161
|
-
span.end();
|
|
162
|
-
}
|
|
163
|
-
});
|
|
157
|
+
async addDataFlow(request, options) {
|
|
158
|
+
const { span } = createSpan("ArtifactsClient-addDataFlow", options || {});
|
|
159
|
+
try {
|
|
160
|
+
const result = await this.client.sendOperationRequest({ request, options }, addDataFlowOperationSpec);
|
|
161
|
+
return result;
|
|
162
|
+
}
|
|
163
|
+
catch (error) {
|
|
164
|
+
span.setStatus({
|
|
165
|
+
code: coreTracing.SpanStatusCode.UNSET,
|
|
166
|
+
message: error.message
|
|
167
|
+
});
|
|
168
|
+
throw error;
|
|
169
|
+
}
|
|
170
|
+
finally {
|
|
171
|
+
span.end();
|
|
172
|
+
}
|
|
164
173
|
}
|
|
165
174
|
/**
|
|
166
175
|
* Deletes a data flow debug session.
|
|
167
176
|
* @param request Data flow debug session definition for deletion
|
|
168
177
|
* @param options The options parameters.
|
|
169
178
|
*/
|
|
170
|
-
deleteDataFlowDebugSession(request, options) {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
const
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
179
|
+
async deleteDataFlowDebugSession(request, options) {
|
|
180
|
+
const { span } = createSpan("ArtifactsClient-deleteDataFlowDebugSession", options || {});
|
|
181
|
+
try {
|
|
182
|
+
const result = await this.client.sendOperationRequest({ request, options }, deleteDataFlowDebugSessionOperationSpec);
|
|
183
|
+
return result;
|
|
184
|
+
}
|
|
185
|
+
catch (error) {
|
|
186
|
+
span.setStatus({
|
|
187
|
+
code: coreTracing.SpanStatusCode.UNSET,
|
|
188
|
+
message: error.message
|
|
189
|
+
});
|
|
190
|
+
throw error;
|
|
191
|
+
}
|
|
192
|
+
finally {
|
|
193
|
+
span.end();
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
/**
|
|
197
|
+
* Execute a data flow debug command.
|
|
198
|
+
* @param request Data flow debug command definition.
|
|
199
|
+
* @param options The options parameters.
|
|
200
|
+
*/
|
|
201
|
+
async beginExecuteCommand(request, options) {
|
|
202
|
+
const { span } = createSpan("ArtifactsClient-beginExecuteCommand", options || {});
|
|
203
|
+
const directSendOperation = async (args, spec) => {
|
|
177
204
|
try {
|
|
178
|
-
const result =
|
|
205
|
+
const result = await this.client.sendOperationRequest(args, spec);
|
|
179
206
|
return result;
|
|
180
207
|
}
|
|
181
208
|
catch (error) {
|
|
182
209
|
span.setStatus({
|
|
183
|
-
code: SpanStatusCode.
|
|
210
|
+
code: coreTracing.SpanStatusCode.UNSET,
|
|
184
211
|
message: error.message
|
|
185
212
|
});
|
|
186
213
|
throw error;
|
|
@@ -188,6 +215,30 @@ export class DataFlowDebugSessionImpl {
|
|
|
188
215
|
finally {
|
|
189
216
|
span.end();
|
|
190
217
|
}
|
|
218
|
+
};
|
|
219
|
+
const sendOperation = async (args, spec) => {
|
|
220
|
+
var _a;
|
|
221
|
+
let currentRawResponse = undefined;
|
|
222
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
223
|
+
const callback = (rawResponse, flatResponse) => {
|
|
224
|
+
currentRawResponse = rawResponse;
|
|
225
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
226
|
+
};
|
|
227
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
228
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
229
|
+
return {
|
|
230
|
+
flatResponse,
|
|
231
|
+
rawResponse: {
|
|
232
|
+
statusCode: currentRawResponse.status,
|
|
233
|
+
body: currentRawResponse.parsedBody,
|
|
234
|
+
headers: currentRawResponse.headers.toJSON()
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
const lro = new LroImpl(sendOperation, { request, options }, executeCommandOperationSpec);
|
|
239
|
+
return new LroEngine(lro, {
|
|
240
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
241
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
191
242
|
});
|
|
192
243
|
}
|
|
193
244
|
/**
|
|
@@ -195,37 +246,9 @@ export class DataFlowDebugSessionImpl {
|
|
|
195
246
|
* @param request Data flow debug command definition.
|
|
196
247
|
* @param options The options parameters.
|
|
197
248
|
*/
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
const operationArguments = {
|
|
202
|
-
request,
|
|
203
|
-
options: this.getOperationOptions(updatedOptions, "undefined")
|
|
204
|
-
};
|
|
205
|
-
const sendOperation = (args, spec) => __awaiter(this, void 0, void 0, function* () {
|
|
206
|
-
try {
|
|
207
|
-
const result = yield this.client.sendOperationRequest(args, spec);
|
|
208
|
-
return result;
|
|
209
|
-
}
|
|
210
|
-
catch (error) {
|
|
211
|
-
span.setStatus({
|
|
212
|
-
code: SpanStatusCode.ERROR,
|
|
213
|
-
message: error.message
|
|
214
|
-
});
|
|
215
|
-
throw error;
|
|
216
|
-
}
|
|
217
|
-
finally {
|
|
218
|
-
span.end();
|
|
219
|
-
}
|
|
220
|
-
});
|
|
221
|
-
const initialOperationResult = yield sendOperation(operationArguments, executeCommandOperationSpec);
|
|
222
|
-
return new LROPoller({
|
|
223
|
-
initialOperationArguments: operationArguments,
|
|
224
|
-
initialOperationSpec: executeCommandOperationSpec,
|
|
225
|
-
initialOperationResult,
|
|
226
|
-
sendOperation
|
|
227
|
-
});
|
|
228
|
-
});
|
|
249
|
+
async beginExecuteCommandAndWait(request, options) {
|
|
250
|
+
const poller = await this.beginExecuteCommand(request, options);
|
|
251
|
+
return poller.pollUntilDone();
|
|
229
252
|
}
|
|
230
253
|
/**
|
|
231
254
|
* QueryDataFlowDebugSessionsByWorkspaceNext
|
|
@@ -233,37 +256,26 @@ export class DataFlowDebugSessionImpl {
|
|
|
233
256
|
* QueryDataFlowDebugSessionsByWorkspace method.
|
|
234
257
|
* @param options The options parameters.
|
|
235
258
|
*/
|
|
236
|
-
_queryDataFlowDebugSessionsByWorkspaceNext(nextLink, options) {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
const
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
throw error;
|
|
253
|
-
}
|
|
254
|
-
finally {
|
|
255
|
-
span.end();
|
|
256
|
-
}
|
|
257
|
-
});
|
|
258
|
-
}
|
|
259
|
-
getOperationOptions(options, finalStateVia) {
|
|
260
|
-
const operationOptions = options || {};
|
|
261
|
-
operationOptions.requestOptions = Object.assign(Object.assign({}, operationOptions.requestOptions), { shouldDeserialize: shouldDeserializeLRO(finalStateVia) });
|
|
262
|
-
return coreHttp.operationOptionsToRequestOptionsBase(operationOptions);
|
|
259
|
+
async _queryDataFlowDebugSessionsByWorkspaceNext(nextLink, options) {
|
|
260
|
+
const { span } = createSpan("ArtifactsClient-_queryDataFlowDebugSessionsByWorkspaceNext", options || {});
|
|
261
|
+
try {
|
|
262
|
+
const result = await this.client.sendOperationRequest({ nextLink, options }, queryDataFlowDebugSessionsByWorkspaceNextOperationSpec);
|
|
263
|
+
return result;
|
|
264
|
+
}
|
|
265
|
+
catch (error) {
|
|
266
|
+
span.setStatus({
|
|
267
|
+
code: coreTracing.SpanStatusCode.UNSET,
|
|
268
|
+
message: error.message
|
|
269
|
+
});
|
|
270
|
+
throw error;
|
|
271
|
+
}
|
|
272
|
+
finally {
|
|
273
|
+
span.end();
|
|
274
|
+
}
|
|
263
275
|
}
|
|
264
276
|
}
|
|
265
277
|
// Operation Specifications
|
|
266
|
-
const serializer =
|
|
278
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
267
279
|
const createDataFlowDebugSessionOperationSpec = {
|
|
268
280
|
path: "/createDataFlowDebugSession",
|
|
269
281
|
httpMethod: "POST",
|
|
@@ -281,11 +293,11 @@ const createDataFlowDebugSessionOperationSpec = {
|
|
|
281
293
|
bodyMapper: Mappers.CreateDataFlowDebugSessionResponse
|
|
282
294
|
},
|
|
283
295
|
default: {
|
|
284
|
-
bodyMapper: Mappers.
|
|
296
|
+
bodyMapper: Mappers.CloudErrorAutoGenerated
|
|
285
297
|
}
|
|
286
298
|
},
|
|
287
299
|
requestBody: Parameters.request1,
|
|
288
|
-
queryParameters: [Parameters.
|
|
300
|
+
queryParameters: [Parameters.apiVersion3],
|
|
289
301
|
urlParameters: [Parameters.endpoint],
|
|
290
302
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
291
303
|
mediaType: "json",
|
|
@@ -299,10 +311,10 @@ const queryDataFlowDebugSessionsByWorkspaceOperationSpec = {
|
|
|
299
311
|
bodyMapper: Mappers.QueryDataFlowDebugSessionsResponse
|
|
300
312
|
},
|
|
301
313
|
default: {
|
|
302
|
-
bodyMapper: Mappers.
|
|
314
|
+
bodyMapper: Mappers.CloudErrorAutoGenerated
|
|
303
315
|
}
|
|
304
316
|
},
|
|
305
|
-
queryParameters: [Parameters.
|
|
317
|
+
queryParameters: [Parameters.apiVersion3],
|
|
306
318
|
urlParameters: [Parameters.endpoint],
|
|
307
319
|
headerParameters: [Parameters.accept],
|
|
308
320
|
serializer
|
|
@@ -315,11 +327,11 @@ const addDataFlowOperationSpec = {
|
|
|
315
327
|
bodyMapper: Mappers.AddDataFlowToDebugSessionResponse
|
|
316
328
|
},
|
|
317
329
|
default: {
|
|
318
|
-
bodyMapper: Mappers.
|
|
330
|
+
bodyMapper: Mappers.CloudErrorAutoGenerated
|
|
319
331
|
}
|
|
320
332
|
},
|
|
321
333
|
requestBody: Parameters.request2,
|
|
322
|
-
queryParameters: [Parameters.
|
|
334
|
+
queryParameters: [Parameters.apiVersion3],
|
|
323
335
|
urlParameters: [Parameters.endpoint],
|
|
324
336
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
325
337
|
mediaType: "json",
|
|
@@ -331,11 +343,11 @@ const deleteDataFlowDebugSessionOperationSpec = {
|
|
|
331
343
|
responses: {
|
|
332
344
|
200: {},
|
|
333
345
|
default: {
|
|
334
|
-
bodyMapper: Mappers.
|
|
346
|
+
bodyMapper: Mappers.CloudErrorAutoGenerated
|
|
335
347
|
}
|
|
336
348
|
},
|
|
337
349
|
requestBody: Parameters.request3,
|
|
338
|
-
queryParameters: [Parameters.
|
|
350
|
+
queryParameters: [Parameters.apiVersion3],
|
|
339
351
|
urlParameters: [Parameters.endpoint],
|
|
340
352
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
341
353
|
mediaType: "json",
|
|
@@ -358,11 +370,11 @@ const executeCommandOperationSpec = {
|
|
|
358
370
|
bodyMapper: Mappers.DataFlowDebugCommandResponse
|
|
359
371
|
},
|
|
360
372
|
default: {
|
|
361
|
-
bodyMapper: Mappers.
|
|
373
|
+
bodyMapper: Mappers.CloudErrorAutoGenerated
|
|
362
374
|
}
|
|
363
375
|
},
|
|
364
376
|
requestBody: Parameters.request4,
|
|
365
|
-
queryParameters: [Parameters.
|
|
377
|
+
queryParameters: [Parameters.apiVersion3],
|
|
366
378
|
urlParameters: [Parameters.endpoint],
|
|
367
379
|
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
368
380
|
mediaType: "json",
|
|
@@ -376,10 +388,10 @@ const queryDataFlowDebugSessionsByWorkspaceNextOperationSpec = {
|
|
|
376
388
|
bodyMapper: Mappers.QueryDataFlowDebugSessionsResponse
|
|
377
389
|
},
|
|
378
390
|
default: {
|
|
379
|
-
bodyMapper: Mappers.
|
|
391
|
+
bodyMapper: Mappers.CloudErrorAutoGenerated
|
|
380
392
|
}
|
|
381
393
|
},
|
|
382
|
-
queryParameters: [Parameters.
|
|
394
|
+
queryParameters: [Parameters.apiVersion3],
|
|
383
395
|
urlParameters: [Parameters.endpoint, Parameters.nextLink],
|
|
384
396
|
headerParameters: [Parameters.accept],
|
|
385
397
|
serializer
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataFlowDebugSession.js","sourceRoot":"","sources":["../../../src/operations/dataFlowDebugSession.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,4CAA4C;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACx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E,OAAO,CAAC,4BAA4B;SACjD;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4BAA4B;SACjD;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,4BAA4B;SACjD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,QAAQ;IAChC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;IACpC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,sDAAsD,GAA2B;IACrF,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kCAAkC;SACvD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC;IACzD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,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\" />\nimport { SpanStatusCode } from \"@azure/core-tracing\";\nimport { createSpan } from \"../tracing\";\nimport \"@azure/core-paging\";\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { DataFlowDebugSession } from \"../operationsInterfaces\";\nimport * as coreHttp from \"@azure/core-http\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { ArtifactsClientContext } from \"../artifactsClientContext\";\nimport { LROPoller, shouldDeserializeLRO } from \"../lro\";\nimport {\n DataFlowDebugSessionInfo,\n CreateDataFlowDebugSessionRequest,\n DataFlowDebugSessionCreateDataFlowDebugSessionResponse,\n DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceResponse,\n DataFlowDebugPackage,\n DataFlowDebugSessionAddDataFlowResponse,\n DeleteDataFlowDebugSessionRequest,\n DataFlowDebugCommandRequest,\n DataFlowDebugSessionExecuteCommandResponse,\n DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceNextResponse\n} from \"../models\";\n\n/** Class representing a DataFlowDebugSession. */\nexport class DataFlowDebugSessionImpl implements DataFlowDebugSession {\n private readonly client: ArtifactsClientContext;\n\n /**\n * Initialize a new instance of the class DataFlowDebugSession class.\n * @param client Reference to the service client\n */\n constructor(client: ArtifactsClientContext) {\n this.client = client;\n }\n\n /**\n * Query all active data flow debug sessions.\n * @param options The options parameters.\n */\n public listQueryDataFlowDebugSessionsByWorkspace(\n options?: coreHttp.OperationOptions\n ): PagedAsyncIterableIterator<DataFlowDebugSessionInfo> {\n const iter = this.queryDataFlowDebugSessionsByWorkspacePagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.queryDataFlowDebugSessionsByWorkspacePagingPage(options);\n }\n };\n }\n\n private async *queryDataFlowDebugSessionsByWorkspacePagingPage(\n options?: coreHttp.OperationOptions\n ): AsyncIterableIterator<DataFlowDebugSessionInfo[]> {\n let result = await this._queryDataFlowDebugSessionsByWorkspace(options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._queryDataFlowDebugSessionsByWorkspaceNext(continuationToken, options);\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *queryDataFlowDebugSessionsByWorkspacePagingAll(\n options?: coreHttp.OperationOptions\n ): AsyncIterableIterator<DataFlowDebugSessionInfo> {\n for await (const page of this.queryDataFlowDebugSessionsByWorkspacePagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Creates a data flow debug session.\n * @param request Data flow debug session definition\n * @param options The options parameters.\n */\n async createDataFlowDebugSession(\n request: CreateDataFlowDebugSessionRequest,\n options?: coreHttp.OperationOptions\n ): Promise<LROPoller<DataFlowDebugSessionCreateDataFlowDebugSessionResponse>> {\n const { span, updatedOptions } = createSpan(\n \"ArtifactsClient-createDataFlowDebugSession\",\n options || {}\n );\n const operationArguments: coreHttp.OperationArguments = {\n request,\n options: this.getOperationOptions(updatedOptions, \"undefined\")\n };\n const sendOperation = async (\n args: coreHttp.OperationArguments,\n spec: coreHttp.OperationSpec\n ) => {\n try {\n const result = await this.client.sendOperationRequest(args, spec);\n return result as DataFlowDebugSessionCreateDataFlowDebugSessionResponse;\n } catch (error) {\n span.setStatus({\n code: SpanStatusCode.ERROR,\n message: error.message\n });\n throw error;\n } finally {\n span.end();\n }\n };\n\n const initialOperationResult = await sendOperation(\n operationArguments,\n createDataFlowDebugSessionOperationSpec\n );\n return new LROPoller({\n initialOperationArguments: operationArguments,\n initialOperationSpec: createDataFlowDebugSessionOperationSpec,\n initialOperationResult,\n sendOperation\n });\n }\n\n /**\n * Query all active data flow debug sessions.\n * @param options The options parameters.\n */\n private async _queryDataFlowDebugSessionsByWorkspace(\n options?: coreHttp.OperationOptions\n ): Promise<DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceResponse> {\n const { span, updatedOptions } = createSpan(\n \"ArtifactsClient-_queryDataFlowDebugSessionsByWorkspace\",\n options || {}\n );\n const operationArguments: coreHttp.OperationArguments = {\n options: coreHttp.operationOptionsToRequestOptionsBase(updatedOptions || {})\n };\n try {\n const result = await this.client.sendOperationRequest(\n operationArguments,\n queryDataFlowDebugSessionsByWorkspaceOperationSpec\n );\n return result as DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceResponse;\n } catch (error) {\n span.setStatus({\n code: SpanStatusCode.ERROR,\n message: error.message\n });\n throw error;\n } finally {\n span.end();\n }\n }\n\n /**\n * Add a data flow into debug session.\n * @param request Data flow debug session definition with debug content.\n * @param options The options parameters.\n */\n async addDataFlow(\n request: DataFlowDebugPackage,\n options?: coreHttp.OperationOptions\n ): Promise<DataFlowDebugSessionAddDataFlowResponse> {\n const { span, updatedOptions } = createSpan(\"ArtifactsClient-addDataFlow\", options || {});\n const operationArguments: coreHttp.OperationArguments = {\n request,\n options: coreHttp.operationOptionsToRequestOptionsBase(updatedOptions || {})\n };\n try {\n const result = await this.client.sendOperationRequest(\n operationArguments,\n addDataFlowOperationSpec\n );\n return result as DataFlowDebugSessionAddDataFlowResponse;\n } catch (error) {\n span.setStatus({\n code: SpanStatusCode.ERROR,\n message: error.message\n });\n throw error;\n } finally {\n span.end();\n }\n }\n\n /**\n * Deletes a data flow debug session.\n * @param request Data flow debug session definition for deletion\n * @param options The options parameters.\n */\n async deleteDataFlowDebugSession(\n request: DeleteDataFlowDebugSessionRequest,\n options?: coreHttp.OperationOptions\n ): Promise<coreHttp.RestResponse> {\n const { span, updatedOptions } = createSpan(\n \"ArtifactsClient-deleteDataFlowDebugSession\",\n options || {}\n );\n const operationArguments: coreHttp.OperationArguments = {\n request,\n options: coreHttp.operationOptionsToRequestOptionsBase(updatedOptions || {})\n };\n try {\n const result = await this.client.sendOperationRequest(\n operationArguments,\n deleteDataFlowDebugSessionOperationSpec\n );\n return result as coreHttp.RestResponse;\n } catch (error) {\n span.setStatus({\n code: SpanStatusCode.ERROR,\n message: error.message\n });\n throw error;\n } finally {\n span.end();\n }\n }\n\n /**\n * Execute a data flow debug command.\n * @param request Data flow debug command definition.\n * @param options The options parameters.\n */\n async executeCommand(\n request: DataFlowDebugCommandRequest,\n options?: coreHttp.OperationOptions\n ): Promise<LROPoller<DataFlowDebugSessionExecuteCommandResponse>> {\n const { span, updatedOptions } = createSpan(\"ArtifactsClient-executeCommand\", options || {});\n const operationArguments: coreHttp.OperationArguments = {\n request,\n options: this.getOperationOptions(updatedOptions, \"undefined\")\n };\n const sendOperation = async (\n args: coreHttp.OperationArguments,\n spec: coreHttp.OperationSpec\n ) => {\n try {\n const result = await this.client.sendOperationRequest(args, spec);\n return result as DataFlowDebugSessionExecuteCommandResponse;\n } catch (error) {\n span.setStatus({\n code: SpanStatusCode.ERROR,\n message: error.message\n });\n throw error;\n } finally {\n span.end();\n }\n };\n\n const initialOperationResult = await sendOperation(\n operationArguments,\n executeCommandOperationSpec\n );\n return new LROPoller({\n initialOperationArguments: operationArguments,\n initialOperationSpec: executeCommandOperationSpec,\n initialOperationResult,\n sendOperation\n });\n }\n\n /**\n * QueryDataFlowDebugSessionsByWorkspaceNext\n * @param nextLink The nextLink from the previous successful call to the\n * QueryDataFlowDebugSessionsByWorkspace method.\n * @param options The options parameters.\n */\n private async _queryDataFlowDebugSessionsByWorkspaceNext(\n nextLink: string,\n options?: coreHttp.OperationOptions\n ): Promise<DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceNextResponse> {\n const { span, updatedOptions } = createSpan(\n \"ArtifactsClient-_queryDataFlowDebugSessionsByWorkspaceNext\",\n options || {}\n );\n const operationArguments: coreHttp.OperationArguments = {\n nextLink,\n options: coreHttp.operationOptionsToRequestOptionsBase(updatedOptions || {})\n };\n try {\n const result = await this.client.sendOperationRequest(\n operationArguments,\n queryDataFlowDebugSessionsByWorkspaceNextOperationSpec\n );\n return result as DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceNextResponse;\n } catch (error) {\n span.setStatus({\n code: SpanStatusCode.ERROR,\n message: error.message\n });\n throw error;\n } finally {\n span.end();\n }\n }\n\n private getOperationOptions<TOptions extends coreHttp.OperationOptions>(\n options: TOptions | undefined,\n finalStateVia?: string\n ): coreHttp.RequestOptionsBase {\n const operationOptions: coreHttp.OperationOptions = options || {};\n operationOptions.requestOptions = {\n ...operationOptions.requestOptions,\n shouldDeserialize: shouldDeserializeLRO(finalStateVia)\n };\n return coreHttp.operationOptionsToRequestOptionsBase(operationOptions);\n }\n}\n// Operation Specifications\nconst serializer = new coreHttp.Serializer(Mappers, /* isXml */ false);\n\nconst createDataFlowDebugSessionOperationSpec: coreHttp.OperationSpec = {\n path: \"/createDataFlowDebugSession\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CreateDataFlowDebugSessionResponse\n },\n 201: {\n bodyMapper: Mappers.CreateDataFlowDebugSessionResponse\n },\n 202: {\n bodyMapper: Mappers.CreateDataFlowDebugSessionResponse\n },\n 204: {\n bodyMapper: Mappers.CreateDataFlowDebugSessionResponse\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.request1,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst queryDataFlowDebugSessionsByWorkspaceOperationSpec: coreHttp.OperationSpec = {\n path: \"/queryDataFlowDebugSessions\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.QueryDataFlowDebugSessionsResponse\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst addDataFlowOperationSpec: coreHttp.OperationSpec = {\n path: \"/addDataFlowToDebugSession\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AddDataFlowToDebugSessionResponse\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.request2,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteDataFlowDebugSessionOperationSpec: coreHttp.OperationSpec = {\n path: \"/deleteDataFlowDebugSession\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.request3,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst executeCommandOperationSpec: coreHttp.OperationSpec = {\n path: \"/executeDataFlowDebugCommand\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataFlowDebugCommandResponse\n },\n 201: {\n bodyMapper: Mappers.DataFlowDebugCommandResponse\n },\n 202: {\n bodyMapper: Mappers.DataFlowDebugCommandResponse\n },\n 204: {\n bodyMapper: Mappers.DataFlowDebugCommandResponse\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n requestBody: Parameters.request4,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst queryDataFlowDebugSessionsByWorkspaceNextOperationSpec: coreHttp.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QueryDataFlowDebugSessionsResponse\n },\n default: {\n bodyMapper: Mappers.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
1
|
+
{"version":3,"file":"dataFlowDebugSession.js","sourceRoot":"","sources":["../../../src/operations/dataFlowDebugSession.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAGxC,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,WAAW,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAkC,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5E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IACD,WAAW,EAAE,UAAU,CAAC,QAAQ;IAChC,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;IACpC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,sDAAsD,GAA6B;IACvF,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kCAAkC;SACvD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,QAAQ,CAAC;IACzD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,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 { createSpan } from \"../tracing\";\nimport { PagedAsyncIterableIterator } from \"@azure/core-paging\";\nimport { DataFlowDebugSession } from \"../operationsInterfaces\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as coreTracing from \"@azure/core-tracing\";\nimport * as Mappers from \"../models/mappers\";\nimport * as Parameters from \"../models/parameters\";\nimport { ArtifactsClientContext } from \"../artifactsClientContext\";\nimport { PollerLike, PollOperationState, LroEngine } from \"@azure/core-lro\";\nimport { LroImpl } from \"../lroImpl\";\nimport {\n DataFlowDebugSessionInfo,\n DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceNextOptionalParams,\n DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceOptionalParams,\n CreateDataFlowDebugSessionRequest,\n DataFlowDebugSessionCreateDataFlowDebugSessionOptionalParams,\n DataFlowDebugSessionCreateDataFlowDebugSessionResponse,\n DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceResponse,\n DataFlowDebugPackage,\n DataFlowDebugSessionAddDataFlowOptionalParams,\n DataFlowDebugSessionAddDataFlowResponse,\n DeleteDataFlowDebugSessionRequest,\n DataFlowDebugSessionDeleteDataFlowDebugSessionOptionalParams,\n DataFlowDebugCommandRequest,\n DataFlowDebugSessionExecuteCommandOptionalParams,\n DataFlowDebugSessionExecuteCommandResponse,\n DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceNextResponse\n} from \"../models\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing DataFlowDebugSession operations. */\nexport class DataFlowDebugSessionImpl implements DataFlowDebugSession {\n private readonly client: ArtifactsClientContext;\n\n /**\n * Initialize a new instance of the class DataFlowDebugSession class.\n * @param client Reference to the service client\n */\n constructor(client: ArtifactsClientContext) {\n this.client = client;\n }\n\n /**\n * Query all active data flow debug sessions.\n * @param options The options parameters.\n */\n public listQueryDataFlowDebugSessionsByWorkspace(\n options?: DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceOptionalParams\n ): PagedAsyncIterableIterator<DataFlowDebugSessionInfo> {\n const iter = this.queryDataFlowDebugSessionsByWorkspacePagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: () => {\n return this.queryDataFlowDebugSessionsByWorkspacePagingPage(options);\n }\n };\n }\n\n private async *queryDataFlowDebugSessionsByWorkspacePagingPage(\n options?: DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceOptionalParams\n ): AsyncIterableIterator<DataFlowDebugSessionInfo[]> {\n let result = await this._queryDataFlowDebugSessionsByWorkspace(options);\n yield result.value || [];\n let continuationToken = result.nextLink;\n while (continuationToken) {\n result = await this._queryDataFlowDebugSessionsByWorkspaceNext(\n continuationToken,\n options\n );\n continuationToken = result.nextLink;\n yield result.value || [];\n }\n }\n\n private async *queryDataFlowDebugSessionsByWorkspacePagingAll(\n options?: DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceOptionalParams\n ): AsyncIterableIterator<DataFlowDebugSessionInfo> {\n for await (const page of this.queryDataFlowDebugSessionsByWorkspacePagingPage(\n options\n )) {\n yield* page;\n }\n }\n\n /**\n * Creates a data flow debug session.\n * @param request Data flow debug session definition\n * @param options The options parameters.\n */\n async beginCreateDataFlowDebugSession(\n request: CreateDataFlowDebugSessionRequest,\n options?: DataFlowDebugSessionCreateDataFlowDebugSessionOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<\n DataFlowDebugSessionCreateDataFlowDebugSessionResponse\n >,\n DataFlowDebugSessionCreateDataFlowDebugSessionResponse\n >\n > {\n const { span } = createSpan(\n \"ArtifactsClient-beginCreateDataFlowDebugSession\",\n options || {}\n );\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<DataFlowDebugSessionCreateDataFlowDebugSessionResponse> => {\n try {\n const result = await this.client.sendOperationRequest(args, spec);\n return result as DataFlowDebugSessionCreateDataFlowDebugSessionResponse;\n } catch (error) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.UNSET,\n message: error.message\n });\n throw error;\n } finally {\n span.end();\n }\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { request, options },\n createDataFlowDebugSessionOperationSpec\n );\n return new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n }\n\n /**\n * Creates a data flow debug session.\n * @param request Data flow debug session definition\n * @param options The options parameters.\n */\n async beginCreateDataFlowDebugSessionAndWait(\n request: CreateDataFlowDebugSessionRequest,\n options?: DataFlowDebugSessionCreateDataFlowDebugSessionOptionalParams\n ): Promise<DataFlowDebugSessionCreateDataFlowDebugSessionResponse> {\n const poller = await this.beginCreateDataFlowDebugSession(request, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Query all active data flow debug sessions.\n * @param options The options parameters.\n */\n private async _queryDataFlowDebugSessionsByWorkspace(\n options?: DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceOptionalParams\n ): Promise<\n DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceResponse\n > {\n const { span } = createSpan(\n \"ArtifactsClient-_queryDataFlowDebugSessionsByWorkspace\",\n options || {}\n );\n try {\n const result = await this.client.sendOperationRequest(\n { options },\n queryDataFlowDebugSessionsByWorkspaceOperationSpec\n );\n return result as DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceResponse;\n } catch (error) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.UNSET,\n message: error.message\n });\n throw error;\n } finally {\n span.end();\n }\n }\n\n /**\n * Add a data flow into debug session.\n * @param request Data flow debug session definition with debug content.\n * @param options The options parameters.\n */\n async addDataFlow(\n request: DataFlowDebugPackage,\n options?: DataFlowDebugSessionAddDataFlowOptionalParams\n ): Promise<DataFlowDebugSessionAddDataFlowResponse> {\n const { span } = createSpan(\"ArtifactsClient-addDataFlow\", options || {});\n try {\n const result = await this.client.sendOperationRequest(\n { request, options },\n addDataFlowOperationSpec\n );\n return result as DataFlowDebugSessionAddDataFlowResponse;\n } catch (error) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.UNSET,\n message: error.message\n });\n throw error;\n } finally {\n span.end();\n }\n }\n\n /**\n * Deletes a data flow debug session.\n * @param request Data flow debug session definition for deletion\n * @param options The options parameters.\n */\n async deleteDataFlowDebugSession(\n request: DeleteDataFlowDebugSessionRequest,\n options?: DataFlowDebugSessionDeleteDataFlowDebugSessionOptionalParams\n ): Promise<void> {\n const { span } = createSpan(\n \"ArtifactsClient-deleteDataFlowDebugSession\",\n options || {}\n );\n try {\n const result = await this.client.sendOperationRequest(\n { request, options },\n deleteDataFlowDebugSessionOperationSpec\n );\n return result as void;\n } catch (error) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.UNSET,\n message: error.message\n });\n throw error;\n } finally {\n span.end();\n }\n }\n\n /**\n * Execute a data flow debug command.\n * @param request Data flow debug command definition.\n * @param options The options parameters.\n */\n async beginExecuteCommand(\n request: DataFlowDebugCommandRequest,\n options?: DataFlowDebugSessionExecuteCommandOptionalParams\n ): Promise<\n PollerLike<\n PollOperationState<DataFlowDebugSessionExecuteCommandResponse>,\n DataFlowDebugSessionExecuteCommandResponse\n >\n > {\n const { span } = createSpan(\n \"ArtifactsClient-beginExecuteCommand\",\n options || {}\n );\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ): Promise<DataFlowDebugSessionExecuteCommandResponse> => {\n try {\n const result = await this.client.sendOperationRequest(args, spec);\n return result as DataFlowDebugSessionExecuteCommandResponse;\n } catch (error) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.UNSET,\n message: error.message\n });\n throw error;\n } finally {\n span.end();\n }\n };\n const sendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec\n ) => {\n let currentRawResponse:\n | coreClient.FullOperationResponse\n | undefined = undefined;\n const providedCallback = args.options?.onResponse;\n const callback: coreClient.RawResponseCallback = (\n rawResponse: coreClient.FullOperationResponse,\n flatResponse: unknown\n ) => {\n currentRawResponse = rawResponse;\n providedCallback?.(rawResponse, flatResponse);\n };\n const updatedArgs = {\n ...args,\n options: {\n ...args.options,\n onResponse: callback\n }\n };\n const flatResponse = await directSendOperation(updatedArgs, spec);\n return {\n flatResponse,\n rawResponse: {\n statusCode: currentRawResponse!.status,\n body: currentRawResponse!.parsedBody,\n headers: currentRawResponse!.headers.toJSON()\n }\n };\n };\n\n const lro = new LroImpl(\n sendOperation,\n { request, options },\n executeCommandOperationSpec\n );\n return new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n }\n\n /**\n * Execute a data flow debug command.\n * @param request Data flow debug command definition.\n * @param options The options parameters.\n */\n async beginExecuteCommandAndWait(\n request: DataFlowDebugCommandRequest,\n options?: DataFlowDebugSessionExecuteCommandOptionalParams\n ): Promise<DataFlowDebugSessionExecuteCommandResponse> {\n const poller = await this.beginExecuteCommand(request, options);\n return poller.pollUntilDone();\n }\n\n /**\n * QueryDataFlowDebugSessionsByWorkspaceNext\n * @param nextLink The nextLink from the previous successful call to the\n * QueryDataFlowDebugSessionsByWorkspace method.\n * @param options The options parameters.\n */\n private async _queryDataFlowDebugSessionsByWorkspaceNext(\n nextLink: string,\n options?: DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceNextOptionalParams\n ): Promise<\n DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceNextResponse\n > {\n const { span } = createSpan(\n \"ArtifactsClient-_queryDataFlowDebugSessionsByWorkspaceNext\",\n options || {}\n );\n try {\n const result = await this.client.sendOperationRequest(\n { nextLink, options },\n queryDataFlowDebugSessionsByWorkspaceNextOperationSpec\n );\n return result as DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceNextResponse;\n } catch (error) {\n span.setStatus({\n code: coreTracing.SpanStatusCode.UNSET,\n message: error.message\n });\n throw error;\n } finally {\n span.end();\n }\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst createDataFlowDebugSessionOperationSpec: coreClient.OperationSpec = {\n path: \"/createDataFlowDebugSession\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CreateDataFlowDebugSessionResponse\n },\n 201: {\n bodyMapper: Mappers.CreateDataFlowDebugSessionResponse\n },\n 202: {\n bodyMapper: Mappers.CreateDataFlowDebugSessionResponse\n },\n 204: {\n bodyMapper: Mappers.CreateDataFlowDebugSessionResponse\n },\n default: {\n bodyMapper: Mappers.CloudErrorAutoGenerated\n }\n },\n requestBody: Parameters.request1,\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst queryDataFlowDebugSessionsByWorkspaceOperationSpec: coreClient.OperationSpec = {\n path: \"/queryDataFlowDebugSessions\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.QueryDataFlowDebugSessionsResponse\n },\n default: {\n bodyMapper: Mappers.CloudErrorAutoGenerated\n }\n },\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst addDataFlowOperationSpec: coreClient.OperationSpec = {\n path: \"/addDataFlowToDebugSession\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AddDataFlowToDebugSessionResponse\n },\n default: {\n bodyMapper: Mappers.CloudErrorAutoGenerated\n }\n },\n requestBody: Parameters.request2,\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst deleteDataFlowDebugSessionOperationSpec: coreClient.OperationSpec = {\n path: \"/deleteDataFlowDebugSession\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudErrorAutoGenerated\n }\n },\n requestBody: Parameters.request3,\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst executeCommandOperationSpec: coreClient.OperationSpec = {\n path: \"/executeDataFlowDebugCommand\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataFlowDebugCommandResponse\n },\n 201: {\n bodyMapper: Mappers.DataFlowDebugCommandResponse\n },\n 202: {\n bodyMapper: Mappers.DataFlowDebugCommandResponse\n },\n 204: {\n bodyMapper: Mappers.DataFlowDebugCommandResponse\n },\n default: {\n bodyMapper: Mappers.CloudErrorAutoGenerated\n }\n },\n requestBody: Parameters.request4,\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer\n};\nconst queryDataFlowDebugSessionsByWorkspaceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QueryDataFlowDebugSessionsResponse\n },\n default: {\n bodyMapper: Mappers.CloudErrorAutoGenerated\n }\n },\n queryParameters: [Parameters.apiVersion3],\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|