@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
|
@@ -49,6 +49,7 @@ const getOperationSpec = {
|
|
|
49
49
|
};
|
|
50
50
|
/** Class containing BigDataPools operations. */
|
|
51
51
|
class BigDataPoolsImpl {
|
|
52
|
+
client;
|
|
52
53
|
/**
|
|
53
54
|
* Initialize a new instance of the class BigDataPools class.
|
|
54
55
|
* @param client - Reference to the service client
|
|
@@ -61,7 +62,7 @@ class BigDataPoolsImpl {
|
|
|
61
62
|
* @param options - The options parameters.
|
|
62
63
|
*/
|
|
63
64
|
async list(options) {
|
|
64
|
-
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.list", options
|
|
65
|
+
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.list", options ?? {}, async (updatedOptions) => {
|
|
65
66
|
return this.client.sendOperationRequest({ updatedOptions }, listOperationSpec);
|
|
66
67
|
});
|
|
67
68
|
}
|
|
@@ -71,7 +72,7 @@ class BigDataPoolsImpl {
|
|
|
71
72
|
* @param options - The options parameters.
|
|
72
73
|
*/
|
|
73
74
|
async get(bigDataPoolName, options) {
|
|
74
|
-
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.get", options
|
|
75
|
+
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.get", options ?? {}, async (updatedOptions) => {
|
|
75
76
|
return this.client.sendOperationRequest({ bigDataPoolName, updatedOptions }, getOperationSpec);
|
|
76
77
|
});
|
|
77
78
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"bigDataPools.js","sourceRoot":"","sources":["../../../src/operations/bigDataPools.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,8CAA8C;AAE9C,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAStD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,eAAe;IACrB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iCAAiC;SACtD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;IACpC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,iCAAiC;IACvC,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,eAAe,CAAC;IAChE,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AAEF,gDAAgD;AAChD,MAAa,gBAAgB;
|
|
1
|
+
{"version":3,"file":"bigDataPools.js","sourceRoot":"","sources":["../../../src/operations/bigDataPools.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,8CAA8C;AAE9C,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAStD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iBAAiB,GAA6B;IAClD,IAAI,EAAE,eAAe;IACrB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,iCAAiC;SACtD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;IACpC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,iCAAiC;IACvC,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,uBAAuB;SAC5C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,aAAa;SAClC;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,eAAe,CAAC;IAChE,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AAEF,gDAAgD;AAChD,MAAa,gBAAgB;IACV,MAAM,CAAkB;IAEzC;;;OAGG;IACH,YAAY,MAAuB;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,IAAI,CAAC,OAAwC;QACjD,OAAO,0BAAa,CAAC,QAAQ,CAAC,sBAAsB,EAAE,OAAO,IAAI,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE;YAC5F,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,cAAc,EAAE,EAClB,iBAAiB,CACmB,CAAC;QACzC,CAAC,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,GAAG,CACP,eAAuB,EACvB,OAAuC;QAEvC,OAAO,0BAAa,CAAC,QAAQ,CAAC,qBAAqB,EAAE,OAAO,IAAI,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE;YAC3F,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,eAAe,EAAE,cAAc,EAAE,EACnC,gBAAgB,CACmB,CAAC;QACxC,CAAC,CAAC,CAAC;IACL,CAAC;CACF;AAxCD,4CAwCC","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 { BigDataPools } 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 BigDataPoolsListOptionalParams,\n BigDataPoolsListResponse,\n BigDataPoolsGetOptionalParams,\n BigDataPoolsGetResponse,\n} from \"../models/index.js\";\n\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/bigDataPools\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BigDataPoolResourceInfoListResult,\n },\n default: {\n bodyMapper: Mappers.ErrorContract,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/bigDataPools/{bigDataPoolName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.BigDataPoolResourceInfo,\n },\n default: {\n bodyMapper: Mappers.ErrorContract,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.bigDataPoolName],\n headerParameters: [Parameters.accept],\n serializer,\n};\n\n/** Class containing BigDataPools operations. */\nexport class BigDataPoolsImpl implements BigDataPools {\n private readonly client: ArtifactsClient;\n\n /**\n * Initialize a new instance of the class BigDataPools class.\n * @param client - Reference to the service client\n */\n constructor(client: ArtifactsClient) {\n this.client = client;\n }\n\n /**\n * List Big Data Pools\n * @param options - The options parameters.\n */\n async list(options?: BigDataPoolsListOptionalParams): Promise<BigDataPoolsListResponse> {\n return tracingClient.withSpan(\"ArtifactsClient.list\", options ?? {}, async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { updatedOptions },\n listOperationSpec,\n ) as Promise<BigDataPoolsListResponse>;\n });\n }\n\n /**\n * Get Big Data Pool\n * @param bigDataPoolName - The Big Data Pool name\n * @param options - The options parameters.\n */\n async get(\n bigDataPoolName: string,\n options?: BigDataPoolsGetOptionalParams,\n ): Promise<BigDataPoolsGetResponse> {\n return tracingClient.withSpan(\"ArtifactsClient.get\", options ?? {}, async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { bigDataPoolName, updatedOptions },\n getOperationSpec,\n ) as Promise<BigDataPoolsGetResponse>;\n });\n }\n}\n"]}
|
|
@@ -139,6 +139,7 @@ const queryDataFlowDebugSessionsByWorkspaceNextOperationSpec = {
|
|
|
139
139
|
};
|
|
140
140
|
/** Class containing DataFlowDebugSession operations. */
|
|
141
141
|
class DataFlowDebugSessionImpl {
|
|
142
|
+
client;
|
|
142
143
|
/**
|
|
143
144
|
* Initialize a new instance of the class DataFlowDebugSession class.
|
|
144
145
|
* @param client - Reference to the service client
|
|
@@ -160,52 +161,35 @@ class DataFlowDebugSessionImpl {
|
|
|
160
161
|
return this;
|
|
161
162
|
},
|
|
162
163
|
byPage: (settings) => {
|
|
163
|
-
if (settings
|
|
164
|
+
if (settings?.maxPageSize) {
|
|
164
165
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
165
166
|
}
|
|
166
167
|
return this.queryDataFlowDebugSessionsByWorkspacePagingPage(options, settings);
|
|
167
168
|
},
|
|
168
169
|
};
|
|
169
170
|
}
|
|
170
|
-
queryDataFlowDebugSessionsByWorkspacePagingPage(options, settings) {
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
}
|
|
188
|
-
});
|
|
171
|
+
async *queryDataFlowDebugSessionsByWorkspacePagingPage(options, settings) {
|
|
172
|
+
let result;
|
|
173
|
+
let continuationToken = settings?.continuationToken;
|
|
174
|
+
if (!continuationToken) {
|
|
175
|
+
result = await this._queryDataFlowDebugSessionsByWorkspace(options);
|
|
176
|
+
const page = result.value || [];
|
|
177
|
+
continuationToken = result.nextLink;
|
|
178
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
179
|
+
yield page;
|
|
180
|
+
}
|
|
181
|
+
while (continuationToken) {
|
|
182
|
+
result = await this._queryDataFlowDebugSessionsByWorkspaceNext(continuationToken, options);
|
|
183
|
+
continuationToken = result.nextLink;
|
|
184
|
+
const page = result.value || [];
|
|
185
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
186
|
+
yield page;
|
|
187
|
+
}
|
|
189
188
|
}
|
|
190
|
-
queryDataFlowDebugSessionsByWorkspacePagingAll(options) {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.queryDataFlowDebugSessionsByWorkspacePagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
195
|
-
_c = _f.value;
|
|
196
|
-
_d = false;
|
|
197
|
-
const page = _c;
|
|
198
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
202
|
-
finally {
|
|
203
|
-
try {
|
|
204
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
205
|
-
}
|
|
206
|
-
finally { if (e_1) throw e_1.error; }
|
|
207
|
-
}
|
|
208
|
-
});
|
|
189
|
+
async *queryDataFlowDebugSessionsByWorkspacePagingAll(options) {
|
|
190
|
+
for await (const page of this.queryDataFlowDebugSessionsByWorkspacePagingPage(options)) {
|
|
191
|
+
yield* page;
|
|
192
|
+
}
|
|
209
193
|
}
|
|
210
194
|
/**
|
|
211
195
|
* Creates a data flow debug session.
|
|
@@ -214,19 +198,24 @@ class DataFlowDebugSessionImpl {
|
|
|
214
198
|
*/
|
|
215
199
|
async beginCreateDataFlowDebugSession(request, options) {
|
|
216
200
|
const directSendOperation = async (args, spec) => {
|
|
217
|
-
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.beginCreateDataFlowDebugSession", options
|
|
201
|
+
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.beginCreateDataFlowDebugSession", options ?? {}, async () => {
|
|
218
202
|
return this.client.sendOperationRequest(args, spec);
|
|
219
203
|
});
|
|
220
204
|
};
|
|
221
205
|
const sendOperationFn = async (args, spec) => {
|
|
222
|
-
var _a;
|
|
223
206
|
let currentRawResponse = undefined;
|
|
224
|
-
const providedCallback =
|
|
207
|
+
const providedCallback = args.options?.onResponse;
|
|
225
208
|
const callback = (rawResponse, flatResponse) => {
|
|
226
209
|
currentRawResponse = rawResponse;
|
|
227
|
-
providedCallback
|
|
210
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
211
|
+
};
|
|
212
|
+
const updatedArgs = {
|
|
213
|
+
...args,
|
|
214
|
+
options: {
|
|
215
|
+
...args.options,
|
|
216
|
+
onResponse: callback,
|
|
217
|
+
},
|
|
228
218
|
};
|
|
229
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
230
219
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
231
220
|
return {
|
|
232
221
|
flatResponse,
|
|
@@ -243,8 +232,8 @@ class DataFlowDebugSessionImpl {
|
|
|
243
232
|
spec: createDataFlowDebugSessionOperationSpec,
|
|
244
233
|
});
|
|
245
234
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
246
|
-
restoreFrom: options
|
|
247
|
-
intervalInMs: options
|
|
235
|
+
restoreFrom: options?.resumeFrom,
|
|
236
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
248
237
|
});
|
|
249
238
|
await poller.poll();
|
|
250
239
|
return poller;
|
|
@@ -263,7 +252,7 @@ class DataFlowDebugSessionImpl {
|
|
|
263
252
|
* @param options - The options parameters.
|
|
264
253
|
*/
|
|
265
254
|
async _queryDataFlowDebugSessionsByWorkspace(options) {
|
|
266
|
-
return tracing_js_1.tracingClient.withSpan("ArtifactsClient._queryDataFlowDebugSessionsByWorkspace", options
|
|
255
|
+
return tracing_js_1.tracingClient.withSpan("ArtifactsClient._queryDataFlowDebugSessionsByWorkspace", options ?? {}, async (updatedOptions) => {
|
|
267
256
|
return this.client.sendOperationRequest({ updatedOptions }, queryDataFlowDebugSessionsByWorkspaceOperationSpec);
|
|
268
257
|
});
|
|
269
258
|
}
|
|
@@ -273,7 +262,7 @@ class DataFlowDebugSessionImpl {
|
|
|
273
262
|
* @param options - The options parameters.
|
|
274
263
|
*/
|
|
275
264
|
async addDataFlow(request, options) {
|
|
276
|
-
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.addDataFlow", options
|
|
265
|
+
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.addDataFlow", options ?? {}, async (updatedOptions) => {
|
|
277
266
|
return this.client.sendOperationRequest({ request, updatedOptions }, addDataFlowOperationSpec);
|
|
278
267
|
});
|
|
279
268
|
}
|
|
@@ -283,7 +272,7 @@ class DataFlowDebugSessionImpl {
|
|
|
283
272
|
* @param options - The options parameters.
|
|
284
273
|
*/
|
|
285
274
|
async deleteDataFlowDebugSession(request, options) {
|
|
286
|
-
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.deleteDataFlowDebugSession", options
|
|
275
|
+
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.deleteDataFlowDebugSession", options ?? {}, async (updatedOptions) => {
|
|
287
276
|
return this.client.sendOperationRequest({ request, updatedOptions }, deleteDataFlowDebugSessionOperationSpec);
|
|
288
277
|
});
|
|
289
278
|
}
|
|
@@ -294,19 +283,24 @@ class DataFlowDebugSessionImpl {
|
|
|
294
283
|
*/
|
|
295
284
|
async beginExecuteCommand(request, options) {
|
|
296
285
|
const directSendOperation = async (args, spec) => {
|
|
297
|
-
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.beginExecuteCommand", options
|
|
286
|
+
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.beginExecuteCommand", options ?? {}, async () => {
|
|
298
287
|
return this.client.sendOperationRequest(args, spec);
|
|
299
288
|
});
|
|
300
289
|
};
|
|
301
290
|
const sendOperationFn = async (args, spec) => {
|
|
302
|
-
var _a;
|
|
303
291
|
let currentRawResponse = undefined;
|
|
304
|
-
const providedCallback =
|
|
292
|
+
const providedCallback = args.options?.onResponse;
|
|
305
293
|
const callback = (rawResponse, flatResponse) => {
|
|
306
294
|
currentRawResponse = rawResponse;
|
|
307
|
-
providedCallback
|
|
295
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
296
|
+
};
|
|
297
|
+
const updatedArgs = {
|
|
298
|
+
...args,
|
|
299
|
+
options: {
|
|
300
|
+
...args.options,
|
|
301
|
+
onResponse: callback,
|
|
302
|
+
},
|
|
308
303
|
};
|
|
309
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
310
304
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
311
305
|
return {
|
|
312
306
|
flatResponse,
|
|
@@ -323,8 +317,8 @@ class DataFlowDebugSessionImpl {
|
|
|
323
317
|
spec: executeCommandOperationSpec,
|
|
324
318
|
});
|
|
325
319
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
326
|
-
restoreFrom: options
|
|
327
|
-
intervalInMs: options
|
|
320
|
+
restoreFrom: options?.resumeFrom,
|
|
321
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
328
322
|
});
|
|
329
323
|
await poller.poll();
|
|
330
324
|
return poller;
|
|
@@ -345,7 +339,7 @@ class DataFlowDebugSessionImpl {
|
|
|
345
339
|
* @param options - The options parameters.
|
|
346
340
|
*/
|
|
347
341
|
async _queryDataFlowDebugSessionsByWorkspaceNext(nextLink, options) {
|
|
348
|
-
return tracing_js_1.tracingClient.withSpan("ArtifactsClient._queryDataFlowDebugSessionsByWorkspaceNext", options
|
|
342
|
+
return tracing_js_1.tracingClient.withSpan("ArtifactsClient._queryDataFlowDebugSessionsByWorkspaceNext", options ?? {}, async (updatedOptions) => {
|
|
349
343
|
return this.client.sendOperationRequest({ nextLink, updatedOptions }, queryDataFlowDebugSessionsByWorkspaceNextOperationSpec);
|
|
350
344
|
});
|
|
351
345
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dataFlowDebugSession.js","sourceRoot":"","sources":["../../../src/operations/dataFlowDebugSession.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,8CAA8C;AAE9C,wDAA0D;AAE1D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5B,sDAAsD,CAC2B,CAAC;QACtF,CAAC,CACF,CAAC;IACJ,CAAC;CACF;AA5UD,4DA4UC","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 { DataFlowDebugSession } 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 DataFlowDebugSessionInfo,\n DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceNextOptionalParams,\n DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceOptionalParams,\n DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceResponse,\n CreateDataFlowDebugSessionRequest,\n DataFlowDebugSessionCreateDataFlowDebugSessionOptionalParams,\n DataFlowDebugSessionCreateDataFlowDebugSessionResponse,\n DataFlowDebugPackage,\n DataFlowDebugSessionAddDataFlowOptionalParams,\n DataFlowDebugSessionAddDataFlowResponse,\n DeleteDataFlowDebugSessionRequest,\n DataFlowDebugSessionDeleteDataFlowDebugSessionOptionalParams,\n DataFlowDebugCommandRequest,\n DataFlowDebugSessionExecuteCommandOptionalParams,\n DataFlowDebugSessionExecuteCommandResponse,\n DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceNextResponse,\n DataFlowDebugCommandResponse,\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 createDataFlowDebugSessionOperationSpec: coreClient.OperationSpec = {\n path: \"/createDataFlowDebugSession\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CreateDataFlowDebugSessionResponse,\n },\n 201: {\n bodyMapper: Mappers.CreateDataFlowDebugSessionResponse,\n },\n 202: {\n bodyMapper: Mappers.CreateDataFlowDebugSessionResponse,\n },\n 204: {\n bodyMapper: Mappers.CreateDataFlowDebugSessionResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.request1,\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst queryDataFlowDebugSessionsByWorkspaceOperationSpec: coreClient.OperationSpec = {\n path: \"/queryDataFlowDebugSessions\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.QueryDataFlowDebugSessionsResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst addDataFlowOperationSpec: coreClient.OperationSpec = {\n path: \"/addDataFlowToDebugSession\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AddDataFlowToDebugSessionResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.request2,\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteDataFlowDebugSessionOperationSpec: coreClient.OperationSpec = {\n path: \"/deleteDataFlowDebugSession\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.request3,\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst executeCommandOperationSpec: coreClient.OperationSpec = {\n path: \"/executeDataFlowDebugCommand\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataFlowDebugCommandResponse,\n },\n 201: {\n bodyMapper: Mappers.DataFlowDebugCommandResponse,\n },\n 202: {\n bodyMapper: Mappers.DataFlowDebugCommandResponse,\n },\n 204: {\n bodyMapper: Mappers.DataFlowDebugCommandResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.request4,\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst queryDataFlowDebugSessionsByWorkspaceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QueryDataFlowDebugSessionsResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n\n/** Class containing DataFlowDebugSession operations. */\nexport class DataFlowDebugSessionImpl implements DataFlowDebugSession {\n private readonly client: ArtifactsClient;\n\n /**\n * Initialize a new instance of the class DataFlowDebugSession class.\n * @param client - Reference to the service client\n */\n constructor(client: ArtifactsClient) {\n this.client = client;\n }\n\n /**\n * Query all active data flow debug sessions.\n * @param options - The options parameters.\n */\n public listQueryDataFlowDebugSessionsByWorkspace(\n options?: DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceOptionalParams,\n ): PagedAsyncIterableIterator<DataFlowDebugSessionInfo> {\n const iter = this.queryDataFlowDebugSessionsByWorkspacePagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.queryDataFlowDebugSessionsByWorkspacePagingPage(options, settings);\n },\n };\n }\n\n private async *queryDataFlowDebugSessionsByWorkspacePagingPage(\n options?: DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<DataFlowDebugSessionInfo[]> {\n let result: DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._queryDataFlowDebugSessionsByWorkspace(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._queryDataFlowDebugSessionsByWorkspaceNext(continuationToken, options);\n continuationToken = result.nextLink;\n const page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *queryDataFlowDebugSessionsByWorkspacePagingAll(\n options?: DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceOptionalParams,\n ): AsyncIterableIterator<DataFlowDebugSessionInfo> {\n for await (const page of this.queryDataFlowDebugSessionsByWorkspacePagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Creates a data flow debug session.\n * @param request - Data flow debug session definition\n * @param options - The options parameters.\n */\n async beginCreateDataFlowDebugSession(\n request: CreateDataFlowDebugSessionRequest,\n options?: DataFlowDebugSessionCreateDataFlowDebugSessionOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DataFlowDebugSessionCreateDataFlowDebugSessionResponse>,\n DataFlowDebugSessionCreateDataFlowDebugSessionResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<DataFlowDebugSessionCreateDataFlowDebugSessionResponse> => {\n return tracingClient.withSpan(\n \"ArtifactsClient.beginCreateDataFlowDebugSession\",\n options ?? {},\n async () => {\n return this.client.sendOperationRequest(\n args,\n spec,\n ) as Promise<DataFlowDebugSessionCreateDataFlowDebugSessionResponse>;\n },\n );\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\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: { request, options },\n spec: createDataFlowDebugSessionOperationSpec,\n });\n const poller = await createHttpPoller<\n DataFlowDebugSessionCreateDataFlowDebugSessionResponse,\n OperationState<DataFlowDebugSessionCreateDataFlowDebugSessionResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a data flow debug session.\n * @param request - Data flow debug session definition\n * @param options - The options parameters.\n */\n async beginCreateDataFlowDebugSessionAndWait(\n request: CreateDataFlowDebugSessionRequest,\n options?: DataFlowDebugSessionCreateDataFlowDebugSessionOptionalParams,\n ): Promise<DataFlowDebugSessionCreateDataFlowDebugSessionResponse> {\n const poller = await this.beginCreateDataFlowDebugSession(request, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Query all active data flow debug sessions.\n * @param options - The options parameters.\n */\n private async _queryDataFlowDebugSessionsByWorkspace(\n options?: DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceOptionalParams,\n ): Promise<DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._queryDataFlowDebugSessionsByWorkspace\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { updatedOptions },\n queryDataFlowDebugSessionsByWorkspaceOperationSpec,\n ) as Promise<DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceResponse>;\n },\n );\n }\n\n /**\n * Add a data flow into debug session.\n * @param request - Data flow debug session definition with debug content.\n * @param options - The options parameters.\n */\n async addDataFlow(\n request: DataFlowDebugPackage,\n options?: DataFlowDebugSessionAddDataFlowOptionalParams,\n ): Promise<DataFlowDebugSessionAddDataFlowResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.addDataFlow\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { request, updatedOptions },\n addDataFlowOperationSpec,\n ) as Promise<DataFlowDebugSessionAddDataFlowResponse>;\n },\n );\n }\n\n /**\n * Deletes a data flow debug session.\n * @param request - Data flow debug session definition for deletion\n * @param options - The options parameters.\n */\n async deleteDataFlowDebugSession(\n request: DeleteDataFlowDebugSessionRequest,\n options?: DataFlowDebugSessionDeleteDataFlowDebugSessionOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.deleteDataFlowDebugSession\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { request, updatedOptions },\n deleteDataFlowDebugSessionOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Execute a data flow debug command.\n * @param request - Data flow debug command definition.\n * @param options - The options parameters.\n */\n async beginExecuteCommand(\n request: DataFlowDebugCommandRequest,\n options?: DataFlowDebugSessionExecuteCommandOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DataFlowDebugSessionExecuteCommandResponse>,\n DataFlowDebugSessionExecuteCommandResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<DataFlowDebugSessionExecuteCommandResponse> => {\n return tracingClient.withSpan(\n \"ArtifactsClient.beginExecuteCommand\",\n options ?? {},\n async () => {\n return this.client.sendOperationRequest(\n args,\n spec,\n ) as Promise<DataFlowDebugSessionExecuteCommandResponse>;\n },\n );\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<{\n flatResponse: DataFlowDebugCommandResponse;\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: { request, options },\n spec: executeCommandOperationSpec,\n });\n const poller = await createHttpPoller<\n DataFlowDebugSessionExecuteCommandResponse,\n OperationState<DataFlowDebugSessionExecuteCommandResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Execute a data flow debug command.\n * @param request - Data flow debug command definition.\n * @param options - The options parameters.\n */\n async beginExecuteCommandAndWait(\n request: DataFlowDebugCommandRequest,\n options?: DataFlowDebugSessionExecuteCommandOptionalParams,\n ): Promise<DataFlowDebugSessionExecuteCommandResponse> {\n const poller = await this.beginExecuteCommand(request, options);\n return poller.pollUntilDone();\n }\n\n /**\n * QueryDataFlowDebugSessionsByWorkspaceNext\n * @param nextLink - The nextLink from the previous successful call to the\n * QueryDataFlowDebugSessionsByWorkspace method.\n * @param options - The options parameters.\n */\n private async _queryDataFlowDebugSessionsByWorkspaceNext(\n nextLink: string,\n options?: DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceNextOptionalParams,\n ): Promise<DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceNextResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._queryDataFlowDebugSessionsByWorkspaceNext\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { nextLink, updatedOptions },\n queryDataFlowDebugSessionsByWorkspaceNextOperationSpec,\n ) as Promise<DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceNextResponse>;\n },\n );\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"dataFlowDebugSession.js","sourceRoot":"","sources":["../../../src/operations/dataFlowDebugSession.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAEH,8CAA8C;AAE9C,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAGtD,8CAAmD;AACnD,8CAA8C;AAsB9C,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,uCAAuC,GAA6B;IACxE,IAAI,EAAE,6BAA6B;IACnC,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kCAAkC;SACvD;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kCAAkC;SACvD;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kCAAkC;SACvD;QACD,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,kCAAkC;SACvD;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,CAAC;IACzC,aAAa,E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E,EACb,KAAK,EAAE,cAAc,EAAE,EAAE;YACvB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,QAAQ,EAAE,cAAc,EAAE,EAC5B,sDAAsD,CAC2B,CAAC;QACtF,CAAC,CACF,CAAC;IACJ,CAAC;CACF;AA5UD,4DA4UC","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 { DataFlowDebugSession } 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 DataFlowDebugSessionInfo,\n DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceNextOptionalParams,\n DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceOptionalParams,\n DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceResponse,\n CreateDataFlowDebugSessionRequest,\n DataFlowDebugSessionCreateDataFlowDebugSessionOptionalParams,\n DataFlowDebugSessionCreateDataFlowDebugSessionResponse,\n DataFlowDebugPackage,\n DataFlowDebugSessionAddDataFlowOptionalParams,\n DataFlowDebugSessionAddDataFlowResponse,\n DeleteDataFlowDebugSessionRequest,\n DataFlowDebugSessionDeleteDataFlowDebugSessionOptionalParams,\n DataFlowDebugCommandRequest,\n DataFlowDebugSessionExecuteCommandOptionalParams,\n DataFlowDebugSessionExecuteCommandResponse,\n DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceNextResponse,\n DataFlowDebugCommandResponse,\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 createDataFlowDebugSessionOperationSpec: coreClient.OperationSpec = {\n path: \"/createDataFlowDebugSession\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.CreateDataFlowDebugSessionResponse,\n },\n 201: {\n bodyMapper: Mappers.CreateDataFlowDebugSessionResponse,\n },\n 202: {\n bodyMapper: Mappers.CreateDataFlowDebugSessionResponse,\n },\n 204: {\n bodyMapper: Mappers.CreateDataFlowDebugSessionResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.request1,\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst queryDataFlowDebugSessionsByWorkspaceOperationSpec: coreClient.OperationSpec = {\n path: \"/queryDataFlowDebugSessions\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.QueryDataFlowDebugSessionsResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst addDataFlowOperationSpec: coreClient.OperationSpec = {\n path: \"/addDataFlowToDebugSession\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AddDataFlowToDebugSessionResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.request2,\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteDataFlowDebugSessionOperationSpec: coreClient.OperationSpec = {\n path: \"/deleteDataFlowDebugSession\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.request3,\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst executeCommandOperationSpec: coreClient.OperationSpec = {\n path: \"/executeDataFlowDebugCommand\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.DataFlowDebugCommandResponse,\n },\n 201: {\n bodyMapper: Mappers.DataFlowDebugCommandResponse,\n },\n 202: {\n bodyMapper: Mappers.DataFlowDebugCommandResponse,\n },\n 204: {\n bodyMapper: Mappers.DataFlowDebugCommandResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.request4,\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst queryDataFlowDebugSessionsByWorkspaceNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.QueryDataFlowDebugSessionsResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [Parameters.endpoint, Parameters.nextLink],\n headerParameters: [Parameters.accept],\n serializer,\n};\n\n/** Class containing DataFlowDebugSession operations. */\nexport class DataFlowDebugSessionImpl implements DataFlowDebugSession {\n private readonly client: ArtifactsClient;\n\n /**\n * Initialize a new instance of the class DataFlowDebugSession class.\n * @param client - Reference to the service client\n */\n constructor(client: ArtifactsClient) {\n this.client = client;\n }\n\n /**\n * Query all active data flow debug sessions.\n * @param options - The options parameters.\n */\n public listQueryDataFlowDebugSessionsByWorkspace(\n options?: DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceOptionalParams,\n ): PagedAsyncIterableIterator<DataFlowDebugSessionInfo> {\n const iter = this.queryDataFlowDebugSessionsByWorkspacePagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.queryDataFlowDebugSessionsByWorkspacePagingPage(options, settings);\n },\n };\n }\n\n private async *queryDataFlowDebugSessionsByWorkspacePagingPage(\n options?: DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<DataFlowDebugSessionInfo[]> {\n let result: DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._queryDataFlowDebugSessionsByWorkspace(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._queryDataFlowDebugSessionsByWorkspaceNext(continuationToken, options);\n continuationToken = result.nextLink;\n const page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *queryDataFlowDebugSessionsByWorkspacePagingAll(\n options?: DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceOptionalParams,\n ): AsyncIterableIterator<DataFlowDebugSessionInfo> {\n for await (const page of this.queryDataFlowDebugSessionsByWorkspacePagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Creates a data flow debug session.\n * @param request - Data flow debug session definition\n * @param options - The options parameters.\n */\n async beginCreateDataFlowDebugSession(\n request: CreateDataFlowDebugSessionRequest,\n options?: DataFlowDebugSessionCreateDataFlowDebugSessionOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DataFlowDebugSessionCreateDataFlowDebugSessionResponse>,\n DataFlowDebugSessionCreateDataFlowDebugSessionResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<DataFlowDebugSessionCreateDataFlowDebugSessionResponse> => {\n return tracingClient.withSpan(\n \"ArtifactsClient.beginCreateDataFlowDebugSession\",\n options ?? {},\n async () => {\n return this.client.sendOperationRequest(\n args,\n spec,\n ) as Promise<DataFlowDebugSessionCreateDataFlowDebugSessionResponse>;\n },\n );\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\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: { request, options },\n spec: createDataFlowDebugSessionOperationSpec,\n });\n const poller = await createHttpPoller<\n DataFlowDebugSessionCreateDataFlowDebugSessionResponse,\n OperationState<DataFlowDebugSessionCreateDataFlowDebugSessionResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Creates a data flow debug session.\n * @param request - Data flow debug session definition\n * @param options - The options parameters.\n */\n async beginCreateDataFlowDebugSessionAndWait(\n request: CreateDataFlowDebugSessionRequest,\n options?: DataFlowDebugSessionCreateDataFlowDebugSessionOptionalParams,\n ): Promise<DataFlowDebugSessionCreateDataFlowDebugSessionResponse> {\n const poller = await this.beginCreateDataFlowDebugSession(request, options);\n return poller.pollUntilDone();\n }\n\n /**\n * Query all active data flow debug sessions.\n * @param options - The options parameters.\n */\n private async _queryDataFlowDebugSessionsByWorkspace(\n options?: DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceOptionalParams,\n ): Promise<DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._queryDataFlowDebugSessionsByWorkspace\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { updatedOptions },\n queryDataFlowDebugSessionsByWorkspaceOperationSpec,\n ) as Promise<DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceResponse>;\n },\n );\n }\n\n /**\n * Add a data flow into debug session.\n * @param request - Data flow debug session definition with debug content.\n * @param options - The options parameters.\n */\n async addDataFlow(\n request: DataFlowDebugPackage,\n options?: DataFlowDebugSessionAddDataFlowOptionalParams,\n ): Promise<DataFlowDebugSessionAddDataFlowResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.addDataFlow\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { request, updatedOptions },\n addDataFlowOperationSpec,\n ) as Promise<DataFlowDebugSessionAddDataFlowResponse>;\n },\n );\n }\n\n /**\n * Deletes a data flow debug session.\n * @param request - Data flow debug session definition for deletion\n * @param options - The options parameters.\n */\n async deleteDataFlowDebugSession(\n request: DeleteDataFlowDebugSessionRequest,\n options?: DataFlowDebugSessionDeleteDataFlowDebugSessionOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.deleteDataFlowDebugSession\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { request, updatedOptions },\n deleteDataFlowDebugSessionOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Execute a data flow debug command.\n * @param request - Data flow debug command definition.\n * @param options - The options parameters.\n */\n async beginExecuteCommand(\n request: DataFlowDebugCommandRequest,\n options?: DataFlowDebugSessionExecuteCommandOptionalParams,\n ): Promise<\n SimplePollerLike<\n OperationState<DataFlowDebugSessionExecuteCommandResponse>,\n DataFlowDebugSessionExecuteCommandResponse\n >\n > {\n const directSendOperation = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<DataFlowDebugSessionExecuteCommandResponse> => {\n return tracingClient.withSpan(\n \"ArtifactsClient.beginExecuteCommand\",\n options ?? {},\n async () => {\n return this.client.sendOperationRequest(\n args,\n spec,\n ) as Promise<DataFlowDebugSessionExecuteCommandResponse>;\n },\n );\n };\n const sendOperationFn = async (\n args: coreClient.OperationArguments,\n spec: coreClient.OperationSpec,\n ): Promise<{\n flatResponse: DataFlowDebugCommandResponse;\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: { request, options },\n spec: executeCommandOperationSpec,\n });\n const poller = await createHttpPoller<\n DataFlowDebugSessionExecuteCommandResponse,\n OperationState<DataFlowDebugSessionExecuteCommandResponse>\n >(lro, {\n restoreFrom: options?.resumeFrom,\n intervalInMs: options?.updateIntervalInMs,\n });\n await poller.poll();\n return poller;\n }\n\n /**\n * Execute a data flow debug command.\n * @param request - Data flow debug command definition.\n * @param options - The options parameters.\n */\n async beginExecuteCommandAndWait(\n request: DataFlowDebugCommandRequest,\n options?: DataFlowDebugSessionExecuteCommandOptionalParams,\n ): Promise<DataFlowDebugSessionExecuteCommandResponse> {\n const poller = await this.beginExecuteCommand(request, options);\n return poller.pollUntilDone();\n }\n\n /**\n * QueryDataFlowDebugSessionsByWorkspaceNext\n * @param nextLink - The nextLink from the previous successful call to the\n * QueryDataFlowDebugSessionsByWorkspace method.\n * @param options - The options parameters.\n */\n private async _queryDataFlowDebugSessionsByWorkspaceNext(\n nextLink: string,\n options?: DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceNextOptionalParams,\n ): Promise<DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceNextResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient._queryDataFlowDebugSessionsByWorkspaceNext\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { nextLink, updatedOptions },\n queryDataFlowDebugSessionsByWorkspaceNextOperationSpec,\n ) as Promise<DataFlowDebugSessionQueryDataFlowDebugSessionsByWorkspaceNextResponse>;\n },\n );\n }\n}\n"]}
|
|
@@ -130,6 +130,7 @@ const getDataFlowsByWorkspaceNextOperationSpec = {
|
|
|
130
130
|
};
|
|
131
131
|
/** Class containing DataFlowOperations operations. */
|
|
132
132
|
class DataFlowOperationsImpl {
|
|
133
|
+
client;
|
|
133
134
|
/**
|
|
134
135
|
* Initialize a new instance of the class DataFlowOperations class.
|
|
135
136
|
* @param client - Reference to the service client
|
|
@@ -151,52 +152,35 @@ class DataFlowOperationsImpl {
|
|
|
151
152
|
return this;
|
|
152
153
|
},
|
|
153
154
|
byPage: (settings) => {
|
|
154
|
-
if (settings
|
|
155
|
+
if (settings?.maxPageSize) {
|
|
155
156
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
156
157
|
}
|
|
157
158
|
return this.getDataFlowsByWorkspacePagingPage(options, settings);
|
|
158
159
|
},
|
|
159
160
|
};
|
|
160
161
|
}
|
|
161
|
-
getDataFlowsByWorkspacePagingPage(options, settings) {
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
}
|
|
179
|
-
});
|
|
162
|
+
async *getDataFlowsByWorkspacePagingPage(options, settings) {
|
|
163
|
+
let result;
|
|
164
|
+
let continuationToken = settings?.continuationToken;
|
|
165
|
+
if (!continuationToken) {
|
|
166
|
+
result = await this._getDataFlowsByWorkspace(options);
|
|
167
|
+
const page = result.value || [];
|
|
168
|
+
continuationToken = result.nextLink;
|
|
169
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
170
|
+
yield page;
|
|
171
|
+
}
|
|
172
|
+
while (continuationToken) {
|
|
173
|
+
result = await this._getDataFlowsByWorkspaceNext(continuationToken, options);
|
|
174
|
+
continuationToken = result.nextLink;
|
|
175
|
+
const page = result.value || [];
|
|
176
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
177
|
+
yield page;
|
|
178
|
+
}
|
|
180
179
|
}
|
|
181
|
-
getDataFlowsByWorkspacePagingAll(options) {
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.getDataFlowsByWorkspacePagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
186
|
-
_c = _f.value;
|
|
187
|
-
_d = false;
|
|
188
|
-
const page = _c;
|
|
189
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
193
|
-
finally {
|
|
194
|
-
try {
|
|
195
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
196
|
-
}
|
|
197
|
-
finally { if (e_1) throw e_1.error; }
|
|
198
|
-
}
|
|
199
|
-
});
|
|
180
|
+
async *getDataFlowsByWorkspacePagingAll(options) {
|
|
181
|
+
for await (const page of this.getDataFlowsByWorkspacePagingPage(options)) {
|
|
182
|
+
yield* page;
|
|
183
|
+
}
|
|
200
184
|
}
|
|
201
185
|
/**
|
|
202
186
|
* Creates or updates a data flow.
|
|
@@ -206,19 +190,24 @@ class DataFlowOperationsImpl {
|
|
|
206
190
|
*/
|
|
207
191
|
async beginCreateOrUpdateDataFlow(dataFlowName, dataFlow, options) {
|
|
208
192
|
const directSendOperation = async (args, spec) => {
|
|
209
|
-
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.beginCreateOrUpdateDataFlow", options
|
|
193
|
+
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.beginCreateOrUpdateDataFlow", options ?? {}, async () => {
|
|
210
194
|
return this.client.sendOperationRequest(args, spec);
|
|
211
195
|
});
|
|
212
196
|
};
|
|
213
197
|
const sendOperationFn = async (args, spec) => {
|
|
214
|
-
var _a;
|
|
215
198
|
let currentRawResponse = undefined;
|
|
216
|
-
const providedCallback =
|
|
199
|
+
const providedCallback = args.options?.onResponse;
|
|
217
200
|
const callback = (rawResponse, flatResponse) => {
|
|
218
201
|
currentRawResponse = rawResponse;
|
|
219
|
-
providedCallback
|
|
202
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
203
|
+
};
|
|
204
|
+
const updatedArgs = {
|
|
205
|
+
...args,
|
|
206
|
+
options: {
|
|
207
|
+
...args.options,
|
|
208
|
+
onResponse: callback,
|
|
209
|
+
},
|
|
220
210
|
};
|
|
221
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
222
211
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
223
212
|
return {
|
|
224
213
|
flatResponse,
|
|
@@ -235,8 +224,8 @@ class DataFlowOperationsImpl {
|
|
|
235
224
|
spec: createOrUpdateDataFlowOperationSpec,
|
|
236
225
|
});
|
|
237
226
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
238
|
-
restoreFrom: options
|
|
239
|
-
intervalInMs: options
|
|
227
|
+
restoreFrom: options?.resumeFrom,
|
|
228
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
240
229
|
});
|
|
241
230
|
await poller.poll();
|
|
242
231
|
return poller;
|
|
@@ -257,7 +246,7 @@ class DataFlowOperationsImpl {
|
|
|
257
246
|
* @param options - The options parameters.
|
|
258
247
|
*/
|
|
259
248
|
async getDataFlow(dataFlowName, options) {
|
|
260
|
-
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.getDataFlow", options
|
|
249
|
+
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.getDataFlow", options ?? {}, async (updatedOptions) => {
|
|
261
250
|
return this.client.sendOperationRequest({ dataFlowName, updatedOptions }, getDataFlowOperationSpec);
|
|
262
251
|
});
|
|
263
252
|
}
|
|
@@ -268,19 +257,24 @@ class DataFlowOperationsImpl {
|
|
|
268
257
|
*/
|
|
269
258
|
async beginDeleteDataFlow(dataFlowName, options) {
|
|
270
259
|
const directSendOperation = async (args, spec) => {
|
|
271
|
-
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.beginDeleteDataFlow", options
|
|
260
|
+
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.beginDeleteDataFlow", options ?? {}, async () => {
|
|
272
261
|
return this.client.sendOperationRequest(args, spec);
|
|
273
262
|
});
|
|
274
263
|
};
|
|
275
264
|
const sendOperationFn = async (args, spec) => {
|
|
276
|
-
var _a;
|
|
277
265
|
let currentRawResponse = undefined;
|
|
278
|
-
const providedCallback =
|
|
266
|
+
const providedCallback = args.options?.onResponse;
|
|
279
267
|
const callback = (rawResponse, flatResponse) => {
|
|
280
268
|
currentRawResponse = rawResponse;
|
|
281
|
-
providedCallback
|
|
269
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
270
|
+
};
|
|
271
|
+
const updatedArgs = {
|
|
272
|
+
...args,
|
|
273
|
+
options: {
|
|
274
|
+
...args.options,
|
|
275
|
+
onResponse: callback,
|
|
276
|
+
},
|
|
282
277
|
};
|
|
283
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
284
278
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
285
279
|
return {
|
|
286
280
|
flatResponse,
|
|
@@ -297,8 +291,8 @@ class DataFlowOperationsImpl {
|
|
|
297
291
|
spec: deleteDataFlowOperationSpec,
|
|
298
292
|
});
|
|
299
293
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
300
|
-
restoreFrom: options
|
|
301
|
-
intervalInMs: options
|
|
294
|
+
restoreFrom: options?.resumeFrom,
|
|
295
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
302
296
|
});
|
|
303
297
|
await poller.poll();
|
|
304
298
|
return poller;
|
|
@@ -320,19 +314,24 @@ class DataFlowOperationsImpl {
|
|
|
320
314
|
*/
|
|
321
315
|
async beginRenameDataFlow(dataFlowName, request, options) {
|
|
322
316
|
const directSendOperation = async (args, spec) => {
|
|
323
|
-
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.beginRenameDataFlow", options
|
|
317
|
+
return tracing_js_1.tracingClient.withSpan("ArtifactsClient.beginRenameDataFlow", options ?? {}, async () => {
|
|
324
318
|
return this.client.sendOperationRequest(args, spec);
|
|
325
319
|
});
|
|
326
320
|
};
|
|
327
321
|
const sendOperationFn = async (args, spec) => {
|
|
328
|
-
var _a;
|
|
329
322
|
let currentRawResponse = undefined;
|
|
330
|
-
const providedCallback =
|
|
323
|
+
const providedCallback = args.options?.onResponse;
|
|
331
324
|
const callback = (rawResponse, flatResponse) => {
|
|
332
325
|
currentRawResponse = rawResponse;
|
|
333
|
-
providedCallback
|
|
326
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
327
|
+
};
|
|
328
|
+
const updatedArgs = {
|
|
329
|
+
...args,
|
|
330
|
+
options: {
|
|
331
|
+
...args.options,
|
|
332
|
+
onResponse: callback,
|
|
333
|
+
},
|
|
334
334
|
};
|
|
335
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
336
335
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
337
336
|
return {
|
|
338
337
|
flatResponse,
|
|
@@ -349,8 +348,8 @@ class DataFlowOperationsImpl {
|
|
|
349
348
|
spec: renameDataFlowOperationSpec,
|
|
350
349
|
});
|
|
351
350
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
352
|
-
restoreFrom: options
|
|
353
|
-
intervalInMs: options
|
|
351
|
+
restoreFrom: options?.resumeFrom,
|
|
352
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
354
353
|
});
|
|
355
354
|
await poller.poll();
|
|
356
355
|
return poller;
|
|
@@ -370,7 +369,7 @@ class DataFlowOperationsImpl {
|
|
|
370
369
|
* @param options - The options parameters.
|
|
371
370
|
*/
|
|
372
371
|
async _getDataFlowsByWorkspace(options) {
|
|
373
|
-
return tracing_js_1.tracingClient.withSpan("ArtifactsClient._getDataFlowsByWorkspace", options
|
|
372
|
+
return tracing_js_1.tracingClient.withSpan("ArtifactsClient._getDataFlowsByWorkspace", options ?? {}, async (updatedOptions) => {
|
|
374
373
|
return this.client.sendOperationRequest({ updatedOptions }, getDataFlowsByWorkspaceOperationSpec);
|
|
375
374
|
});
|
|
376
375
|
}
|
|
@@ -381,7 +380,7 @@ class DataFlowOperationsImpl {
|
|
|
381
380
|
* @param options - The options parameters.
|
|
382
381
|
*/
|
|
383
382
|
async _getDataFlowsByWorkspaceNext(nextLink, options) {
|
|
384
|
-
return tracing_js_1.tracingClient.withSpan("ArtifactsClient._getDataFlowsByWorkspaceNext", options
|
|
383
|
+
return tracing_js_1.tracingClient.withSpan("ArtifactsClient._getDataFlowsByWorkspaceNext", options ?? {}, async (updatedOptions) => {
|
|
385
384
|
return this.client.sendOperationRequest({ nextLink, updatedOptions }, getDataFlowsByWorkspaceNextOperationSpec);
|
|
386
385
|
});
|
|
387
386
|
}
|