@azure/arm-datafactory 19.0.0-alpha.20250619.1 → 19.0.0-alpha.20250729.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/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
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing Factories operations. */
|
|
18
18
|
class FactoriesImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class Factories class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -37,52 +38,35 @@ class FactoriesImpl {
|
|
|
37
38
|
return this;
|
|
38
39
|
},
|
|
39
40
|
byPage: (settings) => {
|
|
40
|
-
if (settings
|
|
41
|
+
if (settings?.maxPageSize) {
|
|
41
42
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
42
43
|
}
|
|
43
44
|
return this.listPagingPage(options, settings);
|
|
44
45
|
},
|
|
45
46
|
};
|
|
46
47
|
}
|
|
47
|
-
listPagingPage(options, settings) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
}
|
|
65
|
-
});
|
|
48
|
+
async *listPagingPage(options, settings) {
|
|
49
|
+
let result;
|
|
50
|
+
let continuationToken = settings?.continuationToken;
|
|
51
|
+
if (!continuationToken) {
|
|
52
|
+
result = await this._list(options);
|
|
53
|
+
let page = result.value || [];
|
|
54
|
+
continuationToken = result.nextLink;
|
|
55
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
56
|
+
yield page;
|
|
57
|
+
}
|
|
58
|
+
while (continuationToken) {
|
|
59
|
+
result = await this._listNext(continuationToken, options);
|
|
60
|
+
continuationToken = result.nextLink;
|
|
61
|
+
let page = result.value || [];
|
|
62
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
63
|
+
yield page;
|
|
64
|
+
}
|
|
66
65
|
}
|
|
67
|
-
listPagingAll(options) {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listPagingPage(options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
72
|
-
_c = _f.value;
|
|
73
|
-
_d = false;
|
|
74
|
-
const page = _c;
|
|
75
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
79
|
-
finally {
|
|
80
|
-
try {
|
|
81
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
82
|
-
}
|
|
83
|
-
finally { if (e_1) throw e_1.error; }
|
|
84
|
-
}
|
|
85
|
-
});
|
|
66
|
+
async *listPagingAll(options) {
|
|
67
|
+
for await (const page of this.listPagingPage(options)) {
|
|
68
|
+
yield* page;
|
|
69
|
+
}
|
|
86
70
|
}
|
|
87
71
|
/**
|
|
88
72
|
* Lists factories.
|
|
@@ -99,52 +83,35 @@ class FactoriesImpl {
|
|
|
99
83
|
return this;
|
|
100
84
|
},
|
|
101
85
|
byPage: (settings) => {
|
|
102
|
-
if (settings
|
|
86
|
+
if (settings?.maxPageSize) {
|
|
103
87
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
104
88
|
}
|
|
105
89
|
return this.listByResourceGroupPagingPage(resourceGroupName, options, settings);
|
|
106
90
|
},
|
|
107
91
|
};
|
|
108
92
|
}
|
|
109
|
-
listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
127
|
-
});
|
|
93
|
+
async *listByResourceGroupPagingPage(resourceGroupName, options, settings) {
|
|
94
|
+
let result;
|
|
95
|
+
let continuationToken = settings?.continuationToken;
|
|
96
|
+
if (!continuationToken) {
|
|
97
|
+
result = await this._listByResourceGroup(resourceGroupName, options);
|
|
98
|
+
let page = result.value || [];
|
|
99
|
+
continuationToken = result.nextLink;
|
|
100
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
101
|
+
yield page;
|
|
102
|
+
}
|
|
103
|
+
while (continuationToken) {
|
|
104
|
+
result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options);
|
|
105
|
+
continuationToken = result.nextLink;
|
|
106
|
+
let page = result.value || [];
|
|
107
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
108
|
+
yield page;
|
|
109
|
+
}
|
|
128
110
|
}
|
|
129
|
-
listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByResourceGroupPagingPage(resourceGroupName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
134
|
-
_c = _f.value;
|
|
135
|
-
_d = false;
|
|
136
|
-
const page = _c;
|
|
137
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
141
|
-
finally {
|
|
142
|
-
try {
|
|
143
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
144
|
-
}
|
|
145
|
-
finally { if (e_2) throw e_2.error; }
|
|
146
|
-
}
|
|
147
|
-
});
|
|
111
|
+
async *listByResourceGroupPagingAll(resourceGroupName, options) {
|
|
112
|
+
for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) {
|
|
113
|
+
yield* page;
|
|
114
|
+
}
|
|
148
115
|
}
|
|
149
116
|
/**
|
|
150
117
|
* Lists factories under the specified subscription.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factories.js","sourceRoot":"","sources":["../../../src/operations/factories.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AA+BtD,4CAA4C;AAC5C,6CAA6C;AAC7C,MAAa,aAAa;IAGxB;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAqC;QAErC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,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,aAAR,QAAQ,uBAAR,QAAQ,CAAE,WAAW,EAAE,CAAC;oBAC1B,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;gBACrE,CAAC;gBACD,OAAO,IAAI,CAAC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEc,cAAc,CAC3B,OAAqC,EACrC,QAAuB;;YAEvB,IAAI,MAA6B,CAAC;YAClC,IAAI,iBAAiB,GAAG,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAE,iBAAiB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ACD,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;KAC1B;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC;IACrC,UAAU;CACX,CAAC;AACF,MAAM,oCAAoC,GAA6B;IACrE,IAAI,EAAE,YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,mBAAmB;SACxC;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,aAAa,EAAE;QACb,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;KAC7B;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 { Factories } 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 Factory,\n FactoriesListNextOptionalParams,\n FactoriesListOptionalParams,\n FactoriesListResponse,\n FactoriesListByResourceGroupNextOptionalParams,\n FactoriesListByResourceGroupOptionalParams,\n FactoriesListByResourceGroupResponse,\n FactoryRepoUpdate,\n FactoriesConfigureFactoryRepoOptionalParams,\n FactoriesConfigureFactoryRepoResponse,\n FactoriesCreateOrUpdateOptionalParams,\n FactoriesCreateOrUpdateResponse,\n FactoryUpdateParameters,\n FactoriesUpdateOptionalParams,\n FactoriesUpdateResponse,\n FactoriesGetOptionalParams,\n FactoriesGetResponse,\n FactoriesDeleteOptionalParams,\n GitHubAccessTokenRequest,\n FactoriesGetGitHubAccessTokenOptionalParams,\n FactoriesGetGitHubAccessTokenResponse,\n UserAccessPolicy,\n FactoriesGetDataPlaneAccessOptionalParams,\n FactoriesGetDataPlaneAccessResponse,\n FactoriesListNextResponse,\n FactoriesListByResourceGroupNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Factories operations. */\nexport class FactoriesImpl implements Factories {\n private readonly client: DataFactoryManagementClient;\n\n /**\n * Initialize a new instance of the class Factories class.\n * @param client Reference to the service client\n */\n constructor(client: DataFactoryManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists factories under the specified subscription.\n * @param options The options parameters.\n */\n public list(\n options?: FactoriesListOptionalParams,\n ): PagedAsyncIterableIterator<Factory> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: FactoriesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Factory[]> {\n let result: FactoriesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: FactoriesListOptionalParams,\n ): AsyncIterableIterator<Factory> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists factories.\n * @param resourceGroupName The resource group name.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: FactoriesListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<Factory> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: FactoriesListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Factory[]> {\n let result: FactoriesListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\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 *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: FactoriesListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<Factory> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists factories under the specified subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: FactoriesListOptionalParams,\n ): Promise<FactoriesListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Updates a factory's repo information.\n * @param locationId The location identifier.\n * @param factoryRepoUpdate Update factory repo request definition.\n * @param options The options parameters.\n */\n configureFactoryRepo(\n locationId: string,\n factoryRepoUpdate: FactoryRepoUpdate,\n options?: FactoriesConfigureFactoryRepoOptionalParams,\n ): Promise<FactoriesConfigureFactoryRepoResponse> {\n return this.client.sendOperationRequest(\n { locationId, factoryRepoUpdate, options },\n configureFactoryRepoOperationSpec,\n );\n }\n\n /**\n * Lists factories.\n * @param resourceGroupName The resource group name.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: FactoriesListByResourceGroupOptionalParams,\n ): Promise<FactoriesListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * Creates or updates a factory.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param factory Factory resource definition.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n factoryName: string,\n factory: Factory,\n options?: FactoriesCreateOrUpdateOptionalParams,\n ): Promise<FactoriesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, factory, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Updates a factory.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param factoryUpdateParameters The parameters for updating a factory.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n factoryName: string,\n factoryUpdateParameters: FactoryUpdateParameters,\n options?: FactoriesUpdateOptionalParams,\n ): Promise<FactoriesUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, factoryUpdateParameters, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Gets a factory.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n factoryName: string,\n options?: FactoriesGetOptionalParams,\n ): Promise<FactoriesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Deletes a factory.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n factoryName: string,\n options?: FactoriesDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Get GitHub Access Token.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param gitHubAccessTokenRequest Get GitHub access token request definition.\n * @param options The options parameters.\n */\n getGitHubAccessToken(\n resourceGroupName: string,\n factoryName: string,\n gitHubAccessTokenRequest: GitHubAccessTokenRequest,\n options?: FactoriesGetGitHubAccessTokenOptionalParams,\n ): Promise<FactoriesGetGitHubAccessTokenResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, gitHubAccessTokenRequest, options },\n getGitHubAccessTokenOperationSpec,\n );\n }\n\n /**\n * Get Data Plane access.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param policy Data Plane user access policy definition.\n * @param options The options parameters.\n */\n getDataPlaneAccess(\n resourceGroupName: string,\n factoryName: string,\n policy: UserAccessPolicy,\n options?: FactoriesGetDataPlaneAccessOptionalParams,\n ): Promise<FactoriesGetDataPlaneAccessResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, policy, options },\n getDataPlaneAccessOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: FactoriesListNextOptionalParams,\n ): Promise<FactoriesListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The resource group name.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: FactoriesListByResourceGroupNextOptionalParams,\n ): Promise<FactoriesListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/factories\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FactoryListResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst configureFactoryRepoOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/locations/{locationId}/configureFactoryRepo\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.Factory,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.factoryRepoUpdate,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.locationId,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FactoryListResponse,\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 ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Factory,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.factory,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Factory,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.factoryUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Factory,\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 ],\n headerParameters: [Parameters.accept, Parameters.ifNoneMatch],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}\",\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 ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getGitHubAccessTokenOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getGitHubAccessToken\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.GitHubAccessTokenResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.gitHubAccessTokenRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getDataPlaneAccessOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getDataPlaneAccess\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccessPolicyResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.policy,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FactoryListResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FactoryListResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"factories.js","sourceRoot":"","sources":["../../../src/operations/factories.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AA+BtD,4CAA4C;AAC5C,6CAA6C;AAC7C,MAAa,aAAa;IACP,MAAM,CAA8B;IAErD;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;OAGG;IACI,IAAI,CACT,OAAqC;QAErC,MAAM,IAAI,GAAG,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QACzC,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,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;YAChD,CAAC;SACF,CAAC;IACJ,CAAC;IAEO,KAAK,CAAC,CAAC,cAAc,CAC3B,OAAqC,EACrC,QAAuB;QAEvB,IAAI,MAA6B,CAAC;QAClC,IAAI,iBAAiB,GAAG,QAAQ,EAAE,iBAAiB,CAAC;QACpD,IAAI,CAAC,iBAAiB,EAAE,CAAC;YACvB,MAAM,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC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b,UAAU,CAAC,KAAK;QAChB,UAAU,CAAC,QAAQ;QACnB,UAAU,CAAC,cAAc;QACzB,UAAU,CAAC,iBAAiB;KAC7B;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 { Factories } 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 Factory,\n FactoriesListNextOptionalParams,\n FactoriesListOptionalParams,\n FactoriesListResponse,\n FactoriesListByResourceGroupNextOptionalParams,\n FactoriesListByResourceGroupOptionalParams,\n FactoriesListByResourceGroupResponse,\n FactoryRepoUpdate,\n FactoriesConfigureFactoryRepoOptionalParams,\n FactoriesConfigureFactoryRepoResponse,\n FactoriesCreateOrUpdateOptionalParams,\n FactoriesCreateOrUpdateResponse,\n FactoryUpdateParameters,\n FactoriesUpdateOptionalParams,\n FactoriesUpdateResponse,\n FactoriesGetOptionalParams,\n FactoriesGetResponse,\n FactoriesDeleteOptionalParams,\n GitHubAccessTokenRequest,\n FactoriesGetGitHubAccessTokenOptionalParams,\n FactoriesGetGitHubAccessTokenResponse,\n UserAccessPolicy,\n FactoriesGetDataPlaneAccessOptionalParams,\n FactoriesGetDataPlaneAccessResponse,\n FactoriesListNextResponse,\n FactoriesListByResourceGroupNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing Factories operations. */\nexport class FactoriesImpl implements Factories {\n private readonly client: DataFactoryManagementClient;\n\n /**\n * Initialize a new instance of the class Factories class.\n * @param client Reference to the service client\n */\n constructor(client: DataFactoryManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists factories under the specified subscription.\n * @param options The options parameters.\n */\n public list(\n options?: FactoriesListOptionalParams,\n ): PagedAsyncIterableIterator<Factory> {\n const iter = this.listPagingAll(options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listPagingPage(options, settings);\n },\n };\n }\n\n private async *listPagingPage(\n options?: FactoriesListOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Factory[]> {\n let result: FactoriesListResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._list(options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listNext(continuationToken, options);\n continuationToken = result.nextLink;\n let page = result.value || [];\n setContinuationToken(page, continuationToken);\n yield page;\n }\n }\n\n private async *listPagingAll(\n options?: FactoriesListOptionalParams,\n ): AsyncIterableIterator<Factory> {\n for await (const page of this.listPagingPage(options)) {\n yield* page;\n }\n }\n\n /**\n * Lists factories.\n * @param resourceGroupName The resource group name.\n * @param options The options parameters.\n */\n public listByResourceGroup(\n resourceGroupName: string,\n options?: FactoriesListByResourceGroupOptionalParams,\n ): PagedAsyncIterableIterator<Factory> {\n const iter = this.listByResourceGroupPagingAll(resourceGroupName, options);\n return {\n next() {\n return iter.next();\n },\n [Symbol.asyncIterator]() {\n return this;\n },\n byPage: (settings?: PageSettings) => {\n if (settings?.maxPageSize) {\n throw new Error(\"maxPageSize is not supported by this operation.\");\n }\n return this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n settings,\n );\n },\n };\n }\n\n private async *listByResourceGroupPagingPage(\n resourceGroupName: string,\n options?: FactoriesListByResourceGroupOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<Factory[]> {\n let result: FactoriesListByResourceGroupResponse;\n let continuationToken = settings?.continuationToken;\n if (!continuationToken) {\n result = await this._listByResourceGroup(resourceGroupName, options);\n let page = result.value || [];\n continuationToken = result.nextLink;\n setContinuationToken(page, continuationToken);\n yield page;\n }\n while (continuationToken) {\n result = await this._listByResourceGroupNext(\n resourceGroupName,\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 *listByResourceGroupPagingAll(\n resourceGroupName: string,\n options?: FactoriesListByResourceGroupOptionalParams,\n ): AsyncIterableIterator<Factory> {\n for await (const page of this.listByResourceGroupPagingPage(\n resourceGroupName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists factories under the specified subscription.\n * @param options The options parameters.\n */\n private _list(\n options?: FactoriesListOptionalParams,\n ): Promise<FactoriesListResponse> {\n return this.client.sendOperationRequest({ options }, listOperationSpec);\n }\n\n /**\n * Updates a factory's repo information.\n * @param locationId The location identifier.\n * @param factoryRepoUpdate Update factory repo request definition.\n * @param options The options parameters.\n */\n configureFactoryRepo(\n locationId: string,\n factoryRepoUpdate: FactoryRepoUpdate,\n options?: FactoriesConfigureFactoryRepoOptionalParams,\n ): Promise<FactoriesConfigureFactoryRepoResponse> {\n return this.client.sendOperationRequest(\n { locationId, factoryRepoUpdate, options },\n configureFactoryRepoOperationSpec,\n );\n }\n\n /**\n * Lists factories.\n * @param resourceGroupName The resource group name.\n * @param options The options parameters.\n */\n private _listByResourceGroup(\n resourceGroupName: string,\n options?: FactoriesListByResourceGroupOptionalParams,\n ): Promise<FactoriesListByResourceGroupResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, options },\n listByResourceGroupOperationSpec,\n );\n }\n\n /**\n * Creates or updates a factory.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param factory Factory resource definition.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n factoryName: string,\n factory: Factory,\n options?: FactoriesCreateOrUpdateOptionalParams,\n ): Promise<FactoriesCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, factory, options },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Updates a factory.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param factoryUpdateParameters The parameters for updating a factory.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n factoryName: string,\n factoryUpdateParameters: FactoryUpdateParameters,\n options?: FactoriesUpdateOptionalParams,\n ): Promise<FactoriesUpdateResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, factoryUpdateParameters, options },\n updateOperationSpec,\n );\n }\n\n /**\n * Gets a factory.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n factoryName: string,\n options?: FactoriesGetOptionalParams,\n ): Promise<FactoriesGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Deletes a factory.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n factoryName: string,\n options?: FactoriesDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, options },\n deleteOperationSpec,\n );\n }\n\n /**\n * Get GitHub Access Token.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param gitHubAccessTokenRequest Get GitHub access token request definition.\n * @param options The options parameters.\n */\n getGitHubAccessToken(\n resourceGroupName: string,\n factoryName: string,\n gitHubAccessTokenRequest: GitHubAccessTokenRequest,\n options?: FactoriesGetGitHubAccessTokenOptionalParams,\n ): Promise<FactoriesGetGitHubAccessTokenResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, gitHubAccessTokenRequest, options },\n getGitHubAccessTokenOperationSpec,\n );\n }\n\n /**\n * Get Data Plane access.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param policy Data Plane user access policy definition.\n * @param options The options parameters.\n */\n getDataPlaneAccess(\n resourceGroupName: string,\n factoryName: string,\n policy: UserAccessPolicy,\n options?: FactoriesGetDataPlaneAccessOptionalParams,\n ): Promise<FactoriesGetDataPlaneAccessResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, policy, options },\n getDataPlaneAccessOperationSpec,\n );\n }\n\n /**\n * ListNext\n * @param nextLink The nextLink from the previous successful call to the List method.\n * @param options The options parameters.\n */\n private _listNext(\n nextLink: string,\n options?: FactoriesListNextOptionalParams,\n ): Promise<FactoriesListNextResponse> {\n return this.client.sendOperationRequest(\n { nextLink, options },\n listNextOperationSpec,\n );\n }\n\n /**\n * ListByResourceGroupNext\n * @param resourceGroupName The resource group name.\n * @param nextLink The nextLink from the previous successful call to the ListByResourceGroup method.\n * @param options The options parameters.\n */\n private _listByResourceGroupNext(\n resourceGroupName: string,\n nextLink: string,\n options?: FactoriesListByResourceGroupNextOptionalParams,\n ): Promise<FactoriesListByResourceGroupNextResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, nextLink, options },\n listByResourceGroupNextOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst listOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/factories\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FactoryListResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n queryParameters: [Parameters.apiVersion],\n urlParameters: [Parameters.$host, Parameters.subscriptionId],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst configureFactoryRepoOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/locations/{locationId}/configureFactoryRepo\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.Factory,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.factoryRepoUpdate,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.locationId,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listByResourceGroupOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FactoryListResponse,\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 ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.Factory,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.factory,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n ],\n headerParameters: [\n Parameters.accept,\n Parameters.contentType,\n Parameters.ifMatch,\n ],\n mediaType: \"json\",\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.Factory,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.factoryUpdateParameters,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.Factory,\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 ],\n headerParameters: [Parameters.accept, Parameters.ifNoneMatch],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}\",\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 ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst getGitHubAccessTokenOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getGitHubAccessToken\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.GitHubAccessTokenResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.gitHubAccessTokenRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getDataPlaneAccessOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/getDataPlaneAccess\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.AccessPolicyResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.policy,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst listNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FactoryListResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst listByResourceGroupNextOperationSpec: coreClient.OperationSpec = {\n path: \"{nextLink}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.FactoryListResponse,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n urlParameters: [\n Parameters.$host,\n Parameters.nextLink,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -16,6 +16,7 @@ const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
|
16
16
|
/// <reference lib="esnext.asynciterable" />
|
|
17
17
|
/** Class containing GlobalParameters operations. */
|
|
18
18
|
class GlobalParametersImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class GlobalParameters class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -39,52 +40,35 @@ class GlobalParametersImpl {
|
|
|
39
40
|
return this;
|
|
40
41
|
},
|
|
41
42
|
byPage: (settings) => {
|
|
42
|
-
if (settings
|
|
43
|
+
if (settings?.maxPageSize) {
|
|
43
44
|
throw new Error("maxPageSize is not supported by this operation.");
|
|
44
45
|
}
|
|
45
46
|
return this.listByFactoryPagingPage(resourceGroupName, factoryName, options, settings);
|
|
46
47
|
},
|
|
47
48
|
};
|
|
48
49
|
}
|
|
49
|
-
listByFactoryPagingPage(resourceGroupName, factoryName, options, settings) {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
});
|
|
50
|
+
async *listByFactoryPagingPage(resourceGroupName, factoryName, options, settings) {
|
|
51
|
+
let result;
|
|
52
|
+
let continuationToken = settings?.continuationToken;
|
|
53
|
+
if (!continuationToken) {
|
|
54
|
+
result = await this._listByFactory(resourceGroupName, factoryName, options);
|
|
55
|
+
let page = result.value || [];
|
|
56
|
+
continuationToken = result.nextLink;
|
|
57
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
58
|
+
yield page;
|
|
59
|
+
}
|
|
60
|
+
while (continuationToken) {
|
|
61
|
+
result = await this._listByFactoryNext(resourceGroupName, factoryName, continuationToken, options);
|
|
62
|
+
continuationToken = result.nextLink;
|
|
63
|
+
let page = result.value || [];
|
|
64
|
+
(0, pagingHelper_js_1.setContinuationToken)(page, continuationToken);
|
|
65
|
+
yield page;
|
|
66
|
+
}
|
|
68
67
|
}
|
|
69
|
-
listByFactoryPagingAll(resourceGroupName, factoryName, options) {
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
for (var _d = true, _e = tslib_1.__asyncValues(this.listByFactoryPagingPage(resourceGroupName, factoryName, options)), _f; _f = yield tslib_1.__await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
74
|
-
_c = _f.value;
|
|
75
|
-
_d = false;
|
|
76
|
-
const page = _c;
|
|
77
|
-
yield tslib_1.__await(yield* tslib_1.__asyncDelegator(tslib_1.__asyncValues(page)));
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
81
|
-
finally {
|
|
82
|
-
try {
|
|
83
|
-
if (!_d && !_a && (_b = _e.return)) yield tslib_1.__await(_b.call(_e));
|
|
84
|
-
}
|
|
85
|
-
finally { if (e_1) throw e_1.error; }
|
|
86
|
-
}
|
|
87
|
-
});
|
|
68
|
+
async *listByFactoryPagingAll(resourceGroupName, factoryName, options) {
|
|
69
|
+
for await (const page of this.listByFactoryPagingPage(resourceGroupName, factoryName, options)) {
|
|
70
|
+
yield* page;
|
|
71
|
+
}
|
|
88
72
|
}
|
|
89
73
|
/**
|
|
90
74
|
* Lists Global parameters
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"globalParameters.js","sourceRoot":"","sources":["../../../src/operations/globalParameters.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAetD,4CAA4C;AAC5C,oDAAoD;AACpD,MAAa,oBAAoB;IAG/B;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACI,aAAa,CAClB,iBAAyB,EACzB,WAAmB,EACnB,OAAqD;QAErD,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,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YAAY;IAClB,UAAU,EAAE,KAAK;IACjB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,2BAA2B;SAChD;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 { GlobalParameters } 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 GlobalParameterResource,\n GlobalParametersListByFactoryNextOptionalParams,\n GlobalParametersListByFactoryOptionalParams,\n GlobalParametersListByFactoryResponse,\n GlobalParametersGetOptionalParams,\n GlobalParametersGetResponse,\n GlobalParametersCreateOrUpdateOptionalParams,\n GlobalParametersCreateOrUpdateResponse,\n GlobalParametersDeleteOptionalParams,\n GlobalParametersListByFactoryNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing GlobalParameters operations. */\nexport class GlobalParametersImpl implements GlobalParameters {\n private readonly client: DataFactoryManagementClient;\n\n /**\n * Initialize a new instance of the class GlobalParameters class.\n * @param client Reference to the service client\n */\n constructor(client: DataFactoryManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists Global parameters\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?: GlobalParametersListByFactoryOptionalParams,\n ): PagedAsyncIterableIterator<GlobalParameterResource> {\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?: GlobalParametersListByFactoryOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<GlobalParameterResource[]> {\n let result: GlobalParametersListByFactoryResponse;\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?: GlobalParametersListByFactoryOptionalParams,\n ): AsyncIterableIterator<GlobalParameterResource> {\n for await (const page of this.listByFactoryPagingPage(\n resourceGroupName,\n factoryName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists Global parameters\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?: GlobalParametersListByFactoryOptionalParams,\n ): Promise<GlobalParametersListByFactoryResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, options },\n listByFactoryOperationSpec,\n );\n }\n\n /**\n * Gets a Global parameter\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param globalParameterName The global parameter name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n factoryName: string,\n globalParameterName: string,\n options?: GlobalParametersGetOptionalParams,\n ): Promise<GlobalParametersGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, globalParameterName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates or updates a Global parameter\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param globalParameterName The global parameter name.\n * @param defaultParam Global parameter resource definition.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n factoryName: string,\n globalParameterName: string,\n defaultParam: GlobalParameterResource,\n options?: GlobalParametersCreateOrUpdateOptionalParams,\n ): Promise<GlobalParametersCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n factoryName,\n globalParameterName,\n defaultParam,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes a Global parameter\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param globalParameterName The global parameter name.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n factoryName: string,\n globalParameterName: string,\n options?: GlobalParametersDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, globalParameterName, 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?: GlobalParametersListByFactoryNextOptionalParams,\n ): Promise<GlobalParametersListByFactoryNextResponse> {\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}/globalParameters\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GlobalParameterListResponse,\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 getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters/{globalParameterName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GlobalParameterResource,\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.globalParameterName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters/{globalParameterName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.GlobalParameterResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.defaultParam,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n Parameters.globalParameterName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters/{globalParameterName}\",\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.globalParameterName,\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.GlobalParameterListResponse,\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":"globalParameters.js","sourceRoot":"","sources":["../../../src/operations/globalParameters.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,wDAA0D;AAE1D,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAetD,4CAA4C;AAC5C,oDAAoD;AACpD,MAAa,oBAAoB;IACd,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,OAAqD;QAErD,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,aAA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;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 { GlobalParameters } 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 GlobalParameterResource,\n GlobalParametersListByFactoryNextOptionalParams,\n GlobalParametersListByFactoryOptionalParams,\n GlobalParametersListByFactoryResponse,\n GlobalParametersGetOptionalParams,\n GlobalParametersGetResponse,\n GlobalParametersCreateOrUpdateOptionalParams,\n GlobalParametersCreateOrUpdateResponse,\n GlobalParametersDeleteOptionalParams,\n GlobalParametersListByFactoryNextResponse,\n} from \"../models/index.js\";\n\n/// <reference lib=\"esnext.asynciterable\" />\n/** Class containing GlobalParameters operations. */\nexport class GlobalParametersImpl implements GlobalParameters {\n private readonly client: DataFactoryManagementClient;\n\n /**\n * Initialize a new instance of the class GlobalParameters class.\n * @param client Reference to the service client\n */\n constructor(client: DataFactoryManagementClient) {\n this.client = client;\n }\n\n /**\n * Lists Global parameters\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?: GlobalParametersListByFactoryOptionalParams,\n ): PagedAsyncIterableIterator<GlobalParameterResource> {\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?: GlobalParametersListByFactoryOptionalParams,\n settings?: PageSettings,\n ): AsyncIterableIterator<GlobalParameterResource[]> {\n let result: GlobalParametersListByFactoryResponse;\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?: GlobalParametersListByFactoryOptionalParams,\n ): AsyncIterableIterator<GlobalParameterResource> {\n for await (const page of this.listByFactoryPagingPage(\n resourceGroupName,\n factoryName,\n options,\n )) {\n yield* page;\n }\n }\n\n /**\n * Lists Global parameters\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?: GlobalParametersListByFactoryOptionalParams,\n ): Promise<GlobalParametersListByFactoryResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, options },\n listByFactoryOperationSpec,\n );\n }\n\n /**\n * Gets a Global parameter\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param globalParameterName The global parameter name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n factoryName: string,\n globalParameterName: string,\n options?: GlobalParametersGetOptionalParams,\n ): Promise<GlobalParametersGetResponse> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, globalParameterName, options },\n getOperationSpec,\n );\n }\n\n /**\n * Creates or updates a Global parameter\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param globalParameterName The global parameter name.\n * @param defaultParam Global parameter resource definition.\n * @param options The options parameters.\n */\n createOrUpdate(\n resourceGroupName: string,\n factoryName: string,\n globalParameterName: string,\n defaultParam: GlobalParameterResource,\n options?: GlobalParametersCreateOrUpdateOptionalParams,\n ): Promise<GlobalParametersCreateOrUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n factoryName,\n globalParameterName,\n defaultParam,\n options,\n },\n createOrUpdateOperationSpec,\n );\n }\n\n /**\n * Deletes a Global parameter\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param globalParameterName The global parameter name.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n factoryName: string,\n globalParameterName: string,\n options?: GlobalParametersDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n { resourceGroupName, factoryName, globalParameterName, 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?: GlobalParametersListByFactoryNextOptionalParams,\n ): Promise<GlobalParametersListByFactoryNextResponse> {\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}/globalParameters\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GlobalParameterListResponse,\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 getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters/{globalParameterName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.GlobalParameterResource,\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.globalParameterName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst createOrUpdateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters/{globalParameterName}\",\n httpMethod: \"PUT\",\n responses: {\n 200: {\n bodyMapper: Mappers.GlobalParameterResource,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.defaultParam,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n Parameters.globalParameterName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/globalParameters/{globalParameterName}\",\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.globalParameterName,\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.GlobalParameterListResponse,\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"]}
|
|
@@ -14,6 +14,7 @@ const Mappers = tslib_1.__importStar(require("../models/mappers.js"));
|
|
|
14
14
|
const Parameters = tslib_1.__importStar(require("../models/parameters.js"));
|
|
15
15
|
/** Class containing IntegrationRuntimeNodes operations. */
|
|
16
16
|
class IntegrationRuntimeNodesImpl {
|
|
17
|
+
client;
|
|
17
18
|
/**
|
|
18
19
|
* Initialize a new instance of the class IntegrationRuntimeNodes class.
|
|
19
20
|
* @param client Reference to the service client
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"integrationRuntimeNodes.js","sourceRoot":"","sources":["../../../src/operations/integrationRuntimeNodes.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;AAGH,uEAAiD;AACjD,sEAAgD;AAChD,4EAAsD;AAatD,2DAA2D;AAC3D,MAAa,2BAA2B;IAGtC;;;OAGG;IACH,YAAY,MAAmC;QAC7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;;;OAOG;IACH,GAAG,CACD,iBAAyB,EACzB,WAAmB,EACnB,sBAA8B,EAC9B,QAAgB,EAChB,OAAkD;QAElD,OAAO,IAAI,CAAC,MAAM,CAAC,oBAAoB,CACrC;YACE,i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AU,CAAC,sBAAsB;QACjC,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,yBAAyB,GAA6B;IAC1D,IAAI,EAAE,oMAAoM;IAC1M,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,+BAA+B;SACpD;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,sBAAsB;QACjC,UAAU,CAAC,QAAQ;KACpB;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 { IntegrationRuntimeNodes } 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 IntegrationRuntimeNodesGetOptionalParams,\n IntegrationRuntimeNodesGetResponse,\n IntegrationRuntimeNodesDeleteOptionalParams,\n UpdateIntegrationRuntimeNodeRequest,\n IntegrationRuntimeNodesUpdateOptionalParams,\n IntegrationRuntimeNodesUpdateResponse,\n IntegrationRuntimeNodesGetIpAddressOptionalParams,\n IntegrationRuntimeNodesGetIpAddressResponse,\n} from \"../models/index.js\";\n\n/** Class containing IntegrationRuntimeNodes operations. */\nexport class IntegrationRuntimeNodesImpl implements IntegrationRuntimeNodes {\n private readonly client: DataFactoryManagementClient;\n\n /**\n * Initialize a new instance of the class IntegrationRuntimeNodes class.\n * @param client Reference to the service client\n */\n constructor(client: DataFactoryManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets a self-hosted integration runtime node.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param integrationRuntimeName The integration runtime name.\n * @param nodeName The integration runtime node name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n factoryName: string,\n integrationRuntimeName: string,\n nodeName: string,\n options?: IntegrationRuntimeNodesGetOptionalParams,\n ): Promise<IntegrationRuntimeNodesGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n factoryName,\n integrationRuntimeName,\n nodeName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Deletes a self-hosted integration runtime node.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param integrationRuntimeName The integration runtime name.\n * @param nodeName The integration runtime node name.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n factoryName: string,\n integrationRuntimeName: string,\n nodeName: string,\n options?: IntegrationRuntimeNodesDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n factoryName,\n integrationRuntimeName,\n nodeName,\n options,\n },\n deleteOperationSpec,\n );\n }\n\n /**\n * Updates a self-hosted integration runtime node.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param integrationRuntimeName The integration runtime name.\n * @param nodeName The integration runtime node name.\n * @param updateIntegrationRuntimeNodeRequest The parameters for updating an integration runtime node.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n factoryName: string,\n integrationRuntimeName: string,\n nodeName: string,\n updateIntegrationRuntimeNodeRequest: UpdateIntegrationRuntimeNodeRequest,\n options?: IntegrationRuntimeNodesUpdateOptionalParams,\n ): Promise<IntegrationRuntimeNodesUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n factoryName,\n integrationRuntimeName,\n nodeName,\n updateIntegrationRuntimeNodeRequest,\n options,\n },\n updateOperationSpec,\n );\n }\n\n /**\n * Get the IP address of self-hosted integration runtime node.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param integrationRuntimeName The integration runtime name.\n * @param nodeName The integration runtime node name.\n * @param options The options parameters.\n */\n getIpAddress(\n resourceGroupName: string,\n factoryName: string,\n integrationRuntimeName: string,\n nodeName: string,\n options?: IntegrationRuntimeNodesGetIpAddressOptionalParams,\n ): Promise<IntegrationRuntimeNodesGetIpAddressResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n factoryName,\n integrationRuntimeName,\n nodeName,\n options,\n },\n getIpAddressOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SelfHostedIntegrationRuntimeNode,\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.integrationRuntimeName,\n Parameters.nodeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}\",\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.integrationRuntimeName,\n Parameters.nodeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.SelfHostedIntegrationRuntimeNode,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.updateIntegrationRuntimeNodeRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n Parameters.integrationRuntimeName,\n Parameters.nodeName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getIpAddressOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}/ipAddress\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.IntegrationRuntimeNodeIpAddress,\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.integrationRuntimeName,\n Parameters.nodeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
1
|
+
{"version":3,"file":"integrationRuntimeNodes.js","sourceRoot":"","sources":["../../../src/operations/integrationRuntimeNodes.ts"],"names":[],"mappings":";AAAA;;;;;;GA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SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,gCAAgC;SACrD;QACD,OAAO,EAAE;YACP,UAAU,EAAE,OAAO,CAAC,UAAU;SAC/B;KACF;IACD,WAAW,EAAE,UAAU,CAAC,mCAAmC;IAC3D,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,sBAAsB;QACjC,UAAU,CAAC,QAAQ;KACpB;IACD,gBAAgB,EAAE,CAAC,UAAU,CAAC,MAAM,EAAE,UAAU,CAAC,WAAW,CAAC;IAC7D,SAAS,EAAE,MAAM;IACjB,UAAU;CACX,CAAC;AACF,MAAM,yBAAyB,GAA6B;IAC1D,IAAI,EAAE,oMAAoM;IAC1M,UAAU,EAAE,MAAM;IAClB,SAAS,EAAE;QACT,GAAG,EAAE;YACH,UAAU,EAAE,OAAO,CAAC,+BAA+B;SACpD;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,sBAAsB;QACjC,UAAU,CAAC,QAAQ;KACpB;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 { IntegrationRuntimeNodes } 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 IntegrationRuntimeNodesGetOptionalParams,\n IntegrationRuntimeNodesGetResponse,\n IntegrationRuntimeNodesDeleteOptionalParams,\n UpdateIntegrationRuntimeNodeRequest,\n IntegrationRuntimeNodesUpdateOptionalParams,\n IntegrationRuntimeNodesUpdateResponse,\n IntegrationRuntimeNodesGetIpAddressOptionalParams,\n IntegrationRuntimeNodesGetIpAddressResponse,\n} from \"../models/index.js\";\n\n/** Class containing IntegrationRuntimeNodes operations. */\nexport class IntegrationRuntimeNodesImpl implements IntegrationRuntimeNodes {\n private readonly client: DataFactoryManagementClient;\n\n /**\n * Initialize a new instance of the class IntegrationRuntimeNodes class.\n * @param client Reference to the service client\n */\n constructor(client: DataFactoryManagementClient) {\n this.client = client;\n }\n\n /**\n * Gets a self-hosted integration runtime node.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param integrationRuntimeName The integration runtime name.\n * @param nodeName The integration runtime node name.\n * @param options The options parameters.\n */\n get(\n resourceGroupName: string,\n factoryName: string,\n integrationRuntimeName: string,\n nodeName: string,\n options?: IntegrationRuntimeNodesGetOptionalParams,\n ): Promise<IntegrationRuntimeNodesGetResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n factoryName,\n integrationRuntimeName,\n nodeName,\n options,\n },\n getOperationSpec,\n );\n }\n\n /**\n * Deletes a self-hosted integration runtime node.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param integrationRuntimeName The integration runtime name.\n * @param nodeName The integration runtime node name.\n * @param options The options parameters.\n */\n delete(\n resourceGroupName: string,\n factoryName: string,\n integrationRuntimeName: string,\n nodeName: string,\n options?: IntegrationRuntimeNodesDeleteOptionalParams,\n ): Promise<void> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n factoryName,\n integrationRuntimeName,\n nodeName,\n options,\n },\n deleteOperationSpec,\n );\n }\n\n /**\n * Updates a self-hosted integration runtime node.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param integrationRuntimeName The integration runtime name.\n * @param nodeName The integration runtime node name.\n * @param updateIntegrationRuntimeNodeRequest The parameters for updating an integration runtime node.\n * @param options The options parameters.\n */\n update(\n resourceGroupName: string,\n factoryName: string,\n integrationRuntimeName: string,\n nodeName: string,\n updateIntegrationRuntimeNodeRequest: UpdateIntegrationRuntimeNodeRequest,\n options?: IntegrationRuntimeNodesUpdateOptionalParams,\n ): Promise<IntegrationRuntimeNodesUpdateResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n factoryName,\n integrationRuntimeName,\n nodeName,\n updateIntegrationRuntimeNodeRequest,\n options,\n },\n updateOperationSpec,\n );\n }\n\n /**\n * Get the IP address of self-hosted integration runtime node.\n * @param resourceGroupName The resource group name.\n * @param factoryName The factory name.\n * @param integrationRuntimeName The integration runtime name.\n * @param nodeName The integration runtime node name.\n * @param options The options parameters.\n */\n getIpAddress(\n resourceGroupName: string,\n factoryName: string,\n integrationRuntimeName: string,\n nodeName: string,\n options?: IntegrationRuntimeNodesGetIpAddressOptionalParams,\n ): Promise<IntegrationRuntimeNodesGetIpAddressResponse> {\n return this.client.sendOperationRequest(\n {\n resourceGroupName,\n factoryName,\n integrationRuntimeName,\n nodeName,\n options,\n },\n getIpAddressOperationSpec,\n );\n }\n}\n// Operation Specifications\nconst serializer = coreClient.createSerializer(Mappers, /* isXml */ false);\n\nconst getOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}\",\n httpMethod: \"GET\",\n responses: {\n 200: {\n bodyMapper: Mappers.SelfHostedIntegrationRuntimeNode,\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.integrationRuntimeName,\n Parameters.nodeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst deleteOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}\",\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.integrationRuntimeName,\n Parameters.nodeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\nconst updateOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}\",\n httpMethod: \"PATCH\",\n responses: {\n 200: {\n bodyMapper: Mappers.SelfHostedIntegrationRuntimeNode,\n },\n default: {\n bodyMapper: Mappers.CloudError,\n },\n },\n requestBody: Parameters.updateIntegrationRuntimeNodeRequest,\n queryParameters: [Parameters.apiVersion],\n urlParameters: [\n Parameters.$host,\n Parameters.subscriptionId,\n Parameters.resourceGroupName,\n Parameters.factoryName,\n Parameters.integrationRuntimeName,\n Parameters.nodeName,\n ],\n headerParameters: [Parameters.accept, Parameters.contentType],\n mediaType: \"json\",\n serializer,\n};\nconst getIpAddressOperationSpec: coreClient.OperationSpec = {\n path: \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/integrationRuntimes/{integrationRuntimeName}/nodes/{nodeName}/ipAddress\",\n httpMethod: \"POST\",\n responses: {\n 200: {\n bodyMapper: Mappers.IntegrationRuntimeNodeIpAddress,\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.integrationRuntimeName,\n Parameters.nodeName,\n ],\n headerParameters: [Parameters.accept],\n serializer,\n};\n"]}
|
|
@@ -16,6 +16,7 @@ const core_lro_1 = require("@azure/core-lro");
|
|
|
16
16
|
const lroImpl_js_1 = require("../lroImpl.js");
|
|
17
17
|
/** Class containing IntegrationRuntimeObjectMetadata operations. */
|
|
18
18
|
class IntegrationRuntimeObjectMetadataImpl {
|
|
19
|
+
client;
|
|
19
20
|
/**
|
|
20
21
|
* Initialize a new instance of the class IntegrationRuntimeObjectMetadata class.
|
|
21
22
|
* @param client Reference to the service client
|
|
@@ -35,14 +36,19 @@ class IntegrationRuntimeObjectMetadataImpl {
|
|
|
35
36
|
return this.client.sendOperationRequest(args, spec);
|
|
36
37
|
};
|
|
37
38
|
const sendOperationFn = async (args, spec) => {
|
|
38
|
-
var _a;
|
|
39
39
|
let currentRawResponse = undefined;
|
|
40
|
-
const providedCallback =
|
|
40
|
+
const providedCallback = args.options?.onResponse;
|
|
41
41
|
const callback = (rawResponse, flatResponse) => {
|
|
42
42
|
currentRawResponse = rawResponse;
|
|
43
|
-
providedCallback
|
|
43
|
+
providedCallback?.(rawResponse, flatResponse);
|
|
44
|
+
};
|
|
45
|
+
const updatedArgs = {
|
|
46
|
+
...args,
|
|
47
|
+
options: {
|
|
48
|
+
...args.options,
|
|
49
|
+
onResponse: callback,
|
|
50
|
+
},
|
|
44
51
|
};
|
|
45
|
-
const updatedArgs = Object.assign(Object.assign({}, args), { options: Object.assign(Object.assign({}, args.options), { onResponse: callback }) });
|
|
46
52
|
const flatResponse = await directSendOperation(updatedArgs, spec);
|
|
47
53
|
return {
|
|
48
54
|
flatResponse,
|
|
@@ -59,8 +65,8 @@ class IntegrationRuntimeObjectMetadataImpl {
|
|
|
59
65
|
spec: refreshOperationSpec,
|
|
60
66
|
});
|
|
61
67
|
const poller = await (0, core_lro_1.createHttpPoller)(lro, {
|
|
62
|
-
restoreFrom: options
|
|
63
|
-
intervalInMs: options
|
|
68
|
+
restoreFrom: options?.resumeFrom,
|
|
69
|
+
intervalInMs: options?.updateIntervalInMs,
|
|
64
70
|
});
|
|
65
71
|
await poller.poll();
|
|
66
72
|
return poller;
|