@azure/synapse-artifacts 1.0.0-beta.1 → 1.0.0-beta.10
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 +60 -0
- package/README.md +6 -4
- package/dist/index.js +22546 -19192
- package/dist/index.js.map +1 -1
- package/dist-esm/src/artifactsClient.js +72 -0
- package/dist-esm/src/artifactsClient.js.map +1 -0
- package/dist-esm/src/index.js +12 -0
- package/dist-esm/src/index.js.map +1 -0
- package/dist-esm/src/lroImpl.js +25 -0
- package/dist-esm/src/lroImpl.js.map +1 -0
- package/dist-esm/src/models/index.js +822 -0
- package/dist-esm/src/models/index.js.map +1 -0
- package/dist-esm/src/models/mappers.js +22801 -0
- package/dist-esm/src/models/mappers.js.map +1 -0
- package/dist-esm/src/models/parameters.js +541 -0
- package/dist-esm/src/models/parameters.js.map +1 -0
- package/dist-esm/src/operations/bigDataPools.js +100 -0
- package/dist-esm/src/operations/bigDataPools.js.map +1 -0
- package/dist-esm/src/operations/dataFlowDebugSession.js +403 -0
- package/dist-esm/src/operations/dataFlowDebugSession.js.map +1 -0
- package/dist-esm/src/operations/dataFlowOperations.js +439 -0
- package/dist-esm/src/operations/dataFlowOperations.js.map +1 -0
- package/dist-esm/src/operations/datasetOperations.js +439 -0
- package/dist-esm/src/operations/datasetOperations.js.map +1 -0
- package/dist-esm/src/operations/index.js +31 -0
- package/dist-esm/src/operations/index.js.map +1 -0
- package/dist-esm/src/operations/integrationRuntimes.js +100 -0
- package/dist-esm/src/operations/integrationRuntimes.js.map +1 -0
- package/dist-esm/src/operations/kqlScriptOperations.js +309 -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 +512 -0
- package/dist-esm/src/operations/library.js.map +1 -0
- package/dist-esm/src/operations/linkConnectionOperations.js +534 -0
- package/dist-esm/src/operations/linkConnectionOperations.js.map +1 -0
- package/dist-esm/src/operations/linkedServiceOperations.js +440 -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 +564 -0
- package/dist-esm/src/operations/notebookOperations.js.map +1 -0
- package/dist-esm/src/operations/pipelineOperations.js +485 -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 +440 -0
- package/dist-esm/src/operations/sparkConfigurationOperations.js.map +1 -0
- package/dist-esm/src/operations/sparkJobDefinitionOperations.js +612 -0
- package/dist-esm/src/operations/sparkJobDefinitionOperations.js.map +1 -0
- package/dist-esm/src/operations/sqlPools.js +100 -0
- package/dist-esm/src/operations/sqlPools.js.map +1 -0
- package/dist-esm/src/operations/sqlScriptOperations.js +440 -0
- package/dist-esm/src/operations/sqlScriptOperations.js.map +1 -0
- package/dist-esm/src/operations/triggerOperations.js +717 -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 +66 -0
- package/dist-esm/src/operations/workspaceGitRepoManagement.js.map +1 -0
- 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 +9 -0
- package/dist-esm/src/operationsInterfaces/bigDataPools.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/dataFlowDebugSession.js +9 -0
- package/dist-esm/src/operationsInterfaces/dataFlowDebugSession.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/dataFlowOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/dataFlowOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/datasetOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/datasetOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/index.js +31 -0
- package/dist-esm/src/operationsInterfaces/index.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/integrationRuntimes.js +9 -0
- package/dist-esm/src/operationsInterfaces/integrationRuntimes.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/kqlScriptOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/kqlScriptOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/kqlScripts.js +9 -0
- package/dist-esm/src/operationsInterfaces/kqlScripts.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/library.js +9 -0
- package/dist-esm/src/operationsInterfaces/library.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/linkConnectionOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/linkConnectionOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/linkedServiceOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/linkedServiceOperations.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/metastore.js +9 -0
- 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/sparkConfigurationOperations.js +9 -0
- 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 +9 -0
- package/dist-esm/src/operationsInterfaces/sqlPools.js.map +1 -0
- 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/workspaceGitRepoManagement.js +9 -0
- package/dist-esm/src/operationsInterfaces/workspaceGitRepoManagement.js.map +1 -0
- package/dist-esm/src/operationsInterfaces/workspaceOperations.js +9 -0
- package/dist-esm/src/operationsInterfaces/workspaceOperations.js.map +1 -0
- package/dist-esm/src/tracing.js +13 -0
- package/dist-esm/src/tracing.js.map +1 -0
- package/package.json +82 -34
- package/types/synapse-artifacts.d.ts +6680 -11132
- package/dist/index.min.js +0 -1
- package/dist/index.min.js.map +0 -1
- package/rollup.config.js +0 -41
- package/tsconfig.json +0 -20
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bigDataPools.js","sourceRoot":"","sources":["../../../src/operations/bigDataPools.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExC,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,WAAW,MAAM,qBAAqB,CAAC;AACnD,OAAO,KAAK,OAAO,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,UAAU,MA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AC;SACZ;IACH,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,eAAe;IACrB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iCAAiC;SACtD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;IACpC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,iCAAiC;IACvC,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,eAAe,CAAC;IAChE,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 { BigDataPools } 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 { ArtifactsClient } from \"../artifactsClient\";\nimport {\n BigDataPoolsListOptionalParams,\n BigDataPoolsListResponse,\n BigDataPoolsGetOptionalParams,\n BigDataPoolsGetResponse\n} from \"../models\";\n\n/** Class containing BigDataPools operations. */\nexport class BigDataPoolsImpl implements BigDataPools {\n private readonly client: ArtifactsClient;\n\n /**\n * Initialize a new instance of the class BigDataPools class.\n * @param client Reference to the service client\n */\n constructor(client: ArtifactsClient) {\n this.client = client;\n }\n\n /**\n * List Big Data Pools\n * @param options The options parameters.\n */\n async list(\n options?: BigDataPoolsListOptionalParams\n ): Promise<BigDataPoolsListResponse> {\n const { span } = createSpan(\"ArtifactsClient-list\", options || {});\n try {\n const result = await this.client.sendOperationRequest(\n { options },\n listOperationSpec\n );\n return result as BigDataPoolsListResponse;\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 * Get Big Data Pool\n * @param bigDataPoolName The Big Data Pool name\n * @param options The options parameters.\n */\n async get(\n bigDataPoolName: string,\n options?: BigDataPoolsGetOptionalParams\n ): Promise<BigDataPoolsGetResponse> {\n const { span } = createSpan(\"ArtifactsClient-get\", options || {});\n try {\n const result = await this.client.sendOperationRequest(\n { bigDataPoolName, options },\n getOperationSpec\n );\n return result as BigDataPoolsGetResponse;\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 listOperationSpec: coreClient.OperationSpec = {\n path: \"/bigDataPools\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BigDataPoolResourceInfoListResult\n },\n default: {\n bodyMapper: Mappers.ErrorContract\n }\n },\n queryParameters: [Parameters.apiVersion4],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/bigDataPools/{bigDataPoolName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BigDataPoolResourceInfo\n },\n default: {\n bodyMapper: Mappers.ErrorContract\n }\n },\n queryParameters: [Parameters.apiVersion4],\n urlParameters: [Parameters.endpoint, Parameters.bigDataPoolName],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|
|
@@ -0,0 +1,403 @@
|
|
|
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 { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
|
+
import { createSpan } from "../tracing";
|
|
10
|
+
import * as coreClient from "@azure/core-client";
|
|
11
|
+
import * as coreTracing from "@azure/core-tracing";
|
|
12
|
+
import * as Mappers from "../models/mappers";
|
|
13
|
+
import * as Parameters from "../models/parameters";
|
|
14
|
+
import { LroEngine } from "@azure/core-lro";
|
|
15
|
+
import { LroImpl } from "../lroImpl";
|
|
16
|
+
/// <reference lib="esnext.asynciterable" />
|
|
17
|
+
/** Class containing DataFlowDebugSession operations. */
|
|
18
|
+
export class DataFlowDebugSessionImpl {
|
|
19
|
+
/**
|
|
20
|
+
* Initialize a new instance of the class DataFlowDebugSession class.
|
|
21
|
+
* @param client Reference to the service client
|
|
22
|
+
*/
|
|
23
|
+
constructor(client) {
|
|
24
|
+
this.client = client;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Query all active data flow debug sessions.
|
|
28
|
+
* @param options The options parameters.
|
|
29
|
+
*/
|
|
30
|
+
listQueryDataFlowDebugSessionsByWorkspace(options) {
|
|
31
|
+
const iter = this.queryDataFlowDebugSessionsByWorkspacePagingAll(options);
|
|
32
|
+
return {
|
|
33
|
+
next() {
|
|
34
|
+
return iter.next();
|
|
35
|
+
},
|
|
36
|
+
[Symbol.asyncIterator]() {
|
|
37
|
+
return this;
|
|
38
|
+
},
|
|
39
|
+
byPage: () => {
|
|
40
|
+
return this.queryDataFlowDebugSessionsByWorkspacePagingPage(options);
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
queryDataFlowDebugSessionsByWorkspacePagingPage(options) {
|
|
45
|
+
return __asyncGenerator(this, arguments, function* queryDataFlowDebugSessionsByWorkspacePagingPage_1() {
|
|
46
|
+
let result = yield __await(this._queryDataFlowDebugSessionsByWorkspace(options));
|
|
47
|
+
yield yield __await(result.value || []);
|
|
48
|
+
let continuationToken = result.nextLink;
|
|
49
|
+
while (continuationToken) {
|
|
50
|
+
result = yield __await(this._queryDataFlowDebugSessionsByWorkspaceNext(continuationToken, options));
|
|
51
|
+
continuationToken = result.nextLink;
|
|
52
|
+
yield yield __await(result.value || []);
|
|
53
|
+
}
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
queryDataFlowDebugSessionsByWorkspacePagingAll(options) {
|
|
57
|
+
return __asyncGenerator(this, arguments, function* queryDataFlowDebugSessionsByWorkspacePagingAll_1() {
|
|
58
|
+
var e_1, _a;
|
|
59
|
+
try {
|
|
60
|
+
for (var _b = __asyncValues(this.queryDataFlowDebugSessionsByWorkspacePagingPage(options)), _c; _c = yield __await(_b.next()), !_c.done;) {
|
|
61
|
+
const page = _c.value;
|
|
62
|
+
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
66
|
+
finally {
|
|
67
|
+
try {
|
|
68
|
+
if (_c && !_c.done && (_a = _b.return)) yield __await(_a.call(_b));
|
|
69
|
+
}
|
|
70
|
+
finally { if (e_1) throw e_1.error; }
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Creates a data flow debug session.
|
|
76
|
+
* @param request Data flow debug session definition
|
|
77
|
+
* @param options The options parameters.
|
|
78
|
+
*/
|
|
79
|
+
async beginCreateDataFlowDebugSession(request, options) {
|
|
80
|
+
const { span } = createSpan("ArtifactsClient-beginCreateDataFlowDebugSession", options || {});
|
|
81
|
+
const directSendOperation = async (args, spec) => {
|
|
82
|
+
try {
|
|
83
|
+
const result = await this.client.sendOperationRequest(args, spec);
|
|
84
|
+
return result;
|
|
85
|
+
}
|
|
86
|
+
catch (error) {
|
|
87
|
+
span.setStatus({
|
|
88
|
+
code: coreTracing.SpanStatusCode.UNSET,
|
|
89
|
+
message: error.message
|
|
90
|
+
});
|
|
91
|
+
throw error;
|
|
92
|
+
}
|
|
93
|
+
finally {
|
|
94
|
+
span.end();
|
|
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
|
+
const poller = 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
|
|
120
|
+
});
|
|
121
|
+
await poller.poll();
|
|
122
|
+
return poller;
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Creates a data flow debug session.
|
|
126
|
+
* @param request Data flow debug session definition
|
|
127
|
+
* @param options The options parameters.
|
|
128
|
+
*/
|
|
129
|
+
async beginCreateDataFlowDebugSessionAndWait(request, options) {
|
|
130
|
+
const poller = await this.beginCreateDataFlowDebugSession(request, options);
|
|
131
|
+
return poller.pollUntilDone();
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Query all active data flow debug sessions.
|
|
135
|
+
* @param options The options parameters.
|
|
136
|
+
*/
|
|
137
|
+
async _queryDataFlowDebugSessionsByWorkspace(options) {
|
|
138
|
+
const { span } = createSpan("ArtifactsClient-_queryDataFlowDebugSessionsByWorkspace", options || {});
|
|
139
|
+
try {
|
|
140
|
+
const result = await this.client.sendOperationRequest({ options }, queryDataFlowDebugSessionsByWorkspaceOperationSpec);
|
|
141
|
+
return result;
|
|
142
|
+
}
|
|
143
|
+
catch (error) {
|
|
144
|
+
span.setStatus({
|
|
145
|
+
code: coreTracing.SpanStatusCode.UNSET,
|
|
146
|
+
message: error.message
|
|
147
|
+
});
|
|
148
|
+
throw error;
|
|
149
|
+
}
|
|
150
|
+
finally {
|
|
151
|
+
span.end();
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Add a data flow into debug session.
|
|
156
|
+
* @param request Data flow debug session definition with debug content.
|
|
157
|
+
* @param options The options parameters.
|
|
158
|
+
*/
|
|
159
|
+
async addDataFlow(request, options) {
|
|
160
|
+
const { span } = createSpan("ArtifactsClient-addDataFlow", options || {});
|
|
161
|
+
try {
|
|
162
|
+
const result = await this.client.sendOperationRequest({ request, options }, addDataFlowOperationSpec);
|
|
163
|
+
return result;
|
|
164
|
+
}
|
|
165
|
+
catch (error) {
|
|
166
|
+
span.setStatus({
|
|
167
|
+
code: coreTracing.SpanStatusCode.UNSET,
|
|
168
|
+
message: error.message
|
|
169
|
+
});
|
|
170
|
+
throw error;
|
|
171
|
+
}
|
|
172
|
+
finally {
|
|
173
|
+
span.end();
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Deletes a data flow debug session.
|
|
178
|
+
* @param request Data flow debug session definition for deletion
|
|
179
|
+
* @param options The options parameters.
|
|
180
|
+
*/
|
|
181
|
+
async deleteDataFlowDebugSession(request, options) {
|
|
182
|
+
const { span } = createSpan("ArtifactsClient-deleteDataFlowDebugSession", options || {});
|
|
183
|
+
try {
|
|
184
|
+
const result = await this.client.sendOperationRequest({ request, options }, deleteDataFlowDebugSessionOperationSpec);
|
|
185
|
+
return result;
|
|
186
|
+
}
|
|
187
|
+
catch (error) {
|
|
188
|
+
span.setStatus({
|
|
189
|
+
code: coreTracing.SpanStatusCode.UNSET,
|
|
190
|
+
message: error.message
|
|
191
|
+
});
|
|
192
|
+
throw error;
|
|
193
|
+
}
|
|
194
|
+
finally {
|
|
195
|
+
span.end();
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Execute a data flow debug command.
|
|
200
|
+
* @param request Data flow debug command definition.
|
|
201
|
+
* @param options The options parameters.
|
|
202
|
+
*/
|
|
203
|
+
async beginExecuteCommand(request, options) {
|
|
204
|
+
const { span } = createSpan("ArtifactsClient-beginExecuteCommand", options || {});
|
|
205
|
+
const directSendOperation = async (args, spec) => {
|
|
206
|
+
try {
|
|
207
|
+
const result = await this.client.sendOperationRequest(args, spec);
|
|
208
|
+
return result;
|
|
209
|
+
}
|
|
210
|
+
catch (error) {
|
|
211
|
+
span.setStatus({
|
|
212
|
+
code: coreTracing.SpanStatusCode.UNSET,
|
|
213
|
+
message: error.message
|
|
214
|
+
});
|
|
215
|
+
throw error;
|
|
216
|
+
}
|
|
217
|
+
finally {
|
|
218
|
+
span.end();
|
|
219
|
+
}
|
|
220
|
+
};
|
|
221
|
+
const sendOperation = async (args, spec) => {
|
|
222
|
+
var _a;
|
|
223
|
+
let currentRawResponse = undefined;
|
|
224
|
+
const providedCallback = (_a = args.options) === null || _a === void 0 ? void 0 : _a.onResponse;
|
|
225
|
+
const callback = (rawResponse, flatResponse) => {
|
|
226
|
+
currentRawResponse = rawResponse;
|
|
227
|
+
providedCallback === null || providedCallback === void 0 ? void 0 : providedCallback(rawResponse, flatResponse);
|
|
228
|
+
};
|
|
229
|
+
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
230
|
+
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
231
|
+
return {
|
|
232
|
+
flatResponse,
|
|
233
|
+
rawResponse: {
|
|
234
|
+
statusCode: currentRawResponse.status,
|
|
235
|
+
body: currentRawResponse.parsedBody,
|
|
236
|
+
headers: currentRawResponse.headers.toJSON()
|
|
237
|
+
}
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
const lro = new LroImpl(sendOperation, { request, options }, executeCommandOperationSpec);
|
|
241
|
+
const poller = new LroEngine(lro, {
|
|
242
|
+
resumeFrom: options === null || options === void 0 ? void 0 : options.resumeFrom,
|
|
243
|
+
intervalInMs: options === null || options === void 0 ? void 0 : options.updateIntervalInMs
|
|
244
|
+
});
|
|
245
|
+
await poller.poll();
|
|
246
|
+
return poller;
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Execute a data flow debug command.
|
|
250
|
+
* @param request Data flow debug command definition.
|
|
251
|
+
* @param options The options parameters.
|
|
252
|
+
*/
|
|
253
|
+
async beginExecuteCommandAndWait(request, options) {
|
|
254
|
+
const poller = await this.beginExecuteCommand(request, options);
|
|
255
|
+
return poller.pollUntilDone();
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* QueryDataFlowDebugSessionsByWorkspaceNext
|
|
259
|
+
* @param nextLink The nextLink from the previous successful call to the
|
|
260
|
+
* QueryDataFlowDebugSessionsByWorkspace method.
|
|
261
|
+
* @param options The options parameters.
|
|
262
|
+
*/
|
|
263
|
+
async _queryDataFlowDebugSessionsByWorkspaceNext(nextLink, options) {
|
|
264
|
+
const { span } = createSpan("ArtifactsClient-_queryDataFlowDebugSessionsByWorkspaceNext", options || {});
|
|
265
|
+
try {
|
|
266
|
+
const result = await this.client.sendOperationRequest({ nextLink, options }, queryDataFlowDebugSessionsByWorkspaceNextOperationSpec);
|
|
267
|
+
return result;
|
|
268
|
+
}
|
|
269
|
+
catch (error) {
|
|
270
|
+
span.setStatus({
|
|
271
|
+
code: coreTracing.SpanStatusCode.UNSET,
|
|
272
|
+
message: error.message
|
|
273
|
+
});
|
|
274
|
+
throw error;
|
|
275
|
+
}
|
|
276
|
+
finally {
|
|
277
|
+
span.end();
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
}
|
|
281
|
+
// Operation Specifications
|
|
282
|
+
const serializer = coreClient.createSerializer(Mappers, /* isXml */ false);
|
|
283
|
+
const createDataFlowDebugSessionOperationSpec = {
|
|
284
|
+
path: "/createDataFlowDebugSession",
|
|
285
|
+
httpMethod: "POST",
|
|
286
|
+
responses: {
|
|
287
|
+
200: {
|
|
288
|
+
bodyMapper: Mappers.CreateDataFlowDebugSessionResponse
|
|
289
|
+
},
|
|
290
|
+
201: {
|
|
291
|
+
bodyMapper: Mappers.CreateDataFlowDebugSessionResponse
|
|
292
|
+
},
|
|
293
|
+
202: {
|
|
294
|
+
bodyMapper: Mappers.CreateDataFlowDebugSessionResponse
|
|
295
|
+
},
|
|
296
|
+
204: {
|
|
297
|
+
bodyMapper: Mappers.CreateDataFlowDebugSessionResponse
|
|
298
|
+
},
|
|
299
|
+
default: {
|
|
300
|
+
bodyMapper: Mappers.CloudError
|
|
301
|
+
}
|
|
302
|
+
},
|
|
303
|
+
requestBody: Parameters.request1,
|
|
304
|
+
queryParameters: [Parameters.apiVersion4],
|
|
305
|
+
urlParameters: [Parameters.endpoint],
|
|
306
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
307
|
+
mediaType: "json",
|
|
308
|
+
serializer
|
|
309
|
+
};
|
|
310
|
+
const queryDataFlowDebugSessionsByWorkspaceOperationSpec = {
|
|
311
|
+
path: "/queryDataFlowDebugSessions",
|
|
312
|
+
httpMethod: "POST",
|
|
313
|
+
responses: {
|
|
314
|
+
200: {
|
|
315
|
+
bodyMapper: Mappers.QueryDataFlowDebugSessionsResponse
|
|
316
|
+
},
|
|
317
|
+
default: {
|
|
318
|
+
bodyMapper: Mappers.CloudError
|
|
319
|
+
}
|
|
320
|
+
},
|
|
321
|
+
queryParameters: [Parameters.apiVersion4],
|
|
322
|
+
urlParameters: [Parameters.endpoint],
|
|
323
|
+
headerParameters: [Parameters.accept],
|
|
324
|
+
serializer
|
|
325
|
+
};
|
|
326
|
+
const addDataFlowOperationSpec = {
|
|
327
|
+
path: "/addDataFlowToDebugSession",
|
|
328
|
+
httpMethod: "POST",
|
|
329
|
+
responses: {
|
|
330
|
+
200: {
|
|
331
|
+
bodyMapper: Mappers.AddDataFlowToDebugSessionResponse
|
|
332
|
+
},
|
|
333
|
+
default: {
|
|
334
|
+
bodyMapper: Mappers.CloudError
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
requestBody: Parameters.request2,
|
|
338
|
+
queryParameters: [Parameters.apiVersion4],
|
|
339
|
+
urlParameters: [Parameters.endpoint],
|
|
340
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
341
|
+
mediaType: "json",
|
|
342
|
+
serializer
|
|
343
|
+
};
|
|
344
|
+
const deleteDataFlowDebugSessionOperationSpec = {
|
|
345
|
+
path: "/deleteDataFlowDebugSession",
|
|
346
|
+
httpMethod: "POST",
|
|
347
|
+
responses: {
|
|
348
|
+
200: {},
|
|
349
|
+
default: {
|
|
350
|
+
bodyMapper: Mappers.CloudError
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
requestBody: Parameters.request3,
|
|
354
|
+
queryParameters: [Parameters.apiVersion4],
|
|
355
|
+
urlParameters: [Parameters.endpoint],
|
|
356
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
357
|
+
mediaType: "json",
|
|
358
|
+
serializer
|
|
359
|
+
};
|
|
360
|
+
const executeCommandOperationSpec = {
|
|
361
|
+
path: "/executeDataFlowDebugCommand",
|
|
362
|
+
httpMethod: "POST",
|
|
363
|
+
responses: {
|
|
364
|
+
200: {
|
|
365
|
+
bodyMapper: Mappers.DataFlowDebugCommandResponse
|
|
366
|
+
},
|
|
367
|
+
201: {
|
|
368
|
+
bodyMapper: Mappers.DataFlowDebugCommandResponse
|
|
369
|
+
},
|
|
370
|
+
202: {
|
|
371
|
+
bodyMapper: Mappers.DataFlowDebugCommandResponse
|
|
372
|
+
},
|
|
373
|
+
204: {
|
|
374
|
+
bodyMapper: Mappers.DataFlowDebugCommandResponse
|
|
375
|
+
},
|
|
376
|
+
default: {
|
|
377
|
+
bodyMapper: Mappers.CloudError
|
|
378
|
+
}
|
|
379
|
+
},
|
|
380
|
+
requestBody: Parameters.request4,
|
|
381
|
+
queryParameters: [Parameters.apiVersion4],
|
|
382
|
+
urlParameters: [Parameters.endpoint],
|
|
383
|
+
headerParameters: [Parameters.accept, Parameters.contentType],
|
|
384
|
+
mediaType: "json",
|
|
385
|
+
serializer
|
|
386
|
+
};
|
|
387
|
+
const queryDataFlowDebugSessionsByWorkspaceNextOperationSpec = {
|
|
388
|
+
path: "{nextLink}",
|
|
389
|
+
httpMethod: "GET",
|
|
390
|
+
responses: {
|
|
391
|
+
200: {
|
|
392
|
+
bodyMapper: Mappers.QueryDataFlowDebugSessionsResponse
|
|
393
|
+
},
|
|
394
|
+
default: {
|
|
395
|
+
bodyMapper: Mappers.CloudError
|
|
396
|
+
}
|
|
397
|
+
},
|
|
398
|
+
queryParameters: [Parameters.apiVersion4],
|
|
399
|
+
urlParameters: [Parameters.endpoint, Parameters.nextLink],
|
|
400
|
+
headerParameters: [Parameters.accept],
|
|
401
|
+
serializer
|
|
402
|
+
};
|
|
403
|
+
//# sourceMappingURL=dataFlowDebugSession.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAoBrC,4CAA4C;AAC5C,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAGnC;;;OAGG;IACH,YAAY,MAAuB;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,yCAAyC,CAC9C,OAAiF;QAEjF,MAAM,IAAI,GAAG,IAAI,CAAC,8CAA8C,CAAC,OAAO,CAAC,CAAC;QAC1E,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,GAAG,EAAE;gBACX,OAAO,IAAI,CAAC,+CAA+C,CAAC,OAAO,CAAC,CAAC;YACvE,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,+CAA+C,CAC5D,OAAiF;;YAEjF,IAAI,MAAM,GAAG,cAAM,IAAI,CAAC,sCAAsC,CAAC,OA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AC;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 { ArtifactsClient } from \"../artifactsClient\";\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: ArtifactsClient;\n\n /**\n * Initialize a new instance of the class DataFlowDebugSession class.\n * @param client Reference to the service client\n */\n constructor(client: ArtifactsClient) {\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 const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\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 const poller = new LroEngine(lro, {\n resumeFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs\n });\n await poller.poll();\n return poller;\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.CloudError\n }\n },\n requestBody: Parameters.request1,\n queryParameters: [Parameters.apiVersion4],\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.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion4],\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.CloudError\n }\n },\n requestBody: Parameters.request2,\n queryParameters: [Parameters.apiVersion4],\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.CloudError\n }\n },\n requestBody: Parameters.request3,\n queryParameters: [Parameters.apiVersion4],\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.CloudError\n }\n },\n requestBody: Parameters.request4,\n queryParameters: [Parameters.apiVersion4],\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.CloudError\n }\n },\n queryParameters: [Parameters.apiVersion4],\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer\n};\n"]}
|