@azure/arm-datafactory 10.7.0 → 10.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/dist/index.js +616 -313
- 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.d.ts.map +1 -1
- package/dist-esm/src/dataFactoryManagementClient.js +21 -13
- package/dist-esm/src/dataFactoryManagementClient.js.map +1 -1
- package/dist-esm/src/models/index.d.ts +160 -7
- package/dist-esm/src/models/index.d.ts.map +1 -1
- package/dist-esm/src/models/index.js +30 -0
- package/dist-esm/src/models/index.js.map +1 -1
- package/dist-esm/src/models/mappers.d.ts +112 -100
- package/dist-esm/src/models/mappers.d.ts.map +1 -1
- package/dist-esm/src/models/mappers.js +557 -300
- package/dist-esm/src/models/mappers.js.map +1 -1
- package/dist-esm/test/datafactory_examples.spec.d.ts +4 -0
- package/dist-esm/test/datafactory_examples.spec.d.ts.map +1 -0
- package/dist-esm/test/datafactory_examples.spec.js +106 -0
- package/dist-esm/test/datafactory_examples.spec.js.map +1 -0
- package/package.json +2 -2
- package/review/arm-datafactory.api.md +107 -5
- package/src/dataFactoryManagementClient.ts +26 -16
- package/src/models/index.ts +184 -7
- package/src/models/mappers.ts +599 -300
- package/types/arm-datafactory.d.ts +176 -7
- package/dist-esm/test/sampleTest.d.ts +0 -2
- package/dist-esm/test/sampleTest.d.ts.map +0 -1
- package/dist-esm/test/sampleTest.js +0 -38
- package/dist-esm/test/sampleTest.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"datafactory_examples.spec.d.ts","sourceRoot":"","sources":["../../test/datafactory_examples.spec.ts"],"names":[],"mappings":"AAgCA,eAAO,MAAM,kBAAkB;;CAE9B,CAAC"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright (c) Microsoft Corporation.
|
|
3
|
+
* Licensed under the MIT License.
|
|
4
|
+
*
|
|
5
|
+
* Code generated by Microsoft (R) AutoRest Code Generator.
|
|
6
|
+
* Changes may cause incorrect behavior and will be lost if the code is regenerated.
|
|
7
|
+
*/
|
|
8
|
+
import { __asyncValues, __awaiter } from "tslib";
|
|
9
|
+
import { env, Recorder, isPlaybackMode, } from "@azure-tools/test-recorder";
|
|
10
|
+
import { createTestCredential } from "@azure-tools/test-credential";
|
|
11
|
+
import { assert } from "chai";
|
|
12
|
+
import { DataFactoryManagementClient } from "../src/dataFactoryManagementClient";
|
|
13
|
+
const replaceableVariables = {
|
|
14
|
+
AZURE_CLIENT_ID: "azure_client_id",
|
|
15
|
+
AZURE_CLIENT_SECRET: "azure_client_secret",
|
|
16
|
+
AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888",
|
|
17
|
+
SUBSCRIPTION_ID: "azure_subscription_id"
|
|
18
|
+
};
|
|
19
|
+
const recorderOptions = {
|
|
20
|
+
envSetupForPlayback: replaceableVariables
|
|
21
|
+
};
|
|
22
|
+
export const testPollingOptions = {
|
|
23
|
+
updateIntervalInMs: isPlaybackMode() ? 0 : undefined,
|
|
24
|
+
};
|
|
25
|
+
describe("Datafactory test", () => {
|
|
26
|
+
let recorder;
|
|
27
|
+
let subscriptionId;
|
|
28
|
+
let client;
|
|
29
|
+
let location;
|
|
30
|
+
let resourceGroup;
|
|
31
|
+
let factoryName;
|
|
32
|
+
let factory;
|
|
33
|
+
beforeEach(function () {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
recorder = new Recorder(this.currentTest);
|
|
36
|
+
yield recorder.start(recorderOptions);
|
|
37
|
+
subscriptionId = env.SUBSCRIPTION_ID || '';
|
|
38
|
+
// This is an example of how the environment variables are used
|
|
39
|
+
const credential = createTestCredential();
|
|
40
|
+
client = new DataFactoryManagementClient(credential, subscriptionId, recorder.configureClientOptions({}));
|
|
41
|
+
location = "eastus";
|
|
42
|
+
resourceGroup = "myjstest";
|
|
43
|
+
factoryName = "examplefactorytest";
|
|
44
|
+
});
|
|
45
|
+
});
|
|
46
|
+
afterEach(function () {
|
|
47
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
48
|
+
yield recorder.stop();
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
it("datafactory create test", function () {
|
|
52
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
+
factory = { location: location };
|
|
54
|
+
const res = yield client.factories.createOrUpdate(resourceGroup, factoryName, factory);
|
|
55
|
+
assert.equal(res.name, factoryName);
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
it("datafactory get test", function () {
|
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
const res = yield client.factories.get(resourceGroup, factoryName);
|
|
61
|
+
assert.equal(res.name, factoryName);
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
it("datafactory list test", function () {
|
|
65
|
+
var e_1, _a;
|
|
66
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
+
const resArray = new Array();
|
|
68
|
+
try {
|
|
69
|
+
for (var _b = __asyncValues(client.factories.listByResourceGroup(resourceGroup)), _c; _c = yield _b.next(), !_c.done;) {
|
|
70
|
+
let item = _c.value;
|
|
71
|
+
resArray.push(item);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
75
|
+
finally {
|
|
76
|
+
try {
|
|
77
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
78
|
+
}
|
|
79
|
+
finally { if (e_1) throw e_1.error; }
|
|
80
|
+
}
|
|
81
|
+
assert.equal(resArray.length, 2);
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
it("datafactory delete test", function () {
|
|
85
|
+
var e_2, _a;
|
|
86
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
87
|
+
const resArray = new Array();
|
|
88
|
+
const res = yield client.factories.delete(resourceGroup, factoryName);
|
|
89
|
+
try {
|
|
90
|
+
for (var _b = __asyncValues(client.factories.listByResourceGroup(resourceGroup)), _c; _c = yield _b.next(), !_c.done;) {
|
|
91
|
+
let item = _c.value;
|
|
92
|
+
resArray.push(item);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
96
|
+
finally {
|
|
97
|
+
try {
|
|
98
|
+
if (_c && !_c.done && (_a = _b.return)) yield _a.call(_b);
|
|
99
|
+
}
|
|
100
|
+
finally { if (e_2) throw e_2.error; }
|
|
101
|
+
}
|
|
102
|
+
assert.equal(resArray.length, 1);
|
|
103
|
+
});
|
|
104
|
+
});
|
|
105
|
+
});
|
|
106
|
+
//# sourceMappingURL=datafactory_examples.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"datafactory_examples.spec.js","sourceRoot":"","sources":["../../test/datafactory_examples.spec.ts"],"names":[],"mappings":"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"}
|
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": "10.
|
|
6
|
+
"version": "10.8.0",
|
|
7
7
|
"engines": {
|
|
8
8
|
"node": ">=12.0.0"
|
|
9
9
|
},
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"mkdirp": "^1.0.4",
|
|
37
37
|
"rollup": "^2.66.1",
|
|
38
38
|
"rollup-plugin-sourcemaps": "^0.6.3",
|
|
39
|
-
"typescript": "~4.
|
|
39
|
+
"typescript": "~4.6.0",
|
|
40
40
|
"uglify-js": "^3.4.9",
|
|
41
41
|
"rimraf": "^3.0.0",
|
|
42
42
|
"@azure/identity": "^2.0.1",
|
|
@@ -23,7 +23,7 @@ export interface Activity {
|
|
|
23
23
|
dependsOn?: ActivityDependency[];
|
|
24
24
|
description?: string;
|
|
25
25
|
name: string;
|
|
26
|
-
type: "Container" | "Execution" | "Copy" | "HDInsightHive" | "HDInsightPig" | "HDInsightMapReduce" | "HDInsightStreaming" | "HDInsightSpark" | "ExecuteSSISPackage" | "Custom" | "SqlServerStoredProcedure" | "ExecutePipeline" | "Delete" | "AzureDataExplorerCommand" | "Lookup" | "WebActivity" | "GetMetadata" | "IfCondition" | "Switch" | "ForEach" | "AzureMLBatchExecution" | "AzureMLUpdateResource" | "AzureMLExecutePipeline" | "DataLakeAnalyticsU-SQL" | "Wait" | "Fail" | "Until" | "Validation" | "Filter" | "DatabricksNotebook" | "DatabricksSparkJar" | "DatabricksSparkPython" | "SetVariable" | "AppendVariable" | "AzureFunctionActivity" | "WebHook" | "ExecuteDataFlow" | "ExecuteWranglingDataflow" | "Script";
|
|
26
|
+
type: "Container" | "Execution" | "Copy" | "HDInsightHive" | "HDInsightPig" | "HDInsightMapReduce" | "HDInsightStreaming" | "HDInsightSpark" | "ExecuteSSISPackage" | "Custom" | "SqlServerStoredProcedure" | "ExecutePipeline" | "Delete" | "AzureDataExplorerCommand" | "Lookup" | "WebActivity" | "GetMetadata" | "IfCondition" | "Switch" | "ForEach" | "AzureMLBatchExecution" | "AzureMLUpdateResource" | "AzureMLExecutePipeline" | "DataLakeAnalyticsU-SQL" | "Wait" | "Fail" | "Until" | "Validation" | "Filter" | "DatabricksNotebook" | "DatabricksSparkJar" | "DatabricksSparkPython" | "SetVariable" | "AppendVariable" | "AzureFunctionActivity" | "WebHook" | "ExecuteDataFlow" | "ExecuteWranglingDataflow" | "Script" | "SynapseNotebook" | "SparkJob";
|
|
27
27
|
userProperties?: UserProperty[];
|
|
28
28
|
}
|
|
29
29
|
|
|
@@ -1042,6 +1042,13 @@ export interface AzureStorageLinkedService extends LinkedService {
|
|
|
1042
1042
|
type: "AzureStorage";
|
|
1043
1043
|
}
|
|
1044
1044
|
|
|
1045
|
+
// @public
|
|
1046
|
+
export interface AzureSynapseArtifactsLinkedService extends LinkedService {
|
|
1047
|
+
authentication?: any;
|
|
1048
|
+
endpoint: any;
|
|
1049
|
+
type: "AzureSynapseArtifacts";
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1045
1052
|
// @public
|
|
1046
1053
|
export interface AzureTableDataset extends Dataset {
|
|
1047
1054
|
tableName: any;
|
|
@@ -1074,6 +1081,15 @@ export interface AzureTableStorageLinkedService extends LinkedService {
|
|
|
1074
1081
|
type: "AzureTableStorage";
|
|
1075
1082
|
}
|
|
1076
1083
|
|
|
1084
|
+
// @public
|
|
1085
|
+
export interface BigDataPoolParametrizationReference {
|
|
1086
|
+
referenceName: any;
|
|
1087
|
+
type: BigDataPoolReferenceType;
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
// @public
|
|
1091
|
+
export type BigDataPoolReferenceType = string;
|
|
1092
|
+
|
|
1077
1093
|
// @public
|
|
1078
1094
|
export interface BinaryDataset extends Dataset {
|
|
1079
1095
|
compression?: DatasetCompression;
|
|
@@ -2506,11 +2522,11 @@ export interface ExecuteWranglingDataflowActivity extends Activity {
|
|
|
2506
2522
|
export interface ExecutionActivity extends Activity {
|
|
2507
2523
|
linkedServiceName?: LinkedServiceReference;
|
|
2508
2524
|
policy?: ActivityPolicy;
|
|
2509
|
-
type: "Execution" | "Copy" | "HDInsightHive" | "HDInsightPig" | "HDInsightMapReduce" | "HDInsightStreaming" | "HDInsightSpark" | "ExecuteSSISPackage" | "Custom" | "SqlServerStoredProcedure" | "Delete" | "AzureDataExplorerCommand" | "Lookup" | "WebActivity" | "GetMetadata" | "AzureMLBatchExecution" | "AzureMLUpdateResource" | "AzureMLExecutePipeline" | "DataLakeAnalyticsU-SQL" | "DatabricksNotebook" | "DatabricksSparkJar" | "DatabricksSparkPython" | "AzureFunctionActivity" | "ExecuteDataFlow" | "Script";
|
|
2525
|
+
type: "Execution" | "Copy" | "HDInsightHive" | "HDInsightPig" | "HDInsightMapReduce" | "HDInsightStreaming" | "HDInsightSpark" | "ExecuteSSISPackage" | "Custom" | "SqlServerStoredProcedure" | "Delete" | "AzureDataExplorerCommand" | "Lookup" | "WebActivity" | "GetMetadata" | "AzureMLBatchExecution" | "AzureMLUpdateResource" | "AzureMLExecutePipeline" | "DataLakeAnalyticsU-SQL" | "DatabricksNotebook" | "DatabricksSparkJar" | "DatabricksSparkPython" | "AzureFunctionActivity" | "ExecuteDataFlow" | "Script" | "SynapseNotebook" | "SparkJob";
|
|
2510
2526
|
}
|
|
2511
2527
|
|
|
2512
2528
|
// @public (undocumented)
|
|
2513
|
-
export type ExecutionActivityUnion = ExecutionActivity | CopyActivity | HDInsightHiveActivity | HDInsightPigActivity | HDInsightMapReduceActivity | HDInsightStreamingActivity | HDInsightSparkActivity | ExecuteSsisPackageActivity | CustomActivity | SqlServerStoredProcedureActivity | DeleteActivity | AzureDataExplorerCommandActivity | LookupActivity | WebActivity | GetMetadataActivity | AzureMLBatchExecutionActivity | AzureMLUpdateResourceActivity | AzureMLExecutePipelineActivity | DataLakeAnalyticsUsqlActivity | DatabricksNotebookActivity | DatabricksSparkJarActivity | DatabricksSparkPythonActivity | AzureFunctionActivity | ExecuteDataFlowActivity | ScriptActivity;
|
|
2529
|
+
export type ExecutionActivityUnion = ExecutionActivity | CopyActivity | HDInsightHiveActivity | HDInsightPigActivity | HDInsightMapReduceActivity | HDInsightStreamingActivity | HDInsightSparkActivity | ExecuteSsisPackageActivity | CustomActivity | SqlServerStoredProcedureActivity | DeleteActivity | AzureDataExplorerCommandActivity | LookupActivity | WebActivity | GetMetadataActivity | AzureMLBatchExecutionActivity | AzureMLUpdateResourceActivity | AzureMLExecutePipelineActivity | DataLakeAnalyticsUsqlActivity | DatabricksNotebookActivity | DatabricksSparkJarActivity | DatabricksSparkPythonActivity | AzureFunctionActivity | ExecuteDataFlowActivity | ScriptActivity | SynapseNotebookActivity | SynapseSparkJobDefinitionActivity;
|
|
2514
2530
|
|
|
2515
2531
|
// @public
|
|
2516
2532
|
export interface ExportSettings {
|
|
@@ -3087,6 +3103,13 @@ export interface GoogleCloudStorageReadSettings extends StoreReadSettings {
|
|
|
3087
3103
|
wildcardFolderPath?: any;
|
|
3088
3104
|
}
|
|
3089
3105
|
|
|
3106
|
+
// @public
|
|
3107
|
+
export interface GoogleSheetsLinkedService extends LinkedService {
|
|
3108
|
+
apiToken: SecretBaseUnion;
|
|
3109
|
+
encryptedCredential?: any;
|
|
3110
|
+
type: "GoogleSheets";
|
|
3111
|
+
}
|
|
3112
|
+
|
|
3090
3113
|
// @public
|
|
3091
3114
|
export interface GreenplumLinkedService extends LinkedService {
|
|
3092
3115
|
connectionString?: any;
|
|
@@ -4044,6 +4067,11 @@ export enum KnownAzureSearchIndexWriteBehaviorType {
|
|
|
4044
4067
|
Upload = "Upload"
|
|
4045
4068
|
}
|
|
4046
4069
|
|
|
4070
|
+
// @public
|
|
4071
|
+
export enum KnownBigDataPoolReferenceType {
|
|
4072
|
+
BigDataPoolReference = "BigDataPoolReference"
|
|
4073
|
+
}
|
|
4074
|
+
|
|
4047
4075
|
// @public
|
|
4048
4076
|
export enum KnownBlobEventTypes {
|
|
4049
4077
|
MicrosoftStorageBlobCreated = "Microsoft.Storage.BlobCreated",
|
|
@@ -4370,6 +4398,19 @@ export enum KnownNetezzaPartitionOption {
|
|
|
4370
4398
|
None = "None"
|
|
4371
4399
|
}
|
|
4372
4400
|
|
|
4401
|
+
// @public
|
|
4402
|
+
export enum KnownNotebookParameterType {
|
|
4403
|
+
Bool = "bool",
|
|
4404
|
+
Float = "float",
|
|
4405
|
+
Int = "int",
|
|
4406
|
+
String = "string"
|
|
4407
|
+
}
|
|
4408
|
+
|
|
4409
|
+
// @public
|
|
4410
|
+
export enum KnownNotebookReferenceType {
|
|
4411
|
+
NotebookReference = "NotebookReference"
|
|
4412
|
+
}
|
|
4413
|
+
|
|
4373
4414
|
// @public
|
|
4374
4415
|
export enum KnownODataAadServicePrincipalCredentialType {
|
|
4375
4416
|
ServicePrincipalCert = "ServicePrincipalCert",
|
|
@@ -4613,6 +4654,11 @@ export enum KnownSparkAuthenticationType {
|
|
|
4613
4654
|
WindowsAzureHDInsightService = "WindowsAzureHDInsightService"
|
|
4614
4655
|
}
|
|
4615
4656
|
|
|
4657
|
+
// @public
|
|
4658
|
+
export enum KnownSparkJobReferenceType {
|
|
4659
|
+
SparkJobDefinitionReference = "SparkJobDefinitionReference"
|
|
4660
|
+
}
|
|
4661
|
+
|
|
4616
4662
|
// @public
|
|
4617
4663
|
export enum KnownSparkServerType {
|
|
4618
4664
|
SharkServer = "SharkServer",
|
|
@@ -4819,7 +4865,7 @@ export interface LinkedService {
|
|
|
4819
4865
|
parameters?: {
|
|
4820
4866
|
[propertyName: string]: ParameterSpecification;
|
|
4821
4867
|
};
|
|
4822
|
-
type: "AzureStorage" | "AzureBlobStorage" | "AzureTableStorage" | "AzureSqlDW" | "SqlServer" | "AmazonRdsForSqlServer" | "AzureSqlDatabase" | "AzureSqlMI" | "AzureBatch" | "AzureKeyVault" | "CosmosDb" | "Dynamics" | "DynamicsCrm" | "CommonDataServiceForApps" | "HDInsight" | "FileServer" | "AzureFileStorage" | "AmazonS3Compatible" | "OracleCloudStorage" | "GoogleCloudStorage" | "Oracle" | "AmazonRdsForOracle" | "AzureMySql" | "MySql" | "PostgreSql" | "Sybase" | "Db2" | "Teradata" | "AzureML" | "AzureMLService" | "Odbc" | "Informix" | "MicrosoftAccess" | "Hdfs" | "OData" | "Web" | "Cassandra" | "MongoDb" | "MongoDbAtlas" | "MongoDbV2" | "CosmosDbMongoDbApi" | "AzureDataLakeStore" | "AzureBlobFS" | "Office365" | "Salesforce" | "SalesforceServiceCloud" | "SapCloudForCustomer" | "SapEcc" | "SapOpenHub" | "SapOdp" | "RestService" | "TeamDesk" | "Quickbase" | "Smartsheet" | "Zendesk" | "Dataworld" | "AppFigures" | "Asana" | "Twilio" | "AmazonS3" | "AmazonRedshift" | "CustomDataSource" | "AzureSearch" | "HttpServer" | "FtpServer" | "Sftp" | "SapBW" | "SapHana" | "AmazonMWS" | "AzurePostgreSql" | "Concur" | "Couchbase" | "Drill" | "Eloqua" | "GoogleBigQuery" | "Greenplum" | "HBase" | "Hive" | "Hubspot" | "Impala" | "Jira" | "Magento" | "MariaDB" | "AzureMariaDB" | "Marketo" | "Paypal" | "Phoenix" | "Presto" | "QuickBooks" | "ServiceNow" | "Shopify" | "Spark" | "Square" | "Xero" | "Zoho" | "Vertica" | "Netezza" | "SalesforceMarketingCloud" | "HDInsightOnDemand" | "AzureDataLakeAnalytics" | "AzureDatabricks" | "AzureDatabricksDeltaLake" | "Responsys" | "DynamicsAX" | "OracleServiceCloud" | "GoogleAdWords" | "SapTable" | "AzureDataExplorer" | "AzureFunction" | "Snowflake" | "SharePointOnlineList";
|
|
4868
|
+
type: "AzureStorage" | "AzureBlobStorage" | "AzureTableStorage" | "AzureSqlDW" | "SqlServer" | "AmazonRdsForSqlServer" | "AzureSqlDatabase" | "AzureSqlMI" | "AzureBatch" | "AzureKeyVault" | "CosmosDb" | "Dynamics" | "DynamicsCrm" | "CommonDataServiceForApps" | "HDInsight" | "FileServer" | "AzureFileStorage" | "AmazonS3Compatible" | "OracleCloudStorage" | "GoogleCloudStorage" | "Oracle" | "AmazonRdsForOracle" | "AzureMySql" | "MySql" | "PostgreSql" | "Sybase" | "Db2" | "Teradata" | "AzureML" | "AzureMLService" | "Odbc" | "Informix" | "MicrosoftAccess" | "Hdfs" | "OData" | "Web" | "Cassandra" | "MongoDb" | "MongoDbAtlas" | "MongoDbV2" | "CosmosDbMongoDbApi" | "AzureDataLakeStore" | "AzureBlobFS" | "Office365" | "Salesforce" | "SalesforceServiceCloud" | "SapCloudForCustomer" | "SapEcc" | "SapOpenHub" | "SapOdp" | "RestService" | "TeamDesk" | "Quickbase" | "Smartsheet" | "Zendesk" | "Dataworld" | "AppFigures" | "Asana" | "Twilio" | "GoogleSheets" | "AmazonS3" | "AmazonRedshift" | "CustomDataSource" | "AzureSearch" | "HttpServer" | "FtpServer" | "Sftp" | "SapBW" | "SapHana" | "AmazonMWS" | "AzurePostgreSql" | "Concur" | "Couchbase" | "Drill" | "Eloqua" | "GoogleBigQuery" | "Greenplum" | "HBase" | "Hive" | "Hubspot" | "Impala" | "Jira" | "Magento" | "MariaDB" | "AzureMariaDB" | "Marketo" | "Paypal" | "Phoenix" | "Presto" | "QuickBooks" | "ServiceNow" | "Shopify" | "Spark" | "Square" | "Xero" | "Zoho" | "Vertica" | "Netezza" | "SalesforceMarketingCloud" | "HDInsightOnDemand" | "AzureDataLakeAnalytics" | "AzureDatabricks" | "AzureDatabricksDeltaLake" | "Responsys" | "DynamicsAX" | "OracleServiceCloud" | "GoogleAdWords" | "SapTable" | "AzureDataExplorer" | "AzureFunction" | "Snowflake" | "SharePointOnlineList" | "AzureSynapseArtifacts";
|
|
4823
4869
|
}
|
|
4824
4870
|
|
|
4825
4871
|
// @public
|
|
@@ -4890,7 +4936,7 @@ export interface LinkedServicesListByFactoryOptionalParams extends coreClient.Op
|
|
|
4890
4936
|
export type LinkedServicesListByFactoryResponse = LinkedServiceListResponse;
|
|
4891
4937
|
|
|
4892
4938
|
// @public (undocumented)
|
|
4893
|
-
export type LinkedServiceUnion = LinkedService | AzureStorageLinkedService | AzureBlobStorageLinkedService | AzureTableStorageLinkedService | AzureSqlDWLinkedService | SqlServerLinkedService | AmazonRdsForSqlServerLinkedService | AzureSqlDatabaseLinkedService | AzureSqlMILinkedService | AzureBatchLinkedService | AzureKeyVaultLinkedService | CosmosDbLinkedService | DynamicsLinkedService | DynamicsCrmLinkedService | CommonDataServiceForAppsLinkedService | HDInsightLinkedService | FileServerLinkedService | AzureFileStorageLinkedService | AmazonS3CompatibleLinkedService | OracleCloudStorageLinkedService | GoogleCloudStorageLinkedService | OracleLinkedService | AmazonRdsForOracleLinkedService | AzureMySqlLinkedService | MySqlLinkedService | PostgreSqlLinkedService | SybaseLinkedService | Db2LinkedService | TeradataLinkedService | AzureMLLinkedService | AzureMLServiceLinkedService | OdbcLinkedService | InformixLinkedService | MicrosoftAccessLinkedService | HdfsLinkedService | ODataLinkedService | WebLinkedService | CassandraLinkedService | MongoDbLinkedService | MongoDbAtlasLinkedService | MongoDbV2LinkedService | CosmosDbMongoDbApiLinkedService | AzureDataLakeStoreLinkedService | AzureBlobFSLinkedService | Office365LinkedService | SalesforceLinkedService | SalesforceServiceCloudLinkedService | SapCloudForCustomerLinkedService | SapEccLinkedService | SapOpenHubLinkedService | SapOdpLinkedService | RestServiceLinkedService | TeamDeskLinkedService | QuickbaseLinkedService | SmartsheetLinkedService | ZendeskLinkedService | DataworldLinkedService | AppFiguresLinkedService | AsanaLinkedService | TwilioLinkedService | AmazonS3LinkedService | AmazonRedshiftLinkedService | CustomDataSourceLinkedService | AzureSearchLinkedService | HttpLinkedService | FtpServerLinkedService | SftpServerLinkedService | SapBWLinkedService | SapHanaLinkedService | AmazonMWSLinkedService | AzurePostgreSqlLinkedService | ConcurLinkedService | CouchbaseLinkedService | DrillLinkedService | EloquaLinkedService | GoogleBigQueryLinkedService | GreenplumLinkedService | HBaseLinkedService | HiveLinkedService | HubspotLinkedService | ImpalaLinkedService | JiraLinkedService | MagentoLinkedService | MariaDBLinkedService | AzureMariaDBLinkedService | MarketoLinkedService | PaypalLinkedService | PhoenixLinkedService | PrestoLinkedService | QuickBooksLinkedService | ServiceNowLinkedService | ShopifyLinkedService | SparkLinkedService | SquareLinkedService | XeroLinkedService | ZohoLinkedService | VerticaLinkedService | NetezzaLinkedService | SalesforceMarketingCloudLinkedService | HDInsightOnDemandLinkedService | AzureDataLakeAnalyticsLinkedService | AzureDatabricksLinkedService | AzureDatabricksDeltaLakeLinkedService | ResponsysLinkedService | DynamicsAXLinkedService | OracleServiceCloudLinkedService | GoogleAdWordsLinkedService | SapTableLinkedService | AzureDataExplorerLinkedService | AzureFunctionLinkedService | SnowflakeLinkedService | SharePointOnlineListLinkedService;
|
|
4939
|
+
export type LinkedServiceUnion = LinkedService | AzureStorageLinkedService | AzureBlobStorageLinkedService | AzureTableStorageLinkedService | AzureSqlDWLinkedService | SqlServerLinkedService | AmazonRdsForSqlServerLinkedService | AzureSqlDatabaseLinkedService | AzureSqlMILinkedService | AzureBatchLinkedService | AzureKeyVaultLinkedService | CosmosDbLinkedService | DynamicsLinkedService | DynamicsCrmLinkedService | CommonDataServiceForAppsLinkedService | HDInsightLinkedService | FileServerLinkedService | AzureFileStorageLinkedService | AmazonS3CompatibleLinkedService | OracleCloudStorageLinkedService | GoogleCloudStorageLinkedService | OracleLinkedService | AmazonRdsForOracleLinkedService | AzureMySqlLinkedService | MySqlLinkedService | PostgreSqlLinkedService | SybaseLinkedService | Db2LinkedService | TeradataLinkedService | AzureMLLinkedService | AzureMLServiceLinkedService | OdbcLinkedService | InformixLinkedService | MicrosoftAccessLinkedService | HdfsLinkedService | ODataLinkedService | WebLinkedService | CassandraLinkedService | MongoDbLinkedService | MongoDbAtlasLinkedService | MongoDbV2LinkedService | CosmosDbMongoDbApiLinkedService | AzureDataLakeStoreLinkedService | AzureBlobFSLinkedService | Office365LinkedService | SalesforceLinkedService | SalesforceServiceCloudLinkedService | SapCloudForCustomerLinkedService | SapEccLinkedService | SapOpenHubLinkedService | SapOdpLinkedService | RestServiceLinkedService | TeamDeskLinkedService | QuickbaseLinkedService | SmartsheetLinkedService | ZendeskLinkedService | DataworldLinkedService | AppFiguresLinkedService | AsanaLinkedService | TwilioLinkedService | GoogleSheetsLinkedService | AmazonS3LinkedService | AmazonRedshiftLinkedService | CustomDataSourceLinkedService | AzureSearchLinkedService | HttpLinkedService | FtpServerLinkedService | SftpServerLinkedService | SapBWLinkedService | SapHanaLinkedService | AmazonMWSLinkedService | AzurePostgreSqlLinkedService | ConcurLinkedService | CouchbaseLinkedService | DrillLinkedService | EloquaLinkedService | GoogleBigQueryLinkedService | GreenplumLinkedService | HBaseLinkedService | HiveLinkedService | HubspotLinkedService | ImpalaLinkedService | JiraLinkedService | MagentoLinkedService | MariaDBLinkedService | AzureMariaDBLinkedService | MarketoLinkedService | PaypalLinkedService | PhoenixLinkedService | PrestoLinkedService | QuickBooksLinkedService | ServiceNowLinkedService | ShopifyLinkedService | SparkLinkedService | SquareLinkedService | XeroLinkedService | ZohoLinkedService | VerticaLinkedService | NetezzaLinkedService | SalesforceMarketingCloudLinkedService | HDInsightOnDemandLinkedService | AzureDataLakeAnalyticsLinkedService | AzureDatabricksLinkedService | AzureDatabricksDeltaLakeLinkedService | ResponsysLinkedService | DynamicsAXLinkedService | OracleServiceCloudLinkedService | GoogleAdWordsLinkedService | SapTableLinkedService | AzureDataExplorerLinkedService | AzureFunctionLinkedService | SnowflakeLinkedService | SharePointOnlineListLinkedService | AzureSynapseArtifactsLinkedService;
|
|
4894
4940
|
|
|
4895
4941
|
// @public
|
|
4896
4942
|
export interface LogLocationSettings {
|
|
@@ -5380,6 +5426,18 @@ export interface NetezzaTableDataset extends Dataset {
|
|
|
5380
5426
|
type: "NetezzaTable";
|
|
5381
5427
|
}
|
|
5382
5428
|
|
|
5429
|
+
// @public
|
|
5430
|
+
export interface NotebookParameter {
|
|
5431
|
+
type?: NotebookParameterType;
|
|
5432
|
+
value?: any;
|
|
5433
|
+
}
|
|
5434
|
+
|
|
5435
|
+
// @public
|
|
5436
|
+
export type NotebookParameterType = string;
|
|
5437
|
+
|
|
5438
|
+
// @public
|
|
5439
|
+
export type NotebookReferenceType = string;
|
|
5440
|
+
|
|
5383
5441
|
// @public
|
|
5384
5442
|
export type ODataAadServicePrincipalCredentialType = string;
|
|
5385
5443
|
|
|
@@ -7090,6 +7148,9 @@ export interface SnowflakeSource extends CopySource {
|
|
|
7090
7148
|
// @public
|
|
7091
7149
|
export type SparkAuthenticationType = string;
|
|
7092
7150
|
|
|
7151
|
+
// @public
|
|
7152
|
+
export type SparkJobReferenceType = string;
|
|
7153
|
+
|
|
7093
7154
|
// @public
|
|
7094
7155
|
export interface SparkLinkedService extends LinkedService {
|
|
7095
7156
|
allowHostNameCNMismatch?: any;
|
|
@@ -7579,6 +7640,47 @@ export interface SybaseTableDataset extends Dataset {
|
|
|
7579
7640
|
type: "SybaseTable";
|
|
7580
7641
|
}
|
|
7581
7642
|
|
|
7643
|
+
// @public
|
|
7644
|
+
export interface SynapseNotebookActivity extends ExecutionActivity {
|
|
7645
|
+
conf?: any;
|
|
7646
|
+
driverSize?: any;
|
|
7647
|
+
executorSize?: any;
|
|
7648
|
+
notebook: SynapseNotebookReference;
|
|
7649
|
+
numExecutors?: number;
|
|
7650
|
+
parameters?: {
|
|
7651
|
+
[propertyName: string]: NotebookParameter;
|
|
7652
|
+
};
|
|
7653
|
+
sparkPool?: BigDataPoolParametrizationReference;
|
|
7654
|
+
type: "SynapseNotebook";
|
|
7655
|
+
}
|
|
7656
|
+
|
|
7657
|
+
// @public
|
|
7658
|
+
export interface SynapseNotebookReference {
|
|
7659
|
+
referenceName: any;
|
|
7660
|
+
type: NotebookReferenceType;
|
|
7661
|
+
}
|
|
7662
|
+
|
|
7663
|
+
// @public
|
|
7664
|
+
export interface SynapseSparkJobDefinitionActivity extends ExecutionActivity {
|
|
7665
|
+
arguments?: any[];
|
|
7666
|
+
className?: any;
|
|
7667
|
+
conf?: any;
|
|
7668
|
+
driverSize?: any;
|
|
7669
|
+
executorSize?: any;
|
|
7670
|
+
file?: any;
|
|
7671
|
+
files?: any[];
|
|
7672
|
+
numExecutors?: number;
|
|
7673
|
+
sparkJob: SynapseSparkJobReference;
|
|
7674
|
+
targetBigDataPool?: BigDataPoolParametrizationReference;
|
|
7675
|
+
type: "SparkJob";
|
|
7676
|
+
}
|
|
7677
|
+
|
|
7678
|
+
// @public
|
|
7679
|
+
export interface SynapseSparkJobReference {
|
|
7680
|
+
referenceName: string;
|
|
7681
|
+
type: SparkJobReferenceType;
|
|
7682
|
+
}
|
|
7683
|
+
|
|
7582
7684
|
// @public
|
|
7583
7685
|
export interface TabularSource extends CopySource {
|
|
7584
7686
|
additionalColumns?: any;
|
|
@@ -94,12 +94,15 @@ export class DataFactoryManagementClient extends coreClient.ServiceClient {
|
|
|
94
94
|
credential: credentials
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
-
const packageDetails = `azsdk-js-arm-datafactory/10.
|
|
97
|
+
const packageDetails = `azsdk-js-arm-datafactory/10.8.0`;
|
|
98
98
|
const userAgentPrefix =
|
|
99
99
|
options.userAgentOptions && options.userAgentOptions.userAgentPrefix
|
|
100
100
|
? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
|
|
101
101
|
: `${packageDetails}`;
|
|
102
102
|
|
|
103
|
+
if (!options.credentialScopes) {
|
|
104
|
+
options.credentialScopes = ["https://management.azure.com/.default"];
|
|
105
|
+
}
|
|
103
106
|
const optionsWithDefaults = {
|
|
104
107
|
...defaults,
|
|
105
108
|
...options,
|
|
@@ -111,27 +114,34 @@ export class DataFactoryManagementClient extends coreClient.ServiceClient {
|
|
|
111
114
|
};
|
|
112
115
|
super(optionsWithDefaults);
|
|
113
116
|
|
|
117
|
+
let bearerTokenAuthenticationPolicyFound: boolean = false;
|
|
114
118
|
if (options?.pipeline && options.pipeline.getOrderedPolicies().length > 0) {
|
|
115
119
|
const pipelinePolicies: coreRestPipeline.PipelinePolicy[] = options.pipeline.getOrderedPolicies();
|
|
116
|
-
|
|
120
|
+
bearerTokenAuthenticationPolicyFound = pipelinePolicies.some(
|
|
117
121
|
(pipelinePolicy) =>
|
|
118
122
|
pipelinePolicy.name ===
|
|
119
123
|
coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
120
124
|
);
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
125
|
+
}
|
|
126
|
+
if (
|
|
127
|
+
!options ||
|
|
128
|
+
!options.pipeline ||
|
|
129
|
+
options.pipeline.getOrderedPolicies().length == 0 ||
|
|
130
|
+
!bearerTokenAuthenticationPolicyFound
|
|
131
|
+
) {
|
|
132
|
+
this.pipeline.removePolicy({
|
|
133
|
+
name: coreRestPipeline.bearerTokenAuthenticationPolicyName
|
|
134
|
+
});
|
|
135
|
+
this.pipeline.addPolicy(
|
|
136
|
+
coreRestPipeline.bearerTokenAuthenticationPolicy({
|
|
137
|
+
credential: credentials,
|
|
138
|
+
scopes: `${optionsWithDefaults.credentialScopes}`,
|
|
139
|
+
challengeCallbacks: {
|
|
140
|
+
authorizeRequestOnChallenge:
|
|
141
|
+
coreClient.authorizeRequestOnClaimChallenge
|
|
142
|
+
}
|
|
143
|
+
})
|
|
144
|
+
);
|
|
135
145
|
}
|
|
136
146
|
// Parameter assignments
|
|
137
147
|
this.subscriptionId = subscriptionId;
|