@azure/arm-datafactory 11.0.0 → 11.1.0-alpha.20230317.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/CHANGELOG.md +8 -0
- package/dist/index.js +12 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist-esm/src/dataFactoryManagementClient.js +1 -1
- package/dist-esm/src/models/index.d.ts +5 -1
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +11 -1
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/test/datafactory_examples.spec.d.ts.map +1 -1
- package/dist-esm/test/datafactory_examples.spec.js +239 -4
- package/dist-esm/test/datafactory_examples.spec.js.map +1 -1
- package/package.json +4 -4
- package/review/arm-datafactory.api.md +3 -1
- package/src/dataFactoryManagementClient.ts +1 -1
- package/src/models/index.ts +5 -1
- package/src/models/mappers.ts +13 -1
- package/types/arm-datafactory.d.ts +5 -1
- package/types/tsdoc-metadata.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datafactory_examples.spec.d.ts","sourceRoot":"","sources":["../../test/datafactory_examples.spec.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"datafactory_examples.spec.d.ts","sourceRoot":"","sources":["../../test/datafactory_examples.spec.ts"],"names":[],"mappings":"AAiCA,eAAO,MAAM,kBAAkB;;CAE9B,CAAC"}
|
|
@@ -31,6 +31,10 @@ describe("Datafactory test", () => {
|
|
|
31
31
|
let factoryName;
|
|
32
32
|
let factory;
|
|
33
33
|
let sessionId;
|
|
34
|
+
let pipelineName;
|
|
35
|
+
let datasetName;
|
|
36
|
+
let linkedServiceName;
|
|
37
|
+
let dataFlowName;
|
|
34
38
|
beforeEach(function () {
|
|
35
39
|
return __awaiter(this, void 0, void 0, function* () {
|
|
36
40
|
recorder = new Recorder(this.currentTest);
|
|
@@ -40,8 +44,12 @@ describe("Datafactory test", () => {
|
|
|
40
44
|
const credential = createTestCredential();
|
|
41
45
|
client = new DataFactoryManagementClient(credential, subscriptionId, recorder.configureClientOptions({}));
|
|
42
46
|
location = "eastus";
|
|
43
|
-
resourceGroup = "
|
|
47
|
+
resourceGroup = "marytest";
|
|
44
48
|
factoryName = "examplefactorytest";
|
|
49
|
+
pipelineName = "examplePipeline";
|
|
50
|
+
datasetName = "exampleDataset";
|
|
51
|
+
linkedServiceName = "exampleLinkedService";
|
|
52
|
+
dataFlowName = "exampleDataFlow";
|
|
45
53
|
});
|
|
46
54
|
});
|
|
47
55
|
afterEach(function () {
|
|
@@ -79,6 +87,144 @@ describe("Datafactory test", () => {
|
|
|
79
87
|
return sessionId = String(res.sessionId);
|
|
80
88
|
});
|
|
81
89
|
});
|
|
90
|
+
it("linkedService create test", function () {
|
|
91
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
92
|
+
const res = yield client.linkedServices.createOrUpdate(resourceGroup, factoryName, linkedServiceName, {
|
|
93
|
+
properties: {
|
|
94
|
+
type: "AzureStorage",
|
|
95
|
+
connectionString: {
|
|
96
|
+
type: "SecureString",
|
|
97
|
+
value: "DefaultEndpointsProtocol=https;AccountName=examplestorageaccount;AccountKey=<storage key>"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
assert.equal(res.name, linkedServiceName);
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
it("dataset create test", function () {
|
|
105
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
106
|
+
const res = yield client.datasets.createOrUpdate(resourceGroup, factoryName, datasetName, {
|
|
107
|
+
properties: {
|
|
108
|
+
type: "AzureBlob",
|
|
109
|
+
format: { type: "TextFormat" },
|
|
110
|
+
fileName: { type: "Expression", value: "@dataset().MyFileName" },
|
|
111
|
+
folderPath: { type: "Expression", value: "@dataset().MyFolderPath" },
|
|
112
|
+
linkedServiceName: {
|
|
113
|
+
type: "LinkedServiceReference",
|
|
114
|
+
referenceName: "exampleLinkedService"
|
|
115
|
+
},
|
|
116
|
+
parameters: {
|
|
117
|
+
myFileName: { type: "String" },
|
|
118
|
+
myFolderPath: { type: "String" }
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
assert.equal(res.name, datasetName);
|
|
123
|
+
});
|
|
124
|
+
});
|
|
125
|
+
it("dataflow create test", function () {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
+
const res1 = yield client.datasets.createOrUpdate(resourceGroup, factoryName, "CurrencyDatasetUSD", {
|
|
128
|
+
properties: {
|
|
129
|
+
type: "AzureBlob",
|
|
130
|
+
format: { type: "TextFormat" },
|
|
131
|
+
fileName: { type: "Expression", value: "@dataset().MyFileName" },
|
|
132
|
+
folderPath: { type: "Expression", value: "@dataset().MyFolderPath" },
|
|
133
|
+
linkedServiceName: {
|
|
134
|
+
type: "LinkedServiceReference",
|
|
135
|
+
referenceName: "exampleLinkedService"
|
|
136
|
+
},
|
|
137
|
+
parameters: {
|
|
138
|
+
myFileName: { type: "String" },
|
|
139
|
+
myFolderPath: { type: "String" }
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
const res2 = yield client.datasets.createOrUpdate(resourceGroup, factoryName, "CurrencyDatasetCAD", {
|
|
144
|
+
properties: {
|
|
145
|
+
type: "AzureBlob",
|
|
146
|
+
format: { type: "TextFormat" },
|
|
147
|
+
fileName: { type: "Expression", value: "@dataset().MyFileName" },
|
|
148
|
+
folderPath: { type: "Expression", value: "@dataset().MyFolderPath" },
|
|
149
|
+
linkedServiceName: {
|
|
150
|
+
type: "LinkedServiceReference",
|
|
151
|
+
referenceName: "exampleLinkedService"
|
|
152
|
+
},
|
|
153
|
+
parameters: {
|
|
154
|
+
myFileName: { type: "String" },
|
|
155
|
+
myFolderPath: { type: "String" }
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
});
|
|
159
|
+
const res = yield client.dataFlows.createOrUpdate(resourceGroup, factoryName, dataFlowName, {
|
|
160
|
+
properties: {
|
|
161
|
+
type: "MappingDataFlow",
|
|
162
|
+
description: "Sample demo data flow to convert currencies showing usage of union, derive and conditional split transformation.",
|
|
163
|
+
scriptLines: [
|
|
164
|
+
"source(output(",
|
|
165
|
+
"PreviousConversionRate as double,",
|
|
166
|
+
"Country as string,",
|
|
167
|
+
"DateTime1 as string,",
|
|
168
|
+
"CurrentConversionRate as double",
|
|
169
|
+
"),",
|
|
170
|
+
"allowSchemaDrift: false,",
|
|
171
|
+
"validateSchema: false) ~> USDCurrency",
|
|
172
|
+
"source(output(",
|
|
173
|
+
"PreviousConversionRate as double,",
|
|
174
|
+
"Country as string,",
|
|
175
|
+
"DateTime1 as string,",
|
|
176
|
+
"CurrentConversionRate as double",
|
|
177
|
+
"),",
|
|
178
|
+
"allowSchemaDrift: true,",
|
|
179
|
+
"validateSchema: false) ~> CADSource",
|
|
180
|
+
"USDCurrency, CADSource union(byName: true)~> Union",
|
|
181
|
+
"Union derive(NewCurrencyRate = round(CurrentConversionRate*1.25)) ~> NewCurrencyColumn",
|
|
182
|
+
"NewCurrencyColumn split(Country == 'USD',",
|
|
183
|
+
"Country == 'CAD',disjoint: false) ~> ConditionalSplit1@(USD, CAD)",
|
|
184
|
+
"ConditionalSplit1@USD sink(saveMode:'overwrite' ) ~> USDSink",
|
|
185
|
+
"ConditionalSplit1@CAD sink(saveMode:'overwrite' ) ~> CADSink"
|
|
186
|
+
],
|
|
187
|
+
sources: [
|
|
188
|
+
{
|
|
189
|
+
name: "USDCurrency",
|
|
190
|
+
dataset: {
|
|
191
|
+
type: "DatasetReference",
|
|
192
|
+
referenceName: "CurrencyDatasetUSD"
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
name: "CADSource",
|
|
197
|
+
dataset: {
|
|
198
|
+
type: "DatasetReference",
|
|
199
|
+
referenceName: "CurrencyDatasetCAD"
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
assert.equal(res.name, dataFlowName);
|
|
206
|
+
});
|
|
207
|
+
});
|
|
208
|
+
it("pipeline create test", function () {
|
|
209
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
210
|
+
const res = yield client.pipelines.createOrUpdate(resourceGroup, factoryName, pipelineName, {
|
|
211
|
+
description: "Example description",
|
|
212
|
+
activities: [
|
|
213
|
+
{
|
|
214
|
+
name: "ExampleCopyActivity1",
|
|
215
|
+
type: "ExecuteWranglingDataflow",
|
|
216
|
+
dataFlow: {
|
|
217
|
+
referenceName: dataFlowName,
|
|
218
|
+
type: "DataFlowReference"
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
],
|
|
222
|
+
parameters: { outputBlobNameList: { type: "Array" } },
|
|
223
|
+
policy: { elapsedTimeMetric: { duration: "0.00:10:00" } }
|
|
224
|
+
});
|
|
225
|
+
assert.equal(res.name, pipelineName);
|
|
226
|
+
});
|
|
227
|
+
});
|
|
82
228
|
it("datafactory get test", function () {
|
|
83
229
|
return __awaiter(this, void 0, void 0, function* () {
|
|
84
230
|
const res = yield client.factories.get(resourceGroup, factoryName);
|
|
@@ -105,6 +251,30 @@ describe("Datafactory test", () => {
|
|
|
105
251
|
assert.equal(resArray.length, 1);
|
|
106
252
|
});
|
|
107
253
|
});
|
|
254
|
+
it("pipeline list test", function () {
|
|
255
|
+
var e_2, _a;
|
|
256
|
+
var _b;
|
|
257
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
258
|
+
const resArray = new Array();
|
|
259
|
+
try {
|
|
260
|
+
for (var _c = __asyncValues(client.pipelines.listByFactory(resourceGroup, factoryName)), _d; _d = yield _c.next(), !_d.done;) {
|
|
261
|
+
let item = _d.value;
|
|
262
|
+
resArray.push(item);
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
266
|
+
finally {
|
|
267
|
+
try {
|
|
268
|
+
if (_d && !_d.done && (_a = _c.return)) yield _a.call(_c);
|
|
269
|
+
}
|
|
270
|
+
finally { if (e_2) throw e_2.error; }
|
|
271
|
+
}
|
|
272
|
+
assert.equal(resArray.length, 1);
|
|
273
|
+
assert.equal((_b = resArray[0].activities) === null || _b === void 0 ? void 0 : _b.length, 1);
|
|
274
|
+
assert.equal(resArray[0].activities[0].type, "ExecuteWranglingDataflow");
|
|
275
|
+
assert.equal(resArray[0].activities[0].dataFlow.type, "DataFlowReference");
|
|
276
|
+
});
|
|
277
|
+
});
|
|
108
278
|
it("dataFlowDebugSession delete test", function () {
|
|
109
279
|
return __awaiter(this, void 0, void 0, function* () {
|
|
110
280
|
const result = yield client.dataFlowDebugSession.delete(resourceGroup, factoryName, {
|
|
@@ -112,8 +282,73 @@ describe("Datafactory test", () => {
|
|
|
112
282
|
});
|
|
113
283
|
});
|
|
114
284
|
});
|
|
285
|
+
it("pipeline delete test", function () {
|
|
286
|
+
var e_3, _a;
|
|
287
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
288
|
+
const resArray = new Array();
|
|
289
|
+
const res = yield client.pipelines.delete(resourceGroup, factoryName, pipelineName);
|
|
290
|
+
try {
|
|
291
|
+
for (var _b = __asyncValues(client.pipelines.listByFactory(resourceGroup, factoryName)), _c; _c = yield _b.next(), !_c.done;) {
|
|
292
|
+
let item = _c.value;
|
|
293
|
+
resArray.push(item);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
297
|
+
finally {
|
|
298
|
+
try {
|
|
299
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
300
|
+
}
|
|
301
|
+
finally { if (e_3) throw e_3.error; }
|
|
302
|
+
}
|
|
303
|
+
assert.equal(resArray.length, 0);
|
|
304
|
+
});
|
|
305
|
+
});
|
|
306
|
+
it("dataflow delete test", function () {
|
|
307
|
+
var e_4, _a;
|
|
308
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
309
|
+
const resArray = new Array();
|
|
310
|
+
const res = yield client.dataFlows.delete(resourceGroup, factoryName, dataFlowName);
|
|
311
|
+
try {
|
|
312
|
+
for (var _b = __asyncValues(client.dataFlows.listByFactory(resourceGroup, factoryName)), _c; _c = yield _b.next(), !_c.done;) {
|
|
313
|
+
let item = _c.value;
|
|
314
|
+
resArray.push(item);
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
318
|
+
finally {
|
|
319
|
+
try {
|
|
320
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
321
|
+
}
|
|
322
|
+
finally { if (e_4) throw e_4.error; }
|
|
323
|
+
}
|
|
324
|
+
assert.equal(resArray.length, 0);
|
|
325
|
+
});
|
|
326
|
+
});
|
|
327
|
+
it("datasets delete test", function () {
|
|
328
|
+
var e_5, _a;
|
|
329
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
330
|
+
const resArray = new Array();
|
|
331
|
+
const res = yield client.datasets.delete(resourceGroup, factoryName, datasetName);
|
|
332
|
+
const res1 = yield client.datasets.delete(resourceGroup, factoryName, "CurrencyDatasetUSD");
|
|
333
|
+
const res2 = yield client.datasets.delete(resourceGroup, factoryName, "CurrencyDatasetCAD");
|
|
334
|
+
try {
|
|
335
|
+
for (var _b = __asyncValues(client.datasets.listByFactory(resourceGroup, factoryName)), _c; _c = yield _b.next(), !_c.done;) {
|
|
336
|
+
let item = _c.value;
|
|
337
|
+
resArray.push(item);
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
341
|
+
finally {
|
|
342
|
+
try {
|
|
343
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
344
|
+
}
|
|
345
|
+
finally { if (e_5) throw e_5.error; }
|
|
346
|
+
}
|
|
347
|
+
assert.equal(resArray.length, 0);
|
|
348
|
+
});
|
|
349
|
+
});
|
|
115
350
|
it("datafactory delete test", function () {
|
|
116
|
-
var
|
|
351
|
+
var e_6, _a;
|
|
117
352
|
return __awaiter(this, void 0, void 0, function* () {
|
|
118
353
|
const resArray = new Array();
|
|
119
354
|
const res = yield client.factories.delete(resourceGroup, factoryName);
|
|
@@ -123,12 +358,12 @@ describe("Datafactory test", () => {
|
|
|
123
358
|
resArray.push(item);
|
|
124
359
|
}
|
|
125
360
|
}
|
|
126
|
-
catch (
|
|
361
|
+
catch (e_6_1) { e_6 = { error: e_6_1 }; }
|
|
127
362
|
finally {
|
|
128
363
|
try {
|
|
129
364
|
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
130
365
|
}
|
|
131
|
-
finally { if (
|
|
366
|
+
finally { if (e_6) throw e_6.error; }
|
|
132
367
|
}
|
|
133
368
|
assert.equal(resArray.length, 0);
|
|
134
369
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"datafactory_examples.spec.js","sourceRoot":"","sources":["../../test/datafactory_examples.spec.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,GAAG,EACH,QAAQ,EAGR,cAAc,GACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"datafactory_examples.spec.js","sourceRoot":"","sources":["../../test/datafactory_examples.spec.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;;AAEH,OAAO,EACL,GAAG,EACH,QAAQ,EAGR,cAAc,GACf,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAA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ACD,MAAM,CAAC,KAAK,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"sdk-type": "mgmt",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "A generated SDK for DataFactoryManagementClient.",
|
|
6
|
-
"version": "11.0.
|
|
6
|
+
"version": "11.1.0-alpha.20230317.1",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=14.0.0"
|
|
9
9
|
},
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"rimraf": "^3.0.0",
|
|
42
42
|
"dotenv": "^16.0.0",
|
|
43
43
|
"@azure/identity": "^2.0.1",
|
|
44
|
-
"@azure-tools/test-recorder": "
|
|
44
|
+
"@azure-tools/test-recorder": ">=3.0.0-alpha <3.0.0-alphb",
|
|
45
45
|
"@azure-tools/test-credential": "^1.0.0",
|
|
46
46
|
"mocha": "^7.1.1",
|
|
47
47
|
"@types/chai": "^4.2.8",
|
|
48
48
|
"chai": "^4.2.0",
|
|
49
49
|
"cross-env": "^7.0.2",
|
|
50
50
|
"@types/node": "^14.0.0",
|
|
51
|
-
"@azure/dev-tool": "
|
|
51
|
+
"@azure/dev-tool": ">=1.0.0-alpha <1.0.0-alphb"
|
|
52
52
|
},
|
|
53
53
|
"repository": {
|
|
54
54
|
"type": "git",
|
|
@@ -120,4 +120,4 @@
|
|
|
120
120
|
"disableDocsMs": true,
|
|
121
121
|
"apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-datafactory?view=azure-node-preview"
|
|
122
122
|
}
|
|
123
|
-
}
|
|
123
|
+
}
|
|
@@ -401,13 +401,15 @@ export interface AzureBlobFSLinkedService extends LinkedService {
|
|
|
401
401
|
azureCloudType?: any;
|
|
402
402
|
credential?: CredentialReference;
|
|
403
403
|
encryptedCredential?: any;
|
|
404
|
+
sasToken?: SecretBaseUnion;
|
|
405
|
+
sasUri?: any;
|
|
404
406
|
servicePrincipalCredential?: SecretBaseUnion;
|
|
405
407
|
servicePrincipalCredentialType?: any;
|
|
406
408
|
servicePrincipalId?: any;
|
|
407
409
|
servicePrincipalKey?: SecretBaseUnion;
|
|
408
410
|
tenant?: any;
|
|
409
411
|
type: "AzureBlobFS";
|
|
410
|
-
url
|
|
412
|
+
url?: any;
|
|
411
413
|
}
|
|
412
414
|
|
|
413
415
|
// @public
|
|
@@ -96,7 +96,7 @@ export class DataFactoryManagementClient extends coreClient.ServiceClient {
|
|
|
96
96
|
credential: credentials
|
|
97
97
|
};
|
|
98
98
|
|
|
99
|
-
const packageDetails = `azsdk-js-arm-datafactory/11.
|
|
99
|
+
const packageDetails = `azsdk-js-arm-datafactory/11.1.0`;
|
|
100
100
|
const userAgentPrefix =
|
|
101
101
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
102
102
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
package/src/models/index.ts
CHANGED
|
@@ -4883,7 +4883,7 @@ export interface AzureBlobFSLinkedService extends LinkedService {
|
|
|
4883
4883
|
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
4884
4884
|
type: "AzureBlobFS";
|
|
4885
4885
|
/** Endpoint for the Azure Data Lake Storage Gen2 service. Type: string (or Expression with resultType string). */
|
|
4886
|
-
url
|
|
4886
|
+
url?: any;
|
|
4887
4887
|
/** Account key for the Azure Data Lake Storage Gen2 service. Type: string (or Expression with resultType string). */
|
|
4888
4888
|
accountKey?: any;
|
|
4889
4889
|
/** The ID of the application used to authenticate against the Azure Data Lake Storage Gen2 account. Type: string (or Expression with resultType string). */
|
|
@@ -4902,6 +4902,10 @@ export interface AzureBlobFSLinkedService extends LinkedService {
|
|
|
4902
4902
|
servicePrincipalCredentialType?: any;
|
|
4903
4903
|
/** The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference. */
|
|
4904
4904
|
servicePrincipalCredential?: SecretBaseUnion;
|
|
4905
|
+
/** SAS URI of the Azure Data Lake Storage Gen2 service. Type: string, SecureString or AzureKeyVaultSecretReference. */
|
|
4906
|
+
sasUri?: any;
|
|
4907
|
+
/** The Azure key vault secret reference of sasToken in sas uri. */
|
|
4908
|
+
sasToken?: SecretBaseUnion;
|
|
4905
4909
|
}
|
|
4906
4910
|
|
|
4907
4911
|
/** Office365 linked service. */
|
package/src/models/mappers.ts
CHANGED
|
@@ -10399,7 +10399,6 @@ export const AzureBlobFSLinkedService: coreClient.CompositeMapper = {
|
|
|
10399
10399
|
...LinkedService.type.modelProperties,
|
|
10400
10400
|
url: {
|
|
10401
10401
|
serializedName: "typeProperties.url",
|
|
10402
|
-
required: true,
|
|
10403
10402
|
type: {
|
|
10404
10403
|
name: "any"
|
|
10405
10404
|
}
|
|
@@ -10460,6 +10459,19 @@ export const AzureBlobFSLinkedService: coreClient.CompositeMapper = {
|
|
|
10460
10459
|
name: "Composite",
|
|
10461
10460
|
className: "SecretBase"
|
|
10462
10461
|
}
|
|
10462
|
+
},
|
|
10463
|
+
sasUri: {
|
|
10464
|
+
serializedName: "typeProperties.sasUri",
|
|
10465
|
+
type: {
|
|
10466
|
+
name: "any"
|
|
10467
|
+
}
|
|
10468
|
+
},
|
|
10469
|
+
sasToken: {
|
|
10470
|
+
serializedName: "typeProperties.sasToken",
|
|
10471
|
+
type: {
|
|
10472
|
+
name: "Composite",
|
|
10473
|
+
className: "SecretBase"
|
|
10474
|
+
}
|
|
10463
10475
|
}
|
|
10464
10476
|
}
|
|
10465
10477
|
}
|
|
@@ -655,7 +655,7 @@ export declare interface AzureBlobFSLinkedService extends LinkedService {
|
|
|
655
655
|
/** Polymorphic discriminator, which specifies the different types this object can be */
|
|
656
656
|
type: "AzureBlobFS";
|
|
657
657
|
/** Endpoint for the Azure Data Lake Storage Gen2 service. Type: string (or Expression with resultType string). */
|
|
658
|
-
url
|
|
658
|
+
url?: any;
|
|
659
659
|
/** Account key for the Azure Data Lake Storage Gen2 service. Type: string (or Expression with resultType string). */
|
|
660
660
|
accountKey?: any;
|
|
661
661
|
/** The ID of the application used to authenticate against the Azure Data Lake Storage Gen2 account. Type: string (or Expression with resultType string). */
|
|
@@ -674,6 +674,10 @@ export declare interface AzureBlobFSLinkedService extends LinkedService {
|
|
|
674
674
|
servicePrincipalCredentialType?: any;
|
|
675
675
|
/** The credential of the service principal object in Azure Active Directory. If servicePrincipalCredentialType is 'ServicePrincipalKey', servicePrincipalCredential can be SecureString or AzureKeyVaultSecretReference. If servicePrincipalCredentialType is 'ServicePrincipalCert', servicePrincipalCredential can only be AzureKeyVaultSecretReference. */
|
|
676
676
|
servicePrincipalCredential?: SecretBaseUnion;
|
|
677
|
+
/** SAS URI of the Azure Data Lake Storage Gen2 service. Type: string, SecureString or AzureKeyVaultSecretReference. */
|
|
678
|
+
sasUri?: any;
|
|
679
|
+
/** The Azure key vault secret reference of sasToken in sas uri. */
|
|
680
|
+
sasToken?: SecretBaseUnion;
|
|
677
681
|
}
|
|
678
682
|
|
|
679
683
|
/** The location of azure blobFS dataset. */
|