@azure/synapse-artifacts 1.0.0-alpha.20250620.1 → 1.0.0-alpha.20250721.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/artifactsClient.js +34 -5
- package/dist/browser/artifactsClient.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +6060 -2770
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/bigDataPools.js +3 -2
- package/dist/browser/operations/bigDataPools.js.map +1 -1
- package/dist/browser/operations/dataFlowDebugSession.js +51 -58
- package/dist/browser/operations/dataFlowDebugSession.js.map +1 -1
- package/dist/browser/operations/dataFlowOperations.js +62 -64
- package/dist/browser/operations/dataFlowOperations.js.map +1 -1
- package/dist/browser/operations/datasetOperations.js +62 -64
- package/dist/browser/operations/datasetOperations.js.map +1 -1
- package/dist/browser/operations/integrationRuntimes.js +3 -2
- package/dist/browser/operations/integrationRuntimes.js.map +1 -1
- package/dist/browser/operations/kqlScriptOperations.js +38 -22
- package/dist/browser/operations/kqlScriptOperations.js.map +1 -1
- package/dist/browser/operations/kqlScripts.js +25 -42
- package/dist/browser/operations/kqlScripts.js.map +1 -1
- package/dist/browser/operations/library.js +64 -66
- package/dist/browser/operations/library.js.map +1 -1
- package/dist/browser/operations/linkConnectionOperations.js +37 -54
- package/dist/browser/operations/linkConnectionOperations.js.map +1 -1
- package/dist/browser/operations/linkedServiceOperations.js +62 -64
- package/dist/browser/operations/linkedServiceOperations.js.map +1 -1
- package/dist/browser/operations/metastore.js +5 -4
- package/dist/browser/operations/metastore.js.map +1 -1
- package/dist/browser/operations/notebookOperationResult.js +2 -1
- package/dist/browser/operations/notebookOperationResult.js.map +1 -1
- package/dist/browser/operations/notebookOperations.js +86 -105
- package/dist/browser/operations/notebookOperations.js.map +1 -1
- package/dist/browser/operations/pipelineOperations.js +63 -65
- package/dist/browser/operations/pipelineOperations.js.map +1 -1
- package/dist/browser/operations/pipelineRunOperations.js +5 -4
- package/dist/browser/operations/pipelineRunOperations.js.map +1 -1
- package/dist/browser/operations/runNotebook.js +16 -10
- package/dist/browser/operations/runNotebook.js.map +1 -1
- package/dist/browser/operations/sparkConfigurationOperations.js +62 -64
- package/dist/browser/operations/sparkConfigurationOperations.js.map +1 -1
- package/dist/browser/operations/sparkJobDefinitionOperations.js +86 -78
- package/dist/browser/operations/sparkJobDefinitionOperations.js.map +1 -1
- package/dist/browser/operations/sqlPools.js +3 -2
- package/dist/browser/operations/sqlPools.js.map +1 -1
- package/dist/browser/operations/sqlScriptOperations.js +62 -64
- package/dist/browser/operations/sqlScriptOperations.js.map +1 -1
- package/dist/browser/operations/triggerOperations.js +99 -86
- package/dist/browser/operations/triggerOperations.js.map +1 -1
- package/dist/browser/operations/triggerRunOperations.js +4 -3
- package/dist/browser/operations/triggerRunOperations.js.map +1 -1
- package/dist/browser/operations/workspaceGitRepoManagement.js +2 -1
- package/dist/browser/operations/workspaceGitRepoManagement.js.map +1 -1
- package/dist/browser/operations/workspaceOperations.js +2 -1
- package/dist/browser/operations/workspaceOperations.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/artifactsClient.js +34 -5
- package/dist/commonjs/artifactsClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +6060 -2770
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/bigDataPools.js +3 -2
- package/dist/commonjs/operations/bigDataPools.js.map +1 -1
- package/dist/commonjs/operations/dataFlowDebugSession.js +51 -57
- package/dist/commonjs/operations/dataFlowDebugSession.js.map +1 -1
- package/dist/commonjs/operations/dataFlowOperations.js +62 -63
- package/dist/commonjs/operations/dataFlowOperations.js.map +1 -1
- package/dist/commonjs/operations/datasetOperations.js +62 -63
- package/dist/commonjs/operations/datasetOperations.js.map +1 -1
- package/dist/commonjs/operations/integrationRuntimes.js +3 -2
- package/dist/commonjs/operations/integrationRuntimes.js.map +1 -1
- package/dist/commonjs/operations/kqlScriptOperations.js +38 -22
- package/dist/commonjs/operations/kqlScriptOperations.js.map +1 -1
- package/dist/commonjs/operations/kqlScripts.js +25 -41
- package/dist/commonjs/operations/kqlScripts.js.map +1 -1
- package/dist/commonjs/operations/library.js +64 -65
- package/dist/commonjs/operations/library.js.map +1 -1
- package/dist/commonjs/operations/linkConnectionOperations.js +37 -53
- package/dist/commonjs/operations/linkConnectionOperations.js.map +1 -1
- package/dist/commonjs/operations/linkedServiceOperations.js +62 -63
- package/dist/commonjs/operations/linkedServiceOperations.js.map +1 -1
- package/dist/commonjs/operations/metastore.js +5 -4
- package/dist/commonjs/operations/metastore.js.map +1 -1
- package/dist/commonjs/operations/notebookOperationResult.js +2 -1
- package/dist/commonjs/operations/notebookOperationResult.js.map +1 -1
- package/dist/commonjs/operations/notebookOperations.js +86 -104
- package/dist/commonjs/operations/notebookOperations.js.map +1 -1
- package/dist/commonjs/operations/pipelineOperations.js +63 -64
- package/dist/commonjs/operations/pipelineOperations.js.map +1 -1
- package/dist/commonjs/operations/pipelineRunOperations.js +5 -4
- package/dist/commonjs/operations/pipelineRunOperations.js.map +1 -1
- package/dist/commonjs/operations/runNotebook.js +16 -10
- package/dist/commonjs/operations/runNotebook.js.map +1 -1
- package/dist/commonjs/operations/sparkConfigurationOperations.js +62 -63
- package/dist/commonjs/operations/sparkConfigurationOperations.js.map +1 -1
- package/dist/commonjs/operations/sparkJobDefinitionOperations.js +86 -77
- package/dist/commonjs/operations/sparkJobDefinitionOperations.js.map +1 -1
- package/dist/commonjs/operations/sqlPools.js +3 -2
- package/dist/commonjs/operations/sqlPools.js.map +1 -1
- package/dist/commonjs/operations/sqlScriptOperations.js +62 -63
- package/dist/commonjs/operations/sqlScriptOperations.js.map +1 -1
- package/dist/commonjs/operations/triggerOperations.js +99 -85
- package/dist/commonjs/operations/triggerOperations.js.map +1 -1
- package/dist/commonjs/operations/triggerRunOperations.js +4 -3
- package/dist/commonjs/operations/triggerRunOperations.js.map +1 -1
- package/dist/commonjs/operations/workspaceGitRepoManagement.js +2 -1
- package/dist/commonjs/operations/workspaceGitRepoManagement.js.map +1 -1
- package/dist/commonjs/operations/workspaceOperations.js +2 -1
- package/dist/commonjs/operations/workspaceOperations.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/artifactsClient.js +34 -5
- package/dist/esm/artifactsClient.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +6060 -2770
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/bigDataPools.js +3 -2
- package/dist/esm/operations/bigDataPools.js.map +1 -1
- package/dist/esm/operations/dataFlowDebugSession.js +51 -58
- package/dist/esm/operations/dataFlowDebugSession.js.map +1 -1
- package/dist/esm/operations/dataFlowOperations.js +62 -64
- package/dist/esm/operations/dataFlowOperations.js.map +1 -1
- package/dist/esm/operations/datasetOperations.js +62 -64
- package/dist/esm/operations/datasetOperations.js.map +1 -1
- package/dist/esm/operations/integrationRuntimes.js +3 -2
- package/dist/esm/operations/integrationRuntimes.js.map +1 -1
- package/dist/esm/operations/kqlScriptOperations.js +38 -22
- package/dist/esm/operations/kqlScriptOperations.js.map +1 -1
- package/dist/esm/operations/kqlScripts.js +25 -42
- package/dist/esm/operations/kqlScripts.js.map +1 -1
- package/dist/esm/operations/library.js +64 -66
- package/dist/esm/operations/library.js.map +1 -1
- package/dist/esm/operations/linkConnectionOperations.js +37 -54
- package/dist/esm/operations/linkConnectionOperations.js.map +1 -1
- package/dist/esm/operations/linkedServiceOperations.js +62 -64
- package/dist/esm/operations/linkedServiceOperations.js.map +1 -1
- package/dist/esm/operations/metastore.js +5 -4
- package/dist/esm/operations/metastore.js.map +1 -1
- package/dist/esm/operations/notebookOperationResult.js +2 -1
- package/dist/esm/operations/notebookOperationResult.js.map +1 -1
- package/dist/esm/operations/notebookOperations.js +86 -105
- package/dist/esm/operations/notebookOperations.js.map +1 -1
- package/dist/esm/operations/pipelineOperations.js +63 -65
- package/dist/esm/operations/pipelineOperations.js.map +1 -1
- package/dist/esm/operations/pipelineRunOperations.js +5 -4
- package/dist/esm/operations/pipelineRunOperations.js.map +1 -1
- package/dist/esm/operations/runNotebook.js +16 -10
- package/dist/esm/operations/runNotebook.js.map +1 -1
- package/dist/esm/operations/sparkConfigurationOperations.js +62 -64
- package/dist/esm/operations/sparkConfigurationOperations.js.map +1 -1
- package/dist/esm/operations/sparkJobDefinitionOperations.js +86 -78
- package/dist/esm/operations/sparkJobDefinitionOperations.js.map +1 -1
- package/dist/esm/operations/sqlPools.js +3 -2
- package/dist/esm/operations/sqlPools.js.map +1 -1
- package/dist/esm/operations/sqlScriptOperations.js +62 -64
- package/dist/esm/operations/sqlScriptOperations.js.map +1 -1
- package/dist/esm/operations/triggerOperations.js +99 -86
- package/dist/esm/operations/triggerOperations.js.map +1 -1
- package/dist/esm/operations/triggerRunOperations.js +4 -3
- package/dist/esm/operations/triggerRunOperations.js.map +1 -1
- package/dist/esm/operations/workspaceGitRepoManagement.js +2 -1
- package/dist/esm/operations/workspaceGitRepoManagement.js.map +1 -1
- package/dist/esm/operations/workspaceOperations.js +2 -1
- package/dist/esm/operations/workspaceOperations.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/artifactsClient.js +34 -5
- package/dist/react-native/artifactsClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +6060 -2770
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/bigDataPools.js +3 -2
- package/dist/react-native/operations/bigDataPools.js.map +1 -1
- package/dist/react-native/operations/dataFlowDebugSession.js +51 -58
- package/dist/react-native/operations/dataFlowDebugSession.js.map +1 -1
- package/dist/react-native/operations/dataFlowOperations.js +62 -64
- package/dist/react-native/operations/dataFlowOperations.js.map +1 -1
- package/dist/react-native/operations/datasetOperations.js +62 -64
- package/dist/react-native/operations/datasetOperations.js.map +1 -1
- package/dist/react-native/operations/integrationRuntimes.js +3 -2
- package/dist/react-native/operations/integrationRuntimes.js.map +1 -1
- package/dist/react-native/operations/kqlScriptOperations.js +38 -22
- package/dist/react-native/operations/kqlScriptOperations.js.map +1 -1
- package/dist/react-native/operations/kqlScripts.js +25 -42
- package/dist/react-native/operations/kqlScripts.js.map +1 -1
- package/dist/react-native/operations/library.js +64 -66
- package/dist/react-native/operations/library.js.map +1 -1
- package/dist/react-native/operations/linkConnectionOperations.js +37 -54
- package/dist/react-native/operations/linkConnectionOperations.js.map +1 -1
- package/dist/react-native/operations/linkedServiceOperations.js +62 -64
- package/dist/react-native/operations/linkedServiceOperations.js.map +1 -1
- package/dist/react-native/operations/metastore.js +5 -4
- package/dist/react-native/operations/metastore.js.map +1 -1
- package/dist/react-native/operations/notebookOperationResult.js +2 -1
- package/dist/react-native/operations/notebookOperationResult.js.map +1 -1
- package/dist/react-native/operations/notebookOperations.js +86 -105
- package/dist/react-native/operations/notebookOperations.js.map +1 -1
- package/dist/react-native/operations/pipelineOperations.js +63 -65
- package/dist/react-native/operations/pipelineOperations.js.map +1 -1
- package/dist/react-native/operations/pipelineRunOperations.js +5 -4
- package/dist/react-native/operations/pipelineRunOperations.js.map +1 -1
- package/dist/react-native/operations/runNotebook.js +16 -10
- package/dist/react-native/operations/runNotebook.js.map +1 -1
- package/dist/react-native/operations/sparkConfigurationOperations.js +62 -64
- package/dist/react-native/operations/sparkConfigurationOperations.js.map +1 -1
- package/dist/react-native/operations/sparkJobDefinitionOperations.js +86 -78
- package/dist/react-native/operations/sparkJobDefinitionOperations.js.map +1 -1
- package/dist/react-native/operations/sqlPools.js +3 -2
- package/dist/react-native/operations/sqlPools.js.map +1 -1
- package/dist/react-native/operations/sqlScriptOperations.js +62 -64
- package/dist/react-native/operations/sqlScriptOperations.js.map +1 -1
- package/dist/react-native/operations/triggerOperations.js +99 -86
- package/dist/react-native/operations/triggerOperations.js.map +1 -1
- package/dist/react-native/operations/triggerRunOperations.js +4 -3
- package/dist/react-native/operations/triggerRunOperations.js.map +1 -1
- package/dist/react-native/operations/workspaceGitRepoManagement.js +2 -1
- package/dist/react-native/operations/workspaceGitRepoManagement.js.map +1 -1
- package/dist/react-native/operations/workspaceOperations.js +2 -1
- package/dist/react-native/operations/workspaceOperations.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { tracingClient } from "../tracing.js";
|
|
10
9
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
11
10
|
import * as coreClient from "@azure/core-client";
|
|
@@ -151,6 +150,7 @@ const getPipelinesByWorkspaceNextOperationSpec = {
|
|
|
151
150
|
};
|
|
152
151
|
/** Class containing PipelineOperations operations. */
|
|
153
152
|
export class PipelineOperationsImpl {
|
|
153
|
+
client;
|
|
154
154
|
/**
|
|
155
155
|
* Initialize a new instance of the class PipelineOperations class.
|
|
156
156
|
* @param client - Reference to the service client
|
|
@@ -172,59 +172,42 @@ export class PipelineOperationsImpl {
|
|
|
172
172
|
return this;
|
|
173
173
|
},
|
|
174
174
|
byPage: (settings) => {
|
|
175
|
-
if (settings
|
|
175
|
+
if (settings?.maxPageSize) {
|
|
176
176
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
177
177
|
}
|
|
178
178
|
return this.getPipelinesByWorkspacePagingPage(options, settings);
|
|
179
179
|
},
|
|
180
180
|
};
|
|
181
181
|
}
|
|
182
|
-
getPipelinesByWorkspacePagingPage(options, settings) {
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
}
|
|
200
|
-
});
|
|
182
|
+
async *getPipelinesByWorkspacePagingPage(options, settings) {
|
|
183
|
+
let result;
|
|
184
|
+
let continuationToken = settings?.continuationToken;
|
|
185
|
+
if (!continuationToken) {
|
|
186
|
+
result = await this._getPipelinesByWorkspace(options);
|
|
187
|
+
const page = result.value || [];
|
|
188
|
+
continuationToken = result.nextLink;
|
|
189
|
+
setContinuationToken(page, continuationToken);
|
|
190
|
+
yield page;
|
|
191
|
+
}
|
|
192
|
+
while (continuationToken) {
|
|
193
|
+
result = await this._getPipelinesByWorkspaceNext(continuationToken, options);
|
|
194
|
+
continuationToken = result.nextLink;
|
|
195
|
+
const page = result.value || [];
|
|
196
|
+
setContinuationToken(page, continuationToken);
|
|
197
|
+
yield page;
|
|
198
|
+
}
|
|
201
199
|
}
|
|
202
|
-
getPipelinesByWorkspacePagingAll(options) {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
for (var _d = true, _e = __asyncValues(this.getPipelinesByWorkspacePagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
207
|
-
_c = _f.value;
|
|
208
|
-
_d = false;
|
|
209
|
-
const page = _c;
|
|
210
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
214
|
-
finally {
|
|
215
|
-
try {
|
|
216
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
217
|
-
}
|
|
218
|
-
finally { if (e_1) throw e_1.error; }
|
|
219
|
-
}
|
|
220
|
-
});
|
|
200
|
+
async *getPipelinesByWorkspacePagingAll(options) {
|
|
201
|
+
for await (const page of this.getPipelinesByWorkspacePagingPage(options)) {
|
|
202
|
+
yield* page;
|
|
203
|
+
}
|
|
221
204
|
}
|
|
222
205
|
/**
|
|
223
206
|
* Lists pipelines.
|
|
224
207
|
* @param options - The options parameters.
|
|
225
208
|
*/
|
|
226
209
|
async _getPipelinesByWorkspace(options) {
|
|
227
|
-
return tracingClient.withSpan("ArtifactsClient._getPipelinesByWorkspace", options
|
|
210
|
+
return tracingClient.withSpan("ArtifactsClient._getPipelinesByWorkspace", options ?? {}, async (updatedOptions) => {
|
|
228
211
|
return this.client.sendOperationRequest({ updatedOptions }, getPipelinesByWorkspaceOperationSpec);
|
|
229
212
|
});
|
|
230
213
|
}
|
|
@@ -236,19 +219,24 @@ export class PipelineOperationsImpl {
|
|
|
236
219
|
*/
|
|
237
220
|
async beginCreateOrUpdatePipeline(pipelineName, pipeline, options) {
|
|
238
221
|
const directSendOperation = async (args, spec) => {
|
|
239
|
-
return tracingClient.withSpan("ArtifactsClient.beginCreateOrUpdatePipeline", options
|
|
222
|
+
return tracingClient.withSpan("ArtifactsClient.beginCreateOrUpdatePipeline", options ?? {}, async () => {
|
|
240
223
|
return this.client.sendOperationRequest(args, spec);
|
|
241
224
|
});
|
|
242
225
|
};
|
|
243
226
|
const sendOperationFn = async (args, spec) => {
|
|
244
|
-
var _a;
|
|
245
227
|
let currentRawResponse = undefined;
|
|
246
|
-
const providedCallback =
|
|
228
|
+
const providedCallback = args.options?.onResponse;
|
|
247
229
|
const callback = (rawResponse, flatResponse) => {
|
|
248
230
|
currentRawResponse = rawResponse;
|
|
249
|
-
providedCallback
|
|
231
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
232
|
+
};
|
|
233
|
+
const updatedArgs = {
|
|
234
|
+
...args,
|
|
235
|
+
options: {
|
|
236
|
+
...args.options,
|
|
237
|
+
onResponse: callback,
|
|
238
|
+
},
|
|
250
239
|
};
|
|
251
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
252
240
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
253
241
|
return {
|
|
254
242
|
flatResponse,
|
|
@@ -265,8 +253,8 @@ export class PipelineOperationsImpl {
|
|
|
265
253
|
spec: createOrUpdatePipelineOperationSpec,
|
|
266
254
|
});
|
|
267
255
|
const poller = await createHttpPoller(lro, {
|
|
268
|
-
restoreFrom: options
|
|
269
|
-
intervalInMs: options
|
|
256
|
+
restoreFrom: options?.resumeFrom,
|
|
257
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
270
258
|
});
|
|
271
259
|
await poller.poll();
|
|
272
260
|
return poller;
|
|
@@ -287,7 +275,7 @@ export class PipelineOperationsImpl {
|
|
|
287
275
|
* @param options - The options parameters.
|
|
288
276
|
*/
|
|
289
277
|
async getPipeline(pipelineName, options) {
|
|
290
|
-
return tracingClient.withSpan("ArtifactsClient.getPipeline", options
|
|
278
|
+
return tracingClient.withSpan("ArtifactsClient.getPipeline", options ?? {}, async (updatedOptions) => {
|
|
291
279
|
return this.client.sendOperationRequest({ pipelineName, updatedOptions }, getPipelineOperationSpec);
|
|
292
280
|
});
|
|
293
281
|
}
|
|
@@ -298,19 +286,24 @@ export class PipelineOperationsImpl {
|
|
|
298
286
|
*/
|
|
299
287
|
async beginDeletePipeline(pipelineName, options) {
|
|
300
288
|
const directSendOperation = async (args, spec) => {
|
|
301
|
-
return tracingClient.withSpan("ArtifactsClient.beginDeletePipeline", options
|
|
289
|
+
return tracingClient.withSpan("ArtifactsClient.beginDeletePipeline", options ?? {}, async () => {
|
|
302
290
|
return this.client.sendOperationRequest(args, spec);
|
|
303
291
|
});
|
|
304
292
|
};
|
|
305
293
|
const sendOperationFn = async (args, spec) => {
|
|
306
|
-
var _a;
|
|
307
294
|
let currentRawResponse = undefined;
|
|
308
|
-
const providedCallback =
|
|
295
|
+
const providedCallback = args.options?.onResponse;
|
|
309
296
|
const callback = (rawResponse, flatResponse) => {
|
|
310
297
|
currentRawResponse = rawResponse;
|
|
311
|
-
providedCallback
|
|
298
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
299
|
+
};
|
|
300
|
+
const updatedArgs = {
|
|
301
|
+
...args,
|
|
302
|
+
options: {
|
|
303
|
+
...args.options,
|
|
304
|
+
onResponse: callback,
|
|
305
|
+
},
|
|
312
306
|
};
|
|
313
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
314
307
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
315
308
|
return {
|
|
316
309
|
flatResponse,
|
|
@@ -327,8 +320,8 @@ export class PipelineOperationsImpl {
|
|
|
327
320
|
spec: deletePipelineOperationSpec,
|
|
328
321
|
});
|
|
329
322
|
const poller = await createHttpPoller(lro, {
|
|
330
|
-
restoreFrom: options
|
|
331
|
-
intervalInMs: options
|
|
323
|
+
restoreFrom: options?.resumeFrom,
|
|
324
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
332
325
|
});
|
|
333
326
|
await poller.poll();
|
|
334
327
|
return poller;
|
|
@@ -350,19 +343,24 @@ export class PipelineOperationsImpl {
|
|
|
350
343
|
*/
|
|
351
344
|
async beginRenamePipeline(pipelineName, request, options) {
|
|
352
345
|
const directSendOperation = async (args, spec) => {
|
|
353
|
-
return tracingClient.withSpan("ArtifactsClient.beginRenamePipeline", options
|
|
346
|
+
return tracingClient.withSpan("ArtifactsClient.beginRenamePipeline", options ?? {}, async () => {
|
|
354
347
|
return this.client.sendOperationRequest(args, spec);
|
|
355
348
|
});
|
|
356
349
|
};
|
|
357
350
|
const sendOperationFn = async (args, spec) => {
|
|
358
|
-
var _a;
|
|
359
351
|
let currentRawResponse = undefined;
|
|
360
|
-
const providedCallback =
|
|
352
|
+
const providedCallback = args.options?.onResponse;
|
|
361
353
|
const callback = (rawResponse, flatResponse) => {
|
|
362
354
|
currentRawResponse = rawResponse;
|
|
363
|
-
providedCallback
|
|
355
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
356
|
+
};
|
|
357
|
+
const updatedArgs = {
|
|
358
|
+
...args,
|
|
359
|
+
options: {
|
|
360
|
+
...args.options,
|
|
361
|
+
onResponse: callback,
|
|
362
|
+
},
|
|
364
363
|
};
|
|
365
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
366
364
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
367
365
|
return {
|
|
368
366
|
flatResponse,
|
|
@@ -379,8 +377,8 @@ export class PipelineOperationsImpl {
|
|
|
379
377
|
spec: renamePipelineOperationSpec,
|
|
380
378
|
});
|
|
381
379
|
const poller = await createHttpPoller(lro, {
|
|
382
|
-
restoreFrom: options
|
|
383
|
-
intervalInMs: options
|
|
380
|
+
restoreFrom: options?.resumeFrom,
|
|
381
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
384
382
|
});
|
|
385
383
|
await poller.poll();
|
|
386
384
|
return poller;
|
|
@@ -401,7 +399,7 @@ export class PipelineOperationsImpl {
|
|
|
401
399
|
* @param options - The options parameters.
|
|
402
400
|
*/
|
|
403
401
|
async createPipelineRun(pipelineName, options) {
|
|
404
|
-
return tracingClient.withSpan("ArtifactsClient.createPipelineRun", options
|
|
402
|
+
return tracingClient.withSpan("ArtifactsClient.createPipelineRun", options ?? {}, async (updatedOptions) => {
|
|
405
403
|
return this.client.sendOperationRequest({ pipelineName, updatedOptions }, createPipelineRunOperationSpec);
|
|
406
404
|
});
|
|
407
405
|
}
|
|
@@ -412,7 +410,7 @@ export class PipelineOperationsImpl {
|
|
|
412
410
|
* @param options - The options parameters.
|
|
413
411
|
*/
|
|
414
412
|
async _getPipelinesByWorkspaceNext(nextLink, options) {
|
|
415
|
-
return tracingClient.withSpan("ArtifactsClient._getPipelinesByWorkspaceNext", options
|
|
413
|
+
return tracingClient.withSpan("ArtifactsClient._getPipelinesByWorkspaceNext", options ?? {}, async (updatedOptions) => {
|
|
416
414
|
return this.client.sendOperationRequest({ nextLink, updatedOptions }, getPipelinesByWorkspaceNextOperationSpec);
|
|
417
415
|
});
|
|
418
416
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipelineOperations.js","sourceRoot":"","sources":["../../../src/operations/pipelineOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAGtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAmB9C,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;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,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,CAC3B,mCAAmC,EACnC,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,EACb,KAAK,EAAE,cAAc,EAAE,EAAE;YACvB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,YAAY,EAAE,cAAc,EAAE,EAChC,8BAA8B,CACe,CAAC;QAClD,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACK,KAAK,CAAC,4BAA4B,CACxC,QAAgB,EAChB,OAA2D;QAE3D,OAAO,aAAa,CAAC,QAAQ,CAC3B,8CAA8C,EAC9C,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,EACb,KAAK,EAAE,cAAc,EAAE,EAAE;YACvB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,cAAc,EAAE,EAC5B,wCAAwC,CACe,CAAC;QAC5D,CAAC,CACF,CAAC;IACJ,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { tracingClient } from \"../tracing.js\";\nimport type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport type { PipelineOperations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport type { ArtifactsClient } from \"../artifactsClient.js\";\nimport type { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport { createHttpPoller } from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport type {\n PipelineResource,\n PipelineGetPipelinesByWorkspaceNextOptionalParams,\n PipelineGetPipelinesByWorkspaceOptionalParams,\n PipelineGetPipelinesByWorkspaceResponse,\n PipelineCreateOrUpdatePipelineOptionalParams,\n PipelineCreateOrUpdatePipelineResponse,\n PipelineGetPipelineOptionalParams,\n PipelineGetPipelineResponse,\n PipelineDeletePipelineOptionalParams,\n ArtifactRenameRequest,\n PipelineRenamePipelineOptionalParams,\n PipelineCreatePipelineRunOptionalParams,\n PipelineCreatePipelineRunResponse,\n PipelineGetPipelinesByWorkspaceNextResponse,\n} from \"../models/index.js\";\nimport type { RawHttpHeaders } from \"@azure/core-rest-pipeline\";\n\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getPipelinesByWorkspaceOperationSpec: coreClient.OperationSpec = {\n path: \"/pipelines\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PipelineListResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdatePipelineOperationSpec: coreClient.OperationSpec = {\n path: \"/pipelines/{pipelineName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PipelineResource,\n },\n 201: {\n bodyMapper: Mappers.PipelineResource,\n },\n 202: {\n bodyMapper: Mappers.PipelineResource,\n },\n 204: {\n bodyMapper: Mappers.PipelineResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.pipeline,\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.pipelineName],\n headerParameters: [Parameters.accept, Parameters.contentType, Parameters.ifMatch],\n mediaType: \"json\",\n serializer,\n};\nconst getPipelineOperationSpec: coreClient.OperationSpec = {\n path: \"/pipelines/{pipelineName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PipelineResource,\n },\n 304: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.pipelineName],\n headerParameters: [Parameters.accept, Parameters.ifNoneMatch],\n serializer,\n};\nconst deletePipelineOperationSpec: coreClient.OperationSpec = {\n path: \"/pipelines/{pipelineName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.pipelineName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst renamePipelineOperationSpec: coreClient.OperationSpec = {\n path: \"/pipelines/{pipelineName}/rename\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.request,\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.pipelineName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst createPipelineRunOperationSpec: coreClient.OperationSpec = {\n path: \"/pipelines/{pipelineName}/createRun\",\n httpMethod: \"POST\",\n responses: {\n 202: {\n bodyMapper: Mappers.CreateRunResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters,\n queryParameters: [\n Parameters.apiVersion5,\n Parameters.referencePipelineRunId,\n Parameters.isRecovery,\n Parameters.startActivityName,\n ],\n urlParameters: [Parameters.endpoint, Parameters.pipelineName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getPipelinesByWorkspaceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PipelineListResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n\n/** Class containing PipelineOperations operations. */\nexport class PipelineOperationsImpl implements PipelineOperations {\n private readonly client: ArtifactsClient;\n\n /**\n * Initialize a new instance of the class PipelineOperations class.\n * @param client - Reference to the service client\n */\n constructor(client: ArtifactsClient) {\n this.client = client;\n }\n\n /**\n * Lists pipelines.\n * @param options - The options parameters.\n */\n public listPipelinesByWorkspace(\n options?: PipelineGetPipelinesByWorkspaceOptionalParams,\n ): PagedAsyncIterableIterator<PipelineResource> {\n const iter = this.getPipelinesByWorkspacePagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.getPipelinesByWorkspacePagingPage(options, settings);\n },\n };\n }\n\n private async *getPipelinesByWorkspacePagingPage(\n options?: PipelineGetPipelinesByWorkspaceOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<PipelineResource[]> {\n let result: PipelineGetPipelinesByWorkspaceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._getPipelinesByWorkspace(options);\n const page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._getPipelinesByWorkspaceNext(continuationToken, options);\n continuationToken = result.nextLink;\n const page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *getPipelinesByWorkspacePagingAll(\n options?: PipelineGetPipelinesByWorkspaceOptionalParams,\n ): AsyncIterableIterator<PipelineResource> {\n for await (const page of this.getPipelinesByWorkspacePagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists pipelines.\n * @param options - The options parameters.\n */\n private async _getPipelinesByWorkspace(\n options?: PipelineGetPipelinesByWorkspaceOptionalParams,\n ): Promise<PipelineGetPipelinesByWorkspaceResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._getPipelinesByWorkspace\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { updatedOptions },\n getPipelinesByWorkspaceOperationSpec,\n ) as Promise<PipelineGetPipelinesByWorkspaceResponse>;\n },\n );\n }\n\n /**\n * Creates or updates a pipeline.\n * @param pipelineName - The pipeline name.\n * @param pipeline - Pipeline resource definition.\n * @param options - The options parameters.\n */\n async beginCreateOrUpdatePipeline(\n pipelineName: string,\n pipeline: PipelineResource,\n options?: PipelineCreateOrUpdatePipelineOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PipelineCreateOrUpdatePipelineResponse>,\n PipelineCreateOrUpdatePipelineResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PipelineCreateOrUpdatePipelineResponse> => {\n return tracingClient.withSpan(\n \"ArtifactsClient.beginCreateOrUpdatePipeline\",\n options ?? {},\n async () => {\n return this.client.sendOperationRequest(\n args,\n spec,\n ) as Promise<PipelineCreateOrUpdatePipelineResponse>;\n },\n );\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<{\n flatResponse: PipelineResource;\n rawResponse: {\n statusCode: number;\n body: any;\n headers: RawHttpHeaders;\n };\n }> => {\n let currentRawResponse: coreClient.FullOperationResponse | 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 = createLroSpec({\n sendOperationFn,\n args: { pipelineName, pipeline, options },\n spec: createOrUpdatePipelineOperationSpec,\n });\n const poller = await createHttpPoller<\n PipelineCreateOrUpdatePipelineResponse,\n OperationState<PipelineCreateOrUpdatePipelineResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates or updates a pipeline.\n * @param pipelineName - The pipeline name.\n * @param pipeline - Pipeline resource definition.\n * @param options - The options parameters.\n */\n async beginCreateOrUpdatePipelineAndWait(\n pipelineName: string,\n pipeline: PipelineResource,\n options?: PipelineCreateOrUpdatePipelineOptionalParams,\n ): Promise<PipelineCreateOrUpdatePipelineResponse> {\n const poller = await this.beginCreateOrUpdatePipeline(pipelineName, pipeline, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Gets a pipeline.\n * @param pipelineName - The pipeline name.\n * @param options - The options parameters.\n */\n async getPipeline(\n pipelineName: string,\n options?: PipelineGetPipelineOptionalParams,\n ): Promise<PipelineGetPipelineResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.getPipeline\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { pipelineName, updatedOptions },\n getPipelineOperationSpec,\n ) as Promise<PipelineGetPipelineResponse>;\n },\n );\n }\n\n /**\n * Deletes a pipeline.\n * @param pipelineName - The pipeline name.\n * @param options - The options parameters.\n */\n async beginDeletePipeline(\n pipelineName: string,\n options?: PipelineDeletePipelineOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return tracingClient.withSpan(\n \"ArtifactsClient.beginDeletePipeline\",\n options ?? {},\n async () => {\n return this.client.sendOperationRequest(args, spec) as Promise<void>;\n },\n );\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<{\n flatResponse: void;\n rawResponse: {\n statusCode: number;\n body: any;\n headers: RawHttpHeaders;\n };\n }> => {\n let currentRawResponse: coreClient.FullOperationResponse | 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 = createLroSpec({\n sendOperationFn,\n args: { pipelineName, options },\n spec: deletePipelineOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a pipeline.\n * @param pipelineName - The pipeline name.\n * @param options - The options parameters.\n */\n async beginDeletePipelineAndWait(\n pipelineName: string,\n options?: PipelineDeletePipelineOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDeletePipeline(pipelineName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Renames a pipeline.\n * @param pipelineName - The pipeline name.\n * @param request - proposed new name.\n * @param options - The options parameters.\n */\n async beginRenamePipeline(\n pipelineName: string,\n request: ArtifactRenameRequest,\n options?: PipelineRenamePipelineOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return tracingClient.withSpan(\n \"ArtifactsClient.beginRenamePipeline\",\n options ?? {},\n async () => {\n return this.client.sendOperationRequest(args, spec) as Promise<void>;\n },\n );\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<{\n flatResponse: void;\n rawResponse: {\n statusCode: number;\n body: any;\n headers: RawHttpHeaders;\n };\n }> => {\n let currentRawResponse: coreClient.FullOperationResponse | 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 = createLroSpec({\n sendOperationFn,\n args: { pipelineName, request, options },\n spec: renamePipelineOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Renames a pipeline.\n * @param pipelineName - The pipeline name.\n * @param request - proposed new name.\n * @param options - The options parameters.\n */\n async beginRenamePipelineAndWait(\n pipelineName: string,\n request: ArtifactRenameRequest,\n options?: PipelineRenamePipelineOptionalParams,\n ): Promise<void> {\n const poller = await this.beginRenamePipeline(pipelineName, request, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Creates a run of a pipeline.\n * @param pipelineName - The pipeline name.\n * @param options - The options parameters.\n */\n async createPipelineRun(\n pipelineName: string,\n options?: PipelineCreatePipelineRunOptionalParams,\n ): Promise<PipelineCreatePipelineRunResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.createPipelineRun\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { pipelineName, updatedOptions },\n createPipelineRunOperationSpec,\n ) as Promise<PipelineCreatePipelineRunResponse>;\n },\n );\n }\n\n /**\n * GetPipelinesByWorkspaceNext\n * @param nextLink - The nextLink from the previous successful call to the GetPipelinesByWorkspace\n * method.\n * @param options - The options parameters.\n */\n private async _getPipelinesByWorkspaceNext(\n nextLink: string,\n options?: PipelineGetPipelinesByWorkspaceNextOptionalParams,\n ): Promise<PipelineGetPipelinesByWorkspaceNextResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._getPipelinesByWorkspaceNext\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { nextLink, updatedOptions },\n getPipelinesByWorkspaceNextOperationSpec,\n ) as Promise<PipelineGetPipelinesByWorkspaceNextResponse>;\n },\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"pipelineOperations.js","sourceRoot":"","sources":["../../../src/operations/pipelineOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAGtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAmB9C,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,oBAAoB;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;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,mCAAmC,GAA6B;IACpE,IA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AAwC,CACe,CAAC;QAC5D,CAAC,CACF,CAAC;IACJ,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { tracingClient } from \"../tracing.js\";\nimport type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport type { PipelineOperations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport type { ArtifactsClient } from \"../artifactsClient.js\";\nimport type { SimplePollerLike, OperationState } from \"@azure/core-lro\";\nimport { createHttpPoller } from \"@azure/core-lro\";\nimport { createLroSpec } from \"../lroImpl.js\";\nimport type {\n PipelineResource,\n PipelineGetPipelinesByWorkspaceNextOptionalParams,\n PipelineGetPipelinesByWorkspaceOptionalParams,\n PipelineGetPipelinesByWorkspaceResponse,\n PipelineCreateOrUpdatePipelineOptionalParams,\n PipelineCreateOrUpdatePipelineResponse,\n PipelineGetPipelineOptionalParams,\n PipelineGetPipelineResponse,\n PipelineDeletePipelineOptionalParams,\n ArtifactRenameRequest,\n PipelineRenamePipelineOptionalParams,\n PipelineCreatePipelineRunOptionalParams,\n PipelineCreatePipelineRunResponse,\n PipelineGetPipelinesByWorkspaceNextResponse,\n} from \"../models/index.js\";\nimport type { RawHttpHeaders } from \"@azure/core-rest-pipeline\";\n\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getPipelinesByWorkspaceOperationSpec: coreClient.OperationSpec = {\n path: \"/pipelines\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PipelineListResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdatePipelineOperationSpec: coreClient.OperationSpec = {\n path: \"/pipelines/{pipelineName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.PipelineResource,\n },\n 201: {\n bodyMapper: Mappers.PipelineResource,\n },\n 202: {\n bodyMapper: Mappers.PipelineResource,\n },\n 204: {\n bodyMapper: Mappers.PipelineResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.pipeline,\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.pipelineName],\n headerParameters: [Parameters.accept, Parameters.contentType, Parameters.ifMatch],\n mediaType: \"json\",\n serializer,\n};\nconst getPipelineOperationSpec: coreClient.OperationSpec = {\n path: \"/pipelines/{pipelineName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PipelineResource,\n },\n 304: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.pipelineName],\n headerParameters: [Parameters.accept, Parameters.ifNoneMatch],\n serializer,\n};\nconst deletePipelineOperationSpec: coreClient.OperationSpec = {\n path: \"/pipelines/{pipelineName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.pipelineName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst renamePipelineOperationSpec: coreClient.OperationSpec = {\n path: \"/pipelines/{pipelineName}/rename\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n 201: {},\n 202: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.request,\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.pipelineName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst createPipelineRunOperationSpec: coreClient.OperationSpec = {\n path: \"/pipelines/{pipelineName}/createRun\",\n httpMethod: \"POST\",\n responses: {\n 202: {\n bodyMapper: Mappers.CreateRunResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.parameters,\n queryParameters: [\n Parameters.apiVersion5,\n Parameters.referencePipelineRunId,\n Parameters.isRecovery,\n Parameters.startActivityName,\n ],\n urlParameters: [Parameters.endpoint, Parameters.pipelineName],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getPipelinesByWorkspaceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PipelineListResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n\n/** Class containing PipelineOperations operations. */\nexport class PipelineOperationsImpl implements PipelineOperations {\n private readonly client: ArtifactsClient;\n\n /**\n * Initialize a new instance of the class PipelineOperations class.\n * @param client - Reference to the service client\n */\n constructor(client: ArtifactsClient) {\n this.client = client;\n }\n\n /**\n * Lists pipelines.\n * @param options - The options parameters.\n */\n public listPipelinesByWorkspace(\n options?: PipelineGetPipelinesByWorkspaceOptionalParams,\n ): PagedAsyncIterableIterator<PipelineResource> {\n const iter = this.getPipelinesByWorkspacePagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.getPipelinesByWorkspacePagingPage(options, settings);\n },\n };\n }\n\n private async *getPipelinesByWorkspacePagingPage(\n options?: PipelineGetPipelinesByWorkspaceOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<PipelineResource[]> {\n let result: PipelineGetPipelinesByWorkspaceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._getPipelinesByWorkspace(options);\n const page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._getPipelinesByWorkspaceNext(continuationToken, options);\n continuationToken = result.nextLink;\n const page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *getPipelinesByWorkspacePagingAll(\n options?: PipelineGetPipelinesByWorkspaceOptionalParams,\n ): AsyncIterableIterator<PipelineResource> {\n for await (const page of this.getPipelinesByWorkspacePagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists pipelines.\n * @param options - The options parameters.\n */\n private async _getPipelinesByWorkspace(\n options?: PipelineGetPipelinesByWorkspaceOptionalParams,\n ): Promise<PipelineGetPipelinesByWorkspaceResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._getPipelinesByWorkspace\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { updatedOptions },\n getPipelinesByWorkspaceOperationSpec,\n ) as Promise<PipelineGetPipelinesByWorkspaceResponse>;\n },\n );\n }\n\n /**\n * Creates or updates a pipeline.\n * @param pipelineName - The pipeline name.\n * @param pipeline - Pipeline resource definition.\n * @param options - The options parameters.\n */\n async beginCreateOrUpdatePipeline(\n pipelineName: string,\n pipeline: PipelineResource,\n options?: PipelineCreateOrUpdatePipelineOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<PipelineCreateOrUpdatePipelineResponse>,\n PipelineCreateOrUpdatePipelineResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<PipelineCreateOrUpdatePipelineResponse> => {\n return tracingClient.withSpan(\n \"ArtifactsClient.beginCreateOrUpdatePipeline\",\n options ?? {},\n async () => {\n return this.client.sendOperationRequest(\n args,\n spec,\n ) as Promise<PipelineCreateOrUpdatePipelineResponse>;\n },\n );\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<{\n flatResponse: PipelineResource;\n rawResponse: {\n statusCode: number;\n body: any;\n headers: RawHttpHeaders;\n };\n }> => {\n let currentRawResponse: coreClient.FullOperationResponse | 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 = createLroSpec({\n sendOperationFn,\n args: { pipelineName, pipeline, options },\n spec: createOrUpdatePipelineOperationSpec,\n });\n const poller = await createHttpPoller<\n PipelineCreateOrUpdatePipelineResponse,\n OperationState<PipelineCreateOrUpdatePipelineResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates or updates a pipeline.\n * @param pipelineName - The pipeline name.\n * @param pipeline - Pipeline resource definition.\n * @param options - The options parameters.\n */\n async beginCreateOrUpdatePipelineAndWait(\n pipelineName: string,\n pipeline: PipelineResource,\n options?: PipelineCreateOrUpdatePipelineOptionalParams,\n ): Promise<PipelineCreateOrUpdatePipelineResponse> {\n const poller = await this.beginCreateOrUpdatePipeline(pipelineName, pipeline, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Gets a pipeline.\n * @param pipelineName - The pipeline name.\n * @param options - The options parameters.\n */\n async getPipeline(\n pipelineName: string,\n options?: PipelineGetPipelineOptionalParams,\n ): Promise<PipelineGetPipelineResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.getPipeline\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { pipelineName, updatedOptions },\n getPipelineOperationSpec,\n ) as Promise<PipelineGetPipelineResponse>;\n },\n );\n }\n\n /**\n * Deletes a pipeline.\n * @param pipelineName - The pipeline name.\n * @param options - The options parameters.\n */\n async beginDeletePipeline(\n pipelineName: string,\n options?: PipelineDeletePipelineOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return tracingClient.withSpan(\n \"ArtifactsClient.beginDeletePipeline\",\n options ?? {},\n async () => {\n return this.client.sendOperationRequest(args, spec) as Promise<void>;\n },\n );\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<{\n flatResponse: void;\n rawResponse: {\n statusCode: number;\n body: any;\n headers: RawHttpHeaders;\n };\n }> => {\n let currentRawResponse: coreClient.FullOperationResponse | 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 = createLroSpec({\n sendOperationFn,\n args: { pipelineName, options },\n spec: deletePipelineOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Deletes a pipeline.\n * @param pipelineName - The pipeline name.\n * @param options - The options parameters.\n */\n async beginDeletePipelineAndWait(\n pipelineName: string,\n options?: PipelineDeletePipelineOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDeletePipeline(pipelineName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Renames a pipeline.\n * @param pipelineName - The pipeline name.\n * @param request - proposed new name.\n * @param options - The options parameters.\n */\n async beginRenamePipeline(\n pipelineName: string,\n request: ArtifactRenameRequest,\n options?: PipelineRenamePipelineOptionalParams,\n ): Promise<SimplePollerLike<OperationState<void>, void>> {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<void> => {\n return tracingClient.withSpan(\n \"ArtifactsClient.beginRenamePipeline\",\n options ?? {},\n async () => {\n return this.client.sendOperationRequest(args, spec) as Promise<void>;\n },\n );\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<{\n flatResponse: void;\n rawResponse: {\n statusCode: number;\n body: any;\n headers: RawHttpHeaders;\n };\n }> => {\n let currentRawResponse: coreClient.FullOperationResponse | 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 = createLroSpec({\n sendOperationFn,\n args: { pipelineName, request, options },\n spec: renamePipelineOperationSpec,\n });\n const poller = await createHttpPoller<void, OperationState<void>>(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Renames a pipeline.\n * @param pipelineName - The pipeline name.\n * @param request - proposed new name.\n * @param options - The options parameters.\n */\n async beginRenamePipelineAndWait(\n pipelineName: string,\n request: ArtifactRenameRequest,\n options?: PipelineRenamePipelineOptionalParams,\n ): Promise<void> {\n const poller = await this.beginRenamePipeline(pipelineName, request, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Creates a run of a pipeline.\n * @param pipelineName - The pipeline name.\n * @param options - The options parameters.\n */\n async createPipelineRun(\n pipelineName: string,\n options?: PipelineCreatePipelineRunOptionalParams,\n ): Promise<PipelineCreatePipelineRunResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.createPipelineRun\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { pipelineName, updatedOptions },\n createPipelineRunOperationSpec,\n ) as Promise<PipelineCreatePipelineRunResponse>;\n },\n );\n }\n\n /**\n * GetPipelinesByWorkspaceNext\n * @param nextLink - The nextLink from the previous successful call to the GetPipelinesByWorkspace\n * method.\n * @param options - The options parameters.\n */\n private async _getPipelinesByWorkspaceNext(\n nextLink: string,\n options?: PipelineGetPipelinesByWorkspaceNextOptionalParams,\n ): Promise<PipelineGetPipelinesByWorkspaceNextResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._getPipelinesByWorkspaceNext\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { nextLink, updatedOptions },\n getPipelinesByWorkspaceNextOperationSpec,\n ) as Promise<PipelineGetPipelinesByWorkspaceNextResponse>;\n },\n );\n }\n}\n"]}
|
|
@@ -79,6 +79,7 @@ const cancelPipelineRunOperationSpec = {
|
|
|
79
79
|
};
|
|
80
80
|
/** Class containing PipelineRunOperations operations. */
|
|
81
81
|
export class PipelineRunOperationsImpl {
|
|
82
|
+
client;
|
|
82
83
|
/**
|
|
83
84
|
* Initialize a new instance of the class PipelineRunOperations class.
|
|
84
85
|
* @param client - Reference to the service client
|
|
@@ -92,7 +93,7 @@ export class PipelineRunOperationsImpl {
|
|
|
92
93
|
* @param options - The options parameters.
|
|
93
94
|
*/
|
|
94
95
|
async queryPipelineRunsByWorkspace(filterParameters, options) {
|
|
95
|
-
return tracingClient.withSpan("ArtifactsClient.queryPipelineRunsByWorkspace", options
|
|
96
|
+
return tracingClient.withSpan("ArtifactsClient.queryPipelineRunsByWorkspace", options ?? {}, async (updatedOptions) => {
|
|
96
97
|
return this.client.sendOperationRequest({ filterParameters, updatedOptions }, queryPipelineRunsByWorkspaceOperationSpec);
|
|
97
98
|
});
|
|
98
99
|
}
|
|
@@ -102,7 +103,7 @@ export class PipelineRunOperationsImpl {
|
|
|
102
103
|
* @param options - The options parameters.
|
|
103
104
|
*/
|
|
104
105
|
async getPipelineRun(runId, options) {
|
|
105
|
-
return tracingClient.withSpan("ArtifactsClient.getPipelineRun", options
|
|
106
|
+
return tracingClient.withSpan("ArtifactsClient.getPipelineRun", options ?? {}, async (updatedOptions) => {
|
|
106
107
|
return this.client.sendOperationRequest({ runId, updatedOptions }, getPipelineRunOperationSpec);
|
|
107
108
|
});
|
|
108
109
|
}
|
|
@@ -114,7 +115,7 @@ export class PipelineRunOperationsImpl {
|
|
|
114
115
|
* @param options - The options parameters.
|
|
115
116
|
*/
|
|
116
117
|
async queryActivityRuns(pipelineName, runId, filterParameters, options) {
|
|
117
|
-
return tracingClient.withSpan("ArtifactsClient.queryActivityRuns", options
|
|
118
|
+
return tracingClient.withSpan("ArtifactsClient.queryActivityRuns", options ?? {}, async (updatedOptions) => {
|
|
118
119
|
return this.client.sendOperationRequest({ pipelineName, runId, filterParameters, updatedOptions }, queryActivityRunsOperationSpec);
|
|
119
120
|
});
|
|
120
121
|
}
|
|
@@ -124,7 +125,7 @@ export class PipelineRunOperationsImpl {
|
|
|
124
125
|
* @param options - The options parameters.
|
|
125
126
|
*/
|
|
126
127
|
async cancelPipelineRun(runId, options) {
|
|
127
|
-
return tracingClient.withSpan("ArtifactsClient.cancelPipelineRun", options
|
|
128
|
+
return tracingClient.withSpan("ArtifactsClient.cancelPipelineRun", options ?? {}, async (updatedOptions) => {
|
|
128
129
|
return this.client.sendOperationRequest({ runId, updatedOptions }, cancelPipelineRunOperationSpec);
|
|
129
130
|
});
|
|
130
131
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipelineRunOperations.js","sourceRoot":"","sources":["../../../src/operations/pipelineRunOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAatD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,yCAAyC,GAA6B;IAC1E,IAAI,EAAE,oBAAoB;IAC1B,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,gBAAgB;IACxC,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,2BAA2B,GAA6B;IAC5D,IAAI,EAAE,uBAAuB;IAC7B,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,WAAW;SAChC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CA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\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 { tracingClient } from \"../tracing.js\";\nimport type { PipelineRunOperations } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport * as Mappers from \"../models/mappers.js\";\nimport * as Parameters from \"../models/parameters.js\";\nimport type { ArtifactsClient } from \"../artifactsClient.js\";\nimport type {\n RunFilterParameters,\n PipelineRunQueryPipelineRunsByWorkspaceOptionalParams,\n PipelineRunQueryPipelineRunsByWorkspaceResponse,\n PipelineRunGetPipelineRunOptionalParams,\n PipelineRunGetPipelineRunResponse,\n PipelineRunQueryActivityRunsOptionalParams,\n PipelineRunQueryActivityRunsResponse,\n PipelineRunCancelPipelineRunOptionalParams,\n} from \"../models/index.js\";\n\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst queryPipelineRunsByWorkspaceOperationSpec: coreClient.OperationSpec = {\n path: \"/queryPipelineRuns\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.PipelineRunsQueryResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.filterParameters,\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getPipelineRunOperationSpec: coreClient.OperationSpec = {\n path: \"/pipelineruns/{runId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.PipelineRun,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.runId1],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst queryActivityRunsOperationSpec: coreClient.OperationSpec = {\n path: \"/pipelines/{pipelineName}/pipelineruns/{runId}/queryActivityruns\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ActivityRunsQueryResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.filterParameters,\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.pipelineName, Parameters.runId1],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst cancelPipelineRunOperationSpec: coreClient.OperationSpec = {\n path: \"/pipelineruns/{runId}/cancel\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5, Parameters.isRecursive],\n urlParameters: [Parameters.endpoint, Parameters.runId1],\n headerParameters: [Parameters.accept],\n serializer,\n};\n\n/** Class containing PipelineRunOperations operations. */\nexport class PipelineRunOperationsImpl implements PipelineRunOperations {\n private readonly client: ArtifactsClient;\n\n /**\n * Initialize a new instance of the class PipelineRunOperations class.\n * @param client - Reference to the service client\n */\n constructor(client: ArtifactsClient) {\n this.client = client;\n }\n\n /**\n * Query pipeline runs in the workspace based on input filter conditions.\n * @param filterParameters - Parameters to filter the pipeline run.\n * @param options - The options parameters.\n */\n async queryPipelineRunsByWorkspace(\n filterParameters: RunFilterParameters,\n options?: PipelineRunQueryPipelineRunsByWorkspaceOptionalParams,\n ): Promise<PipelineRunQueryPipelineRunsByWorkspaceResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.queryPipelineRunsByWorkspace\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { filterParameters, updatedOptions },\n queryPipelineRunsByWorkspaceOperationSpec,\n ) as Promise<PipelineRunQueryPipelineRunsByWorkspaceResponse>;\n },\n );\n }\n\n /**\n * Get a pipeline run by its run ID.\n * @param runId - The pipeline run identifier.\n * @param options - The options parameters.\n */\n async getPipelineRun(\n runId: string,\n options?: PipelineRunGetPipelineRunOptionalParams,\n ): Promise<PipelineRunGetPipelineRunResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.getPipelineRun\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { runId, updatedOptions },\n getPipelineRunOperationSpec,\n ) as Promise<PipelineRunGetPipelineRunResponse>;\n },\n );\n }\n\n /**\n * Query activity runs based on input filter conditions.\n * @param pipelineName - The pipeline name.\n * @param runId - The pipeline run identifier.\n * @param filterParameters - Parameters to filter the activity runs.\n * @param options - The options parameters.\n */\n async queryActivityRuns(\n pipelineName: string,\n runId: string,\n filterParameters: RunFilterParameters,\n options?: PipelineRunQueryActivityRunsOptionalParams,\n ): Promise<PipelineRunQueryActivityRunsResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.queryActivityRuns\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { pipelineName, runId, filterParameters, updatedOptions },\n queryActivityRunsOperationSpec,\n ) as Promise<PipelineRunQueryActivityRunsResponse>;\n },\n );\n }\n\n /**\n * Cancel a pipeline run by its run ID.\n * @param runId - The pipeline run identifier.\n * @param options - The options parameters.\n */\n async cancelPipelineRun(\n runId: string,\n options?: PipelineRunCancelPipelineRunOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.cancelPipelineRun\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { runId, updatedOptions },\n cancelPipelineRunOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n}\n"]}
|
|
@@ -98,6 +98,7 @@ const getSnapshotOperationSpec = {
|
|
|
98
98
|
};
|
|
99
99
|
/** Class containing RunNotebook operations. */
|
|
100
100
|
export class RunNotebookImpl {
|
|
101
|
+
client;
|
|
101
102
|
/**
|
|
102
103
|
* Initialize a new instance of the class RunNotebook class.
|
|
103
104
|
* @param client - Reference to the service client
|
|
@@ -113,19 +114,24 @@ export class RunNotebookImpl {
|
|
|
113
114
|
*/
|
|
114
115
|
async beginCreateRun(runId, runNotebookRequest, options) {
|
|
115
116
|
const directSendOperation = async (args, spec) => {
|
|
116
|
-
return tracingClient.withSpan("ArtifactsClient.beginCreateRun", options
|
|
117
|
+
return tracingClient.withSpan("ArtifactsClient.beginCreateRun", options ?? {}, async () => {
|
|
117
118
|
return this.client.sendOperationRequest(args, spec);
|
|
118
119
|
});
|
|
119
120
|
};
|
|
120
121
|
const sendOperationFn = async (args, spec) => {
|
|
121
|
-
var _a;
|
|
122
122
|
let currentRawResponse = undefined;
|
|
123
|
-
const providedCallback =
|
|
123
|
+
const providedCallback = args.options?.onResponse;
|
|
124
124
|
const callback = (rawResponse, flatResponse) => {
|
|
125
125
|
currentRawResponse = rawResponse;
|
|
126
|
-
providedCallback
|
|
126
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
127
|
+
};
|
|
128
|
+
const updatedArgs = {
|
|
129
|
+
...args,
|
|
130
|
+
options: {
|
|
131
|
+
...args.options,
|
|
132
|
+
onResponse: callback,
|
|
133
|
+
},
|
|
127
134
|
};
|
|
128
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
129
135
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
130
136
|
return {
|
|
131
137
|
flatResponse,
|
|
@@ -142,8 +148,8 @@ export class RunNotebookImpl {
|
|
|
142
148
|
spec: createRunOperationSpec,
|
|
143
149
|
});
|
|
144
150
|
const poller = await createHttpPoller(lro, {
|
|
145
|
-
restoreFrom: options
|
|
146
|
-
intervalInMs: options
|
|
151
|
+
restoreFrom: options?.resumeFrom,
|
|
152
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
147
153
|
});
|
|
148
154
|
await poller.poll();
|
|
149
155
|
return poller;
|
|
@@ -164,7 +170,7 @@ export class RunNotebookImpl {
|
|
|
164
170
|
* @param options - The options parameters.
|
|
165
171
|
*/
|
|
166
172
|
async getStatus(runId, options) {
|
|
167
|
-
return tracingClient.withSpan("ArtifactsClient.getStatus", options
|
|
173
|
+
return tracingClient.withSpan("ArtifactsClient.getStatus", options ?? {}, async (updatedOptions) => {
|
|
168
174
|
return this.client.sendOperationRequest({ runId, updatedOptions }, getStatusOperationSpec);
|
|
169
175
|
});
|
|
170
176
|
}
|
|
@@ -174,7 +180,7 @@ export class RunNotebookImpl {
|
|
|
174
180
|
* @param options - The options parameters.
|
|
175
181
|
*/
|
|
176
182
|
async cancelRun(runId, options) {
|
|
177
|
-
return tracingClient.withSpan("ArtifactsClient.cancelRun", options
|
|
183
|
+
return tracingClient.withSpan("ArtifactsClient.cancelRun", options ?? {}, async (updatedOptions) => {
|
|
178
184
|
return this.client.sendOperationRequest({ runId, updatedOptions }, cancelRunOperationSpec);
|
|
179
185
|
});
|
|
180
186
|
}
|
|
@@ -184,7 +190,7 @@ export class RunNotebookImpl {
|
|
|
184
190
|
* @param options - The options parameters.
|
|
185
191
|
*/
|
|
186
192
|
async getSnapshot(runId, options) {
|
|
187
|
-
return tracingClient.withSpan("ArtifactsClient.getSnapshot", options
|
|
193
|
+
return tracingClient.withSpan("ArtifactsClient.getSnapshot", options ?? {}, async (updatedOptions) => {
|
|
188
194
|
return this.client.sendOperationRequest({ runId, updatedOptions }, getSnapshotOperationSpec);
|
|
189
195
|
});
|
|
190
196
|
}
|