@azure/synapse-artifacts 1.0.0-alpha.20250620.1 → 1.0.0-alpha.20250721.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/artifactsClient.js +34 -5
- package/dist/browser/artifactsClient.js.map +1 -1
- package/dist/browser/lroImpl.js +7 -3
- package/dist/browser/lroImpl.js.map +1 -1
- package/dist/browser/models/mappers.js +6060 -2770
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/bigDataPools.js +3 -2
- package/dist/browser/operations/bigDataPools.js.map +1 -1
- package/dist/browser/operations/dataFlowDebugSession.js +51 -58
- package/dist/browser/operations/dataFlowDebugSession.js.map +1 -1
- package/dist/browser/operations/dataFlowOperations.js +62 -64
- package/dist/browser/operations/dataFlowOperations.js.map +1 -1
- package/dist/browser/operations/datasetOperations.js +62 -64
- package/dist/browser/operations/datasetOperations.js.map +1 -1
- package/dist/browser/operations/integrationRuntimes.js +3 -2
- package/dist/browser/operations/integrationRuntimes.js.map +1 -1
- package/dist/browser/operations/kqlScriptOperations.js +38 -22
- package/dist/browser/operations/kqlScriptOperations.js.map +1 -1
- package/dist/browser/operations/kqlScripts.js +25 -42
- package/dist/browser/operations/kqlScripts.js.map +1 -1
- package/dist/browser/operations/library.js +64 -66
- package/dist/browser/operations/library.js.map +1 -1
- package/dist/browser/operations/linkConnectionOperations.js +37 -54
- package/dist/browser/operations/linkConnectionOperations.js.map +1 -1
- package/dist/browser/operations/linkedServiceOperations.js +62 -64
- package/dist/browser/operations/linkedServiceOperations.js.map +1 -1
- package/dist/browser/operations/metastore.js +5 -4
- package/dist/browser/operations/metastore.js.map +1 -1
- package/dist/browser/operations/notebookOperationResult.js +2 -1
- package/dist/browser/operations/notebookOperationResult.js.map +1 -1
- package/dist/browser/operations/notebookOperations.js +86 -105
- package/dist/browser/operations/notebookOperations.js.map +1 -1
- package/dist/browser/operations/pipelineOperations.js +63 -65
- package/dist/browser/operations/pipelineOperations.js.map +1 -1
- package/dist/browser/operations/pipelineRunOperations.js +5 -4
- package/dist/browser/operations/pipelineRunOperations.js.map +1 -1
- package/dist/browser/operations/runNotebook.js +16 -10
- package/dist/browser/operations/runNotebook.js.map +1 -1
- package/dist/browser/operations/sparkConfigurationOperations.js +62 -64
- package/dist/browser/operations/sparkConfigurationOperations.js.map +1 -1
- package/dist/browser/operations/sparkJobDefinitionOperations.js +86 -78
- package/dist/browser/operations/sparkJobDefinitionOperations.js.map +1 -1
- package/dist/browser/operations/sqlPools.js +3 -2
- package/dist/browser/operations/sqlPools.js.map +1 -1
- package/dist/browser/operations/sqlScriptOperations.js +62 -64
- package/dist/browser/operations/sqlScriptOperations.js.map +1 -1
- package/dist/browser/operations/triggerOperations.js +99 -86
- package/dist/browser/operations/triggerOperations.js.map +1 -1
- package/dist/browser/operations/triggerRunOperations.js +4 -3
- package/dist/browser/operations/triggerRunOperations.js.map +1 -1
- package/dist/browser/operations/workspaceGitRepoManagement.js +2 -1
- package/dist/browser/operations/workspaceGitRepoManagement.js.map +1 -1
- package/dist/browser/operations/workspaceOperations.js +2 -1
- package/dist/browser/operations/workspaceOperations.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/artifactsClient.js +34 -5
- package/dist/commonjs/artifactsClient.js.map +1 -1
- package/dist/commonjs/lroImpl.js +7 -3
- package/dist/commonjs/lroImpl.js.map +1 -1
- package/dist/commonjs/models/mappers.js +6060 -2770
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/bigDataPools.js +3 -2
- package/dist/commonjs/operations/bigDataPools.js.map +1 -1
- package/dist/commonjs/operations/dataFlowDebugSession.js +51 -57
- package/dist/commonjs/operations/dataFlowDebugSession.js.map +1 -1
- package/dist/commonjs/operations/dataFlowOperations.js +62 -63
- package/dist/commonjs/operations/dataFlowOperations.js.map +1 -1
- package/dist/commonjs/operations/datasetOperations.js +62 -63
- package/dist/commonjs/operations/datasetOperations.js.map +1 -1
- package/dist/commonjs/operations/integrationRuntimes.js +3 -2
- package/dist/commonjs/operations/integrationRuntimes.js.map +1 -1
- package/dist/commonjs/operations/kqlScriptOperations.js +38 -22
- package/dist/commonjs/operations/kqlScriptOperations.js.map +1 -1
- package/dist/commonjs/operations/kqlScripts.js +25 -41
- package/dist/commonjs/operations/kqlScripts.js.map +1 -1
- package/dist/commonjs/operations/library.js +64 -65
- package/dist/commonjs/operations/library.js.map +1 -1
- package/dist/commonjs/operations/linkConnectionOperations.js +37 -53
- package/dist/commonjs/operations/linkConnectionOperations.js.map +1 -1
- package/dist/commonjs/operations/linkedServiceOperations.js +62 -63
- package/dist/commonjs/operations/linkedServiceOperations.js.map +1 -1
- package/dist/commonjs/operations/metastore.js +5 -4
- package/dist/commonjs/operations/metastore.js.map +1 -1
- package/dist/commonjs/operations/notebookOperationResult.js +2 -1
- package/dist/commonjs/operations/notebookOperationResult.js.map +1 -1
- package/dist/commonjs/operations/notebookOperations.js +86 -104
- package/dist/commonjs/operations/notebookOperations.js.map +1 -1
- package/dist/commonjs/operations/pipelineOperations.js +63 -64
- package/dist/commonjs/operations/pipelineOperations.js.map +1 -1
- package/dist/commonjs/operations/pipelineRunOperations.js +5 -4
- package/dist/commonjs/operations/pipelineRunOperations.js.map +1 -1
- package/dist/commonjs/operations/runNotebook.js +16 -10
- package/dist/commonjs/operations/runNotebook.js.map +1 -1
- package/dist/commonjs/operations/sparkConfigurationOperations.js +62 -63
- package/dist/commonjs/operations/sparkConfigurationOperations.js.map +1 -1
- package/dist/commonjs/operations/sparkJobDefinitionOperations.js +86 -77
- package/dist/commonjs/operations/sparkJobDefinitionOperations.js.map +1 -1
- package/dist/commonjs/operations/sqlPools.js +3 -2
- package/dist/commonjs/operations/sqlPools.js.map +1 -1
- package/dist/commonjs/operations/sqlScriptOperations.js +62 -63
- package/dist/commonjs/operations/sqlScriptOperations.js.map +1 -1
- package/dist/commonjs/operations/triggerOperations.js +99 -85
- package/dist/commonjs/operations/triggerOperations.js.map +1 -1
- package/dist/commonjs/operations/triggerRunOperations.js +4 -3
- package/dist/commonjs/operations/triggerRunOperations.js.map +1 -1
- package/dist/commonjs/operations/workspaceGitRepoManagement.js +2 -1
- package/dist/commonjs/operations/workspaceGitRepoManagement.js.map +1 -1
- package/dist/commonjs/operations/workspaceOperations.js +2 -1
- package/dist/commonjs/operations/workspaceOperations.js.map +1 -1
- package/dist/commonjs/pagingHelper.js +2 -4
- package/dist/commonjs/pagingHelper.js.map +1 -1
- package/dist/commonjs/tsdoc-metadata.json +11 -11
- package/dist/esm/artifactsClient.js +34 -5
- package/dist/esm/artifactsClient.js.map +1 -1
- package/dist/esm/lroImpl.js +7 -3
- package/dist/esm/lroImpl.js.map +1 -1
- package/dist/esm/models/mappers.js +6060 -2770
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/bigDataPools.js +3 -2
- package/dist/esm/operations/bigDataPools.js.map +1 -1
- package/dist/esm/operations/dataFlowDebugSession.js +51 -58
- package/dist/esm/operations/dataFlowDebugSession.js.map +1 -1
- package/dist/esm/operations/dataFlowOperations.js +62 -64
- package/dist/esm/operations/dataFlowOperations.js.map +1 -1
- package/dist/esm/operations/datasetOperations.js +62 -64
- package/dist/esm/operations/datasetOperations.js.map +1 -1
- package/dist/esm/operations/integrationRuntimes.js +3 -2
- package/dist/esm/operations/integrationRuntimes.js.map +1 -1
- package/dist/esm/operations/kqlScriptOperations.js +38 -22
- package/dist/esm/operations/kqlScriptOperations.js.map +1 -1
- package/dist/esm/operations/kqlScripts.js +25 -42
- package/dist/esm/operations/kqlScripts.js.map +1 -1
- package/dist/esm/operations/library.js +64 -66
- package/dist/esm/operations/library.js.map +1 -1
- package/dist/esm/operations/linkConnectionOperations.js +37 -54
- package/dist/esm/operations/linkConnectionOperations.js.map +1 -1
- package/dist/esm/operations/linkedServiceOperations.js +62 -64
- package/dist/esm/operations/linkedServiceOperations.js.map +1 -1
- package/dist/esm/operations/metastore.js +5 -4
- package/dist/esm/operations/metastore.js.map +1 -1
- package/dist/esm/operations/notebookOperationResult.js +2 -1
- package/dist/esm/operations/notebookOperationResult.js.map +1 -1
- package/dist/esm/operations/notebookOperations.js +86 -105
- package/dist/esm/operations/notebookOperations.js.map +1 -1
- package/dist/esm/operations/pipelineOperations.js +63 -65
- package/dist/esm/operations/pipelineOperations.js.map +1 -1
- package/dist/esm/operations/pipelineRunOperations.js +5 -4
- package/dist/esm/operations/pipelineRunOperations.js.map +1 -1
- package/dist/esm/operations/runNotebook.js +16 -10
- package/dist/esm/operations/runNotebook.js.map +1 -1
- package/dist/esm/operations/sparkConfigurationOperations.js +62 -64
- package/dist/esm/operations/sparkConfigurationOperations.js.map +1 -1
- package/dist/esm/operations/sparkJobDefinitionOperations.js +86 -78
- package/dist/esm/operations/sparkJobDefinitionOperations.js.map +1 -1
- package/dist/esm/operations/sqlPools.js +3 -2
- package/dist/esm/operations/sqlPools.js.map +1 -1
- package/dist/esm/operations/sqlScriptOperations.js +62 -64
- package/dist/esm/operations/sqlScriptOperations.js.map +1 -1
- package/dist/esm/operations/triggerOperations.js +99 -86
- package/dist/esm/operations/triggerOperations.js.map +1 -1
- package/dist/esm/operations/triggerRunOperations.js +4 -3
- package/dist/esm/operations/triggerRunOperations.js.map +1 -1
- package/dist/esm/operations/workspaceGitRepoManagement.js +2 -1
- package/dist/esm/operations/workspaceGitRepoManagement.js.map +1 -1
- package/dist/esm/operations/workspaceOperations.js +2 -1
- package/dist/esm/operations/workspaceOperations.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/artifactsClient.js +34 -5
- package/dist/react-native/artifactsClient.js.map +1 -1
- package/dist/react-native/lroImpl.js +7 -3
- package/dist/react-native/lroImpl.js.map +1 -1
- package/dist/react-native/models/mappers.js +6060 -2770
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/bigDataPools.js +3 -2
- package/dist/react-native/operations/bigDataPools.js.map +1 -1
- package/dist/react-native/operations/dataFlowDebugSession.js +51 -58
- package/dist/react-native/operations/dataFlowDebugSession.js.map +1 -1
- package/dist/react-native/operations/dataFlowOperations.js +62 -64
- package/dist/react-native/operations/dataFlowOperations.js.map +1 -1
- package/dist/react-native/operations/datasetOperations.js +62 -64
- package/dist/react-native/operations/datasetOperations.js.map +1 -1
- package/dist/react-native/operations/integrationRuntimes.js +3 -2
- package/dist/react-native/operations/integrationRuntimes.js.map +1 -1
- package/dist/react-native/operations/kqlScriptOperations.js +38 -22
- package/dist/react-native/operations/kqlScriptOperations.js.map +1 -1
- package/dist/react-native/operations/kqlScripts.js +25 -42
- package/dist/react-native/operations/kqlScripts.js.map +1 -1
- package/dist/react-native/operations/library.js +64 -66
- package/dist/react-native/operations/library.js.map +1 -1
- package/dist/react-native/operations/linkConnectionOperations.js +37 -54
- package/dist/react-native/operations/linkConnectionOperations.js.map +1 -1
- package/dist/react-native/operations/linkedServiceOperations.js +62 -64
- package/dist/react-native/operations/linkedServiceOperations.js.map +1 -1
- package/dist/react-native/operations/metastore.js +5 -4
- package/dist/react-native/operations/metastore.js.map +1 -1
- package/dist/react-native/operations/notebookOperationResult.js +2 -1
- package/dist/react-native/operations/notebookOperationResult.js.map +1 -1
- package/dist/react-native/operations/notebookOperations.js +86 -105
- package/dist/react-native/operations/notebookOperations.js.map +1 -1
- package/dist/react-native/operations/pipelineOperations.js +63 -65
- package/dist/react-native/operations/pipelineOperations.js.map +1 -1
- package/dist/react-native/operations/pipelineRunOperations.js +5 -4
- package/dist/react-native/operations/pipelineRunOperations.js.map +1 -1
- package/dist/react-native/operations/runNotebook.js +16 -10
- package/dist/react-native/operations/runNotebook.js.map +1 -1
- package/dist/react-native/operations/sparkConfigurationOperations.js +62 -64
- package/dist/react-native/operations/sparkConfigurationOperations.js.map +1 -1
- package/dist/react-native/operations/sparkJobDefinitionOperations.js +86 -78
- package/dist/react-native/operations/sparkJobDefinitionOperations.js.map +1 -1
- package/dist/react-native/operations/sqlPools.js +3 -2
- package/dist/react-native/operations/sqlPools.js.map +1 -1
- package/dist/react-native/operations/sqlScriptOperations.js +62 -64
- package/dist/react-native/operations/sqlScriptOperations.js.map +1 -1
- package/dist/react-native/operations/triggerOperations.js +99 -86
- package/dist/react-native/operations/triggerOperations.js.map +1 -1
- package/dist/react-native/operations/triggerRunOperations.js +4 -3
- package/dist/react-native/operations/triggerRunOperations.js.map +1 -1
- package/dist/react-native/operations/workspaceGitRepoManagement.js +2 -1
- package/dist/react-native/operations/workspaceGitRepoManagement.js.map +1 -1
- package/dist/react-native/operations/workspaceOperations.js +2 -1
- package/dist/react-native/operations/workspaceOperations.js.map +1 -1
- package/dist/react-native/pagingHelper.js +2 -4
- package/dist/react-native/pagingHelper.js.map +1 -1
- package/package.json +2 -2
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { tracingClient } from "../tracing.js";
|
|
10
9
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
11
10
|
import * as coreClient from "@azure/core-client";
|
|
@@ -155,6 +154,7 @@ const listNextOperationSpec = {
|
|
|
155
154
|
};
|
|
156
155
|
/** Class containing Library operations. */
|
|
157
156
|
export class LibraryImpl {
|
|
157
|
+
client;
|
|
158
158
|
/**
|
|
159
159
|
* Initialize a new instance of the class Library class.
|
|
160
160
|
* @param client - Reference to the service client
|
|
@@ -176,59 +176,42 @@ export class LibraryImpl {
|
|
|
176
176
|
return this;
|
|
177
177
|
},
|
|
178
178
|
byPage: (settings) => {
|
|
179
|
-
if (settings
|
|
179
|
+
if (settings?.maxPageSize) {
|
|
180
180
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
181
181
|
}
|
|
182
182
|
return this.listPagingPage(options, settings);
|
|
183
183
|
},
|
|
184
184
|
};
|
|
185
185
|
}
|
|
186
|
-
listPagingPage(options, settings) {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
}
|
|
204
|
-
});
|
|
186
|
+
async *listPagingPage(options, settings) {
|
|
187
|
+
let result;
|
|
188
|
+
let continuationToken = settings?.continuationToken;
|
|
189
|
+
if (!continuationToken) {
|
|
190
|
+
result = await this._list(options);
|
|
191
|
+
const page = result.value || [];
|
|
192
|
+
continuationToken = result.nextLink;
|
|
193
|
+
setContinuationToken(page, continuationToken);
|
|
194
|
+
yield page;
|
|
195
|
+
}
|
|
196
|
+
while (continuationToken) {
|
|
197
|
+
result = await this._listNext(continuationToken, options);
|
|
198
|
+
continuationToken = result.nextLink;
|
|
199
|
+
const page = result.value || [];
|
|
200
|
+
setContinuationToken(page, continuationToken);
|
|
201
|
+
yield page;
|
|
202
|
+
}
|
|
205
203
|
}
|
|
206
|
-
listPagingAll(options) {
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
for (var _d = true, _e = __asyncValues(this.listPagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
211
|
-
_c = _f.value;
|
|
212
|
-
_d = false;
|
|
213
|
-
const page = _c;
|
|
214
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
218
|
-
finally {
|
|
219
|
-
try {
|
|
220
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
221
|
-
}
|
|
222
|
-
finally { if (e_1) throw e_1.error; }
|
|
223
|
-
}
|
|
224
|
-
});
|
|
204
|
+
async *listPagingAll(options) {
|
|
205
|
+
for await (const page of this.listPagingPage(options)) {
|
|
206
|
+
yield* page;
|
|
207
|
+
}
|
|
225
208
|
}
|
|
226
209
|
/**
|
|
227
210
|
* Lists Library.
|
|
228
211
|
* @param options - The options parameters.
|
|
229
212
|
*/
|
|
230
213
|
async _list(options) {
|
|
231
|
-
return tracingClient.withSpan("ArtifactsClient._list", options
|
|
214
|
+
return tracingClient.withSpan("ArtifactsClient._list", options ?? {}, async (updatedOptions) => {
|
|
232
215
|
return this.client.sendOperationRequest({ updatedOptions }, listOperationSpec);
|
|
233
216
|
});
|
|
234
217
|
}
|
|
@@ -240,19 +223,24 @@ export class LibraryImpl {
|
|
|
240
223
|
*/
|
|
241
224
|
async beginFlush(libraryName, options) {
|
|
242
225
|
const directSendOperation = async (args, spec) => {
|
|
243
|
-
return tracingClient.withSpan("ArtifactsClient.beginFlush", options
|
|
226
|
+
return tracingClient.withSpan("ArtifactsClient.beginFlush", options ?? {}, async () => {
|
|
244
227
|
return this.client.sendOperationRequest(args, spec);
|
|
245
228
|
});
|
|
246
229
|
};
|
|
247
230
|
const sendOperationFn = async (args, spec) => {
|
|
248
|
-
var _a;
|
|
249
231
|
let currentRawResponse = undefined;
|
|
250
|
-
const providedCallback =
|
|
232
|
+
const providedCallback = args.options?.onResponse;
|
|
251
233
|
const callback = (rawResponse, flatResponse) => {
|
|
252
234
|
currentRawResponse = rawResponse;
|
|
253
|
-
providedCallback
|
|
235
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
236
|
+
};
|
|
237
|
+
const updatedArgs = {
|
|
238
|
+
...args,
|
|
239
|
+
options: {
|
|
240
|
+
...args.options,
|
|
241
|
+
onResponse: callback,
|
|
242
|
+
},
|
|
254
243
|
};
|
|
255
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
256
244
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
257
245
|
return {
|
|
258
246
|
flatResponse,
|
|
@@ -269,8 +257,8 @@ export class LibraryImpl {
|
|
|
269
257
|
spec: flushOperationSpec,
|
|
270
258
|
});
|
|
271
259
|
const poller = await createHttpPoller(lro, {
|
|
272
|
-
restoreFrom: options
|
|
273
|
-
intervalInMs: options
|
|
260
|
+
restoreFrom: options?.resumeFrom,
|
|
261
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
274
262
|
});
|
|
275
263
|
await poller.poll();
|
|
276
264
|
return poller;
|
|
@@ -291,7 +279,7 @@ export class LibraryImpl {
|
|
|
291
279
|
* @param options - The options parameters.
|
|
292
280
|
*/
|
|
293
281
|
async getOperationResult(operationId, options) {
|
|
294
|
-
return tracingClient.withSpan("ArtifactsClient.getOperationResult", options
|
|
282
|
+
return tracingClient.withSpan("ArtifactsClient.getOperationResult", options ?? {}, async (updatedOptions) => {
|
|
295
283
|
return this.client.sendOperationRequest({ operationId, updatedOptions }, getOperationResultOperationSpec);
|
|
296
284
|
});
|
|
297
285
|
}
|
|
@@ -303,19 +291,24 @@ export class LibraryImpl {
|
|
|
303
291
|
*/
|
|
304
292
|
async beginDelete(libraryName, options) {
|
|
305
293
|
const directSendOperation = async (args, spec) => {
|
|
306
|
-
return tracingClient.withSpan("ArtifactsClient.beginDelete", options
|
|
294
|
+
return tracingClient.withSpan("ArtifactsClient.beginDelete", options ?? {}, async () => {
|
|
307
295
|
return this.client.sendOperationRequest(args, spec);
|
|
308
296
|
});
|
|
309
297
|
};
|
|
310
298
|
const sendOperationFn = async (args, spec) => {
|
|
311
|
-
var _a;
|
|
312
299
|
let currentRawResponse = undefined;
|
|
313
|
-
const providedCallback =
|
|
300
|
+
const providedCallback = args.options?.onResponse;
|
|
314
301
|
const callback = (rawResponse, flatResponse) => {
|
|
315
302
|
currentRawResponse = rawResponse;
|
|
316
|
-
providedCallback
|
|
303
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
304
|
+
};
|
|
305
|
+
const updatedArgs = {
|
|
306
|
+
...args,
|
|
307
|
+
options: {
|
|
308
|
+
...args.options,
|
|
309
|
+
onResponse: callback,
|
|
310
|
+
},
|
|
317
311
|
};
|
|
318
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
319
312
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
320
313
|
return {
|
|
321
314
|
flatResponse,
|
|
@@ -332,8 +325,8 @@ export class LibraryImpl {
|
|
|
332
325
|
spec: deleteOperationSpec,
|
|
333
326
|
});
|
|
334
327
|
const poller = await createHttpPoller(lro, {
|
|
335
|
-
restoreFrom: options
|
|
336
|
-
intervalInMs: options
|
|
328
|
+
restoreFrom: options?.resumeFrom,
|
|
329
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
337
330
|
});
|
|
338
331
|
await poller.poll();
|
|
339
332
|
return poller;
|
|
@@ -355,7 +348,7 @@ export class LibraryImpl {
|
|
|
355
348
|
* @param options - The options parameters.
|
|
356
349
|
*/
|
|
357
350
|
async get(libraryName, options) {
|
|
358
|
-
return tracingClient.withSpan("ArtifactsClient.get", options
|
|
351
|
+
return tracingClient.withSpan("ArtifactsClient.get", options ?? {}, async (updatedOptions) => {
|
|
359
352
|
return this.client.sendOperationRequest({ libraryName, updatedOptions }, getOperationSpec);
|
|
360
353
|
});
|
|
361
354
|
}
|
|
@@ -367,19 +360,24 @@ export class LibraryImpl {
|
|
|
367
360
|
*/
|
|
368
361
|
async beginCreate(libraryName, options) {
|
|
369
362
|
const directSendOperation = async (args, spec) => {
|
|
370
|
-
return tracingClient.withSpan("ArtifactsClient.beginCreate", options
|
|
363
|
+
return tracingClient.withSpan("ArtifactsClient.beginCreate", options ?? {}, async () => {
|
|
371
364
|
return this.client.sendOperationRequest(args, spec);
|
|
372
365
|
});
|
|
373
366
|
};
|
|
374
367
|
const sendOperationFn = async (args, spec) => {
|
|
375
|
-
var _a;
|
|
376
368
|
let currentRawResponse = undefined;
|
|
377
|
-
const providedCallback =
|
|
369
|
+
const providedCallback = args.options?.onResponse;
|
|
378
370
|
const callback = (rawResponse, flatResponse) => {
|
|
379
371
|
currentRawResponse = rawResponse;
|
|
380
|
-
providedCallback
|
|
372
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
373
|
+
};
|
|
374
|
+
const updatedArgs = {
|
|
375
|
+
...args,
|
|
376
|
+
options: {
|
|
377
|
+
...args.options,
|
|
378
|
+
onResponse: callback,
|
|
379
|
+
},
|
|
381
380
|
};
|
|
382
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
383
381
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
384
382
|
return {
|
|
385
383
|
flatResponse,
|
|
@@ -396,8 +394,8 @@ export class LibraryImpl {
|
|
|
396
394
|
spec: createOperationSpec,
|
|
397
395
|
});
|
|
398
396
|
const poller = await createHttpPoller(lro, {
|
|
399
|
-
restoreFrom: options
|
|
400
|
-
intervalInMs: options
|
|
397
|
+
restoreFrom: options?.resumeFrom,
|
|
398
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
401
399
|
});
|
|
402
400
|
await poller.poll();
|
|
403
401
|
return poller;
|
|
@@ -421,7 +419,7 @@ export class LibraryImpl {
|
|
|
421
419
|
* @param options - The options parameters.
|
|
422
420
|
*/
|
|
423
421
|
async append(libraryName, content, options) {
|
|
424
|
-
return tracingClient.withSpan("ArtifactsClient.append", options
|
|
422
|
+
return tracingClient.withSpan("ArtifactsClient.append", options ?? {}, async (updatedOptions) => {
|
|
425
423
|
return this.client.sendOperationRequest({ libraryName, content, updatedOptions }, appendOperationSpec);
|
|
426
424
|
});
|
|
427
425
|
}
|
|
@@ -431,7 +429,7 @@ export class LibraryImpl {
|
|
|
431
429
|
* @param options - The options parameters.
|
|
432
430
|
*/
|
|
433
431
|
async _listNext(nextLink, options) {
|
|
434
|
-
return tracingClient.withSpan("ArtifactsClient._listNext", options
|
|
432
|
+
return tracingClient.withSpan("ArtifactsClient._listNext", options ?? {}, async (updatedOptions) => {
|
|
435
433
|
return this.client.sendOperationRequest({ nextLink, updatedOptions }, listNextOperationSpec);
|
|
436
434
|
});
|
|
437
435
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"library.js","sourceRoot":"","sources":["../../../src/operations/library.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAGtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAiB9C,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;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,kBAAkB,GAA6B;IACnD,IAAI,EAAE,gCAAgC;IACtC,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,GAAG,EAAE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AAK,CAAC,MAAM,CACV,WAAmB,EACnB,OAAyC,EACzC,OAAqC;QAErC,OAAO,aAAa,CAAC,QAAQ,CAC3B,wBAAwB,EACxB,OAAO,aAAP,OAAO,cAAP,OAAO,GAAI,EAAE,EACb,KAAK,EAAE,cAAc,EAAE,EAAE;YACvB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,WAAW,EAAE,OAAO,EAAE,cAAc,EAAE,EACxC,mBAAmB,CACH,CAAC;QACrB,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACK,KAAK,CAAC,SAAS,CACrB,QAAgB,EAChB,OAAuC;QAEvC,OAAO,aAAa,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,QAAQ,EAAE,cAAc,EAAE,EAC5B,qBAAqB,CACc,CAAC;QACxC,CAAC,CACF,CAAC;IACJ,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { tracingClient } from \"../tracing.js\";\nimport type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport type { Library } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport type * as coreRestPipeline from \"@azure/core-rest-pipeline\";\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 LibraryResource,\n LibraryListNextOptionalParams,\n LibraryListOptionalParams,\n LibraryListOperationResponse,\n LibraryFlushOptionalParams,\n LibraryGetOperationResultOptionalParams,\n LibraryGetOperationResultResponse,\n LibraryDeleteOptionalParams,\n LibraryGetOptionalParams,\n LibraryGetResponse,\n LibraryCreateOptionalParams,\n LibraryAppendOptionalParams,\n LibraryListNextResponse,\n} from \"../models/index.js\";\n\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LibraryListResponse,\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 flushOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries/{libraryName}/flush\",\n httpMethod: \"POST\",\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.libraryName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationResultOperationSpec: coreClient.OperationSpec = {\n path: \"/libraryOperationResults/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LibraryResource,\n },\n 202: {\n bodyMapper: Mappers.OperationResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.operationId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries/{libraryName}\",\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.libraryName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries/{libraryName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LibraryResource,\n },\n 304: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.libraryName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries/{libraryName}\",\n httpMethod: \"PUT\",\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.libraryName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst appendOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries/{libraryName}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.content,\n queryParameters: [Parameters.apiVersion5, Parameters.comp],\n urlParameters: [Parameters.endpoint, Parameters.libraryName],\n headerParameters: [\n Parameters.contentType1,\n Parameters.accept1,\n Parameters.blobConditionAppendPosition,\n ],\n mediaType: \"binary\",\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LibraryListResponse,\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 Library operations. */\nexport class LibraryImpl implements Library {\n private readonly client: ArtifactsClient;\n\n /**\n * Initialize a new instance of the class Library class.\n * @param client - Reference to the service client\n */\n constructor(client: ArtifactsClient) {\n this.client = client;\n }\n\n /**\n * Lists Library.\n * @param options - The options parameters.\n */\n public list(options?: LibraryListOptionalParams): PagedAsyncIterableIterator<LibraryResource> {\n const iter = this.listPagingAll(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.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: LibraryListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<LibraryResource[]> {\n let result: LibraryListOperationResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(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._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n const page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: LibraryListOptionalParams,\n ): AsyncIterableIterator<LibraryResource> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists Library.\n * @param options - The options parameters.\n */\n private async _list(options?: LibraryListOptionalParams): Promise<LibraryListOperationResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._list\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { updatedOptions },\n listOperationSpec,\n ) as Promise<LibraryListOperationResponse>;\n },\n );\n }\n\n /**\n * Flush Library\n * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options - The options parameters.\n */\n async beginFlush(\n libraryName: string,\n options?: LibraryFlushOptionalParams,\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(\"ArtifactsClient.beginFlush\", options ?? {}, async () => {\n return this.client.sendOperationRequest(args, spec) as Promise<void>;\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: coreRestPipeline.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: { libraryName, options },\n spec: flushOperationSpec,\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 * Flush Library\n * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options - The options parameters.\n */\n async beginFlushAndWait(\n libraryName: string,\n options?: LibraryFlushOptionalParams,\n ): Promise<void> {\n const poller = await this.beginFlush(libraryName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Get Operation result for Library\n * @param operationId - operation id for which status is requested\n * @param options - The options parameters.\n */\n async getOperationResult(\n operationId: string,\n options?: LibraryGetOperationResultOptionalParams,\n ): Promise<LibraryGetOperationResultResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.getOperationResult\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { operationId, updatedOptions },\n getOperationResultOperationSpec,\n ) as Promise<LibraryGetOperationResultResponse>;\n },\n );\n }\n\n /**\n * Delete Library\n * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options - The options parameters.\n */\n async beginDelete(\n libraryName: string,\n options?: LibraryDeleteOptionalParams,\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(\"ArtifactsClient.beginDelete\", options ?? {}, async () => {\n return this.client.sendOperationRequest(args, spec) as Promise<void>;\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: coreRestPipeline.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: { libraryName, options },\n spec: deleteOperationSpec,\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 * Delete Library\n * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options - The options parameters.\n */\n async beginDeleteAndWait(\n libraryName: string,\n options?: LibraryDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(libraryName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Get Library\n * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options - The options parameters.\n */\n async get(libraryName: string, options?: LibraryGetOptionalParams): Promise<LibraryGetResponse> {\n return tracingClient.withSpan(\"ArtifactsClient.get\", options ?? {}, async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { libraryName, updatedOptions },\n getOperationSpec,\n ) as Promise<LibraryGetResponse>;\n });\n }\n\n /**\n * Creates a library with the library name.\n * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options - The options parameters.\n */\n async beginCreate(\n libraryName: string,\n options?: LibraryCreateOptionalParams,\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(\"ArtifactsClient.beginCreate\", options ?? {}, async () => {\n return this.client.sendOperationRequest(args, spec) as Promise<void>;\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: coreRestPipeline.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: { libraryName, options },\n spec: createOperationSpec,\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 * Creates a library with the library name.\n * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options - The options parameters.\n */\n async beginCreateAndWait(\n libraryName: string,\n options?: LibraryCreateOptionalParams,\n ): Promise<void> {\n const poller = await this.beginCreate(libraryName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Append the content to the library resource created using the create operation. The maximum content\n * size is 4MiB. Content larger than 4MiB must be appended in 4MiB chunks\n * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param content - Library file chunk.\n * @param options - The options parameters.\n */\n async append(\n libraryName: string,\n content: coreRestPipeline.RequestBodyType,\n options?: LibraryAppendOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.append\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { libraryName, content, updatedOptions },\n appendOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * ListNext\n * @param nextLink - The nextLink from the previous successful call to the List method.\n * @param options - The options parameters.\n */\n private async _listNext(\n nextLink: string,\n options?: LibraryListNextOptionalParams,\n ): Promise<LibraryListNextResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._listNext\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { nextLink, updatedOptions },\n listNextOperationSpec,\n ) as Promise<LibraryListNextResponse>;\n },\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"library.js","sourceRoot":"","sources":["../../../src/operations/library.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AAEjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,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,CAAC,IAAI,EAAE,CAAC;QACpB,OAAO,MAAM,CAAC;IAChB,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,kBAAkB,CACtB,WAAmB,EACnB,OAAqC;QAErC,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;QAC5D,OAAO,MAAM,CAAC,aAAa,EAAE,CAAC;IAChC,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,MAAM,CACV,WAAmB,EACnB,OAAyC,EACzC,OAAqC;QAErC,OAAO,aAAa,CAAC,QAAQ,CAC3B,wBAAwB,EACxB,OAAO,IAAI,EAAE,EACb,KAAK,EAAE,cAAc,EAAE,EAAE;YACvB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,WAAW,EAAE,OAAO,EAAE,cAAc,EAAE,EACxC,mBAAmB,CACH,CAAC;QACrB,CAAC,CACF,CAAC;IACJ,CAAC;IAED;;;;OAIG;IACK,KAAK,CAAC,SAAS,CACrB,QAAgB,EAChB,OAAuC;QAEvC,OAAO,aAAa,CAAC,QAAQ,CAC3B,2BAA2B,EAC3B,OAAO,IAAI,EAAE,EACb,KAAK,EAAE,cAAc,EAAE,EAAE;YACvB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,cAAc,EAAE,EAC5B,qBAAqB,CACc,CAAC;QACxC,CAAC,CACF,CAAC;IACJ,CAAC;CACF","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport { tracingClient } from \"../tracing.js\";\nimport type { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport type { Library } from \"../operationsInterfaces/index.js\";\nimport * as coreClient from \"@azure/core-client\";\nimport type * as coreRestPipeline from \"@azure/core-rest-pipeline\";\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 LibraryResource,\n LibraryListNextOptionalParams,\n LibraryListOptionalParams,\n LibraryListOperationResponse,\n LibraryFlushOptionalParams,\n LibraryGetOperationResultOptionalParams,\n LibraryGetOperationResultResponse,\n LibraryDeleteOptionalParams,\n LibraryGetOptionalParams,\n LibraryGetResponse,\n LibraryCreateOptionalParams,\n LibraryAppendOptionalParams,\n LibraryListNextResponse,\n} from \"../models/index.js\";\n\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LibraryListResponse,\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 flushOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries/{libraryName}/flush\",\n httpMethod: \"POST\",\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.libraryName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationResultOperationSpec: coreClient.OperationSpec = {\n path: \"/libraryOperationResults/{operationId}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LibraryResource,\n },\n 202: {\n bodyMapper: Mappers.OperationResult,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.operationId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries/{libraryName}\",\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.libraryName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries/{libraryName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LibraryResource,\n },\n 304: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.libraryName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries/{libraryName}\",\n httpMethod: \"PUT\",\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.libraryName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst appendOperationSpec: coreClient.OperationSpec = {\n path: \"/libraries/{libraryName}\",\n httpMethod: \"PUT\",\n responses: {\n 201: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.content,\n queryParameters: [Parameters.apiVersion5, Parameters.comp],\n urlParameters: [Parameters.endpoint, Parameters.libraryName],\n headerParameters: [\n Parameters.contentType1,\n Parameters.accept1,\n Parameters.blobConditionAppendPosition,\n ],\n mediaType: \"binary\",\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.LibraryListResponse,\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 Library operations. */\nexport class LibraryImpl implements Library {\n private readonly client: ArtifactsClient;\n\n /**\n * Initialize a new instance of the class Library class.\n * @param client - Reference to the service client\n */\n constructor(client: ArtifactsClient) {\n this.client = client;\n }\n\n /**\n * Lists Library.\n * @param options - The options parameters.\n */\n public list(options?: LibraryListOptionalParams): PagedAsyncIterableIterator<LibraryResource> {\n const iter = this.listPagingAll(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.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: LibraryListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<LibraryResource[]> {\n let result: LibraryListOperationResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(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._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n const page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: LibraryListOptionalParams,\n ): AsyncIterableIterator<LibraryResource> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists Library.\n * @param options - The options parameters.\n */\n private async _list(options?: LibraryListOptionalParams): Promise<LibraryListOperationResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._list\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { updatedOptions },\n listOperationSpec,\n ) as Promise<LibraryListOperationResponse>;\n },\n );\n }\n\n /**\n * Flush Library\n * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options - The options parameters.\n */\n async beginFlush(\n libraryName: string,\n options?: LibraryFlushOptionalParams,\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(\"ArtifactsClient.beginFlush\", options ?? {}, async () => {\n return this.client.sendOperationRequest(args, spec) as Promise<void>;\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: coreRestPipeline.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: { libraryName, options },\n spec: flushOperationSpec,\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 * Flush Library\n * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options - The options parameters.\n */\n async beginFlushAndWait(\n libraryName: string,\n options?: LibraryFlushOptionalParams,\n ): Promise<void> {\n const poller = await this.beginFlush(libraryName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Get Operation result for Library\n * @param operationId - operation id for which status is requested\n * @param options - The options parameters.\n */\n async getOperationResult(\n operationId: string,\n options?: LibraryGetOperationResultOptionalParams,\n ): Promise<LibraryGetOperationResultResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.getOperationResult\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { operationId, updatedOptions },\n getOperationResultOperationSpec,\n ) as Promise<LibraryGetOperationResultResponse>;\n },\n );\n }\n\n /**\n * Delete Library\n * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options - The options parameters.\n */\n async beginDelete(\n libraryName: string,\n options?: LibraryDeleteOptionalParams,\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(\"ArtifactsClient.beginDelete\", options ?? {}, async () => {\n return this.client.sendOperationRequest(args, spec) as Promise<void>;\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: coreRestPipeline.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: { libraryName, options },\n spec: deleteOperationSpec,\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 * Delete Library\n * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options - The options parameters.\n */\n async beginDeleteAndWait(\n libraryName: string,\n options?: LibraryDeleteOptionalParams,\n ): Promise<void> {\n const poller = await this.beginDelete(libraryName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Get Library\n * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options - The options parameters.\n */\n async get(libraryName: string, options?: LibraryGetOptionalParams): Promise<LibraryGetResponse> {\n return tracingClient.withSpan(\"ArtifactsClient.get\", options ?? {}, async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { libraryName, updatedOptions },\n getOperationSpec,\n ) as Promise<LibraryGetResponse>;\n });\n }\n\n /**\n * Creates a library with the library name.\n * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options - The options parameters.\n */\n async beginCreate(\n libraryName: string,\n options?: LibraryCreateOptionalParams,\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(\"ArtifactsClient.beginCreate\", options ?? {}, async () => {\n return this.client.sendOperationRequest(args, spec) as Promise<void>;\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: coreRestPipeline.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: { libraryName, options },\n spec: createOperationSpec,\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 * Creates a library with the library name.\n * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param options - The options parameters.\n */\n async beginCreateAndWait(\n libraryName: string,\n options?: LibraryCreateOptionalParams,\n ): Promise<void> {\n const poller = await this.beginCreate(libraryName, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Append the content to the library resource created using the create operation. The maximum content\n * size is 4MiB. Content larger than 4MiB must be appended in 4MiB chunks\n * @param libraryName - file name to upload. Minimum length of the filename should be 1 excluding the\n * extension length.\n * @param content - Library file chunk.\n * @param options - The options parameters.\n */\n async append(\n libraryName: string,\n content: coreRestPipeline.RequestBodyType,\n options?: LibraryAppendOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.append\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { libraryName, content, updatedOptions },\n appendOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * ListNext\n * @param nextLink - The nextLink from the previous successful call to the List method.\n * @param options - The options parameters.\n */\n private async _listNext(\n nextLink: string,\n options?: LibraryListNextOptionalParams,\n ): Promise<LibraryListNextResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._listNext\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { nextLink, updatedOptions },\n listNextOperationSpec,\n ) as Promise<LibraryListNextResponse>;\n },\n );\n }\n}\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { tracingClient } from "../tracing.js";
|
|
10
9
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
11
10
|
import * as coreClient from "@azure/core-client";
|
|
@@ -233,6 +232,7 @@ const listByWorkspaceNextOperationSpec = {
|
|
|
233
232
|
};
|
|
234
233
|
/** Class containing LinkConnectionOperations operations. */
|
|
235
234
|
export class LinkConnectionOperationsImpl {
|
|
235
|
+
client;
|
|
236
236
|
/**
|
|
237
237
|
* Initialize a new instance of the class LinkConnectionOperations class.
|
|
238
238
|
* @param client - Reference to the service client
|
|
@@ -254,59 +254,42 @@ export class LinkConnectionOperationsImpl {
|
|
|
254
254
|
return this;
|
|
255
255
|
},
|
|
256
256
|
byPage: (settings) => {
|
|
257
|
-
if (settings
|
|
257
|
+
if (settings?.maxPageSize) {
|
|
258
258
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
259
259
|
}
|
|
260
260
|
return this.listByWorkspacePagingPage(options, settings);
|
|
261
261
|
},
|
|
262
262
|
};
|
|
263
263
|
}
|
|
264
|
-
listByWorkspacePagingPage(options, settings) {
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
}
|
|
282
|
-
});
|
|
264
|
+
async *listByWorkspacePagingPage(options, settings) {
|
|
265
|
+
let result;
|
|
266
|
+
let continuationToken = settings?.continuationToken;
|
|
267
|
+
if (!continuationToken) {
|
|
268
|
+
result = await this._listByWorkspace(options);
|
|
269
|
+
const page = result.value || [];
|
|
270
|
+
continuationToken = result.nextLink;
|
|
271
|
+
setContinuationToken(page, continuationToken);
|
|
272
|
+
yield page;
|
|
273
|
+
}
|
|
274
|
+
while (continuationToken) {
|
|
275
|
+
result = await this._listByWorkspaceNext(continuationToken, options);
|
|
276
|
+
continuationToken = result.nextLink;
|
|
277
|
+
const page = result.value || [];
|
|
278
|
+
setContinuationToken(page, continuationToken);
|
|
279
|
+
yield page;
|
|
280
|
+
}
|
|
283
281
|
}
|
|
284
|
-
listByWorkspacePagingAll(options) {
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
for (var _d = true, _e = __asyncValues(this.listByWorkspacePagingPage(options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
289
|
-
_c = _f.value;
|
|
290
|
-
_d = false;
|
|
291
|
-
const page = _c;
|
|
292
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
296
|
-
finally {
|
|
297
|
-
try {
|
|
298
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
299
|
-
}
|
|
300
|
-
finally { if (e_1) throw e_1.error; }
|
|
301
|
-
}
|
|
302
|
-
});
|
|
282
|
+
async *listByWorkspacePagingAll(options) {
|
|
283
|
+
for await (const page of this.listByWorkspacePagingPage(options)) {
|
|
284
|
+
yield* page;
|
|
285
|
+
}
|
|
303
286
|
}
|
|
304
287
|
/**
|
|
305
288
|
* List link connections
|
|
306
289
|
* @param options - The options parameters.
|
|
307
290
|
*/
|
|
308
291
|
async _listByWorkspace(options) {
|
|
309
|
-
return tracingClient.withSpan("ArtifactsClient._listByWorkspace", options
|
|
292
|
+
return tracingClient.withSpan("ArtifactsClient._listByWorkspace", options ?? {}, async (updatedOptions) => {
|
|
310
293
|
return this.client.sendOperationRequest({ updatedOptions }, listByWorkspaceOperationSpec);
|
|
311
294
|
});
|
|
312
295
|
}
|
|
@@ -317,7 +300,7 @@ export class LinkConnectionOperationsImpl {
|
|
|
317
300
|
* @param options - The options parameters.
|
|
318
301
|
*/
|
|
319
302
|
async createOrUpdate(linkConnectionName, linkConnection, options) {
|
|
320
|
-
return tracingClient.withSpan("ArtifactsClient.createOrUpdate", options
|
|
303
|
+
return tracingClient.withSpan("ArtifactsClient.createOrUpdate", options ?? {}, async (updatedOptions) => {
|
|
321
304
|
return this.client.sendOperationRequest({ linkConnectionName, linkConnection, updatedOptions }, createOrUpdateOperationSpec);
|
|
322
305
|
});
|
|
323
306
|
}
|
|
@@ -327,7 +310,7 @@ export class LinkConnectionOperationsImpl {
|
|
|
327
310
|
* @param options - The options parameters.
|
|
328
311
|
*/
|
|
329
312
|
async get(linkConnectionName, options) {
|
|
330
|
-
return tracingClient.withSpan("ArtifactsClient.get", options
|
|
313
|
+
return tracingClient.withSpan("ArtifactsClient.get", options ?? {}, async (updatedOptions) => {
|
|
331
314
|
return this.client.sendOperationRequest({ linkConnectionName, updatedOptions }, getOperationSpec);
|
|
332
315
|
});
|
|
333
316
|
}
|
|
@@ -337,7 +320,7 @@ export class LinkConnectionOperationsImpl {
|
|
|
337
320
|
* @param options - The options parameters.
|
|
338
321
|
*/
|
|
339
322
|
async delete(linkConnectionName, options) {
|
|
340
|
-
return tracingClient.withSpan("ArtifactsClient.delete", options
|
|
323
|
+
return tracingClient.withSpan("ArtifactsClient.delete", options ?? {}, async (updatedOptions) => {
|
|
341
324
|
return this.client.sendOperationRequest({ linkConnectionName, updatedOptions }, deleteOperationSpec);
|
|
342
325
|
});
|
|
343
326
|
}
|
|
@@ -348,7 +331,7 @@ export class LinkConnectionOperationsImpl {
|
|
|
348
331
|
* @param options - The options parameters.
|
|
349
332
|
*/
|
|
350
333
|
async editTables(linkConnectionName, editTablesRequest, options) {
|
|
351
|
-
return tracingClient.withSpan("ArtifactsClient.editTables", options
|
|
334
|
+
return tracingClient.withSpan("ArtifactsClient.editTables", options ?? {}, async (updatedOptions) => {
|
|
352
335
|
return this.client.sendOperationRequest({ linkConnectionName, editTablesRequest, updatedOptions }, editTablesOperationSpec);
|
|
353
336
|
});
|
|
354
337
|
}
|
|
@@ -359,7 +342,7 @@ export class LinkConnectionOperationsImpl {
|
|
|
359
342
|
* @param options - The options parameters.
|
|
360
343
|
*/
|
|
361
344
|
async start(linkConnectionName, options) {
|
|
362
|
-
return tracingClient.withSpan("ArtifactsClient.start", options
|
|
345
|
+
return tracingClient.withSpan("ArtifactsClient.start", options ?? {}, async (updatedOptions) => {
|
|
363
346
|
return this.client.sendOperationRequest({ linkConnectionName, updatedOptions }, startOperationSpec);
|
|
364
347
|
});
|
|
365
348
|
}
|
|
@@ -370,7 +353,7 @@ export class LinkConnectionOperationsImpl {
|
|
|
370
353
|
* @param options - The options parameters.
|
|
371
354
|
*/
|
|
372
355
|
async stop(linkConnectionName, options) {
|
|
373
|
-
return tracingClient.withSpan("ArtifactsClient.stop", options
|
|
356
|
+
return tracingClient.withSpan("ArtifactsClient.stop", options ?? {}, async (updatedOptions) => {
|
|
374
357
|
return this.client.sendOperationRequest({ linkConnectionName, updatedOptions }, stopOperationSpec);
|
|
375
358
|
});
|
|
376
359
|
}
|
|
@@ -380,7 +363,7 @@ export class LinkConnectionOperationsImpl {
|
|
|
380
363
|
* @param options - The options parameters.
|
|
381
364
|
*/
|
|
382
365
|
async getDetailedStatus(linkConnectionName, options) {
|
|
383
|
-
return tracingClient.withSpan("ArtifactsClient.getDetailedStatus", options
|
|
366
|
+
return tracingClient.withSpan("ArtifactsClient.getDetailedStatus", options ?? {}, async (updatedOptions) => {
|
|
384
367
|
return this.client.sendOperationRequest({ linkConnectionName, updatedOptions }, getDetailedStatusOperationSpec);
|
|
385
368
|
});
|
|
386
369
|
}
|
|
@@ -390,7 +373,7 @@ export class LinkConnectionOperationsImpl {
|
|
|
390
373
|
* @param options - The options parameters.
|
|
391
374
|
*/
|
|
392
375
|
async listLinkTables(linkConnectionName, options) {
|
|
393
|
-
return tracingClient.withSpan("ArtifactsClient.listLinkTables", options
|
|
376
|
+
return tracingClient.withSpan("ArtifactsClient.listLinkTables", options ?? {}, async (updatedOptions) => {
|
|
394
377
|
return this.client.sendOperationRequest({ linkConnectionName, updatedOptions }, listLinkTablesOperationSpec);
|
|
395
378
|
});
|
|
396
379
|
}
|
|
@@ -401,7 +384,7 @@ export class LinkConnectionOperationsImpl {
|
|
|
401
384
|
* @param options - The options parameters.
|
|
402
385
|
*/
|
|
403
386
|
async queryTableStatus(linkConnectionName, queryTableStatusRequest, options) {
|
|
404
|
-
return tracingClient.withSpan("ArtifactsClient.queryTableStatus", options
|
|
387
|
+
return tracingClient.withSpan("ArtifactsClient.queryTableStatus", options ?? {}, async (updatedOptions) => {
|
|
405
388
|
return this.client.sendOperationRequest({ linkConnectionName, queryTableStatusRequest, updatedOptions }, queryTableStatusOperationSpec);
|
|
406
389
|
});
|
|
407
390
|
}
|
|
@@ -412,7 +395,7 @@ export class LinkConnectionOperationsImpl {
|
|
|
412
395
|
* @param options - The options parameters.
|
|
413
396
|
*/
|
|
414
397
|
async updateLandingZoneCredential(linkConnectionName, updateLandingZoneCredentialRequest, options) {
|
|
415
|
-
return tracingClient.withSpan("ArtifactsClient.updateLandingZoneCredential", options
|
|
398
|
+
return tracingClient.withSpan("ArtifactsClient.updateLandingZoneCredential", options ?? {}, async (updatedOptions) => {
|
|
416
399
|
return this.client.sendOperationRequest({ linkConnectionName, updateLandingZoneCredentialRequest, updatedOptions }, updateLandingZoneCredentialOperationSpec);
|
|
417
400
|
});
|
|
418
401
|
}
|
|
@@ -423,7 +406,7 @@ export class LinkConnectionOperationsImpl {
|
|
|
423
406
|
* @param options - The options parameters.
|
|
424
407
|
*/
|
|
425
408
|
async pause(linkConnectionName, options) {
|
|
426
|
-
return tracingClient.withSpan("ArtifactsClient.pause", options
|
|
409
|
+
return tracingClient.withSpan("ArtifactsClient.pause", options ?? {}, async (updatedOptions) => {
|
|
427
410
|
return this.client.sendOperationRequest({ linkConnectionName, updatedOptions }, pauseOperationSpec);
|
|
428
411
|
});
|
|
429
412
|
}
|
|
@@ -434,7 +417,7 @@ export class LinkConnectionOperationsImpl {
|
|
|
434
417
|
* @param options - The options parameters.
|
|
435
418
|
*/
|
|
436
419
|
async resume(linkConnectionName, options) {
|
|
437
|
-
return tracingClient.withSpan("ArtifactsClient.resume", options
|
|
420
|
+
return tracingClient.withSpan("ArtifactsClient.resume", options ?? {}, async (updatedOptions) => {
|
|
438
421
|
return this.client.sendOperationRequest({ linkConnectionName, updatedOptions }, resumeOperationSpec);
|
|
439
422
|
});
|
|
440
423
|
}
|
|
@@ -444,7 +427,7 @@ export class LinkConnectionOperationsImpl {
|
|
|
444
427
|
* @param options - The options parameters.
|
|
445
428
|
*/
|
|
446
429
|
async _listByWorkspaceNext(nextLink, options) {
|
|
447
|
-
return tracingClient.withSpan("ArtifactsClient._listByWorkspaceNext", options
|
|
430
|
+
return tracingClient.withSpan("ArtifactsClient._listByWorkspaceNext", options ?? {}, async (updatedOptions) => {
|
|
448
431
|
return this.client.sendOperationRequest({ nextLink, updatedOptions }, listByWorkspaceNextOperationSpec);
|
|
449
432
|
});
|
|
450
433
|
}
|