@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"triggerRunOperations.js","sourceRoot":"","sources":["../../../src/operations/triggerRunOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAUtD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iCAAiC,GAA6B;IAClE,IAAI,EAAE,mDAAmD;IACzD,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC/E,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,kCAAkC,GAA6B;IACnE,IAAI,EAAE,oDAAoD;IAC1D,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,EAAE,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC/E,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,wCAAwC,GAA6B;IACzE,IAAI,EAAE,mBAAmB;IACzB,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,wBAAwB;SAC7C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,gBAAgB;IACxC,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;IACpC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AAEF,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;
|
|
1
|
+
{"version":3,"file":"triggerRunOperations.js","sourceRoot":"","sources":["../../../src/operations/triggerRunOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAA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,EAAE,cAAc,EAAE,EAAE;YACvB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,gBAAgB,EAAE,cAAc,EAAE,EACpC,wCAAwC,CACiB,CAAC;QAC9D,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 { TriggerRunOperations } 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 TriggerRunRerunTriggerInstanceOptionalParams,\n TriggerRunCancelTriggerInstanceOptionalParams,\n RunFilterParameters,\n TriggerRunQueryTriggerRunsByWorkspaceOptionalParams,\n TriggerRunQueryTriggerRunsByWorkspaceResponse,\n} from \"../models/index.js\";\n\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst rerunTriggerInstanceOperationSpec: coreClient.OperationSpec = {\n path: \"/triggers/{triggerName}/triggerRuns/{runId}/rerun\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.runId1, Parameters.triggerName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst cancelTriggerInstanceOperationSpec: coreClient.OperationSpec = {\n path: \"/triggers/{triggerName}/triggerRuns/{runId}/cancel\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint, Parameters.runId1, Parameters.triggerName],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst queryTriggerRunsByWorkspaceOperationSpec: coreClient.OperationSpec = {\n path: \"/queryTriggerRuns\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.TriggerRunsQueryResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.filterParameters,\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\n\n/** Class containing TriggerRunOperations operations. */\nexport class TriggerRunOperationsImpl implements TriggerRunOperations {\n private readonly client: ArtifactsClient;\n\n /**\n * Initialize a new instance of the class TriggerRunOperations class.\n * @param client - Reference to the service client\n */\n // eslint-disable-next-line @azure/azure-sdk/ts-use-interface-parameters\n constructor(client: ArtifactsClient) {\n this.client = client;\n }\n\n /**\n * Rerun single trigger instance by runId.\n * @param triggerName - The trigger name.\n * @param runId - The pipeline run identifier.\n * @param options - The options parameters.\n */\n async rerunTriggerInstance(\n triggerName: string,\n runId: string,\n options?: TriggerRunRerunTriggerInstanceOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.rerunTriggerInstance\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { triggerName, runId, updatedOptions },\n rerunTriggerInstanceOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Cancel single trigger instance by runId.\n * @param triggerName - The trigger name.\n * @param runId - The pipeline run identifier.\n * @param options - The options parameters.\n */\n async cancelTriggerInstance(\n triggerName: string,\n runId: string,\n options?: TriggerRunCancelTriggerInstanceOptionalParams,\n ): Promise<void> {\n return tracingClient.withSpan(\n \"ArtifactsClient.cancelTriggerInstance\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { triggerName, runId, updatedOptions },\n cancelTriggerInstanceOperationSpec,\n ) as Promise<void>;\n },\n );\n }\n\n /**\n * Query trigger runs.\n * @param filterParameters - Parameters to filter the pipeline run.\n * @param options - The options parameters.\n */\n async queryTriggerRunsByWorkspace(\n filterParameters: RunFilterParameters,\n options?: TriggerRunQueryTriggerRunsByWorkspaceOptionalParams,\n ): Promise<TriggerRunQueryTriggerRunsByWorkspaceResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.queryTriggerRunsByWorkspace\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { filterParameters, updatedOptions },\n queryTriggerRunsByWorkspaceOperationSpec,\n ) as Promise<TriggerRunQueryTriggerRunsByWorkspaceResponse>;\n },\n );\n }\n}\n"]}
|
|
@@ -28,6 +28,7 @@ const getGitHubAccessTokenOperationSpec = {
|
|
|
28
28
|
};
|
|
29
29
|
/** Class containing WorkspaceGitRepoManagement operations. */
|
|
30
30
|
export class WorkspaceGitRepoManagementImpl {
|
|
31
|
+
client;
|
|
31
32
|
/**
|
|
32
33
|
* Initialize a new instance of the class WorkspaceGitRepoManagement class.
|
|
33
34
|
* @param client - Reference to the service client
|
|
@@ -42,7 +43,7 @@ export class WorkspaceGitRepoManagementImpl {
|
|
|
42
43
|
* @param options - The options parameters.
|
|
43
44
|
*/
|
|
44
45
|
async getGitHubAccessToken(gitHubAccessTokenRequest, options) {
|
|
45
|
-
return tracingClient.withSpan("ArtifactsClient.getGitHubAccessToken", options
|
|
46
|
+
return tracingClient.withSpan("ArtifactsClient.getGitHubAccessToken", options ?? {}, async (updatedOptions) => {
|
|
46
47
|
return this.client.sendOperationRequest({ gitHubAccessTokenRequest, updatedOptions }, getGitHubAccessTokenOperationSpec);
|
|
47
48
|
});
|
|
48
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaceGitRepoManagement.js","sourceRoot":"","sources":["../../../src/operations/workspaceGitRepoManagement.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAQtD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iCAAiC,GAA6B;IAClE,IAAI,EAAE,uBAAuB;IAC7B,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;KACF;IACD,WAAW,EAAE,UAAU,CAAC,wBAAwB;IAChD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;IACpC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,eAAe,CAAC;IACzF,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AAEF,8DAA8D;AAC9D,MAAM,OAAO,8BAA8B;
|
|
1
|
+
{"version":3,"file":"workspaceGitRepoManagement.js","sourceRoot":"","sources":["../../../src/operations/workspaceGitRepoManagement.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAQtD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,iCAAiC,GAA6B;IAClE,IAAI,EAAE,uBAAuB;IAC7B,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;KACF;IACD,WAAW,EAAE,UAAU,CAAC,wBAAwB;IAChD,eAAe,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC;IACzC,aAAa,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC;IACpC,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,EAAE,UAAU,CAAC,eAAe,CAAC;IACzF,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AAEF,8DAA8D;AAC9D,MAAM,OAAO,8BAA8B;IACxB,MAAM,CAAkB;IAEzC;;;OAGG;IACH,wEAAwE;IACxE,YAAY,MAAuB;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,oBAAoB,CACxB,wBAAkD,EAClD,OAAsE;QAEtE,OAAO,aAAa,CAAC,QAAQ,CAC3B,sCAAsC,EACtC,OAAO,IAAI,EAAE,EACb,KAAK,EAAE,cAAc,EAAE,EAAE;YACvB,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,wBAAwB,EAAE,cAAc,EAAE,EAC5C,iCAAiC,CACiC,CAAC;QACvE,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 { WorkspaceGitRepoManagement } 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 GitHubAccessTokenRequest,\n WorkspaceGitRepoManagementGetGitHubAccessTokenOptionalParams,\n WorkspaceGitRepoManagementGetGitHubAccessTokenResponse,\n} from \"../models/index.js\";\n\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getGitHubAccessTokenOperationSpec: coreClient.OperationSpec = {\n path: \"/getGitHubAccessToken\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.GitHubAccessTokenResponse,\n },\n },\n requestBody: Parameters.gitHubAccessTokenRequest,\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept, Parameters.contentType, Parameters.clientRequestId],\n mediaType: \"json\",\n serializer,\n};\n\n/** Class containing WorkspaceGitRepoManagement operations. */\nexport class WorkspaceGitRepoManagementImpl implements WorkspaceGitRepoManagement {\n private readonly client: ArtifactsClient;\n\n /**\n * Initialize a new instance of the class WorkspaceGitRepoManagement class.\n * @param client - Reference to the service client\n */\n // eslint-disable-next-line @azure/azure-sdk/ts-use-interface-parameters\n constructor(client: ArtifactsClient) {\n this.client = client;\n }\n\n /**\n * Get the GitHub access token.\n * @param gitHubAccessTokenRequest - The GitHub access token request\n * @param options - The options parameters.\n */\n async getGitHubAccessToken(\n gitHubAccessTokenRequest: GitHubAccessTokenRequest,\n options?: WorkspaceGitRepoManagementGetGitHubAccessTokenOptionalParams,\n ): Promise<WorkspaceGitRepoManagementGetGitHubAccessTokenResponse> {\n return tracingClient.withSpan(\n \"ArtifactsClient.getGitHubAccessToken\",\n options ?? {},\n async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { gitHubAccessTokenRequest, updatedOptions },\n getGitHubAccessTokenOperationSpec,\n ) as Promise<WorkspaceGitRepoManagementGetGitHubAccessTokenResponse>;\n },\n );\n }\n}\n"]}
|
|
@@ -29,6 +29,7 @@ const getOperationSpec = {
|
|
|
29
29
|
};
|
|
30
30
|
/** Class containing WorkspaceOperations operations. */
|
|
31
31
|
export class WorkspaceOperationsImpl {
|
|
32
|
+
client;
|
|
32
33
|
/**
|
|
33
34
|
* Initialize a new instance of the class WorkspaceOperations class.
|
|
34
35
|
* @param client - Reference to the service client
|
|
@@ -42,7 +43,7 @@ export class WorkspaceOperationsImpl {
|
|
|
42
43
|
* @param options - The options parameters.
|
|
43
44
|
*/
|
|
44
45
|
async get(options) {
|
|
45
|
-
return tracingClient.withSpan("ArtifactsClient.get", options
|
|
46
|
+
return tracingClient.withSpan("ArtifactsClient.get", options ?? {}, async (updatedOptions) => {
|
|
46
47
|
return this.client.sendOperationRequest({ updatedOptions }, getOperationSpec);
|
|
47
48
|
});
|
|
48
49
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaceOperations.js","sourceRoot":"","sources":["../../../src/operations/workspaceOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAItD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,SAAS;SAC9B;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;AAEF,uDAAuD;AACvD,MAAM,OAAO,uBAAuB;
|
|
1
|
+
{"version":3,"file":"workspaceOperations.js","sourceRoot":"","sources":["../../../src/operations/workspaceOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE9C,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAItD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,gBAAgB,GAA6B;IACjD,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,SAAS;SAC9B;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;AAEF,uDAAuD;AACvD,MAAM,OAAO,uBAAuB;IACjB,MAAM,CAAkB;IAEzC;;;OAGG;IACH,wEAAwE;IACxE,YAAY,MAAuB;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACH,KAAK,CAAC,GAAG,CAAC,OAAoC;QAC5C,OAAO,aAAa,CAAC,QAAQ,CAAC,qBAAqB,EAAE,OAAO,IAAI,EAAE,EAAE,KAAK,EAAE,cAAc,EAAE,EAAE;YAC3F,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,cAAc,EAAE,EAClB,gBAAgB,CACgB,CAAC;QACrC,CAAC,CAAC,CAAC;IACL,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 { WorkspaceOperations } 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 { WorkspaceGetOptionalParams, WorkspaceGetResponse } from \"../models/index.js\";\n\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/workspace\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Workspace,\n },\n default: {\n bodyMapper: Mappers.ErrorContract,\n },\n },\n queryParameters: [Parameters.apiVersion5],\n urlParameters: [Parameters.endpoint],\n headerParameters: [Parameters.accept],\n serializer,\n};\n\n/** Class containing WorkspaceOperations operations. */\nexport class WorkspaceOperationsImpl implements WorkspaceOperations {\n private readonly client: ArtifactsClient;\n\n /**\n * Initialize a new instance of the class WorkspaceOperations class.\n * @param client - Reference to the service client\n */\n // eslint-disable-next-line @azure/azure-sdk/ts-use-interface-parameters\n constructor(client: ArtifactsClient) {\n this.client = client;\n }\n\n /**\n * Get Workspace\n * @param options - The options parameters.\n */\n async get(options?: WorkspaceGetOptionalParams): Promise<WorkspaceGetResponse> {\n return tracingClient.withSpan(\"ArtifactsClient.get\", options ?? {}, async (updatedOptions) => {\n return this.client.sendOperationRequest(\n { updatedOptions },\n getOperationSpec,\n ) as Promise<WorkspaceGetResponse>;\n });\n }\n}\n"]}
|
package/dist/esm/pagingHelper.js
CHANGED
|
@@ -14,18 +14,16 @@ const pageMap = new WeakMap();
|
|
|
14
14
|
* @returns The continuation token that can be passed into byPage() during future calls.
|
|
15
15
|
*/
|
|
16
16
|
export function getContinuationToken(page) {
|
|
17
|
-
var _a;
|
|
18
17
|
if (typeof page !== "object" || page === null) {
|
|
19
18
|
return undefined;
|
|
20
19
|
}
|
|
21
|
-
return
|
|
20
|
+
return pageMap.get(page)?.continuationToken;
|
|
22
21
|
}
|
|
23
22
|
export function setContinuationToken(page, continuationToken) {
|
|
24
|
-
var _a;
|
|
25
23
|
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
26
24
|
return;
|
|
27
25
|
}
|
|
28
|
-
const pageInfo =
|
|
26
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
29
27
|
pageInfo.continuationToken = continuationToken;
|
|
30
28
|
pageMap.set(page, pageInfo);
|
|
31
29
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa
|
|
1
|
+
{"version":3,"file":"pagingHelper.js","sourceRoot":"","sources":["../../src/pagingHelper.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAMH,MAAM,OAAO,GAAG,IAAI,OAAO,EAAoB,CAAC;AAEhD;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,IAAa;IAChD,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,EAAE,CAAC;QAC9C,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,OAAO,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,iBAAiB,CAAC;AAC9C,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,IAAa,EAAE,iBAAqC;IACvF,IAAI,OAAO,IAAI,KAAK,QAAQ,IAAI,IAAI,KAAK,IAAI,IAAI,CAAC,iBAAiB,EAAE,CAAC;QACpE,OAAO;IACT,CAAC;IACD,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;IACzC,QAAQ,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;AAC9B,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nexport interface PageInfo {\n continuationToken?: string;\n}\n\nconst pageMap = new WeakMap<object, PageInfo>();\n\n/**\n * Given the last `.value` produced by the `byPage` iterator,\n * returns a continuation token that can be used to begin paging from\n * that point later.\n * @param page - An object from accessing `value` on the IteratorResult from a `byPage` iterator.\n * @returns The continuation token that can be passed into byPage() during future calls.\n */\nexport function getContinuationToken(page: unknown): string | undefined {\n if (typeof page !== \"object\" || page === null) {\n return undefined;\n }\n return pageMap.get(page)?.continuationToken;\n}\n\nexport function setContinuationToken(page: unknown, continuationToken: string | undefined): void {\n if (typeof page !== \"object\" || page === null || !continuationToken) {\n return;\n }\n const pageInfo = pageMap.get(page) ?? {};\n pageInfo.continuationToken = continuationToken;\n pageMap.set(page, pageInfo);\n}\n"]}
|
|
@@ -9,6 +9,7 @@ import * as coreClient from "@azure/core-client";
|
|
|
9
9
|
import * as coreRestPipeline from "@azure/core-rest-pipeline";
|
|
10
10
|
import { LinkConnectionOperationsImpl, RunNotebookImpl, KqlScriptsImpl, KqlScriptOperationsImpl, MetastoreImpl, SparkConfigurationOperationsImpl, BigDataPoolsImpl, DataFlowOperationsImpl, DataFlowDebugSessionImpl, DatasetOperationsImpl, WorkspaceGitRepoManagementImpl, IntegrationRuntimesImpl, LibraryImpl, LinkedServiceOperationsImpl, NotebookOperationsImpl, NotebookOperationResultImpl, PipelineOperationsImpl, PipelineRunOperationsImpl, SparkJobDefinitionOperationsImpl, SqlPoolsImpl, SqlScriptOperationsImpl, TriggerOperationsImpl, TriggerRunOperationsImpl, WorkspaceOperationsImpl, } from "./operations/index.js";
|
|
11
11
|
export class ArtifactsClient extends coreClient.ServiceClient {
|
|
12
|
+
endpoint;
|
|
12
13
|
/**
|
|
13
14
|
* Initializes a new instance of the ArtifactsClient class.
|
|
14
15
|
* @param credentials - Subscription credentials which uniquely identify client subscription.
|
|
@@ -17,7 +18,6 @@ export class ArtifactsClient extends coreClient.ServiceClient {
|
|
|
17
18
|
* @param options - The parameter options
|
|
18
19
|
*/
|
|
19
20
|
constructor(credentials, endpoint, options) {
|
|
20
|
-
var _a, _b, _c;
|
|
21
21
|
if (credentials === undefined) {
|
|
22
22
|
throw new Error("'credentials' cannot be null");
|
|
23
23
|
}
|
|
@@ -39,12 +39,17 @@ export class ArtifactsClient extends coreClient.ServiceClient {
|
|
|
39
39
|
if (!options.credentialScopes) {
|
|
40
40
|
options.credentialScopes = ["https://dev.azuresynapse.net/.default"];
|
|
41
41
|
}
|
|
42
|
-
const optionsWithDefaults =
|
|
42
|
+
const optionsWithDefaults = {
|
|
43
|
+
...defaults,
|
|
44
|
+
...options,
|
|
45
|
+
userAgentOptions: {
|
|
43
46
|
userAgentPrefix,
|
|
44
|
-
},
|
|
47
|
+
},
|
|
48
|
+
endpoint: options.endpoint ?? options.baseUri ?? "{endpoint}",
|
|
49
|
+
};
|
|
45
50
|
super(optionsWithDefaults);
|
|
46
51
|
let bearerTokenAuthenticationPolicyFound = false;
|
|
47
|
-
if (
|
|
52
|
+
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
48
53
|
const pipelinePolicies = options.pipeline.getOrderedPolicies();
|
|
49
54
|
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName);
|
|
50
55
|
}
|
|
@@ -57,7 +62,7 @@ export class ArtifactsClient extends coreClient.ServiceClient {
|
|
|
57
62
|
});
|
|
58
63
|
this.pipeline.addPolicy(coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
59
64
|
credential: credentials,
|
|
60
|
-
scopes:
|
|
65
|
+
scopes: optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,
|
|
61
66
|
challengeCallbacks: {
|
|
62
67
|
authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,
|
|
63
68
|
},
|
|
@@ -90,5 +95,29 @@ export class ArtifactsClient extends coreClient.ServiceClient {
|
|
|
90
95
|
this.triggerRunOperations = new TriggerRunOperationsImpl(this);
|
|
91
96
|
this.workspaceOperations = new WorkspaceOperationsImpl(this);
|
|
92
97
|
}
|
|
98
|
+
linkConnectionOperations;
|
|
99
|
+
runNotebook;
|
|
100
|
+
kqlScripts;
|
|
101
|
+
kqlScriptOperations;
|
|
102
|
+
metastore;
|
|
103
|
+
sparkConfigurationOperations;
|
|
104
|
+
bigDataPools;
|
|
105
|
+
dataFlowOperations;
|
|
106
|
+
dataFlowDebugSession;
|
|
107
|
+
datasetOperations;
|
|
108
|
+
workspaceGitRepoManagement;
|
|
109
|
+
integrationRuntimes;
|
|
110
|
+
library;
|
|
111
|
+
linkedServiceOperations;
|
|
112
|
+
notebookOperations;
|
|
113
|
+
notebookOperationResult;
|
|
114
|
+
pipelineOperations;
|
|
115
|
+
pipelineRunOperations;
|
|
116
|
+
sparkJobDefinitionOperations;
|
|
117
|
+
sqlPools;
|
|
118
|
+
sqlScriptOperations;
|
|
119
|
+
triggerOperations;
|
|
120
|
+
triggerRunOperations;
|
|
121
|
+
workspaceOperations;
|
|
93
122
|
}
|
|
94
123
|
//# sourceMappingURL=artifactsClient.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"artifactsClient.js","sourceRoot":"","sources":["../../src/artifactsClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,4BAA4B,EAC5B,eAAe,EACf,cAAc,EAC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AAC;QACjE,IAAI,CAAC,4BAA4B,GAAG,IAAI,gCAAgC,CAAC,IAAI,CAAC,CAAC;QAC/E,IAAI,CAAC,QAAQ,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,CAAC;QACvC,IAAI,CAAC,mBAAmB,GAAG,IAAI,uBAAuB,CAAC,IAAI,CAAC,CAAC;QAC7D,IAAI,CAAC,iBAAiB,GAAG,IAAI,qBAAqB,CAAC,IAAI,CAAC,CAAC;QACzD,IAAI,CAAC,oBAAoB,GAAG,IAAI,wBAAwB,CAAC,IAAI,CAAC,CAAC;QAC/D,IAAI,CAAC,mBAAmB,GAAG,IAAI,uBAAuB,CAAC,IAAI,CAAC,CAAC;IAC/D,CAAC;CA0BF","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 * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport type * as coreAuth from \"@azure/core-auth\";\nimport {\n LinkConnectionOperationsImpl,\n RunNotebookImpl,\n KqlScriptsImpl,\n KqlScriptOperationsImpl,\n MetastoreImpl,\n SparkConfigurationOperationsImpl,\n BigDataPoolsImpl,\n DataFlowOperationsImpl,\n DataFlowDebugSessionImpl,\n DatasetOperationsImpl,\n WorkspaceGitRepoManagementImpl,\n IntegrationRuntimesImpl,\n LibraryImpl,\n LinkedServiceOperationsImpl,\n NotebookOperationsImpl,\n NotebookOperationResultImpl,\n PipelineOperationsImpl,\n PipelineRunOperationsImpl,\n SparkJobDefinitionOperationsImpl,\n SqlPoolsImpl,\n SqlScriptOperationsImpl,\n TriggerOperationsImpl,\n TriggerRunOperationsImpl,\n WorkspaceOperationsImpl,\n} from \"./operations/index.js\";\nimport type {\n LinkConnectionOperations,\n RunNotebook,\n KqlScripts,\n KqlScriptOperations,\n Metastore,\n SparkConfigurationOperations,\n BigDataPools,\n DataFlowOperations,\n DataFlowDebugSession,\n DatasetOperations,\n WorkspaceGitRepoManagement,\n IntegrationRuntimes,\n Library,\n LinkedServiceOperations,\n NotebookOperations,\n NotebookOperationResult,\n PipelineOperations,\n PipelineRunOperations,\n SparkJobDefinitionOperations,\n SqlPools,\n SqlScriptOperations,\n TriggerOperations,\n TriggerRunOperations,\n WorkspaceOperations,\n} from \"./operationsInterfaces/index.js\";\nimport type { ArtifactsClientOptionalParams } from \"./models/index.js\";\n\nexport class ArtifactsClient extends coreClient.ServiceClient {\n endpoint: string;\n\n /**\n * Initializes a new instance of the ArtifactsClient class.\n * @param credentials - Subscription credentials which uniquely identify client subscription.\n * @param endpoint - The workspace development endpoint, for example\n * `https://myworkspace.dev.azuresynapse.net`.\n * @param options - The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n endpoint: string,\n options?: ArtifactsClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (endpoint === undefined) {\n throw new Error(\"'endpoint' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ArtifactsClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-synapse-artifacts/1.0.0-beta.16`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n if (!options.credentialScopes) {\n options.credentialScopes = [\"https://dev.azuresynapse.net/.default\"];\n }\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint: options.endpoint ?? options.baseUri ?? \"{endpoint}\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length === 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.endpoint = endpoint;\n this.linkConnectionOperations = new LinkConnectionOperationsImpl(this);\n this.runNotebook = new RunNotebookImpl(this);\n this.kqlScripts = new KqlScriptsImpl(this);\n this.kqlScriptOperations = new KqlScriptOperationsImpl(this);\n this.metastore = new MetastoreImpl(this);\n this.sparkConfigurationOperations = new SparkConfigurationOperationsImpl(this);\n this.bigDataPools = new BigDataPoolsImpl(this);\n this.dataFlowOperations = new DataFlowOperationsImpl(this);\n this.dataFlowDebugSession = new DataFlowDebugSessionImpl(this);\n this.datasetOperations = new DatasetOperationsImpl(this);\n this.workspaceGitRepoManagement = new WorkspaceGitRepoManagementImpl(this);\n this.integrationRuntimes = new IntegrationRuntimesImpl(this);\n this.library = new LibraryImpl(this);\n this.linkedServiceOperations = new LinkedServiceOperationsImpl(this);\n this.notebookOperations = new NotebookOperationsImpl(this);\n this.notebookOperationResult = new NotebookOperationResultImpl(this);\n this.pipelineOperations = new PipelineOperationsImpl(this);\n this.pipelineRunOperations = new PipelineRunOperationsImpl(this);\n this.sparkJobDefinitionOperations = new SparkJobDefinitionOperationsImpl(this);\n this.sqlPools = new SqlPoolsImpl(this);\n this.sqlScriptOperations = new SqlScriptOperationsImpl(this);\n this.triggerOperations = new TriggerOperationsImpl(this);\n this.triggerRunOperations = new TriggerRunOperationsImpl(this);\n this.workspaceOperations = new WorkspaceOperationsImpl(this);\n }\n\n linkConnectionOperations: LinkConnectionOperations;\n runNotebook: RunNotebook;\n kqlScripts: KqlScripts;\n kqlScriptOperations: KqlScriptOperations;\n metastore: Metastore;\n sparkConfigurationOperations: SparkConfigurationOperations;\n bigDataPools: BigDataPools;\n dataFlowOperations: DataFlowOperations;\n dataFlowDebugSession: DataFlowDebugSession;\n datasetOperations: DatasetOperations;\n workspaceGitRepoManagement: WorkspaceGitRepoManagement;\n integrationRuntimes: IntegrationRuntimes;\n library: Library;\n linkedServiceOperations: LinkedServiceOperations;\n notebookOperations: NotebookOperations;\n notebookOperationResult: NotebookOperationResult;\n pipelineOperations: PipelineOperations;\n pipelineRunOperations: PipelineRunOperations;\n sparkJobDefinitionOperations: SparkJobDefinitionOperations;\n sqlPools: SqlPools;\n sqlScriptOperations: SqlScriptOperations;\n triggerOperations: TriggerOperations;\n triggerRunOperations: TriggerRunOperations;\n workspaceOperations: WorkspaceOperations;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"artifactsClient.js","sourceRoot":"","sources":["../../src/artifactsClient.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAE9D,OAAO,EACL,4BAA4B,EAC5B,eAAe,EACf,cAAc,EACd,uBAAuB,EACvB,aAAa,EACb,gCAAgC,EAChC,gBAAgB,EAChB,sBAAsB,EACtB,wBAAwB,EACxB,qBAAqB,EACrB,8BAA8B,EAC9B,uBAAuB,EACvB,WAAW,EACX,2BAA2B,EAC3B,sBAAsB,EACtB,2BAA2B,EAC3B,sBAAsB,EACtB,yBAAyB,EACzB,gCAAgC,EAChC,YAAY,EACZ,uBAAuB,EACvB,qBAAqB,EACrB,wBAAwB,EACxB,uBAAuB,GACxB,MAAM,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AAI,wBAAwB,CAAC,IAAI,CAAC,CAAC;QAC/D,IAAI,CAAC,mBAAmB,GAAG,IAAI,uBAAuB,CAAC,IAAI,CAAC,CAAC;IAC/D,CAAC;IAED,wBAAwB,CAA2B;IACnD,WAAW,CAAc;IACzB,UAAU,CAAa;IACvB,mBAAmB,CAAsB;IACzC,SAAS,CAAY;IACrB,4BAA4B,CAA+B;IAC3D,YAAY,CAAe;IAC3B,kBAAkB,CAAqB;IACvC,oBAAoB,CAAuB;IAC3C,iBAAiB,CAAoB;IACrC,0BAA0B,CAA6B;IACvD,mBAAmB,CAAsB;IACzC,OAAO,CAAU;IACjB,uBAAuB,CAA0B;IACjD,kBAAkB,CAAqB;IACvC,uBAAuB,CAA0B;IACjD,kBAAkB,CAAqB;IACvC,qBAAqB,CAAwB;IAC7C,4BAA4B,CAA+B;IAC3D,QAAQ,CAAW;IACnB,mBAAmB,CAAsB;IACzC,iBAAiB,CAAoB;IACrC,oBAAoB,CAAuB;IAC3C,mBAAmB,CAAsB;CAC1C","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 * as coreClient from \"@azure/core-client\";\nimport * as coreRestPipeline from \"@azure/core-rest-pipeline\";\nimport type * as coreAuth from \"@azure/core-auth\";\nimport {\n LinkConnectionOperationsImpl,\n RunNotebookImpl,\n KqlScriptsImpl,\n KqlScriptOperationsImpl,\n MetastoreImpl,\n SparkConfigurationOperationsImpl,\n BigDataPoolsImpl,\n DataFlowOperationsImpl,\n DataFlowDebugSessionImpl,\n DatasetOperationsImpl,\n WorkspaceGitRepoManagementImpl,\n IntegrationRuntimesImpl,\n LibraryImpl,\n LinkedServiceOperationsImpl,\n NotebookOperationsImpl,\n NotebookOperationResultImpl,\n PipelineOperationsImpl,\n PipelineRunOperationsImpl,\n SparkJobDefinitionOperationsImpl,\n SqlPoolsImpl,\n SqlScriptOperationsImpl,\n TriggerOperationsImpl,\n TriggerRunOperationsImpl,\n WorkspaceOperationsImpl,\n} from \"./operations/index.js\";\nimport type {\n LinkConnectionOperations,\n RunNotebook,\n KqlScripts,\n KqlScriptOperations,\n Metastore,\n SparkConfigurationOperations,\n BigDataPools,\n DataFlowOperations,\n DataFlowDebugSession,\n DatasetOperations,\n WorkspaceGitRepoManagement,\n IntegrationRuntimes,\n Library,\n LinkedServiceOperations,\n NotebookOperations,\n NotebookOperationResult,\n PipelineOperations,\n PipelineRunOperations,\n SparkJobDefinitionOperations,\n SqlPools,\n SqlScriptOperations,\n TriggerOperations,\n TriggerRunOperations,\n WorkspaceOperations,\n} from \"./operationsInterfaces/index.js\";\nimport type { ArtifactsClientOptionalParams } from \"./models/index.js\";\n\nexport class ArtifactsClient extends coreClient.ServiceClient {\n endpoint: string;\n\n /**\n * Initializes a new instance of the ArtifactsClient class.\n * @param credentials - Subscription credentials which uniquely identify client subscription.\n * @param endpoint - The workspace development endpoint, for example\n * `https://myworkspace.dev.azuresynapse.net`.\n * @param options - The parameter options\n */\n constructor(\n credentials: coreAuth.TokenCredential,\n endpoint: string,\n options?: ArtifactsClientOptionalParams,\n ) {\n if (credentials === undefined) {\n throw new Error(\"'credentials' cannot be null\");\n }\n if (endpoint === undefined) {\n throw new Error(\"'endpoint' cannot be null\");\n }\n\n // Initializing default values for options\n if (!options) {\n options = {};\n }\n const defaults: ArtifactsClientOptionalParams = {\n requestContentType: \"application/json; charset=utf-8\",\n credential: credentials,\n };\n\n const packageDetails = `azsdk-js-synapse-artifacts/1.0.0-beta.16`;\n const userAgentPrefix =\n options.userAgentOptions && options.userAgentOptions.userAgentPrefix\n ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`\n : `${packageDetails}`;\n\n if (!options.credentialScopes) {\n options.credentialScopes = [\"https://dev.azuresynapse.net/.default\"];\n }\n const optionsWithDefaults = {\n ...defaults,\n ...options,\n userAgentOptions: {\n userAgentPrefix,\n },\n endpoint: options.endpoint ?? options.baseUri ?? \"{endpoint}\",\n };\n super(optionsWithDefaults);\n\n let bearerTokenAuthenticationPolicyFound: boolean = false;\n if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {\n const pipelinePolicies: coreRestPipeline.PipelinePolicy[] =\n options.pipeline.getOrderedPolicies();\n bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(\n (pipelinePolicy) =>\n pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName,\n );\n }\n if (\n !options ||\n !options.pipeline ||\n options.pipeline.getOrderedPolicies().length === 0 ||\n !bearerTokenAuthenticationPolicyFound\n ) {\n this.pipeline.removePolicy({\n name: coreRestPipeline.bearerTokenAuthenticationPolicyName,\n });\n this.pipeline.addPolicy(\n coreRestPipeline.bearerTokenAuthenticationPolicy({\n credential: credentials,\n scopes:\n optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`,\n challengeCallbacks: {\n authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge,\n },\n }),\n );\n }\n // Parameter assignments\n this.endpoint = endpoint;\n this.linkConnectionOperations = new LinkConnectionOperationsImpl(this);\n this.runNotebook = new RunNotebookImpl(this);\n this.kqlScripts = new KqlScriptsImpl(this);\n this.kqlScriptOperations = new KqlScriptOperationsImpl(this);\n this.metastore = new MetastoreImpl(this);\n this.sparkConfigurationOperations = new SparkConfigurationOperationsImpl(this);\n this.bigDataPools = new BigDataPoolsImpl(this);\n this.dataFlowOperations = new DataFlowOperationsImpl(this);\n this.dataFlowDebugSession = new DataFlowDebugSessionImpl(this);\n this.datasetOperations = new DatasetOperationsImpl(this);\n this.workspaceGitRepoManagement = new WorkspaceGitRepoManagementImpl(this);\n this.integrationRuntimes = new IntegrationRuntimesImpl(this);\n this.library = new LibraryImpl(this);\n this.linkedServiceOperations = new LinkedServiceOperationsImpl(this);\n this.notebookOperations = new NotebookOperationsImpl(this);\n this.notebookOperationResult = new NotebookOperationResultImpl(this);\n this.pipelineOperations = new PipelineOperationsImpl(this);\n this.pipelineRunOperations = new PipelineRunOperationsImpl(this);\n this.sparkJobDefinitionOperations = new SparkJobDefinitionOperationsImpl(this);\n this.sqlPools = new SqlPoolsImpl(this);\n this.sqlScriptOperations = new SqlScriptOperationsImpl(this);\n this.triggerOperations = new TriggerOperationsImpl(this);\n this.triggerRunOperations = new TriggerRunOperationsImpl(this);\n this.workspaceOperations = new WorkspaceOperationsImpl(this);\n }\n\n linkConnectionOperations: LinkConnectionOperations;\n runNotebook: RunNotebook;\n kqlScripts: KqlScripts;\n kqlScriptOperations: KqlScriptOperations;\n metastore: Metastore;\n sparkConfigurationOperations: SparkConfigurationOperations;\n bigDataPools: BigDataPools;\n dataFlowOperations: DataFlowOperations;\n dataFlowDebugSession: DataFlowDebugSession;\n datasetOperations: DatasetOperations;\n workspaceGitRepoManagement: WorkspaceGitRepoManagement;\n integrationRuntimes: IntegrationRuntimes;\n library: Library;\n linkedServiceOperations: LinkedServiceOperations;\n notebookOperations: NotebookOperations;\n notebookOperationResult: NotebookOperationResult;\n pipelineOperations: PipelineOperations;\n pipelineRunOperations: PipelineRunOperations;\n sparkJobDefinitionOperations: SparkJobDefinitionOperations;\n sqlPools: SqlPools;\n sqlScriptOperations: SqlScriptOperations;\n triggerOperations: TriggerOperations;\n triggerRunOperations: TriggerRunOperations;\n workspaceOperations: WorkspaceOperations;\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 { __rest } from "tslib";
|
|
9
8
|
export function createLroSpec(inputs) {
|
|
10
9
|
const { args, spec, sendOperationFn } = inputs;
|
|
11
10
|
return {
|
|
@@ -13,8 +12,13 @@ export function createLroSpec(inputs) {
|
|
|
13
12
|
requestPath: spec.path,
|
|
14
13
|
sendInitialRequest: () => sendOperationFn(args, spec),
|
|
15
14
|
sendPollRequest: (path, options) => {
|
|
16
|
-
const { requestBody
|
|
17
|
-
return sendOperationFn(args,
|
|
15
|
+
const { requestBody, ...restSpec } = spec;
|
|
16
|
+
return sendOperationFn(args, {
|
|
17
|
+
...restSpec,
|
|
18
|
+
httpMethod: "GET",
|
|
19
|
+
path,
|
|
20
|
+
abortSignal: options?.abortSignal,
|
|
21
|
+
});
|
|
18
22
|
},
|
|
19
23
|
};
|
|
20
24
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG
|
|
1
|
+
{"version":3,"file":"lroImpl.js","sourceRoot":"","sources":["../../src/lroImpl.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAKH,MAAM,UAAU,aAAa,CAAI,MAQhC;IACC,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,eAAe,EAAE,GAAG,MAAM,CAAC;IAC/C,OAAO;QACL,aAAa,EAAE,IAAI,CAAC,UAAU;QAC9B,WAAW,EAAE,IAAI,CAAC,IAAK;QACvB,kBAAkB,EAAE,GAAG,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,IAAI,CAAC;QACrD,eAAe,EAAE,CAAC,IAAY,EAAE,OAA2C,EAAE,EAAE;YAC7E,MAAM,EAAE,WAAW,EAAE,GAAG,QAAQ,EAAE,GAAG,IAAI,CAAC;YAC1C,OAAO,eAAe,CAAC,IAAI,EAAE;gBAC3B,GAAG,QAAQ;gBACX,UAAU,EAAE,KAAK;gBACjB,IAAI;gBACJ,WAAW,EAAE,OAAO,EAAE,WAAW;aAClC,CAAC,CAAC;QACL,CAAC;KACF,CAAC;AACJ,CAAC","sourcesContent":["/*\n * Copyright (c) Microsoft Corporation.\n * Licensed under the MIT License.\n *\n * Code generated by Microsoft (R) AutoRest Code Generator.\n * Changes may cause incorrect behavior and will be lost if the code is regenerated.\n */\n\nimport type { AbortSignalLike } from \"@azure/abort-controller\";\nimport type { LongRunningOperation, LroResponse } from \"@azure/core-lro\";\n\nexport function createLroSpec<T>(inputs: {\n sendOperationFn: (args: any, spec: any) => Promise<LroResponse<T>>;\n args: Record<string, unknown>;\n spec: {\n readonly requestBody?: unknown;\n readonly path?: string;\n readonly httpMethod: string;\n } & Record<string, any>;\n}): LongRunningOperation<T> {\n const { args, spec, sendOperationFn } = inputs;\n return {\n requestMethod: spec.httpMethod,\n requestPath: spec.path!,\n sendInitialRequest: () => sendOperationFn(args, spec),\n sendPollRequest: (path: string, options?: { abortSignal?: AbortSignalLike }) => {\n const { requestBody, ...restSpec } = spec;\n return sendOperationFn(args, {\n ...restSpec,\n httpMethod: \"GET\",\n path,\n abortSignal: options?.abortSignal,\n });\n },\n };\n}\n"]}
|