@azure/arm-datafactory 10.9.1-alpha.20221102.1 → 10.10.0
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/CHANGELOG.md +7 -10
- package/dist/index.js +292 -100
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/src/dataFactoryManagementClient.js +1 -1
- package/dist-esm/src/dataFactoryManagementClient.js.map +1 -1
- package/dist-esm/src/index.d.ts +1 -0
- package/dist-esm/src/index.d.ts.map +1 -1
- package/dist-esm/src/index.js +1 -0
- package/dist-esm/src/index.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +2 -0
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +6 -1
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/src/operations/dataFlowDebugSession.d.ts.map +1 -1
- package/dist-esm/src/operations/dataFlowDebugSession.js +19 -7
- package/dist-esm/src/operations/dataFlowDebugSession.js.map +1 -1
- package/dist-esm/src/operations/dataFlows.d.ts.map +1 -1
- package/dist-esm/src/operations/dataFlows.js +19 -7
- package/dist-esm/src/operations/dataFlows.js.map +1 -1
- package/dist-esm/src/operations/datasets.d.ts.map +1 -1
- package/dist-esm/src/operations/datasets.js +19 -7
- package/dist-esm/src/operations/datasets.js.map +1 -1
- package/dist-esm/src/operations/factories.d.ts.map +1 -1
- package/dist-esm/src/operations/factories.js +37 -14
- package/dist-esm/src/operations/factories.js.map +1 -1
- package/dist-esm/src/operations/globalParameters.d.ts.map +1 -1
- package/dist-esm/src/operations/globalParameters.js +19 -7
- package/dist-esm/src/operations/globalParameters.js.map +1 -1
- package/dist-esm/src/operations/integrationRuntimes.d.ts.map +1 -1
- package/dist-esm/src/operations/integrationRuntimes.js +19 -7
- package/dist-esm/src/operations/integrationRuntimes.js.map +1 -1
- package/dist-esm/src/operations/linkedServices.d.ts.map +1 -1
- package/dist-esm/src/operations/linkedServices.js +19 -7
- package/dist-esm/src/operations/linkedServices.js.map +1 -1
- package/dist-esm/src/operations/managedPrivateEndpoints.d.ts.map +1 -1
- package/dist-esm/src/operations/managedPrivateEndpoints.js +19 -7
- package/dist-esm/src/operations/managedPrivateEndpoints.js.map +1 -1
- package/dist-esm/src/operations/managedVirtualNetworks.d.ts.map +1 -1
- package/dist-esm/src/operations/managedVirtualNetworks.js +19 -7
- package/dist-esm/src/operations/managedVirtualNetworks.js.map +1 -1
- package/dist-esm/src/operations/operations.d.ts.map +1 -1
- package/dist-esm/src/operations/operations.js +19 -7
- package/dist-esm/src/operations/operations.js.map +1 -1
- package/dist-esm/src/operations/pipelines.d.ts.map +1 -1
- package/dist-esm/src/operations/pipelines.js +19 -7
- package/dist-esm/src/operations/pipelines.js.map +1 -1
- package/dist-esm/src/operations/privateEndPointConnections.d.ts.map +1 -1
- package/dist-esm/src/operations/privateEndPointConnections.js +19 -7
- package/dist-esm/src/operations/privateEndPointConnections.js.map +1 -1
- package/dist-esm/src/operations/triggers.d.ts.map +1 -1
- package/dist-esm/src/operations/triggers.js +19 -7
- package/dist-esm/src/operations/triggers.js.map +1 -1
- package/dist-esm/src/pagingHelper.d.ts +13 -0
- package/dist-esm/src/pagingHelper.d.ts.map +1 -0
- package/dist-esm/src/pagingHelper.js +32 -0
- package/dist-esm/src/pagingHelper.js.map +1 -0
- package/package.json +6 -5
- package/review/arm-datafactory.api.md +4 -0
- package/src/dataFactoryManagementClient.ts +1 -1
- package/src/index.ts +1 -0
- package/src/models/index.ts +2 -0
- package/src/models/mappers.ts +6 -0
- package/src/operations/dataFlowDebugSession.ts +27 -13
- package/src/operations/dataFlows.ts +27 -13
- package/src/operations/datasets.ts +26 -12
- package/src/operations/factories.ts +46 -17
- package/src/operations/globalParameters.ts +26 -12
- package/src/operations/integrationRuntimes.ts +26 -12
- package/src/operations/linkedServices.ts +26 -12
- package/src/operations/managedPrivateEndpoints.ts +27 -13
- package/src/operations/managedVirtualNetworks.ts +26 -12
- package/src/operations/operations.ts +21 -8
- package/src/operations/pipelines.ts +26 -12
- package/src/operations/privateEndPointConnections.ts +26 -12
- package/src/operations/triggers.ts +26 -12
- package/src/pagingHelper.ts +39 -0
- package/types/arm-datafactory.d.ts +11 -0
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { GlobalParameters } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -61,11 +62,15 @@ export class GlobalParametersImpl implements GlobalParameters {
|
|
|
61
62
|
[Symbol.asyncIterator]() {
|
|
62
63
|
return this;
|
|
63
64
|
},
|
|
64
|
-
byPage: () => {
|
|
65
|
+
byPage: (settings?: PageSettings) => {
|
|
66
|
+
if (settings?.maxPageSize) {
|
|
67
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
68
|
+
}
|
|
65
69
|
return this.listByFactoryPagingPage(
|
|
66
70
|
resourceGroupName,
|
|
67
71
|
factoryName,
|
|
68
|
-
options
|
|
72
|
+
options,
|
|
73
|
+
settings
|
|
69
74
|
);
|
|
70
75
|
}
|
|
71
76
|
};
|
|
@@ -74,15 +79,22 @@ export class GlobalParametersImpl implements GlobalParameters {
|
|
|
74
79
|
private async *listByFactoryPagingPage(
|
|
75
80
|
resourceGroupName: string,
|
|
76
81
|
factoryName: string,
|
|
77
|
-
options?: GlobalParametersListByFactoryOptionalParams
|
|
82
|
+
options?: GlobalParametersListByFactoryOptionalParams,
|
|
83
|
+
settings?: PageSettings
|
|
78
84
|
): AsyncIterableIterator<GlobalParameterResource[]> {
|
|
79
|
-
let result
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
let result: GlobalParametersListByFactoryResponse;
|
|
86
|
+
let continuationToken = settings?.continuationToken;
|
|
87
|
+
if (!continuationToken) {
|
|
88
|
+
result = await this._listByFactory(
|
|
89
|
+
resourceGroupName,
|
|
90
|
+
factoryName,
|
|
91
|
+
options
|
|
92
|
+
);
|
|
93
|
+
let page = result.value || [];
|
|
94
|
+
continuationToken = result.nextLink;
|
|
95
|
+
setContinuationToken(page, continuationToken);
|
|
96
|
+
yield page;
|
|
97
|
+
}
|
|
86
98
|
while (continuationToken) {
|
|
87
99
|
result = await this._listByFactoryNext(
|
|
88
100
|
resourceGroupName,
|
|
@@ -91,7 +103,9 @@ export class GlobalParametersImpl implements GlobalParameters {
|
|
|
91
103
|
options
|
|
92
104
|
);
|
|
93
105
|
continuationToken = result.nextLink;
|
|
94
|
-
|
|
106
|
+
let page = result.value || [];
|
|
107
|
+
setContinuationToken(page, continuationToken);
|
|
108
|
+
yield page;
|
|
95
109
|
}
|
|
96
110
|
}
|
|
97
111
|
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { IntegrationRuntimes } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -89,11 +90,15 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes {
|
|
|
89
90
|
[Symbol.asyncIterator]() {
|
|
90
91
|
return this;
|
|
91
92
|
},
|
|
92
|
-
byPage: () => {
|
|
93
|
+
byPage: (settings?: PageSettings) => {
|
|
94
|
+
if (settings?.maxPageSize) {
|
|
95
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
96
|
+
}
|
|
93
97
|
return this.listByFactoryPagingPage(
|
|
94
98
|
resourceGroupName,
|
|
95
99
|
factoryName,
|
|
96
|
-
options
|
|
100
|
+
options,
|
|
101
|
+
settings
|
|
97
102
|
);
|
|
98
103
|
}
|
|
99
104
|
};
|
|
@@ -102,15 +107,22 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes {
|
|
|
102
107
|
private async *listByFactoryPagingPage(
|
|
103
108
|
resourceGroupName: string,
|
|
104
109
|
factoryName: string,
|
|
105
|
-
options?: IntegrationRuntimesListByFactoryOptionalParams
|
|
110
|
+
options?: IntegrationRuntimesListByFactoryOptionalParams,
|
|
111
|
+
settings?: PageSettings
|
|
106
112
|
): AsyncIterableIterator<IntegrationRuntimeResource[]> {
|
|
107
|
-
let result
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
113
|
+
let result: IntegrationRuntimesListByFactoryResponse;
|
|
114
|
+
let continuationToken = settings?.continuationToken;
|
|
115
|
+
if (!continuationToken) {
|
|
116
|
+
result = await this._listByFactory(
|
|
117
|
+
resourceGroupName,
|
|
118
|
+
factoryName,
|
|
119
|
+
options
|
|
120
|
+
);
|
|
121
|
+
let page = result.value || [];
|
|
122
|
+
continuationToken = result.nextLink;
|
|
123
|
+
setContinuationToken(page, continuationToken);
|
|
124
|
+
yield page;
|
|
125
|
+
}
|
|
114
126
|
while (continuationToken) {
|
|
115
127
|
result = await this._listByFactoryNext(
|
|
116
128
|
resourceGroupName,
|
|
@@ -119,7 +131,9 @@ export class IntegrationRuntimesImpl implements IntegrationRuntimes {
|
|
|
119
131
|
options
|
|
120
132
|
);
|
|
121
133
|
continuationToken = result.nextLink;
|
|
122
|
-
|
|
134
|
+
let page = result.value || [];
|
|
135
|
+
setContinuationToken(page, continuationToken);
|
|
136
|
+
yield page;
|
|
123
137
|
}
|
|
124
138
|
}
|
|
125
139
|
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { LinkedServices } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -61,11 +62,15 @@ export class LinkedServicesImpl implements LinkedServices {
|
|
|
61
62
|
[Symbol.asyncIterator]() {
|
|
62
63
|
return this;
|
|
63
64
|
},
|
|
64
|
-
byPage: () => {
|
|
65
|
+
byPage: (settings?: PageSettings) => {
|
|
66
|
+
if (settings?.maxPageSize) {
|
|
67
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
68
|
+
}
|
|
65
69
|
return this.listByFactoryPagingPage(
|
|
66
70
|
resourceGroupName,
|
|
67
71
|
factoryName,
|
|
68
|
-
options
|
|
72
|
+
options,
|
|
73
|
+
settings
|
|
69
74
|
);
|
|
70
75
|
}
|
|
71
76
|
};
|
|
@@ -74,15 +79,22 @@ export class LinkedServicesImpl implements LinkedServices {
|
|
|
74
79
|
private async *listByFactoryPagingPage(
|
|
75
80
|
resourceGroupName: string,
|
|
76
81
|
factoryName: string,
|
|
77
|
-
options?: LinkedServicesListByFactoryOptionalParams
|
|
82
|
+
options?: LinkedServicesListByFactoryOptionalParams,
|
|
83
|
+
settings?: PageSettings
|
|
78
84
|
): AsyncIterableIterator<LinkedServiceResource[]> {
|
|
79
|
-
let result
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
85
|
+
let result: LinkedServicesListByFactoryResponse;
|
|
86
|
+
let continuationToken = settings?.continuationToken;
|
|
87
|
+
if (!continuationToken) {
|
|
88
|
+
result = await this._listByFactory(
|
|
89
|
+
resourceGroupName,
|
|
90
|
+
factoryName,
|
|
91
|
+
options
|
|
92
|
+
);
|
|
93
|
+
let page = result.value || [];
|
|
94
|
+
continuationToken = result.nextLink;
|
|
95
|
+
setContinuationToken(page, continuationToken);
|
|
96
|
+
yield page;
|
|
97
|
+
}
|
|
86
98
|
while (continuationToken) {
|
|
87
99
|
result = await this._listByFactoryNext(
|
|
88
100
|
resourceGroupName,
|
|
@@ -91,7 +103,9 @@ export class LinkedServicesImpl implements LinkedServices {
|
|
|
91
103
|
options
|
|
92
104
|
);
|
|
93
105
|
continuationToken = result.nextLink;
|
|
94
|
-
|
|
106
|
+
let page = result.value || [];
|
|
107
|
+
setContinuationToken(page, continuationToken);
|
|
108
|
+
yield page;
|
|
95
109
|
}
|
|
96
110
|
}
|
|
97
111
|
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { ManagedPrivateEndpoints } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -64,12 +65,16 @@ export class ManagedPrivateEndpointsImpl implements ManagedPrivateEndpoints {
|
|
|
64
65
|
[Symbol.asyncIterator]() {
|
|
65
66
|
return this;
|
|
66
67
|
},
|
|
67
|
-
byPage: () => {
|
|
68
|
+
byPage: (settings?: PageSettings) => {
|
|
69
|
+
if (settings?.maxPageSize) {
|
|
70
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
71
|
+
}
|
|
68
72
|
return this.listByFactoryPagingPage(
|
|
69
73
|
resourceGroupName,
|
|
70
74
|
factoryName,
|
|
71
75
|
managedVirtualNetworkName,
|
|
72
|
-
options
|
|
76
|
+
options,
|
|
77
|
+
settings
|
|
73
78
|
);
|
|
74
79
|
}
|
|
75
80
|
};
|
|
@@ -79,16 +84,23 @@ export class ManagedPrivateEndpointsImpl implements ManagedPrivateEndpoints {
|
|
|
79
84
|
resourceGroupName: string,
|
|
80
85
|
factoryName: string,
|
|
81
86
|
managedVirtualNetworkName: string,
|
|
82
|
-
options?: ManagedPrivateEndpointsListByFactoryOptionalParams
|
|
87
|
+
options?: ManagedPrivateEndpointsListByFactoryOptionalParams,
|
|
88
|
+
settings?: PageSettings
|
|
83
89
|
): AsyncIterableIterator<ManagedPrivateEndpointResource[]> {
|
|
84
|
-
let result
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
90
|
+
let result: ManagedPrivateEndpointsListByFactoryResponse;
|
|
91
|
+
let continuationToken = settings?.continuationToken;
|
|
92
|
+
if (!continuationToken) {
|
|
93
|
+
result = await this._listByFactory(
|
|
94
|
+
resourceGroupName,
|
|
95
|
+
factoryName,
|
|
96
|
+
managedVirtualNetworkName,
|
|
97
|
+
options
|
|
98
|
+
);
|
|
99
|
+
let page = result.value || [];
|
|
100
|
+
continuationToken = result.nextLink;
|
|
101
|
+
setContinuationToken(page, continuationToken);
|
|
102
|
+
yield page;
|
|
103
|
+
}
|
|
92
104
|
while (continuationToken) {
|
|
93
105
|
result = await this._listByFactoryNext(
|
|
94
106
|
resourceGroupName,
|
|
@@ -98,7 +110,9 @@ export class ManagedPrivateEndpointsImpl implements ManagedPrivateEndpoints {
|
|
|
98
110
|
options
|
|
99
111
|
);
|
|
100
112
|
continuationToken = result.nextLink;
|
|
101
|
-
|
|
113
|
+
let page = result.value || [];
|
|
114
|
+
setContinuationToken(page, continuationToken);
|
|
115
|
+
yield page;
|
|
102
116
|
}
|
|
103
117
|
}
|
|
104
118
|
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { ManagedVirtualNetworks } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -60,11 +61,15 @@ export class ManagedVirtualNetworksImpl implements ManagedVirtualNetworks {
|
|
|
60
61
|
[Symbol.asyncIterator]() {
|
|
61
62
|
return this;
|
|
62
63
|
},
|
|
63
|
-
byPage: () => {
|
|
64
|
+
byPage: (settings?: PageSettings) => {
|
|
65
|
+
if (settings?.maxPageSize) {
|
|
66
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
67
|
+
}
|
|
64
68
|
return this.listByFactoryPagingPage(
|
|
65
69
|
resourceGroupName,
|
|
66
70
|
factoryName,
|
|
67
|
-
options
|
|
71
|
+
options,
|
|
72
|
+
settings
|
|
68
73
|
);
|
|
69
74
|
}
|
|
70
75
|
};
|
|
@@ -73,15 +78,22 @@ export class ManagedVirtualNetworksImpl implements ManagedVirtualNetworks {
|
|
|
73
78
|
private async *listByFactoryPagingPage(
|
|
74
79
|
resourceGroupName: string,
|
|
75
80
|
factoryName: string,
|
|
76
|
-
options?: ManagedVirtualNetworksListByFactoryOptionalParams
|
|
81
|
+
options?: ManagedVirtualNetworksListByFactoryOptionalParams,
|
|
82
|
+
settings?: PageSettings
|
|
77
83
|
): AsyncIterableIterator<ManagedVirtualNetworkResource[]> {
|
|
78
|
-
let result
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
84
|
+
let result: ManagedVirtualNetworksListByFactoryResponse;
|
|
85
|
+
let continuationToken = settings?.continuationToken;
|
|
86
|
+
if (!continuationToken) {
|
|
87
|
+
result = await this._listByFactory(
|
|
88
|
+
resourceGroupName,
|
|
89
|
+
factoryName,
|
|
90
|
+
options
|
|
91
|
+
);
|
|
92
|
+
let page = result.value || [];
|
|
93
|
+
continuationToken = result.nextLink;
|
|
94
|
+
setContinuationToken(page, continuationToken);
|
|
95
|
+
yield page;
|
|
96
|
+
}
|
|
85
97
|
while (continuationToken) {
|
|
86
98
|
result = await this._listByFactoryNext(
|
|
87
99
|
resourceGroupName,
|
|
@@ -90,7 +102,9 @@ export class ManagedVirtualNetworksImpl implements ManagedVirtualNetworks {
|
|
|
90
102
|
options
|
|
91
103
|
);
|
|
92
104
|
continuationToken = result.nextLink;
|
|
93
|
-
|
|
105
|
+
let page = result.value || [];
|
|
106
|
+
setContinuationToken(page, continuationToken);
|
|
107
|
+
yield page;
|
|
94
108
|
}
|
|
95
109
|
}
|
|
96
110
|
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { Operations } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -48,22 +49,34 @@ export class OperationsImpl implements Operations {
|
|
|
48
49
|
[Symbol.asyncIterator]() {
|
|
49
50
|
return this;
|
|
50
51
|
},
|
|
51
|
-
byPage: () => {
|
|
52
|
-
|
|
52
|
+
byPage: (settings?: PageSettings) => {
|
|
53
|
+
if (settings?.maxPageSize) {
|
|
54
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
55
|
+
}
|
|
56
|
+
return this.listPagingPage(options, settings);
|
|
53
57
|
}
|
|
54
58
|
};
|
|
55
59
|
}
|
|
56
60
|
|
|
57
61
|
private async *listPagingPage(
|
|
58
|
-
options?: OperationsListOptionalParams
|
|
62
|
+
options?: OperationsListOptionalParams,
|
|
63
|
+
settings?: PageSettings
|
|
59
64
|
): AsyncIterableIterator<Operation[]> {
|
|
60
|
-
let result
|
|
61
|
-
|
|
62
|
-
|
|
65
|
+
let result: OperationsListResponse;
|
|
66
|
+
let continuationToken = settings?.continuationToken;
|
|
67
|
+
if (!continuationToken) {
|
|
68
|
+
result = await this._list(options);
|
|
69
|
+
let page = result.value || [];
|
|
70
|
+
continuationToken = result.nextLink;
|
|
71
|
+
setContinuationToken(page, continuationToken);
|
|
72
|
+
yield page;
|
|
73
|
+
}
|
|
63
74
|
while (continuationToken) {
|
|
64
75
|
result = await this._listNext(continuationToken, options);
|
|
65
76
|
continuationToken = result.nextLink;
|
|
66
|
-
|
|
77
|
+
let page = result.value || [];
|
|
78
|
+
setContinuationToken(page, continuationToken);
|
|
79
|
+
yield page;
|
|
67
80
|
}
|
|
68
81
|
}
|
|
69
82
|
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { Pipelines } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -63,11 +64,15 @@ export class PipelinesImpl implements Pipelines {
|
|
|
63
64
|
[Symbol.asyncIterator]() {
|
|
64
65
|
return this;
|
|
65
66
|
},
|
|
66
|
-
byPage: () => {
|
|
67
|
+
byPage: (settings?: PageSettings) => {
|
|
68
|
+
if (settings?.maxPageSize) {
|
|
69
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
70
|
+
}
|
|
67
71
|
return this.listByFactoryPagingPage(
|
|
68
72
|
resourceGroupName,
|
|
69
73
|
factoryName,
|
|
70
|
-
options
|
|
74
|
+
options,
|
|
75
|
+
settings
|
|
71
76
|
);
|
|
72
77
|
}
|
|
73
78
|
};
|
|
@@ -76,15 +81,22 @@ export class PipelinesImpl implements Pipelines {
|
|
|
76
81
|
private async *listByFactoryPagingPage(
|
|
77
82
|
resourceGroupName: string,
|
|
78
83
|
factoryName: string,
|
|
79
|
-
options?: PipelinesListByFactoryOptionalParams
|
|
84
|
+
options?: PipelinesListByFactoryOptionalParams,
|
|
85
|
+
settings?: PageSettings
|
|
80
86
|
): AsyncIterableIterator<PipelineResource[]> {
|
|
81
|
-
let result
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
let result: PipelinesListByFactoryResponse;
|
|
88
|
+
let continuationToken = settings?.continuationToken;
|
|
89
|
+
if (!continuationToken) {
|
|
90
|
+
result = await this._listByFactory(
|
|
91
|
+
resourceGroupName,
|
|
92
|
+
factoryName,
|
|
93
|
+
options
|
|
94
|
+
);
|
|
95
|
+
let page = result.value || [];
|
|
96
|
+
continuationToken = result.nextLink;
|
|
97
|
+
setContinuationToken(page, continuationToken);
|
|
98
|
+
yield page;
|
|
99
|
+
}
|
|
88
100
|
while (continuationToken) {
|
|
89
101
|
result = await this._listByFactoryNext(
|
|
90
102
|
resourceGroupName,
|
|
@@ -93,7 +105,9 @@ export class PipelinesImpl implements Pipelines {
|
|
|
93
105
|
options
|
|
94
106
|
);
|
|
95
107
|
continuationToken = result.nextLink;
|
|
96
|
-
|
|
108
|
+
let page = result.value || [];
|
|
109
|
+
setContinuationToken(page, continuationToken);
|
|
110
|
+
yield page;
|
|
97
111
|
}
|
|
98
112
|
}
|
|
99
113
|
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { PrivateEndPointConnections } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -57,11 +58,15 @@ export class PrivateEndPointConnectionsImpl
|
|
|
57
58
|
[Symbol.asyncIterator]() {
|
|
58
59
|
return this;
|
|
59
60
|
},
|
|
60
|
-
byPage: () => {
|
|
61
|
+
byPage: (settings?: PageSettings) => {
|
|
62
|
+
if (settings?.maxPageSize) {
|
|
63
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
64
|
+
}
|
|
61
65
|
return this.listByFactoryPagingPage(
|
|
62
66
|
resourceGroupName,
|
|
63
67
|
factoryName,
|
|
64
|
-
options
|
|
68
|
+
options,
|
|
69
|
+
settings
|
|
65
70
|
);
|
|
66
71
|
}
|
|
67
72
|
};
|
|
@@ -70,15 +75,22 @@ export class PrivateEndPointConnectionsImpl
|
|
|
70
75
|
private async *listByFactoryPagingPage(
|
|
71
76
|
resourceGroupName: string,
|
|
72
77
|
factoryName: string,
|
|
73
|
-
options?: PrivateEndPointConnectionsListByFactoryOptionalParams
|
|
78
|
+
options?: PrivateEndPointConnectionsListByFactoryOptionalParams,
|
|
79
|
+
settings?: PageSettings
|
|
74
80
|
): AsyncIterableIterator<PrivateEndpointConnectionResource[]> {
|
|
75
|
-
let result
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
81
|
+
let result: PrivateEndPointConnectionsListByFactoryResponse;
|
|
82
|
+
let continuationToken = settings?.continuationToken;
|
|
83
|
+
if (!continuationToken) {
|
|
84
|
+
result = await this._listByFactory(
|
|
85
|
+
resourceGroupName,
|
|
86
|
+
factoryName,
|
|
87
|
+
options
|
|
88
|
+
);
|
|
89
|
+
let page = result.value || [];
|
|
90
|
+
continuationToken = result.nextLink;
|
|
91
|
+
setContinuationToken(page, continuationToken);
|
|
92
|
+
yield page;
|
|
93
|
+
}
|
|
82
94
|
while (continuationToken) {
|
|
83
95
|
result = await this._listByFactoryNext(
|
|
84
96
|
resourceGroupName,
|
|
@@ -87,7 +99,9 @@ export class PrivateEndPointConnectionsImpl
|
|
|
87
99
|
options
|
|
88
100
|
);
|
|
89
101
|
continuationToken = result.nextLink;
|
|
90
|
-
|
|
102
|
+
let page = result.value || [];
|
|
103
|
+
setContinuationToken(page, continuationToken);
|
|
104
|
+
yield page;
|
|
91
105
|
}
|
|
92
106
|
}
|
|
93
107
|
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import { PagedAsyncIterableIterator } from "@azure/core-paging";
|
|
9
|
+
import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging";
|
|
10
|
+
import { setContinuationToken } from "../pagingHelper";
|
|
10
11
|
import { Triggers } from "../operationsInterfaces";
|
|
11
12
|
import * as coreClient from "@azure/core-client";
|
|
12
13
|
import * as Mappers from "../models/mappers";
|
|
@@ -74,11 +75,15 @@ export class TriggersImpl implements Triggers {
|
|
|
74
75
|
[Symbol.asyncIterator]() {
|
|
75
76
|
return this;
|
|
76
77
|
},
|
|
77
|
-
byPage: () => {
|
|
78
|
+
byPage: (settings?: PageSettings) => {
|
|
79
|
+
if (settings?.maxPageSize) {
|
|
80
|
+
throw new Error("maxPageSize is not supported by this operation.");
|
|
81
|
+
}
|
|
78
82
|
return this.listByFactoryPagingPage(
|
|
79
83
|
resourceGroupName,
|
|
80
84
|
factoryName,
|
|
81
|
-
options
|
|
85
|
+
options,
|
|
86
|
+
settings
|
|
82
87
|
);
|
|
83
88
|
}
|
|
84
89
|
};
|
|
@@ -87,15 +92,22 @@ export class TriggersImpl implements Triggers {
|
|
|
87
92
|
private async *listByFactoryPagingPage(
|
|
88
93
|
resourceGroupName: string,
|
|
89
94
|
factoryName: string,
|
|
90
|
-
options?: TriggersListByFactoryOptionalParams
|
|
95
|
+
options?: TriggersListByFactoryOptionalParams,
|
|
96
|
+
settings?: PageSettings
|
|
91
97
|
): AsyncIterableIterator<TriggerResource[]> {
|
|
92
|
-
let result
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
98
|
+
let result: TriggersListByFactoryResponse;
|
|
99
|
+
let continuationToken = settings?.continuationToken;
|
|
100
|
+
if (!continuationToken) {
|
|
101
|
+
result = await this._listByFactory(
|
|
102
|
+
resourceGroupName,
|
|
103
|
+
factoryName,
|
|
104
|
+
options
|
|
105
|
+
);
|
|
106
|
+
let page = result.value || [];
|
|
107
|
+
continuationToken = result.nextLink;
|
|
108
|
+
setContinuationToken(page, continuationToken);
|
|
109
|
+
yield page;
|
|
110
|
+
}
|
|
99
111
|
while (continuationToken) {
|
|
100
112
|
result = await this._listByFactoryNext(
|
|
101
113
|
resourceGroupName,
|
|
@@ -104,7 +116,9 @@ export class TriggersImpl implements Triggers {
|
|
|
104
116
|
options
|
|
105
117
|
);
|
|
106
118
|
continuationToken = result.nextLink;
|
|
107
|
-
|
|
119
|
+
let page = result.value || [];
|
|
120
|
+
setContinuationToken(page, continuationToken);
|
|
121
|
+
yield page;
|
|
108
122
|
}
|
|
109
123
|
}
|
|
110
124
|
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
export interface PageInfo {
|
|
10
|
+
continuationToken?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
const pageMap = new WeakMap<object, PageInfo>();
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Given a result page from a pageable operation, returns a
|
|
17
|
+
* continuation token that can be used to begin paging from
|
|
18
|
+
* that point later.
|
|
19
|
+
* @param page A result object from calling .byPage() on a paged operation.
|
|
20
|
+
* @returns The continuation token that can be passed into byPage().
|
|
21
|
+
*/
|
|
22
|
+
export function getContinuationToken(page: unknown): string | undefined {
|
|
23
|
+
if (typeof page !== "object" || page === null) {
|
|
24
|
+
return undefined;
|
|
25
|
+
}
|
|
26
|
+
return pageMap.get(page)?.continuationToken;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export function setContinuationToken(
|
|
30
|
+
page: unknown,
|
|
31
|
+
continuationToken: string | undefined
|
|
32
|
+
): void {
|
|
33
|
+
if (typeof page !== "object" || page === null || !continuationToken) {
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
const pageInfo = pageMap.get(page) ?? {};
|
|
37
|
+
pageInfo.continuationToken = continuationToken;
|
|
38
|
+
pageMap.set(page, pageInfo);
|
|
39
|
+
}
|
|
@@ -4567,6 +4567,15 @@ export declare interface FtpServerLocation extends DatasetLocation {
|
|
|
4567
4567
|
type: "FtpServerLocation";
|
|
4568
4568
|
}
|
|
4569
4569
|
|
|
4570
|
+
/**
|
|
4571
|
+
* Given a result page from a pageable operation, returns a
|
|
4572
|
+
* continuation token that can be used to begin paging from
|
|
4573
|
+
* that point later.
|
|
4574
|
+
* @param page A result object from calling .byPage() on a paged operation.
|
|
4575
|
+
* @returns The continuation token that can be passed into byPage().
|
|
4576
|
+
*/
|
|
4577
|
+
export declare function getContinuationToken(page: unknown): string | undefined;
|
|
4578
|
+
|
|
4570
4579
|
/** Response body structure for get data factory operation status. */
|
|
4571
4580
|
export declare interface GetDataFactoryOperationStatusResponse {
|
|
4572
4581
|
/** Describes unknown properties. The value of an unknown property can be of "any" type. */
|
|
@@ -11137,6 +11146,8 @@ export declare interface ScriptAction {
|
|
|
11137
11146
|
export declare interface ScriptActivity extends ExecutionActivity {
|
|
11138
11147
|
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
11139
11148
|
type: "Script";
|
|
11149
|
+
/** ScriptBlock execution timeout. Type: string (or Expression with resultType string), pattern: ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])). */
|
|
11150
|
+
scriptBlockExecutionTimeout?: any;
|
|
11140
11151
|
/** Array of script blocks. Type: array. */
|
|
11141
11152
|
scripts?: ScriptActivityScriptBlock[];
|
|
11142
11153
|
/** Log settings of script activity. */
|