@azure/synapse-artifacts 1.0.0-alpha.20250620.1 → 1.0.0-alpha.20250730.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
|
@@ -154,6 +154,7 @@ const getPipelinesByWorkspaceNextOperationSpec = {
|
|
|
154
154
|
};
|
|
155
155
|
/** Class containing PipelineOperations operations. */
|
|
156
156
|
class PipelineOperationsImpl {
|
|
157
|
+
client;
|
|
157
158
|
/**
|
|
158
159
|
* Initialize a new instance of the class PipelineOperations class.
|
|
159
160
|
* @param client - Reference to the service client
|
|
@@ -175,59 +176,42 @@ class PipelineOperationsImpl {
|
|
|
175
176
|
return this;
|
|
176
177
|
},
|
|
177
178
|
byPage: (settings) => {
|
|
178
|
-
if (settings
|
|
179
|
+
if (settings?.maxPageSize) {
|
|
179
180
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
180
181
|
}
|
|
181
182
|
return this.getPipelinesByWorkspacePagingPage(options, settings);
|
|
182
183
|
},
|
|
183
184
|
};
|
|
184
185
|
}
|
|
185
|
-
getPipelinesByWorkspacePagingPage(options, settings) {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
}
|
|
203
|
-
});
|
|
186
|
+
async *getPipelinesByWorkspacePagingPage(options, settings) {
|
|
187
|
+
let result;
|
|
188
|
+
let continuationToken = settings?.continuationToken;
|
|
189
|
+
if (!continuationToken) {
|
|
190
|
+
result = await this._getPipelinesByWorkspace(options);
|
|
191
|
+
const page = result.value || [];
|
|
192
|
+
continuationToken = result.nextLink;
|
|
193
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
194
|
+
yield page;
|
|
195
|
+
}
|
|
196
|
+
while (continuationToken) {
|
|
197
|
+
result = await this._getPipelinesByWorkspaceNext(continuationToken, options);
|
|
198
|
+
continuationToken = result.nextLink;
|
|
199
|
+
const page = result.value || [];
|
|
200
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
201
|
+
yield page;
|
|
202
|
+
}
|
|
204
203
|
}
|
|
205
|
-
getPipelinesByWorkspacePagingAll(options) {
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.getPipelinesByWorkspacePagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
210
|
-
_c = _f.value;
|
|
211
|
-
_d = false;
|
|
212
|
-
const page = _c;
|
|
213
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
217
|
-
finally {
|
|
218
|
-
try {
|
|
219
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
220
|
-
}
|
|
221
|
-
finally { if (e_1) throw e_1.error; }
|
|
222
|
-
}
|
|
223
|
-
});
|
|
204
|
+
async *getPipelinesByWorkspacePagingAll(options) {
|
|
205
|
+
for await (const page of this.getPipelinesByWorkspacePagingPage(options)) {
|
|
206
|
+
yield* page;
|
|
207
|
+
}
|
|
224
208
|
}
|
|
225
209
|
/**
|
|
226
210
|
* Lists pipelines.
|
|
227
211
|
* @param options - The options parameters.
|
|
228
212
|
*/
|
|
229
213
|
async _getPipelinesByWorkspace(options) {
|
|
230
|
-
return tracing_js_1.tracingClient.withSpan("ArtifactsClient._getPipelinesByWorkspace", options
|
|
214
|
+
return tracing_js_1.tracingClient.withSpan("ArtifactsClient._getPipelinesByWorkspace", options ?? {}, async (updatedOptions) => {
|
|
231
215
|
return this.client.sendOperationRequest({ updatedOptions }, getPipelinesByWorkspaceOperationSpec);
|
|
232
216
|
});
|
|
233
217
|
}
|
|
@@ -239,19 +223,24 @@ class PipelineOperationsImpl {
|
|
|
239
223
|
*/
|
|
240
224
|
async beginCreateOrUpdatePipeline(pipelineName, pipeline, options) {
|
|
241
225
|
const directSendOperation = async (args, spec) => {
|
|
242
|
-
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.beginCreateOrUpdatePipeline", options
|
|
226
|
+
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.beginCreateOrUpdatePipeline", options ?? {}, async () => {
|
|
243
227
|
return this.client.sendOperationRequest(args, spec);
|
|
244
228
|
});
|
|
245
229
|
};
|
|
246
230
|
const sendOperationFn = async (args, spec) => {
|
|
247
|
-
var _a;
|
|
248
231
|
let currentRawResponse = undefined;
|
|
249
|
-
const providedCallback =
|
|
232
|
+
const providedCallback = args.options?.onResponse;
|
|
250
233
|
const callback = (rawResponse, flatResponse) => {
|
|
251
234
|
currentRawResponse = rawResponse;
|
|
252
|
-
providedCallback
|
|
235
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
236
|
+
};
|
|
237
|
+
const updatedArgs = {
|
|
238
|
+
...args,
|
|
239
|
+
options: {
|
|
240
|
+
...args.options,
|
|
241
|
+
onResponse: callback,
|
|
242
|
+
},
|
|
253
243
|
};
|
|
254
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
255
244
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
256
245
|
return {
|
|
257
246
|
flatResponse,
|
|
@@ -268,8 +257,8 @@ class PipelineOperationsImpl {
|
|
|
268
257
|
spec: createOrUpdatePipelineOperationSpec,
|
|
269
258
|
});
|
|
270
259
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
271
|
-
restoreFrom: options
|
|
272
|
-
intervalInMs: options
|
|
260
|
+
restoreFrom: options?.resumeFrom,
|
|
261
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
273
262
|
});
|
|
274
263
|
await poller.poll();
|
|
275
264
|
return poller;
|
|
@@ -290,7 +279,7 @@ class PipelineOperationsImpl {
|
|
|
290
279
|
* @param options - The options parameters.
|
|
291
280
|
*/
|
|
292
281
|
async getPipeline(pipelineName, options) {
|
|
293
|
-
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.getPipeline", options
|
|
282
|
+
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.getPipeline", options ?? {}, async (updatedOptions) => {
|
|
294
283
|
return this.client.sendOperationRequest({ pipelineName, updatedOptions }, getPipelineOperationSpec);
|
|
295
284
|
});
|
|
296
285
|
}
|
|
@@ -301,19 +290,24 @@ class PipelineOperationsImpl {
|
|
|
301
290
|
*/
|
|
302
291
|
async beginDeletePipeline(pipelineName, options) {
|
|
303
292
|
const directSendOperation = async (args, spec) => {
|
|
304
|
-
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.beginDeletePipeline", options
|
|
293
|
+
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.beginDeletePipeline", options ?? {}, async () => {
|
|
305
294
|
return this.client.sendOperationRequest(args, spec);
|
|
306
295
|
});
|
|
307
296
|
};
|
|
308
297
|
const sendOperationFn = async (args, spec) => {
|
|
309
|
-
var _a;
|
|
310
298
|
let currentRawResponse = undefined;
|
|
311
|
-
const providedCallback =
|
|
299
|
+
const providedCallback = args.options?.onResponse;
|
|
312
300
|
const callback = (rawResponse, flatResponse) => {
|
|
313
301
|
currentRawResponse = rawResponse;
|
|
314
|
-
providedCallback
|
|
302
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
303
|
+
};
|
|
304
|
+
const updatedArgs = {
|
|
305
|
+
...args,
|
|
306
|
+
options: {
|
|
307
|
+
...args.options,
|
|
308
|
+
onResponse: callback,
|
|
309
|
+
},
|
|
315
310
|
};
|
|
316
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
317
311
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
318
312
|
return {
|
|
319
313
|
flatResponse,
|
|
@@ -330,8 +324,8 @@ class PipelineOperationsImpl {
|
|
|
330
324
|
spec: deletePipelineOperationSpec,
|
|
331
325
|
});
|
|
332
326
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
333
|
-
restoreFrom: options
|
|
334
|
-
intervalInMs: options
|
|
327
|
+
restoreFrom: options?.resumeFrom,
|
|
328
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
335
329
|
});
|
|
336
330
|
await poller.poll();
|
|
337
331
|
return poller;
|
|
@@ -353,19 +347,24 @@ class PipelineOperationsImpl {
|
|
|
353
347
|
*/
|
|
354
348
|
async beginRenamePipeline(pipelineName, request, options) {
|
|
355
349
|
const directSendOperation = async (args, spec) => {
|
|
356
|
-
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.beginRenamePipeline", options
|
|
350
|
+
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.beginRenamePipeline", options ?? {}, async () => {
|
|
357
351
|
return this.client.sendOperationRequest(args, spec);
|
|
358
352
|
});
|
|
359
353
|
};
|
|
360
354
|
const sendOperationFn = async (args, spec) => {
|
|
361
|
-
var _a;
|
|
362
355
|
let currentRawResponse = undefined;
|
|
363
|
-
const providedCallback =
|
|
356
|
+
const providedCallback = args.options?.onResponse;
|
|
364
357
|
const callback = (rawResponse, flatResponse) => {
|
|
365
358
|
currentRawResponse = rawResponse;
|
|
366
|
-
providedCallback
|
|
359
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
360
|
+
};
|
|
361
|
+
const updatedArgs = {
|
|
362
|
+
...args,
|
|
363
|
+
options: {
|
|
364
|
+
...args.options,
|
|
365
|
+
onResponse: callback,
|
|
366
|
+
},
|
|
367
367
|
};
|
|
368
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
369
368
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
370
369
|
return {
|
|
371
370
|
flatResponse,
|
|
@@ -382,8 +381,8 @@ class PipelineOperationsImpl {
|
|
|
382
381
|
spec: renamePipelineOperationSpec,
|
|
383
382
|
});
|
|
384
383
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
385
|
-
restoreFrom: options
|
|
386
|
-
intervalInMs: options
|
|
384
|
+
restoreFrom: options?.resumeFrom,
|
|
385
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
387
386
|
});
|
|
388
387
|
await poller.poll();
|
|
389
388
|
return poller;
|
|
@@ -404,7 +403,7 @@ class PipelineOperationsImpl {
|
|
|
404
403
|
* @param options - The options parameters.
|
|
405
404
|
*/
|
|
406
405
|
async createPipelineRun(pipelineName, options) {
|
|
407
|
-
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.createPipelineRun", options
|
|
406
|
+
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.createPipelineRun", options ?? {}, async (updatedOptions) => {
|
|
408
407
|
return this.client.sendOperationRequest({ pipelineName, updatedOptions }, createPipelineRunOperationSpec);
|
|
409
408
|
});
|
|
410
409
|
}
|
|
@@ -415,7 +414,7 @@ class PipelineOperationsImpl {
|
|
|
415
414
|
* @param options - The options parameters.
|
|
416
415
|
*/
|
|
417
416
|
async _getPipelinesByWorkspaceNext(nextLink, options) {
|
|
418
|
-
return tracing_js_1.tracingClient.withSpan("ArtifactsClient._getPipelinesByWorkspaceNext", options
|
|
417
|
+
return tracing_js_1.tracingClient.withSpan("ArtifactsClient._getPipelinesByWorkspaceNext", options ?? {}, async (updatedOptions) => {
|
|
419
418
|
return this.client.sendOperationRequest({ nextLink, updatedOptions }, getPipelinesByWorkspaceNextOperationSpec);
|
|
420
419
|
});
|
|
421
420
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipelineOperations.js","sourceRoot":"","sources":["../../../src/operations/pipelineOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,8CAA8C;AAE9C,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAGtD,8CAAmD;AACnD,8CAA8C;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,IAAI,EAAE,2BAA2B;IACjC,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;QACD,GAAG,EAAE;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;IACJ,CAAC;IAED;;;;;OAKG;IACK,KAAK,CAAC,4BAA4B,CACxC,QAAgB,EAChB,OAA2D;QAE3D,OAAO,0BAAa,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;AAraD,wDAqaC","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,8CAA8C;AAE9C,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAGtD,8CAAmD;AACnD,8CAA8C;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,IAAI,EAAE,2BAA2B;IACjC,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gBAAgB;SACrC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,QAAQ;IAChC,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,C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M,CAAC;IAChB,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,0BAA0B,CAC9B,YAAoB,EACpB,OAA8B,EAC9B,OAA8C;QAE9C,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,YAAY,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;QAC9E,OAAO,MAAM,CAAC,aAAa,EAAE,CAAC;IAChC,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,iBAAiB,CACrB,YAAoB,EACpB,OAAiD;QAEjD,OAAO,0BAAa,CAAC,QAAQ,CAC3B,mCAAmC,EACnC,OAAO,IAAI,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,0BAAa,CAAC,QAAQ,CAC3B,8CAA8C,EAC9C,OAAO,IAAI,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;AAraD,wDAqaC","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"]}
|
|
@@ -83,6 +83,7 @@ const cancelPipelineRunOperationSpec = {
|
|
|
83
83
|
};
|
|
84
84
|
/** Class containing PipelineRunOperations operations. */
|
|
85
85
|
class PipelineRunOperationsImpl {
|
|
86
|
+
client;
|
|
86
87
|
/**
|
|
87
88
|
* Initialize a new instance of the class PipelineRunOperations class.
|
|
88
89
|
* @param client - Reference to the service client
|
|
@@ -96,7 +97,7 @@ class PipelineRunOperationsImpl {
|
|
|
96
97
|
* @param options - The options parameters.
|
|
97
98
|
*/
|
|
98
99
|
async queryPipelineRunsByWorkspace(filterParameters, options) {
|
|
99
|
-
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.queryPipelineRunsByWorkspace", options
|
|
100
|
+
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.queryPipelineRunsByWorkspace", options ?? {}, async (updatedOptions) => {
|
|
100
101
|
return this.client.sendOperationRequest({ filterParameters, updatedOptions }, queryPipelineRunsByWorkspaceOperationSpec);
|
|
101
102
|
});
|
|
102
103
|
}
|
|
@@ -106,7 +107,7 @@ class PipelineRunOperationsImpl {
|
|
|
106
107
|
* @param options - The options parameters.
|
|
107
108
|
*/
|
|
108
109
|
async getPipelineRun(runId, options) {
|
|
109
|
-
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.getPipelineRun", options
|
|
110
|
+
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.getPipelineRun", options ?? {}, async (updatedOptions) => {
|
|
110
111
|
return this.client.sendOperationRequest({ runId, updatedOptions }, getPipelineRunOperationSpec);
|
|
111
112
|
});
|
|
112
113
|
}
|
|
@@ -118,7 +119,7 @@ class PipelineRunOperationsImpl {
|
|
|
118
119
|
* @param options - The options parameters.
|
|
119
120
|
*/
|
|
120
121
|
async queryActivityRuns(pipelineName, runId, filterParameters, options) {
|
|
121
|
-
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.queryActivityRuns", options
|
|
122
|
+
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.queryActivityRuns", options ?? {}, async (updatedOptions) => {
|
|
122
123
|
return this.client.sendOperationRequest({ pipelineName, runId, filterParameters, updatedOptions }, queryActivityRunsOperationSpec);
|
|
123
124
|
});
|
|
124
125
|
}
|
|
@@ -128,7 +129,7 @@ class PipelineRunOperationsImpl {
|
|
|
128
129
|
* @param options - The options parameters.
|
|
129
130
|
*/
|
|
130
131
|
async cancelPipelineRun(runId, options) {
|
|
131
|
-
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.cancelPipelineRun", options
|
|
132
|
+
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.cancelPipelineRun", options ?? {}, async (updatedOptions) => {
|
|
132
133
|
return this.client.sendOperationRequest({ runId, updatedOptions }, cancelPipelineRunOperationSpec);
|
|
133
134
|
});
|
|
134
135
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pipelineRunOperations.js","sourceRoot":"","sources":["../../../src/operations/pipelineRunOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,8CAA8C;AAE9C,uEAAiD;AACjD,sEA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SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,gBAAgB;IACxC,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,YAAY,EAAE,UAAU,CAAC,MAAM,CAAC;IAChF,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,8BAA8B,GAA6B;IAC/D,IAAI,EAAE,8BAA8B;IACpC,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,WAAW,CAAC;IACjE,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,MAAM,CAAC;IACvD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AAEF,yDAAyD;AACzD,MAAa,yBAAyB;
|
|
1
|
+
{"version":3,"file":"pipelineRunOperations.js","sourceRoot":"","sources":["../../../src/operations/pipelineRunOperations.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,8CAA8C;AAE9C,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;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,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KAAa,EACb,gBAAqC,EACrC,OAAoD;QAEpD,OAAO,0BAAa,CAAC,QAAQ,CAC3B,mCAAmC,EACnC,OAAO,IAAI,EAAE,EACb,KAAK,EAAE,cAAc,EAAE,EAAE;YACvB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,YAAY,EAAE,KAAK,EAAE,gBAAgB,EAAE,cAAc,EAAE,EACzD,8BAA8B,CACkB,CAAC;QACrD,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,iBAAiB,CACrB,KAAa,EACb,OAAoD;QAEpD,OAAO,0BAAa,CAAC,QAAQ,CAC3B,mCAAmC,EACnC,OAAO,IAAI,EAAE,EACb,KAAK,EAAE,cAAc,EAAE,EAAE;YACvB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,KAAK,EAAE,cAAc,EAAE,EACzB,8BAA8B,CACd,CAAC;QACrB,CAAC,CACF,CAAC;IACJ,CAAC;CACF;AAlGD,8DAkGC","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 { 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"]}
|
|
@@ -102,6 +102,7 @@ const getSnapshotOperationSpec = {
|
|
|
102
102
|
};
|
|
103
103
|
/** Class containing RunNotebook operations. */
|
|
104
104
|
class RunNotebookImpl {
|
|
105
|
+
client;
|
|
105
106
|
/**
|
|
106
107
|
* Initialize a new instance of the class RunNotebook class.
|
|
107
108
|
* @param client - Reference to the service client
|
|
@@ -117,19 +118,24 @@ class RunNotebookImpl {
|
|
|
117
118
|
*/
|
|
118
119
|
async beginCreateRun(runId, runNotebookRequest, options) {
|
|
119
120
|
const directSendOperation = async (args, spec) => {
|
|
120
|
-
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.beginCreateRun", options
|
|
121
|
+
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.beginCreateRun", options ?? {}, async () => {
|
|
121
122
|
return this.client.sendOperationRequest(args, spec);
|
|
122
123
|
});
|
|
123
124
|
};
|
|
124
125
|
const sendOperationFn = async (args, spec) => {
|
|
125
|
-
var _a;
|
|
126
126
|
let currentRawResponse = undefined;
|
|
127
|
-
const providedCallback =
|
|
127
|
+
const providedCallback = args.options?.onResponse;
|
|
128
128
|
const callback = (rawResponse, flatResponse) => {
|
|
129
129
|
currentRawResponse = rawResponse;
|
|
130
|
-
providedCallback
|
|
130
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
131
|
+
};
|
|
132
|
+
const updatedArgs = {
|
|
133
|
+
...args,
|
|
134
|
+
options: {
|
|
135
|
+
...args.options,
|
|
136
|
+
onResponse: callback,
|
|
137
|
+
},
|
|
131
138
|
};
|
|
132
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
133
139
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
134
140
|
return {
|
|
135
141
|
flatResponse,
|
|
@@ -146,8 +152,8 @@ class RunNotebookImpl {
|
|
|
146
152
|
spec: createRunOperationSpec,
|
|
147
153
|
});
|
|
148
154
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
149
|
-
restoreFrom: options
|
|
150
|
-
intervalInMs: options
|
|
155
|
+
restoreFrom: options?.resumeFrom,
|
|
156
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
151
157
|
});
|
|
152
158
|
await poller.poll();
|
|
153
159
|
return poller;
|
|
@@ -168,7 +174,7 @@ class RunNotebookImpl {
|
|
|
168
174
|
* @param options - The options parameters.
|
|
169
175
|
*/
|
|
170
176
|
async getStatus(runId, options) {
|
|
171
|
-
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.getStatus", options
|
|
177
|
+
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.getStatus", options ?? {}, async (updatedOptions) => {
|
|
172
178
|
return this.client.sendOperationRequest({ runId, updatedOptions }, getStatusOperationSpec);
|
|
173
179
|
});
|
|
174
180
|
}
|
|
@@ -178,7 +184,7 @@ class RunNotebookImpl {
|
|
|
178
184
|
* @param options - The options parameters.
|
|
179
185
|
*/
|
|
180
186
|
async cancelRun(runId, options) {
|
|
181
|
-
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.cancelRun", options
|
|
187
|
+
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.cancelRun", options ?? {}, async (updatedOptions) => {
|
|
182
188
|
return this.client.sendOperationRequest({ runId, updatedOptions }, cancelRunOperationSpec);
|
|
183
189
|
});
|
|
184
190
|
}
|
|
@@ -188,7 +194,7 @@ class RunNotebookImpl {
|
|
|
188
194
|
* @param options - The options parameters.
|
|
189
195
|
*/
|
|
190
196
|
async getSnapshot(runId, options) {
|
|
191
|
-
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.getSnapshot", options
|
|
197
|
+
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.getSnapshot", options ?? {}, async (updatedOptions) => {
|
|
192
198
|
return this.client.sendOperationRequest({ runId, updatedOptions }, getSnapshotOperationSpec);
|
|
193
199
|
});
|
|
194
200
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"runNotebook.js","sourceRoot":"","sources":["../../../src/operations/runNotebook.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,8CAA8C;AAE9C,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAGtD,8CAAmD;AACnD,8CAA8C;AAc9C,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,sBAAsB,GAA6B;IACvD,IAAI,EAAE,yBAAyB;IAC/B,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;YACvC,aAAa,EAAE,OAAO,CAAC,2BAA2B;SACnD;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;YACvC,aAAa,EAAE,OAAO,CAAC,2BAA2B;SACnD;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;YACvC,aAAa,EAAE,OAAO,CAAC,2BAA2B;SACnD;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;YACvC,aAAa,EAAE,OAAO,CAAC,2BAA2B;SACnD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,kBAAkB;IAC1C,eAAe,EAAE,CAAC,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AE,EAAE;YACvB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,KAAK,EAAE,cAAc,EAAE,EACzB,sBAAsB,CACkB,CAAC;QAC7C,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,SAAS,CACb,KAAa,EACb,OAA4C;QAE5C,OAAO,0BAAa,CAAC,QAAQ,CAC3B,2BAA2B,EAC3B,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,EACb,KAAK,EAAE,cAAc,EAAE,EAAE;YACvB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,KAAK,EAAE,cAAc,EAAE,EACzB,sBAAsB,CACkB,CAAC;QAC7C,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,WAAW,CACf,KAAa,EACb,OAA8C;QAE9C,OAAO,0BAAa,CAAC,QAAQ,CAC3B,6BAA6B,EAC7B,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,EACb,KAAK,EAAE,cAAc,EAAE,EAAE;YACvB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,KAAK,EAAE,cAAc,EAAE,EACzB,wBAAwB,CACkB,CAAC;QAC/C,CAAC,CACF,CAAC;IACJ,CAAC;CACF;AAtKD,0CAsKC","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 { RunNotebook } 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 RunNotebookRequest,\n RunNotebookCreateRunOptionalParams,\n RunNotebookCreateRunResponse,\n RunNotebookGetStatusOptionalParams,\n RunNotebookGetStatusResponse,\n RunNotebookCancelRunOptionalParams,\n RunNotebookCancelRunResponse,\n RunNotebookGetSnapshotOptionalParams,\n RunNotebookGetSnapshotResponse,\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 createRunOperationSpec: coreClient.OperationSpec = {\n path: \"/notebooks/runs/{runId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.RunNotebookResponse,\n headersMapper: Mappers.RunNotebookCreateRunHeaders,\n },\n 201: {\n bodyMapper: Mappers.RunNotebookResponse,\n headersMapper: Mappers.RunNotebookCreateRunHeaders,\n },\n 202: {\n bodyMapper: Mappers.RunNotebookResponse,\n headersMapper: Mappers.RunNotebookCreateRunHeaders,\n },\n 204: {\n bodyMapper: Mappers.RunNotebookResponse,\n headersMapper: Mappers.RunNotebookCreateRunHeaders,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.runNotebookRequest,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.endpoint, Parameters.runId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getStatusOperationSpec: coreClient.OperationSpec = {\n path: \"/notebooks/runs/{runId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RunNotebookResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.endpoint, Parameters.runId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst cancelRunOperationSpec: coreClient.OperationSpec = {\n path: \"/notebooks/runs/{runId}/cancel\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RunNotebookResponse,\n },\n 409: {\n bodyMapper: Mappers.RunNotebookResponse,\n isError: true,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.endpoint, Parameters.runId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getSnapshotOperationSpec: coreClient.OperationSpec = {\n path: \"/notebooks/runs/{runId}/snapshot\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RunNotebookSnapshotResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.endpoint, Parameters.runId],\n headerParameters: [Parameters.accept],\n serializer,\n};\n\n/** Class containing RunNotebook operations. */\nexport class RunNotebookImpl implements RunNotebook {\n private readonly client: ArtifactsClient;\n\n /**\n * Initialize a new instance of the class RunNotebook class.\n * @param client - Reference to the service client\n */\n constructor(client: ArtifactsClient) {\n this.client = client;\n }\n\n /**\n * Run notebook\n * @param runId - Notebook run id.\n * @param runNotebookRequest - Run notebook request payload.\n * @param options - The options parameters.\n */\n async beginCreateRun(\n runId: string,\n runNotebookRequest: RunNotebookRequest,\n options?: RunNotebookCreateRunOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<RunNotebookCreateRunResponse>, RunNotebookCreateRunResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<RunNotebookCreateRunResponse> => {\n return tracingClient.withSpan(\"ArtifactsClient.beginCreateRun\", options ?? {}, async () => {\n return this.client.sendOperationRequest(\n args,\n spec,\n ) as Promise<RunNotebookCreateRunResponse>;\n });\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<{\n flatResponse: RunNotebookCreateRunResponse;\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: { runId, runNotebookRequest, options },\n spec: createRunOperationSpec,\n });\n const poller = await createHttpPoller<\n RunNotebookCreateRunResponse,\n OperationState<RunNotebookCreateRunResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Run notebook\n * @param runId - Notebook run id.\n * @param runNotebookRequest - Run notebook request payload.\n * @param options - The options parameters.\n */\n async beginCreateRunAndWait(\n runId: string,\n runNotebookRequest: RunNotebookRequest,\n options?: RunNotebookCreateRunOptionalParams,\n ): Promise<RunNotebookCreateRunResponse> {\n const poller = await this.beginCreateRun(runId, runNotebookRequest, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Get RunNotebook Status for run id.\n * @param runId - Notebook run id.\n * @param options - The options parameters.\n */\n async getStatus(\n runId: string,\n options?: RunNotebookGetStatusOptionalParams,\n ): Promise<RunNotebookGetStatusResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.getStatus\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { runId, updatedOptions },\n getStatusOperationSpec,\n ) as Promise<RunNotebookGetStatusResponse>;\n },\n );\n }\n\n /**\n * Cancel notebook run.\n * @param runId - Notebook run id.\n * @param options - The options parameters.\n */\n async cancelRun(\n runId: string,\n options?: RunNotebookCancelRunOptionalParams,\n ): Promise<RunNotebookCancelRunResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.cancelRun\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { runId, updatedOptions },\n cancelRunOperationSpec,\n ) as Promise<RunNotebookCancelRunResponse>;\n },\n );\n }\n\n /**\n * Get RunNotebook Snapshot for run id.\n * @param runId - Notebook run id.\n * @param options - The options parameters.\n */\n async getSnapshot(\n runId: string,\n options?: RunNotebookGetSnapshotOptionalParams,\n ): Promise<RunNotebookGetSnapshotResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.getSnapshot\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { runId, updatedOptions },\n getSnapshotOperationSpec,\n ) as Promise<RunNotebookGetSnapshotResponse>;\n },\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"runNotebook.js","sourceRoot":"","sources":["../../../src/operations/runNotebook.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,8CAA8C;AAE9C,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAGtD,8CAAmD;AACnD,8CAA8C;AAc9C,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,sBAAsB,GAA6B;IACvD,IAAI,EAAE,yBAAyB;IAC/B,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;YACvC,aAAa,EAAE,OAAO,CAAC,2BAA2B;SACnD;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;YACvC,aAAa,EAAE,OAAO,CAAC,2BAA2B;SACnD;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;YACvC,aAAa,EAAE,OAAO,CAAC,2BAA2B;SACnD;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KAAK,CAAC,SAAS,CACb,KAAa,EACb,OAA4C;QAE5C,OAAO,0BAAa,CAAC,QAAQ,CAC3B,2BAA2B,EAC3B,OAAO,IAAI,EAAE,EACb,KAAK,EAAE,cAAc,EAAE,EAAE;YACvB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,KAAK,EAAE,cAAc,EAAE,EACzB,sBAAsB,CACkB,CAAC;QAC7C,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,SAAS,CACb,KAAa,EACb,OAA4C;QAE5C,OAAO,0BAAa,CAAC,QAAQ,CAC3B,2BAA2B,EAC3B,OAAO,IAAI,EAAE,EACb,KAAK,EAAE,cAAc,EAAE,EAAE;YACvB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,KAAK,EAAE,cAAc,EAAE,EACzB,sBAAsB,CACkB,CAAC;QAC7C,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,WAAW,CACf,KAAa,EACb,OAA8C;QAE9C,OAAO,0BAAa,CAAC,QAAQ,CAC3B,6BAA6B,EAC7B,OAAO,IAAI,EAAE,EACb,KAAK,EAAE,cAAc,EAAE,EAAE;YACvB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,KAAK,EAAE,cAAc,EAAE,EACzB,wBAAwB,CACkB,CAAC;QAC/C,CAAC,CACF,CAAC;IACJ,CAAC;CACF;AAtKD,0CAsKC","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 { RunNotebook } 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 RunNotebookRequest,\n RunNotebookCreateRunOptionalParams,\n RunNotebookCreateRunResponse,\n RunNotebookGetStatusOptionalParams,\n RunNotebookGetStatusResponse,\n RunNotebookCancelRunOptionalParams,\n RunNotebookCancelRunResponse,\n RunNotebookGetSnapshotOptionalParams,\n RunNotebookGetSnapshotResponse,\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 createRunOperationSpec: coreClient.OperationSpec = {\n path: \"/notebooks/runs/{runId}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.RunNotebookResponse,\n headersMapper: Mappers.RunNotebookCreateRunHeaders,\n },\n 201: {\n bodyMapper: Mappers.RunNotebookResponse,\n headersMapper: Mappers.RunNotebookCreateRunHeaders,\n },\n 202: {\n bodyMapper: Mappers.RunNotebookResponse,\n headersMapper: Mappers.RunNotebookCreateRunHeaders,\n },\n 204: {\n bodyMapper: Mappers.RunNotebookResponse,\n headersMapper: Mappers.RunNotebookCreateRunHeaders,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.runNotebookRequest,\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.endpoint, Parameters.runId],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getStatusOperationSpec: coreClient.OperationSpec = {\n path: \"/notebooks/runs/{runId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RunNotebookResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.endpoint, Parameters.runId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst cancelRunOperationSpec: coreClient.OperationSpec = {\n path: \"/notebooks/runs/{runId}/cancel\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.RunNotebookResponse,\n },\n 409: {\n bodyMapper: Mappers.RunNotebookResponse,\n isError: true,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.endpoint, Parameters.runId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getSnapshotOperationSpec: coreClient.OperationSpec = {\n path: \"/notebooks/runs/{runId}/snapshot\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.RunNotebookSnapshotResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion1],\n urlParameters: [Parameters.endpoint, Parameters.runId],\n headerParameters: [Parameters.accept],\n serializer,\n};\n\n/** Class containing RunNotebook operations. */\nexport class RunNotebookImpl implements RunNotebook {\n private readonly client: ArtifactsClient;\n\n /**\n * Initialize a new instance of the class RunNotebook class.\n * @param client - Reference to the service client\n */\n constructor(client: ArtifactsClient) {\n this.client = client;\n }\n\n /**\n * Run notebook\n * @param runId - Notebook run id.\n * @param runNotebookRequest - Run notebook request payload.\n * @param options - The options parameters.\n */\n async beginCreateRun(\n runId: string,\n runNotebookRequest: RunNotebookRequest,\n options?: RunNotebookCreateRunOptionalParams,\n ): Promise<\n SimplePollerLike<OperationState<RunNotebookCreateRunResponse>, RunNotebookCreateRunResponse>\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<RunNotebookCreateRunResponse> => {\n return tracingClient.withSpan(\"ArtifactsClient.beginCreateRun\", options ?? {}, async () => {\n return this.client.sendOperationRequest(\n args,\n spec,\n ) as Promise<RunNotebookCreateRunResponse>;\n });\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<{\n flatResponse: RunNotebookCreateRunResponse;\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: { runId, runNotebookRequest, options },\n spec: createRunOperationSpec,\n });\n const poller = await createHttpPoller<\n RunNotebookCreateRunResponse,\n OperationState<RunNotebookCreateRunResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Run notebook\n * @param runId - Notebook run id.\n * @param runNotebookRequest - Run notebook request payload.\n * @param options - The options parameters.\n */\n async beginCreateRunAndWait(\n runId: string,\n runNotebookRequest: RunNotebookRequest,\n options?: RunNotebookCreateRunOptionalParams,\n ): Promise<RunNotebookCreateRunResponse> {\n const poller = await this.beginCreateRun(runId, runNotebookRequest, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Get RunNotebook Status for run id.\n * @param runId - Notebook run id.\n * @param options - The options parameters.\n */\n async getStatus(\n runId: string,\n options?: RunNotebookGetStatusOptionalParams,\n ): Promise<RunNotebookGetStatusResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.getStatus\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { runId, updatedOptions },\n getStatusOperationSpec,\n ) as Promise<RunNotebookGetStatusResponse>;\n },\n );\n }\n\n /**\n * Cancel notebook run.\n * @param runId - Notebook run id.\n * @param options - The options parameters.\n */\n async cancelRun(\n runId: string,\n options?: RunNotebookCancelRunOptionalParams,\n ): Promise<RunNotebookCancelRunResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.cancelRun\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { runId, updatedOptions },\n cancelRunOperationSpec,\n ) as Promise<RunNotebookCancelRunResponse>;\n },\n );\n }\n\n /**\n * Get RunNotebook Snapshot for run id.\n * @param runId - Notebook run id.\n * @param options - The options parameters.\n */\n async getSnapshot(\n runId: string,\n options?: RunNotebookGetSnapshotOptionalParams,\n ): Promise<RunNotebookGetSnapshotResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.getSnapshot\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { runId, updatedOptions },\n getSnapshotOperationSpec,\n ) as Promise<RunNotebookGetSnapshotResponse>;\n },\n );\n }\n}\n"]}
|