@azure/arm-datafactory 19.0.0-alpha.20250619.1 → 19.0.0-alpha.20250718.2
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/dataFactoryManagementClient.js +36 -5
- package/dist/browser/dataFactoryManagementClient.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 +6377 -2917
- package/dist/browser/models/mappers.js.map +1 -1
- package/dist/browser/operations/activityRuns.js +1 -0
- package/dist/browser/operations/activityRuns.js.map +1 -1
- package/dist/browser/operations/changeDataCapture.js +23 -40
- package/dist/browser/operations/changeDataCapture.js.map +1 -1
- package/dist/browser/operations/credentialOperations.js +23 -40
- package/dist/browser/operations/credentialOperations.js.map +1 -1
- package/dist/browser/operations/dataFlowDebugSession.js +45 -52
- package/dist/browser/operations/dataFlowDebugSession.js.map +1 -1
- package/dist/browser/operations/dataFlows.js +23 -40
- package/dist/browser/operations/dataFlows.js.map +1 -1
- package/dist/browser/operations/datasets.js +23 -40
- package/dist/browser/operations/datasets.js.map +1 -1
- package/dist/browser/operations/exposureControl.js +1 -0
- package/dist/browser/operations/exposureControl.js.map +1 -1
- package/dist/browser/operations/factories.js +45 -79
- package/dist/browser/operations/factories.js.map +1 -1
- package/dist/browser/operations/globalParameters.js +23 -40
- package/dist/browser/operations/globalParameters.js.map +1 -1
- package/dist/browser/operations/integrationRuntimeNodes.js +1 -0
- package/dist/browser/operations/integrationRuntimeNodes.js.map +1 -1
- package/dist/browser/operations/integrationRuntimeObjectMetadata.js +12 -6
- package/dist/browser/operations/integrationRuntimeObjectMetadata.js.map +1 -1
- package/dist/browser/operations/integrationRuntimes.js +45 -52
- package/dist/browser/operations/integrationRuntimes.js.map +1 -1
- package/dist/browser/operations/linkedServices.js +23 -40
- package/dist/browser/operations/linkedServices.js.map +1 -1
- package/dist/browser/operations/managedPrivateEndpoints.js +23 -40
- package/dist/browser/operations/managedPrivateEndpoints.js.map +1 -1
- package/dist/browser/operations/managedVirtualNetworks.js +23 -40
- package/dist/browser/operations/managedVirtualNetworks.js.map +1 -1
- package/dist/browser/operations/operations.js +23 -40
- package/dist/browser/operations/operations.js.map +1 -1
- package/dist/browser/operations/pipelineRuns.js +1 -0
- package/dist/browser/operations/pipelineRuns.js.map +1 -1
- package/dist/browser/operations/pipelines.js +23 -40
- package/dist/browser/operations/pipelines.js.map +1 -1
- package/dist/browser/operations/privateEndPointConnections.js +23 -40
- package/dist/browser/operations/privateEndPointConnections.js.map +1 -1
- package/dist/browser/operations/privateEndpointConnection.js +1 -0
- package/dist/browser/operations/privateEndpointConnection.js.map +1 -1
- package/dist/browser/operations/privateLinkResources.js +1 -0
- package/dist/browser/operations/privateLinkResources.js.map +1 -1
- package/dist/browser/operations/triggerRuns.js +1 -0
- package/dist/browser/operations/triggerRuns.js.map +1 -1
- package/dist/browser/operations/triggers.js +67 -64
- package/dist/browser/operations/triggers.js.map +1 -1
- package/dist/browser/pagingHelper.js +2 -4
- package/dist/browser/pagingHelper.js.map +1 -1
- package/dist/commonjs/dataFactoryManagementClient.js +36 -5
- package/dist/commonjs/dataFactoryManagementClient.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 +6377 -2917
- package/dist/commonjs/models/mappers.js.map +1 -1
- package/dist/commonjs/operations/activityRuns.js +1 -0
- package/dist/commonjs/operations/activityRuns.js.map +1 -1
- package/dist/commonjs/operations/changeDataCapture.js +23 -39
- package/dist/commonjs/operations/changeDataCapture.js.map +1 -1
- package/dist/commonjs/operations/credentialOperations.js +23 -39
- package/dist/commonjs/operations/credentialOperations.js.map +1 -1
- package/dist/commonjs/operations/dataFlowDebugSession.js +45 -51
- package/dist/commonjs/operations/dataFlowDebugSession.js.map +1 -1
- package/dist/commonjs/operations/dataFlows.js +23 -39
- package/dist/commonjs/operations/dataFlows.js.map +1 -1
- package/dist/commonjs/operations/datasets.js +23 -39
- package/dist/commonjs/operations/datasets.js.map +1 -1
- package/dist/commonjs/operations/exposureControl.js +1 -0
- package/dist/commonjs/operations/exposureControl.js.map +1 -1
- package/dist/commonjs/operations/factories.js +45 -78
- package/dist/commonjs/operations/factories.js.map +1 -1
- package/dist/commonjs/operations/globalParameters.js +23 -39
- package/dist/commonjs/operations/globalParameters.js.map +1 -1
- package/dist/commonjs/operations/integrationRuntimeNodes.js +1 -0
- package/dist/commonjs/operations/integrationRuntimeNodes.js.map +1 -1
- package/dist/commonjs/operations/integrationRuntimeObjectMetadata.js +12 -6
- package/dist/commonjs/operations/integrationRuntimeObjectMetadata.js.map +1 -1
- package/dist/commonjs/operations/integrationRuntimes.js +45 -51
- package/dist/commonjs/operations/integrationRuntimes.js.map +1 -1
- package/dist/commonjs/operations/linkedServices.js +23 -39
- package/dist/commonjs/operations/linkedServices.js.map +1 -1
- package/dist/commonjs/operations/managedPrivateEndpoints.js +23 -39
- package/dist/commonjs/operations/managedPrivateEndpoints.js.map +1 -1
- package/dist/commonjs/operations/managedVirtualNetworks.js +23 -39
- package/dist/commonjs/operations/managedVirtualNetworks.js.map +1 -1
- package/dist/commonjs/operations/operations.js +23 -39
- package/dist/commonjs/operations/operations.js.map +1 -1
- package/dist/commonjs/operations/pipelineRuns.js +1 -0
- package/dist/commonjs/operations/pipelineRuns.js.map +1 -1
- package/dist/commonjs/operations/pipelines.js +23 -39
- package/dist/commonjs/operations/pipelines.js.map +1 -1
- package/dist/commonjs/operations/privateEndPointConnections.js +23 -39
- package/dist/commonjs/operations/privateEndPointConnections.js.map +1 -1
- package/dist/commonjs/operations/privateEndpointConnection.js +1 -0
- package/dist/commonjs/operations/privateEndpointConnection.js.map +1 -1
- package/dist/commonjs/operations/privateLinkResources.js +1 -0
- package/dist/commonjs/operations/privateLinkResources.js.map +1 -1
- package/dist/commonjs/operations/triggerRuns.js +1 -0
- package/dist/commonjs/operations/triggerRuns.js.map +1 -1
- package/dist/commonjs/operations/triggers.js +67 -63
- package/dist/commonjs/operations/triggers.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/dataFactoryManagementClient.js +36 -5
- package/dist/esm/dataFactoryManagementClient.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 +6377 -2917
- package/dist/esm/models/mappers.js.map +1 -1
- package/dist/esm/operations/activityRuns.js +1 -0
- package/dist/esm/operations/activityRuns.js.map +1 -1
- package/dist/esm/operations/changeDataCapture.js +23 -40
- package/dist/esm/operations/changeDataCapture.js.map +1 -1
- package/dist/esm/operations/credentialOperations.js +23 -40
- package/dist/esm/operations/credentialOperations.js.map +1 -1
- package/dist/esm/operations/dataFlowDebugSession.js +45 -52
- package/dist/esm/operations/dataFlowDebugSession.js.map +1 -1
- package/dist/esm/operations/dataFlows.js +23 -40
- package/dist/esm/operations/dataFlows.js.map +1 -1
- package/dist/esm/operations/datasets.js +23 -40
- package/dist/esm/operations/datasets.js.map +1 -1
- package/dist/esm/operations/exposureControl.js +1 -0
- package/dist/esm/operations/exposureControl.js.map +1 -1
- package/dist/esm/operations/factories.js +45 -79
- package/dist/esm/operations/factories.js.map +1 -1
- package/dist/esm/operations/globalParameters.js +23 -40
- package/dist/esm/operations/globalParameters.js.map +1 -1
- package/dist/esm/operations/integrationRuntimeNodes.js +1 -0
- package/dist/esm/operations/integrationRuntimeNodes.js.map +1 -1
- package/dist/esm/operations/integrationRuntimeObjectMetadata.js +12 -6
- package/dist/esm/operations/integrationRuntimeObjectMetadata.js.map +1 -1
- package/dist/esm/operations/integrationRuntimes.js +45 -52
- package/dist/esm/operations/integrationRuntimes.js.map +1 -1
- package/dist/esm/operations/linkedServices.js +23 -40
- package/dist/esm/operations/linkedServices.js.map +1 -1
- package/dist/esm/operations/managedPrivateEndpoints.js +23 -40
- package/dist/esm/operations/managedPrivateEndpoints.js.map +1 -1
- package/dist/esm/operations/managedVirtualNetworks.js +23 -40
- package/dist/esm/operations/managedVirtualNetworks.js.map +1 -1
- package/dist/esm/operations/operations.js +23 -40
- package/dist/esm/operations/operations.js.map +1 -1
- package/dist/esm/operations/pipelineRuns.js +1 -0
- package/dist/esm/operations/pipelineRuns.js.map +1 -1
- package/dist/esm/operations/pipelines.js +23 -40
- package/dist/esm/operations/pipelines.js.map +1 -1
- package/dist/esm/operations/privateEndPointConnections.js +23 -40
- package/dist/esm/operations/privateEndPointConnections.js.map +1 -1
- package/dist/esm/operations/privateEndpointConnection.js +1 -0
- package/dist/esm/operations/privateEndpointConnection.js.map +1 -1
- package/dist/esm/operations/privateLinkResources.js +1 -0
- package/dist/esm/operations/privateLinkResources.js.map +1 -1
- package/dist/esm/operations/triggerRuns.js +1 -0
- package/dist/esm/operations/triggerRuns.js.map +1 -1
- package/dist/esm/operations/triggers.js +67 -64
- package/dist/esm/operations/triggers.js.map +1 -1
- package/dist/esm/pagingHelper.js +2 -4
- package/dist/esm/pagingHelper.js.map +1 -1
- package/dist/react-native/dataFactoryManagementClient.js +36 -5
- package/dist/react-native/dataFactoryManagementClient.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 +6377 -2917
- package/dist/react-native/models/mappers.js.map +1 -1
- package/dist/react-native/operations/activityRuns.js +1 -0
- package/dist/react-native/operations/activityRuns.js.map +1 -1
- package/dist/react-native/operations/changeDataCapture.js +23 -40
- package/dist/react-native/operations/changeDataCapture.js.map +1 -1
- package/dist/react-native/operations/credentialOperations.js +23 -40
- package/dist/react-native/operations/credentialOperations.js.map +1 -1
- package/dist/react-native/operations/dataFlowDebugSession.js +45 -52
- package/dist/react-native/operations/dataFlowDebugSession.js.map +1 -1
- package/dist/react-native/operations/dataFlows.js +23 -40
- package/dist/react-native/operations/dataFlows.js.map +1 -1
- package/dist/react-native/operations/datasets.js +23 -40
- package/dist/react-native/operations/datasets.js.map +1 -1
- package/dist/react-native/operations/exposureControl.js +1 -0
- package/dist/react-native/operations/exposureControl.js.map +1 -1
- package/dist/react-native/operations/factories.js +45 -79
- package/dist/react-native/operations/factories.js.map +1 -1
- package/dist/react-native/operations/globalParameters.js +23 -40
- package/dist/react-native/operations/globalParameters.js.map +1 -1
- package/dist/react-native/operations/integrationRuntimeNodes.js +1 -0
- package/dist/react-native/operations/integrationRuntimeNodes.js.map +1 -1
- package/dist/react-native/operations/integrationRuntimeObjectMetadata.js +12 -6
- package/dist/react-native/operations/integrationRuntimeObjectMetadata.js.map +1 -1
- package/dist/react-native/operations/integrationRuntimes.js +45 -52
- package/dist/react-native/operations/integrationRuntimes.js.map +1 -1
- package/dist/react-native/operations/linkedServices.js +23 -40
- package/dist/react-native/operations/linkedServices.js.map +1 -1
- package/dist/react-native/operations/managedPrivateEndpoints.js +23 -40
- package/dist/react-native/operations/managedPrivateEndpoints.js.map +1 -1
- package/dist/react-native/operations/managedVirtualNetworks.js +23 -40
- package/dist/react-native/operations/managedVirtualNetworks.js.map +1 -1
- package/dist/react-native/operations/operations.js +23 -40
- package/dist/react-native/operations/operations.js.map +1 -1
- package/dist/react-native/operations/pipelineRuns.js +1 -0
- package/dist/react-native/operations/pipelineRuns.js.map +1 -1
- package/dist/react-native/operations/pipelines.js +23 -40
- package/dist/react-native/operations/pipelines.js.map +1 -1
- package/dist/react-native/operations/privateEndPointConnections.js +23 -40
- package/dist/react-native/operations/privateEndPointConnections.js.map +1 -1
- package/dist/react-native/operations/privateEndpointConnection.js +1 -0
- package/dist/react-native/operations/privateEndpointConnection.js.map +1 -1
- package/dist/react-native/operations/privateLinkResources.js +1 -0
- package/dist/react-native/operations/privateLinkResources.js.map +1 -1
- package/dist/react-native/operations/triggerRuns.js +1 -0
- package/dist/react-native/operations/triggerRuns.js.map +1 -1
- package/dist/react-native/operations/triggers.js +67 -64
- package/dist/react-native/operations/triggers.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
- /package/review/{arm-datafactory.api.md → arm-datafactory-node.api.md} +0 -0
|
@@ -10,6 +10,7 @@ import * as Mappers from "../models/mappers.js";
|
|
|
10
10
|
import * as Parameters from "../models/parameters.js";
|
|
11
11
|
/** Class containing ActivityRuns operations. */
|
|
12
12
|
export class ActivityRunsImpl {
|
|
13
|
+
client;
|
|
13
14
|
/**
|
|
14
15
|
* Initialize a new instance of the class ActivityRuns class.
|
|
15
16
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activityRuns.js","sourceRoot":"","sources":["../../../src/operations/activityRuns.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAQtD,gDAAgD;AAChD,MAAM,OAAO,gBAAgB;
|
|
1
|
+
{"version":3,"file":"activityRuns.js","sourceRoot":"","sources":["../../../src/operations/activityRuns.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAQtD,gDAAgD;AAChD,MAAM,OAAO,gBAAgB;IACV,MAAM,CAA8B;IAErD;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACH,kBAAkB,CAChB,iBAAyB,EACzB,WAAmB,EACnB,KAAa,EACb,gBAAqC,EACrC,OAAsD;QAEtD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC,EAAE,iBAAiB,EAAE,WAAW,EAAE,KAAK,EAAE,gBAAgB,EAAE,OAAO,EAAE,EACpE,+BAA+B,CAChC,CAAC;IACJ,CAAC;CACF;AACD,2BAA2B;AAC3B,MAAM,UAAU,GAAG,UAAU,CAAC,gBAAgB,CAAC,OAAO,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;AAE3E,MAAM,+BAA+B,GAA6B;IAChE,IAAI,EAAE,mKAAmK;IACzK,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,yBAAyB;SAC9C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,gBAAgB;IACxC,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,KAAK;KACjB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,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 { ActivityRuns } 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 { DataFactoryManagementClient } from \"../dataFactoryManagementClient.js\";\nimport {\n RunFilterParameters,\n ActivityRunsQueryByPipelineRunOptionalParams,\n ActivityRunsQueryByPipelineRunResponse,\n} from \"../models/index.js\";\n\n/** Class containing ActivityRuns operations. */\nexport class ActivityRunsImpl implements ActivityRuns {\n private readonly client: DataFactoryManagementClient;\n\n /**\n * Initialize a new instance of the class ActivityRuns class.\n * @param client Reference to the service client\n */\n constructor(client: DataFactoryManagementClient) {\n this.client = client;\n }\n\n /**\n * Query activity runs based on input filter conditions.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param runId The pipeline run identifier.\n * @param filterParameters Parameters to filter the activity runs.\n * @param options The options parameters.\n */\n queryByPipelineRun(\n resourceGroupName: string,\n factoryName: string,\n runId: string,\n filterParameters: RunFilterParameters,\n options?: ActivityRunsQueryByPipelineRunOptionalParams,\n ): Promise<ActivityRunsQueryByPipelineRunResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, runId, filterParameters, options },\n queryByPipelineRunOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst queryByPipelineRunOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/pipelineruns/{runId}/queryActivityruns\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.ActivityRunsQueryResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.filterParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n Parameters.runId,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing ChangeDataCapture operations. */
|
|
15
14
|
export class ChangeDataCaptureImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class ChangeDataCapture class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -36,52 +36,35 @@ export class ChangeDataCaptureImpl {
|
|
|
36
36
|
return this;
|
|
37
37
|
},
|
|
38
38
|
byPage: (settings) => {
|
|
39
|
-
if (settings
|
|
39
|
+
if (settings?.maxPageSize) {
|
|
40
40
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
41
|
}
|
|
42
42
|
return this.listByFactoryPagingPage(resourceGroupName, factoryName, options, settings);
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
listByFactoryPagingPage(resourceGroupName, factoryName, options, settings) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
});
|
|
46
|
+
async *listByFactoryPagingPage(resourceGroupName, factoryName, options, settings) {
|
|
47
|
+
let result;
|
|
48
|
+
let continuationToken = settings?.continuationToken;
|
|
49
|
+
if (!continuationToken) {
|
|
50
|
+
result = await this._listByFactory(resourceGroupName, factoryName, options);
|
|
51
|
+
let page = result.value || [];
|
|
52
|
+
continuationToken = result.nextLink;
|
|
53
|
+
setContinuationToken(page, continuationToken);
|
|
54
|
+
yield page;
|
|
55
|
+
}
|
|
56
|
+
while (continuationToken) {
|
|
57
|
+
result = await this._listByFactoryNext(resourceGroupName, factoryName, continuationToken, options);
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
let page = result.value || [];
|
|
60
|
+
setContinuationToken(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
65
63
|
}
|
|
66
|
-
listByFactoryPagingAll(resourceGroupName, factoryName, options) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
for (var _d = true, _e = __asyncValues(this.listByFactoryPagingPage(resourceGroupName, factoryName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
71
|
-
_c = _f.value;
|
|
72
|
-
_d = false;
|
|
73
|
-
const page = _c;
|
|
74
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
78
|
-
finally {
|
|
79
|
-
try {
|
|
80
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
81
|
-
}
|
|
82
|
-
finally { if (e_1) throw e_1.error; }
|
|
83
|
-
}
|
|
84
|
-
});
|
|
64
|
+
async *listByFactoryPagingAll(resourceGroupName, factoryName, options) {
|
|
65
|
+
for await (const page of this.listByFactoryPagingPage(resourceGroupName, factoryName, options)) {
|
|
66
|
+
yield* page;
|
|
67
|
+
}
|
|
85
68
|
}
|
|
86
69
|
/**
|
|
87
70
|
* Lists all resources of type change data capture.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changeDataCapture.js","sourceRoot":"","sources":["../../../src/operations/changeDataCapture.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAmBtD,4CAA4C;AAC5C,qDAAqD;AACrD,MAAM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C;IACrC,UAAU;CACX,CAAC;AACF,MAAM,8BAA8B,GAA6B;IAC/D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ChangeDataCapture } 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 { DataFactoryManagementClient } from \"../dataFactoryManagementClient.js\";\nimport {\n ChangeDataCaptureResource,\n ChangeDataCaptureListByFactoryNextOptionalParams,\n ChangeDataCaptureListByFactoryOptionalParams,\n ChangeDataCaptureListByFactoryResponse,\n ChangeDataCaptureCreateOrUpdateOptionalParams,\n ChangeDataCaptureCreateOrUpdateResponse,\n ChangeDataCaptureGetOptionalParams,\n ChangeDataCaptureGetResponse,\n ChangeDataCaptureDeleteOptionalParams,\n ChangeDataCaptureStartOptionalParams,\n ChangeDataCaptureStopOptionalParams,\n ChangeDataCaptureStatusOptionalParams,\n ChangeDataCaptureStatusResponse,\n ChangeDataCaptureListByFactoryNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ChangeDataCapture operations. */\nexport class ChangeDataCaptureImpl implements ChangeDataCapture {\n private readonly client: DataFactoryManagementClient;\n\n /**\n * Initialize a new instance of the class ChangeDataCapture class.\n * @param client Reference to the service client\n */\n constructor(client: DataFactoryManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all resources of type change data capture.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param options The options parameters.\n */\n public listByFactory(\n resourceGroupName: string,\n factoryName: string,\n options?: ChangeDataCaptureListByFactoryOptionalParams,\n ): PagedAsyncIterableIterator<ChangeDataCaptureResource> {\n const iter = this.listByFactoryPagingAll(\n resourceGroupName,\n factoryName,\n options,\n );\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.listByFactoryPagingPage(\n resourceGroupName,\n factoryName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByFactoryPagingPage(\n resourceGroupName: string,\n factoryName: string,\n options?: ChangeDataCaptureListByFactoryOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ChangeDataCaptureResource[]> {\n let result: ChangeDataCaptureListByFactoryResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByFactory(\n resourceGroupName,\n factoryName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByFactoryNext(\n resourceGroupName,\n factoryName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByFactoryPagingAll(\n resourceGroupName: string,\n factoryName: string,\n options?: ChangeDataCaptureListByFactoryOptionalParams,\n ): AsyncIterableIterator<ChangeDataCaptureResource> {\n for await (const page of this.listByFactoryPagingPage(\n resourceGroupName,\n factoryName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all resources of type change data capture.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param options The options parameters.\n */\n private _listByFactory(\n resourceGroupName: string,\n factoryName: string,\n options?: ChangeDataCaptureListByFactoryOptionalParams,\n ): Promise<ChangeDataCaptureListByFactoryResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, options },\n listByFactoryOperationSpec,\n );\n }\n\n /**\n * Creates or updates a change data capture resource.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param changeDataCaptureName The change data capture name.\n * @param changeDataCapture Change data capture resource definition.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n factoryName: string,\n changeDataCaptureName: string,\n changeDataCapture: ChangeDataCaptureResource,\n options?: ChangeDataCaptureCreateOrUpdateOptionalParams,\n ): Promise<ChangeDataCaptureCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n factoryName,\n changeDataCaptureName,\n changeDataCapture,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Gets a change data capture.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param changeDataCaptureName The change data capture name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n factoryName: string,\n changeDataCaptureName: string,\n options?: ChangeDataCaptureGetOptionalParams,\n ): Promise<ChangeDataCaptureGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, changeDataCaptureName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Deletes a change data capture.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param changeDataCaptureName The change data capture name.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n factoryName: string,\n changeDataCaptureName: string,\n options?: ChangeDataCaptureDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, changeDataCaptureName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Starts a change data capture.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param changeDataCaptureName The change data capture name.\n * @param options The options parameters.\n */\n start(\n resourceGroupName: string,\n factoryName: string,\n changeDataCaptureName: string,\n options?: ChangeDataCaptureStartOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, changeDataCaptureName, options },\n startOperationSpec,\n );\n }\n\n /**\n * Stops a change data capture.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param changeDataCaptureName The change data capture name.\n * @param options The options parameters.\n */\n stop(\n resourceGroupName: string,\n factoryName: string,\n changeDataCaptureName: string,\n options?: ChangeDataCaptureStopOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, changeDataCaptureName, options },\n stopOperationSpec,\n );\n }\n\n /**\n * Gets the current status for the change data capture resource.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param changeDataCaptureName The change data capture name.\n * @param options The options parameters.\n */\n status(\n resourceGroupName: string,\n factoryName: string,\n changeDataCaptureName: string,\n options?: ChangeDataCaptureStatusOptionalParams,\n ): Promise<ChangeDataCaptureStatusResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, changeDataCaptureName, options },\n statusOperationSpec,\n );\n }\n\n /**\n * ListByFactoryNext\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param nextLink The nextLink from the previous successful call to the ListByFactory method.\n * @param options The options parameters.\n */\n private _listByFactoryNext(\n resourceGroupName: string,\n factoryName: string,\n nextLink: string,\n options?: ChangeDataCaptureListByFactoryNextOptionalParams,\n ): Promise<ChangeDataCaptureListByFactoryNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, nextLink, options },\n listByFactoryNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByFactoryOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChangeDataCaptureListResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChangeDataCaptureResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.changeDataCapture,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n Parameters.changeDataCaptureName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChangeDataCaptureResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n Parameters.changeDataCaptureName,\n ],\n headerParameters: [Parameters.accept, Parameters.ifNoneMatch],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n Parameters.changeDataCaptureName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst startOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/start\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n Parameters.changeDataCaptureName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst stopOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/stop\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n Parameters.changeDataCaptureName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst statusOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/status\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: { type: { name: \"String\" } },\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n Parameters.changeDataCaptureName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByFactoryNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChangeDataCaptureListResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"changeDataCapture.js","sourceRoot":"","sources":["../../../src/operations/changeDataCapture.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAmBtD,4CAA4C;AAC5C,qDAAqD;AACrD,MAAM,OAAO,qBAAqB;IACf,MAAM,CAA8B;IAErD;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,aAAa,CAClB,iBAAyB,EACzB,WAAmB,EACnB,OAAsD;QAEtD,MAAM,IAAI,GAAG,IAAI,CAAC,sBAAsB,CACtC,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAA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CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,mKAAmK;IACzK,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,EAAE,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE;SACzC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,qBAAqB;KACjC;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,8BAA8B,GAA6B;IAC/D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,6BAA6B;SAClD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { ChangeDataCapture } 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 { DataFactoryManagementClient } from \"../dataFactoryManagementClient.js\";\nimport {\n ChangeDataCaptureResource,\n ChangeDataCaptureListByFactoryNextOptionalParams,\n ChangeDataCaptureListByFactoryOptionalParams,\n ChangeDataCaptureListByFactoryResponse,\n ChangeDataCaptureCreateOrUpdateOptionalParams,\n ChangeDataCaptureCreateOrUpdateResponse,\n ChangeDataCaptureGetOptionalParams,\n ChangeDataCaptureGetResponse,\n ChangeDataCaptureDeleteOptionalParams,\n ChangeDataCaptureStartOptionalParams,\n ChangeDataCaptureStopOptionalParams,\n ChangeDataCaptureStatusOptionalParams,\n ChangeDataCaptureStatusResponse,\n ChangeDataCaptureListByFactoryNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing ChangeDataCapture operations. */\nexport class ChangeDataCaptureImpl implements ChangeDataCapture {\n private readonly client: DataFactoryManagementClient;\n\n /**\n * Initialize a new instance of the class ChangeDataCapture class.\n * @param client Reference to the service client\n */\n constructor(client: DataFactoryManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists all resources of type change data capture.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param options The options parameters.\n */\n public listByFactory(\n resourceGroupName: string,\n factoryName: string,\n options?: ChangeDataCaptureListByFactoryOptionalParams,\n ): PagedAsyncIterableIterator<ChangeDataCaptureResource> {\n const iter = this.listByFactoryPagingAll(\n resourceGroupName,\n factoryName,\n options,\n );\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.listByFactoryPagingPage(\n resourceGroupName,\n factoryName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByFactoryPagingPage(\n resourceGroupName: string,\n factoryName: string,\n options?: ChangeDataCaptureListByFactoryOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<ChangeDataCaptureResource[]> {\n let result: ChangeDataCaptureListByFactoryResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByFactory(\n resourceGroupName,\n factoryName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByFactoryNext(\n resourceGroupName,\n factoryName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByFactoryPagingAll(\n resourceGroupName: string,\n factoryName: string,\n options?: ChangeDataCaptureListByFactoryOptionalParams,\n ): AsyncIterableIterator<ChangeDataCaptureResource> {\n for await (const page of this.listByFactoryPagingPage(\n resourceGroupName,\n factoryName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists all resources of type change data capture.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param options The options parameters.\n */\n private _listByFactory(\n resourceGroupName: string,\n factoryName: string,\n options?: ChangeDataCaptureListByFactoryOptionalParams,\n ): Promise<ChangeDataCaptureListByFactoryResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, options },\n listByFactoryOperationSpec,\n );\n }\n\n /**\n * Creates or updates a change data capture resource.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param changeDataCaptureName The change data capture name.\n * @param changeDataCapture Change data capture resource definition.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n factoryName: string,\n changeDataCaptureName: string,\n changeDataCapture: ChangeDataCaptureResource,\n options?: ChangeDataCaptureCreateOrUpdateOptionalParams,\n ): Promise<ChangeDataCaptureCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n factoryName,\n changeDataCaptureName,\n changeDataCapture,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Gets a change data capture.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param changeDataCaptureName The change data capture name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n factoryName: string,\n changeDataCaptureName: string,\n options?: ChangeDataCaptureGetOptionalParams,\n ): Promise<ChangeDataCaptureGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, changeDataCaptureName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Deletes a change data capture.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param changeDataCaptureName The change data capture name.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n factoryName: string,\n changeDataCaptureName: string,\n options?: ChangeDataCaptureDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, changeDataCaptureName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Starts a change data capture.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param changeDataCaptureName The change data capture name.\n * @param options The options parameters.\n */\n start(\n resourceGroupName: string,\n factoryName: string,\n changeDataCaptureName: string,\n options?: ChangeDataCaptureStartOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, changeDataCaptureName, options },\n startOperationSpec,\n );\n }\n\n /**\n * Stops a change data capture.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param changeDataCaptureName The change data capture name.\n * @param options The options parameters.\n */\n stop(\n resourceGroupName: string,\n factoryName: string,\n changeDataCaptureName: string,\n options?: ChangeDataCaptureStopOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, changeDataCaptureName, options },\n stopOperationSpec,\n );\n }\n\n /**\n * Gets the current status for the change data capture resource.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param changeDataCaptureName The change data capture name.\n * @param options The options parameters.\n */\n status(\n resourceGroupName: string,\n factoryName: string,\n changeDataCaptureName: string,\n options?: ChangeDataCaptureStatusOptionalParams,\n ): Promise<ChangeDataCaptureStatusResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, changeDataCaptureName, options },\n statusOperationSpec,\n );\n }\n\n /**\n * ListByFactoryNext\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param nextLink The nextLink from the previous successful call to the ListByFactory method.\n * @param options The options parameters.\n */\n private _listByFactoryNext(\n resourceGroupName: string,\n factoryName: string,\n nextLink: string,\n options?: ChangeDataCaptureListByFactoryNextOptionalParams,\n ): Promise<ChangeDataCaptureListByFactoryNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, nextLink, options },\n listByFactoryNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByFactoryOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChangeDataCaptureListResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChangeDataCaptureResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.changeDataCapture,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n Parameters.changeDataCaptureName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChangeDataCaptureResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n Parameters.changeDataCaptureName,\n ],\n headerParameters: [Parameters.accept, Parameters.ifNoneMatch],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n Parameters.changeDataCaptureName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst startOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/start\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n Parameters.changeDataCaptureName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst stopOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/stop\",\n httpMethod: \"POST\",\n responses: {\n 200: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n Parameters.changeDataCaptureName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst statusOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/adfcdcs/{changeDataCaptureName}/status\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: { type: { name: \"String\" } },\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n Parameters.changeDataCaptureName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByFactoryNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.ChangeDataCaptureListResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -13,6 +12,7 @@ import * as Parameters from "../models/parameters.js";
|
|
|
13
12
|
/// <reference lib="esnext.asynciterable" />
|
|
14
13
|
/** Class containing CredentialOperations operations. */
|
|
15
14
|
export class CredentialOperationsImpl {
|
|
15
|
+
client;
|
|
16
16
|
/**
|
|
17
17
|
* Initialize a new instance of the class CredentialOperations class.
|
|
18
18
|
* @param client Reference to the service client
|
|
@@ -36,52 +36,35 @@ export class CredentialOperationsImpl {
|
|
|
36
36
|
return this;
|
|
37
37
|
},
|
|
38
38
|
byPage: (settings) => {
|
|
39
|
-
if (settings
|
|
39
|
+
if (settings?.maxPageSize) {
|
|
40
40
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
41
41
|
}
|
|
42
42
|
return this.listByFactoryPagingPage(resourceGroupName, factoryName, options, settings);
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
listByFactoryPagingPage(resourceGroupName, factoryName, options, settings) {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
});
|
|
46
|
+
async *listByFactoryPagingPage(resourceGroupName, factoryName, options, settings) {
|
|
47
|
+
let result;
|
|
48
|
+
let continuationToken = settings?.continuationToken;
|
|
49
|
+
if (!continuationToken) {
|
|
50
|
+
result = await this._listByFactory(resourceGroupName, factoryName, options);
|
|
51
|
+
let page = result.value || [];
|
|
52
|
+
continuationToken = result.nextLink;
|
|
53
|
+
setContinuationToken(page, continuationToken);
|
|
54
|
+
yield page;
|
|
55
|
+
}
|
|
56
|
+
while (continuationToken) {
|
|
57
|
+
result = await this._listByFactoryNext(resourceGroupName, factoryName, continuationToken, options);
|
|
58
|
+
continuationToken = result.nextLink;
|
|
59
|
+
let page = result.value || [];
|
|
60
|
+
setContinuationToken(page, continuationToken);
|
|
61
|
+
yield page;
|
|
62
|
+
}
|
|
65
63
|
}
|
|
66
|
-
listByFactoryPagingAll(resourceGroupName, factoryName, options) {
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
for (var _d = true, _e = __asyncValues(this.listByFactoryPagingPage(resourceGroupName, factoryName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
71
|
-
_c = _f.value;
|
|
72
|
-
_d = false;
|
|
73
|
-
const page = _c;
|
|
74
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
78
|
-
finally {
|
|
79
|
-
try {
|
|
80
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
81
|
-
}
|
|
82
|
-
finally { if (e_1) throw e_1.error; }
|
|
83
|
-
}
|
|
84
|
-
});
|
|
64
|
+
async *listByFactoryPagingAll(resourceGroupName, factoryName, options) {
|
|
65
|
+
for await (const page of this.listByFactoryPagingPage(resourceGroupName, factoryName, options)) {
|
|
66
|
+
yield* page;
|
|
67
|
+
}
|
|
85
68
|
}
|
|
86
69
|
/**
|
|
87
70
|
* List credentials.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentialOperations.js","sourceRoot":"","sources":["../../../src/operations/credentialOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;A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AW;QACtB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,yJAAyJ;IAC/J,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,8BAA8B,GAA6B;IAC/D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { CredentialOperations } 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 { DataFactoryManagementClient } from \"../dataFactoryManagementClient.js\";\nimport {\n CredentialResource,\n CredentialOperationsListByFactoryNextOptionalParams,\n CredentialOperationsListByFactoryOptionalParams,\n CredentialOperationsListByFactoryResponse,\n CredentialOperationsCreateOrUpdateOptionalParams,\n CredentialOperationsCreateOrUpdateResponse,\n CredentialOperationsGetOptionalParams,\n CredentialOperationsGetResponse,\n CredentialOperationsDeleteOptionalParams,\n CredentialOperationsListByFactoryNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing CredentialOperations operations. */\nexport class CredentialOperationsImpl implements CredentialOperations {\n private readonly client: DataFactoryManagementClient;\n\n /**\n * Initialize a new instance of the class CredentialOperations class.\n * @param client Reference to the service client\n */\n constructor(client: DataFactoryManagementClient) {\n this.client = client;\n }\n\n /**\n * List credentials.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param options The options parameters.\n */\n public listByFactory(\n resourceGroupName: string,\n factoryName: string,\n options?: CredentialOperationsListByFactoryOptionalParams,\n ): PagedAsyncIterableIterator<CredentialResource> {\n const iter = this.listByFactoryPagingAll(\n resourceGroupName,\n factoryName,\n options,\n );\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.listByFactoryPagingPage(\n resourceGroupName,\n factoryName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByFactoryPagingPage(\n resourceGroupName: string,\n factoryName: string,\n options?: CredentialOperationsListByFactoryOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<CredentialResource[]> {\n let result: CredentialOperationsListByFactoryResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByFactory(\n resourceGroupName,\n factoryName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByFactoryNext(\n resourceGroupName,\n factoryName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByFactoryPagingAll(\n resourceGroupName: string,\n factoryName: string,\n options?: CredentialOperationsListByFactoryOptionalParams,\n ): AsyncIterableIterator<CredentialResource> {\n for await (const page of this.listByFactoryPagingPage(\n resourceGroupName,\n factoryName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List credentials.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param options The options parameters.\n */\n private _listByFactory(\n resourceGroupName: string,\n factoryName: string,\n options?: CredentialOperationsListByFactoryOptionalParams,\n ): Promise<CredentialOperationsListByFactoryResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, options },\n listByFactoryOperationSpec,\n );\n }\n\n /**\n * Creates or updates a credential.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param credentialName Credential name\n * @param credential Credential resource definition.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n factoryName: string,\n credentialName: string,\n credential: CredentialResource,\n options?: CredentialOperationsCreateOrUpdateOptionalParams,\n ): Promise<CredentialOperationsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, credentialName, credential, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Gets a credential.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param credentialName Credential name\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n factoryName: string,\n credentialName: string,\n options?: CredentialOperationsGetOptionalParams,\n ): Promise<CredentialOperationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, credentialName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Deletes a credential.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param credentialName Credential name\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n factoryName: string,\n credentialName: string,\n options?: CredentialOperationsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, credentialName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * ListByFactoryNext\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param nextLink The nextLink from the previous successful call to the ListByFactory method.\n * @param options The options parameters.\n */\n private _listByFactoryNext(\n resourceGroupName: string,\n factoryName: string,\n nextLink: string,\n options?: CredentialOperationsListByFactoryNextOptionalParams,\n ): Promise<CredentialOperationsListByFactoryNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, nextLink, options },\n listByFactoryNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByFactoryOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CredentialListResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CredentialResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.credential,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n Parameters.credentialName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CredentialResource,\n },\n 304: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n Parameters.credentialName,\n ],\n headerParameters: [Parameters.accept, Parameters.ifNoneMatch],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n Parameters.credentialName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByFactoryNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CredentialListResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"credentialOperations.js","sourceRoot":"","sources":["../../../src/operations/credentialOperations.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAE1D,OAAO,KAAK,UAAU,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,UAAU,MAAM,yBAAyB,CAAC;AAetD,4CAA4C;AAC5C,wDAAwD;AACxD,MAAM,OAAO,wBAAwB;IAClB,MAAM,CAA8B;IAErD;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,aAAa,CAClB,iBAAyB,EACzB,WAAmB,EACnB,OAAyD;QAEzD,MAAM,IAAI,GAAG,IAAI,CAAC,sBAAsB,CACtC,iBAAiB,EACjB,WAAW,EACX,OAAO,CACR,CAAC;QACF,OAAO;YACL,IAAI;gBACF,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC;YACrB,CAAC;YACD,CAAC,MAAM,CAAC,aAAa,CAAC;gBACpB,OAAO,IAAI,CAAC;YACd,CAAC;YACD,MAAM,EAAE,CAAC,QAAuB,EAAE,EAAE;gBAClC,IAAI,QAAQ,EAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,uBAAuB,CACjC,iBAAiB,EACjB,WAAW,EACX,OAAO,EACP,QAAQ,CACT,CAAC;YACJ,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,uBAAuB,CACpC,iBAAyB,EACzB,WAAmB,EACnB,OAAyD,EACzD,QAAuB;QAEvB,IAAI,MAAiD,CAAC;QACtD,IAAI,iBAAiB,GAAG,QAAQ,EAAE,iBAAiB,CAAC;QACpD,I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AAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,UAAU;CACX,CAAC;AACF,MAAM,mBAAmB,GAA6B;IACpD,IAAI,EAAE,yJAAyJ;IAC/J,UAAU,EAAE,QAAQ;IACpB,SAAS,EAAE;QACT,GAAG,EAAE,EAAE;QACP,GAAG,EAAE,EAAE;QACP,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,eAAe,EAAE,CAAC,UAAU,CAAC,UAAU,CAAC;IACxC,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;QACtB,UAAU,CAAC,cAAc;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,8BAA8B,GAA6B;IAC/D,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,sBAAsB;SAC3C;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;QAC5B,UAAU,CAAC,WAAW;KACvB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,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 { PagedAsyncIterableIterator, PageSettings } from \"@azure/core-paging\";\nimport { setContinuationToken } from \"../pagingHelper.js\";\nimport { CredentialOperations } 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 { DataFactoryManagementClient } from \"../dataFactoryManagementClient.js\";\nimport {\n CredentialResource,\n CredentialOperationsListByFactoryNextOptionalParams,\n CredentialOperationsListByFactoryOptionalParams,\n CredentialOperationsListByFactoryResponse,\n CredentialOperationsCreateOrUpdateOptionalParams,\n CredentialOperationsCreateOrUpdateResponse,\n CredentialOperationsGetOptionalParams,\n CredentialOperationsGetResponse,\n CredentialOperationsDeleteOptionalParams,\n CredentialOperationsListByFactoryNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing CredentialOperations operations. */\nexport class CredentialOperationsImpl implements CredentialOperations {\n private readonly client: DataFactoryManagementClient;\n\n /**\n * Initialize a new instance of the class CredentialOperations class.\n * @param client Reference to the service client\n */\n constructor(client: DataFactoryManagementClient) {\n this.client = client;\n }\n\n /**\n * List credentials.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param options The options parameters.\n */\n public listByFactory(\n resourceGroupName: string,\n factoryName: string,\n options?: CredentialOperationsListByFactoryOptionalParams,\n ): PagedAsyncIterableIterator<CredentialResource> {\n const iter = this.listByFactoryPagingAll(\n resourceGroupName,\n factoryName,\n options,\n );\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.listByFactoryPagingPage(\n resourceGroupName,\n factoryName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByFactoryPagingPage(\n resourceGroupName: string,\n factoryName: string,\n options?: CredentialOperationsListByFactoryOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<CredentialResource[]> {\n let result: CredentialOperationsListByFactoryResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByFactory(\n resourceGroupName,\n factoryName,\n options,\n );\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByFactoryNext(\n resourceGroupName,\n factoryName,\n continuationToken,\n options,\n );\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listByFactoryPagingAll(\n resourceGroupName: string,\n factoryName: string,\n options?: CredentialOperationsListByFactoryOptionalParams,\n ): AsyncIterableIterator<CredentialResource> {\n for await (const page of this.listByFactoryPagingPage(\n resourceGroupName,\n factoryName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * List credentials.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param options The options parameters.\n */\n private _listByFactory(\n resourceGroupName: string,\n factoryName: string,\n options?: CredentialOperationsListByFactoryOptionalParams,\n ): Promise<CredentialOperationsListByFactoryResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, options },\n listByFactoryOperationSpec,\n );\n }\n\n /**\n * Creates or updates a credential.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param credentialName Credential name\n * @param credential Credential resource definition.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n factoryName: string,\n credentialName: string,\n credential: CredentialResource,\n options?: CredentialOperationsCreateOrUpdateOptionalParams,\n ): Promise<CredentialOperationsCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, credentialName, credential, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Gets a credential.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param credentialName Credential name\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n factoryName: string,\n credentialName: string,\n options?: CredentialOperationsGetOptionalParams,\n ): Promise<CredentialOperationsGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, credentialName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Deletes a credential.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param credentialName Credential name\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n factoryName: string,\n credentialName: string,\n options?: CredentialOperationsDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, credentialName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * ListByFactoryNext\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param nextLink The nextLink from the previous successful call to the ListByFactory method.\n * @param options The options parameters.\n */\n private _listByFactoryNext(\n resourceGroupName: string,\n factoryName: string,\n nextLink: string,\n options?: CredentialOperationsListByFactoryNextOptionalParams,\n ): Promise<CredentialOperationsListByFactoryNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, nextLink, options },\n listByFactoryNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listByFactoryOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CredentialListResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.CredentialResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.credential,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n Parameters.credentialName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CredentialResource,\n },\n 304: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n Parameters.credentialName,\n ],\n headerParameters: [Parameters.accept, Parameters.ifNoneMatch],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/credentials/{credentialName}\",\n httpMethod: \"DELETE\",\n responses: {\n 200: {},\n 204: {},\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n Parameters.credentialName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByFactoryNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.CredentialListResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
|
-
import { __asyncDelegator, __asyncGenerator, __asyncValues, __await } from "tslib";
|
|
9
8
|
import { setContinuationToken } from "../pagingHelper.js";
|
|
10
9
|
import * as coreClient from "@azure/core-client";
|
|
11
10
|
import * as Mappers from "../models/mappers.js";
|
|
@@ -15,6 +14,7 @@ import { createLroSpec } from "../lroImpl.js";
|
|
|
15
14
|
/// <reference lib="esnext.asynciterable" />
|
|
16
15
|
/** Class containing DataFlowDebugSession operations. */
|
|
17
16
|
export class DataFlowDebugSessionImpl {
|
|
17
|
+
client;
|
|
18
18
|
/**
|
|
19
19
|
* Initialize a new instance of the class DataFlowDebugSession class.
|
|
20
20
|
* @param client Reference to the service client
|
|
@@ -38,52 +38,35 @@ export class DataFlowDebugSessionImpl {
|
|
|
38
38
|
return this;
|
|
39
39
|
},
|
|
40
40
|
byPage: (settings) => {
|
|
41
|
-
if (settings
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
42
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
43
43
|
}
|
|
44
44
|
return this.queryByFactoryPagingPage(resourceGroupName, factoryName, options, settings);
|
|
45
45
|
},
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
queryByFactoryPagingPage(resourceGroupName, factoryName, options, settings) {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
66
|
-
});
|
|
48
|
+
async *queryByFactoryPagingPage(resourceGroupName, factoryName, options, settings) {
|
|
49
|
+
let result;
|
|
50
|
+
let continuationToken = settings?.continuationToken;
|
|
51
|
+
if (!continuationToken) {
|
|
52
|
+
result = await this._queryByFactory(resourceGroupName, factoryName, options);
|
|
53
|
+
let page = result.value || [];
|
|
54
|
+
continuationToken = result.nextLink;
|
|
55
|
+
setContinuationToken(page, continuationToken);
|
|
56
|
+
yield page;
|
|
57
|
+
}
|
|
58
|
+
while (continuationToken) {
|
|
59
|
+
result = await this._queryByFactoryNext(resourceGroupName, factoryName, continuationToken, options);
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
let page = result.value || [];
|
|
62
|
+
setContinuationToken(page, continuationToken);
|
|
63
|
+
yield page;
|
|
64
|
+
}
|
|
67
65
|
}
|
|
68
|
-
queryByFactoryPagingAll(resourceGroupName, factoryName, options) {
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
for (var _d = true, _e = __asyncValues(this.queryByFactoryPagingPage(resourceGroupName, factoryName, options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
73
|
-
_c = _f.value;
|
|
74
|
-
_d = false;
|
|
75
|
-
const page = _c;
|
|
76
|
-
yield __await(yield* __asyncDelegator(__asyncValues(page)));
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
80
|
-
finally {
|
|
81
|
-
try {
|
|
82
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
83
|
-
}
|
|
84
|
-
finally { if (e_1) throw e_1.error; }
|
|
85
|
-
}
|
|
86
|
-
});
|
|
66
|
+
async *queryByFactoryPagingAll(resourceGroupName, factoryName, options) {
|
|
67
|
+
for await (const page of this.queryByFactoryPagingPage(resourceGroupName, factoryName, options)) {
|
|
68
|
+
yield* page;
|
|
69
|
+
}
|
|
87
70
|
}
|
|
88
71
|
/**
|
|
89
72
|
* Creates a data flow debug session.
|
|
@@ -97,14 +80,19 @@ export class DataFlowDebugSessionImpl {
|
|
|
97
80
|
return this.client.sendOperationRequest(args, spec);
|
|
98
81
|
};
|
|
99
82
|
const sendOperationFn = async (args, spec) => {
|
|
100
|
-
var _a;
|
|
101
83
|
let currentRawResponse = undefined;
|
|
102
|
-
const providedCallback =
|
|
84
|
+
const providedCallback = args.options?.onResponse;
|
|
103
85
|
const callback = (rawResponse, flatResponse) => {
|
|
104
86
|
currentRawResponse = rawResponse;
|
|
105
|
-
providedCallback
|
|
87
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
88
|
+
};
|
|
89
|
+
const updatedArgs = {
|
|
90
|
+
...args,
|
|
91
|
+
options: {
|
|
92
|
+
...args.options,
|
|
93
|
+
onResponse: callback,
|
|
94
|
+
},
|
|
106
95
|
};
|
|
107
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
108
96
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
109
97
|
return {
|
|
110
98
|
flatResponse,
|
|
@@ -121,8 +109,8 @@ export class DataFlowDebugSessionImpl {
|
|
|
121
109
|
spec: createOperationSpec,
|
|
122
110
|
});
|
|
123
111
|
const poller = await createHttpPoller(lro, {
|
|
124
|
-
restoreFrom: options
|
|
125
|
-
intervalInMs: options
|
|
112
|
+
restoreFrom: options?.resumeFrom,
|
|
113
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
126
114
|
});
|
|
127
115
|
await poller.poll();
|
|
128
116
|
return poller;
|
|
@@ -179,14 +167,19 @@ export class DataFlowDebugSessionImpl {
|
|
|
179
167
|
return this.client.sendOperationRequest(args, spec);
|
|
180
168
|
};
|
|
181
169
|
const sendOperationFn = async (args, spec) => {
|
|
182
|
-
var _a;
|
|
183
170
|
let currentRawResponse = undefined;
|
|
184
|
-
const providedCallback =
|
|
171
|
+
const providedCallback = args.options?.onResponse;
|
|
185
172
|
const callback = (rawResponse, flatResponse) => {
|
|
186
173
|
currentRawResponse = rawResponse;
|
|
187
|
-
providedCallback
|
|
174
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
175
|
+
};
|
|
176
|
+
const updatedArgs = {
|
|
177
|
+
...args,
|
|
178
|
+
options: {
|
|
179
|
+
...args.options,
|
|
180
|
+
onResponse: callback,
|
|
181
|
+
},
|
|
188
182
|
};
|
|
189
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
190
183
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
191
184
|
return {
|
|
192
185
|
flatResponse,
|
|
@@ -203,8 +196,8 @@ export class DataFlowDebugSessionImpl {
|
|
|
203
196
|
spec: executeCommandOperationSpec,
|
|
204
197
|
});
|
|
205
198
|
const poller = await createHttpPoller(lro, {
|
|
206
|
-
restoreFrom: options
|
|
207
|
-
intervalInMs: options
|
|
199
|
+
restoreFrom: options?.resumeFrom,
|
|
200
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
208
201
|
});
|
|
209
202
|
await poller.poll();
|
|
210
203
|
return poller;
|