@azure/arm-datafactory 10.1.1-alpha.20220208.1 → 10.2.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 CHANGED
@@ -1,15 +1,31 @@
1
1
  # Release History
2
+
3
+ ## 10.2.0 (2022-02-22)
4
+
5
+ **Features**
2
6
 
3
- ## 10.1.1 (Unreleased)
4
-
5
- ### Features Added
6
-
7
- ### Breaking Changes
8
-
9
- ### Bugs Fixed
10
-
11
- ### Other Changes
12
-
7
+ - Added Interface ScriptActivityParameter
8
+ - Added Interface ScriptActivityScriptBlock
9
+ - Added Interface ScriptActivityTypePropertiesLogSettings
10
+ - Added Type Alias QuickbaseLinkedService
11
+ - Added Type Alias ScriptActivity
12
+ - Added Type Alias ScriptActivityLogDestination
13
+ - Added Type Alias ScriptActivityParameterDirection
14
+ - Added Type Alias ScriptActivityParameterType
15
+ - Added Type Alias ScriptType
16
+ - Added Type Alias SmartsheetLinkedService
17
+ - Added Type Alias TeamDeskAuthenticationType
18
+ - Added Type Alias TeamDeskLinkedService
19
+ - Added Type Alias ZendeskAuthenticationType
20
+ - Added Type Alias ZendeskLinkedService
21
+ - Added Enum KnownScriptActivityLogDestination
22
+ - Added Enum KnownScriptActivityParameterDirection
23
+ - Added Enum KnownScriptActivityParameterType
24
+ - Added Enum KnownScriptType
25
+ - Added Enum KnownTeamDeskAuthenticationType
26
+ - Added Enum KnownZendeskAuthenticationType
27
+
28
+
13
29
  ## 10.1.0 (2022-01-10)
14
30
 
15
31
  **Features**
package/README.md CHANGED
@@ -16,6 +16,8 @@ The Azure Data Factory V2 management API provides a RESTful set of web services
16
16
  - [LTS versions of Node.js](https://nodejs.org/about/releases/)
17
17
  - Latest versions of Safari, Chrome, Edge and Firefox.
18
18
 
19
+ See our [support policy](https://github.com/Azure/azure-sdk-for-js/blob/main/SUPPORT.md) for more details.
20
+
19
21
  ### Prerequisites
20
22
 
21
23
  - An [Azure subscription][azure_sub].
@@ -49,8 +51,17 @@ For more information about how to create an Azure AD Application check out [this
49
51
  ```javascript
50
52
  const { DataFactoryManagementClient } = require("@azure/arm-datafactory");
51
53
  const { DefaultAzureCredential } = require("@azure/identity");
54
+ // For client-side applications running in the browser, use InteractiveBrowserCredential instead of DefaultAzureCredential. See https://aka.ms/azsdk/js/identity/examples for more details.
55
+
52
56
  const subscriptionId = "00000000-0000-0000-0000-000000000000";
53
57
  const client = new DataFactoryManagementClient(new DefaultAzureCredential(), subscriptionId);
58
+
59
+ // For client-side applications running in the browser, use this code instead:
60
+ // const credential = new InteractiveBrowserCredential({
61
+ // tenantId: "<YOUR_TENANT_ID>",
62
+ // clientId: "<YOUR_CLIENT_ID>"
63
+ // });
64
+ // const client = new DataFactoryManagementClient(credential, subscriptionId);
54
65
  ```
55
66
 
56
67
 
package/dist/index.js CHANGED
@@ -333,6 +333,18 @@ exports.KnownRestServiceAuthenticationType = void 0;
333
333
  KnownRestServiceAuthenticationType["AadServicePrincipal"] = "AadServicePrincipal";
334
334
  KnownRestServiceAuthenticationType["ManagedServiceIdentity"] = "ManagedServiceIdentity";
335
335
  })(exports.KnownRestServiceAuthenticationType || (exports.KnownRestServiceAuthenticationType = {}));
336
+ /** Known values of {@link TeamDeskAuthenticationType} that the service accepts. */
337
+ exports.KnownTeamDeskAuthenticationType = void 0;
338
+ (function (KnownTeamDeskAuthenticationType) {
339
+ KnownTeamDeskAuthenticationType["Basic"] = "Basic";
340
+ KnownTeamDeskAuthenticationType["Token"] = "Token";
341
+ })(exports.KnownTeamDeskAuthenticationType || (exports.KnownTeamDeskAuthenticationType = {}));
342
+ /** Known values of {@link ZendeskAuthenticationType} that the service accepts. */
343
+ exports.KnownZendeskAuthenticationType = void 0;
344
+ (function (KnownZendeskAuthenticationType) {
345
+ KnownZendeskAuthenticationType["Basic"] = "Basic";
346
+ KnownZendeskAuthenticationType["Token"] = "Token";
347
+ })(exports.KnownZendeskAuthenticationType || (exports.KnownZendeskAuthenticationType = {}));
336
348
  /** Known values of {@link HttpAuthenticationType} that the service accepts. */
337
349
  exports.KnownHttpAuthenticationType = void 0;
338
350
  (function (KnownHttpAuthenticationType) {
@@ -553,6 +565,41 @@ exports.KnownWebHookActivityMethod = void 0;
553
565
  (function (KnownWebHookActivityMethod) {
554
566
  KnownWebHookActivityMethod["Post"] = "POST";
555
567
  })(exports.KnownWebHookActivityMethod || (exports.KnownWebHookActivityMethod = {}));
568
+ /** Known values of {@link ScriptType} that the service accepts. */
569
+ exports.KnownScriptType = void 0;
570
+ (function (KnownScriptType) {
571
+ KnownScriptType["Query"] = "Query";
572
+ KnownScriptType["NonQuery"] = "NonQuery";
573
+ })(exports.KnownScriptType || (exports.KnownScriptType = {}));
574
+ /** Known values of {@link ScriptActivityParameterType} that the service accepts. */
575
+ exports.KnownScriptActivityParameterType = void 0;
576
+ (function (KnownScriptActivityParameterType) {
577
+ KnownScriptActivityParameterType["Boolean"] = "Boolean";
578
+ KnownScriptActivityParameterType["DateTime"] = "DateTime";
579
+ KnownScriptActivityParameterType["DateTimeOffset"] = "DateTimeOffset";
580
+ KnownScriptActivityParameterType["Decimal"] = "Decimal";
581
+ KnownScriptActivityParameterType["Double"] = "Double";
582
+ KnownScriptActivityParameterType["Guid"] = "Guid";
583
+ KnownScriptActivityParameterType["Int16"] = "Int16";
584
+ KnownScriptActivityParameterType["Int32"] = "Int32";
585
+ KnownScriptActivityParameterType["Int64"] = "Int64";
586
+ KnownScriptActivityParameterType["Single"] = "Single";
587
+ KnownScriptActivityParameterType["String"] = "String";
588
+ KnownScriptActivityParameterType["Timespan"] = "Timespan";
589
+ })(exports.KnownScriptActivityParameterType || (exports.KnownScriptActivityParameterType = {}));
590
+ /** Known values of {@link ScriptActivityParameterDirection} that the service accepts. */
591
+ exports.KnownScriptActivityParameterDirection = void 0;
592
+ (function (KnownScriptActivityParameterDirection) {
593
+ KnownScriptActivityParameterDirection["Input"] = "Input";
594
+ KnownScriptActivityParameterDirection["Output"] = "Output";
595
+ KnownScriptActivityParameterDirection["InputOutput"] = "InputOutput";
596
+ })(exports.KnownScriptActivityParameterDirection || (exports.KnownScriptActivityParameterDirection = {}));
597
+ /** Known values of {@link ScriptActivityLogDestination} that the service accepts. */
598
+ exports.KnownScriptActivityLogDestination = void 0;
599
+ (function (KnownScriptActivityLogDestination) {
600
+ KnownScriptActivityLogDestination["ActivityOutput"] = "ActivityOutput";
601
+ KnownScriptActivityLogDestination["ExternalStore"] = "ExternalStore";
602
+ })(exports.KnownScriptActivityLogDestination || (exports.KnownScriptActivityLogDestination = {}));
556
603
  /** Known values of {@link RecurrenceFrequency} that the service accepts. */
557
604
  exports.KnownRecurrenceFrequency = void 0;
558
605
  (function (KnownRecurrenceFrequency) {
@@ -1413,7 +1460,7 @@ const FactoryUpdateParameters = {
1413
1460
  }
1414
1461
  },
1415
1462
  publicNetworkAccess: {
1416
- serializedName: "publicNetworkAccess",
1463
+ serializedName: "properties.publicNetworkAccess",
1417
1464
  type: {
1418
1465
  name: "String"
1419
1466
  }
@@ -7228,6 +7275,103 @@ const PowerQuerySinkMapping = {
7228
7275
  }
7229
7276
  }
7230
7277
  };
7278
+ const ScriptActivityScriptBlock = {
7279
+ type: {
7280
+ name: "Composite",
7281
+ className: "ScriptActivityScriptBlock",
7282
+ modelProperties: {
7283
+ text: {
7284
+ serializedName: "text",
7285
+ required: true,
7286
+ type: {
7287
+ name: "Dictionary",
7288
+ value: { type: { name: "any" } }
7289
+ }
7290
+ },
7291
+ type: {
7292
+ serializedName: "type",
7293
+ required: true,
7294
+ type: {
7295
+ name: "String"
7296
+ }
7297
+ },
7298
+ parameters: {
7299
+ serializedName: "parameters",
7300
+ type: {
7301
+ name: "Sequence",
7302
+ element: {
7303
+ type: {
7304
+ name: "Composite",
7305
+ className: "ScriptActivityParameter"
7306
+ }
7307
+ }
7308
+ }
7309
+ }
7310
+ }
7311
+ }
7312
+ };
7313
+ const ScriptActivityParameter = {
7314
+ type: {
7315
+ name: "Composite",
7316
+ className: "ScriptActivityParameter",
7317
+ modelProperties: {
7318
+ name: {
7319
+ serializedName: "name",
7320
+ type: {
7321
+ name: "Dictionary",
7322
+ value: { type: { name: "any" } }
7323
+ }
7324
+ },
7325
+ type: {
7326
+ serializedName: "type",
7327
+ type: {
7328
+ name: "String"
7329
+ }
7330
+ },
7331
+ value: {
7332
+ serializedName: "value",
7333
+ type: {
7334
+ name: "Dictionary",
7335
+ value: { type: { name: "any" } }
7336
+ }
7337
+ },
7338
+ direction: {
7339
+ serializedName: "direction",
7340
+ type: {
7341
+ name: "String"
7342
+ }
7343
+ },
7344
+ size: {
7345
+ serializedName: "size",
7346
+ type: {
7347
+ name: "Number"
7348
+ }
7349
+ }
7350
+ }
7351
+ }
7352
+ };
7353
+ const ScriptActivityTypePropertiesLogSettings = {
7354
+ type: {
7355
+ name: "Composite",
7356
+ className: "ScriptActivityTypePropertiesLogSettings",
7357
+ modelProperties: {
7358
+ logDestination: {
7359
+ serializedName: "logDestination",
7360
+ required: true,
7361
+ type: {
7362
+ name: "String"
7363
+ }
7364
+ },
7365
+ logLocationSettings: {
7366
+ serializedName: "logLocationSettings",
7367
+ type: {
7368
+ name: "Composite",
7369
+ className: "LogLocationSettings"
7370
+ }
7371
+ }
7372
+ }
7373
+ }
7374
+ };
7231
7375
  const ScheduleTriggerRecurrence = {
7232
7376
  type: {
7233
7377
  name: "Composite",
@@ -10752,6 +10896,155 @@ const AmazonS3LinkedService = {
10752
10896
  } })
10753
10897
  }
10754
10898
  };
10899
+ const TeamDeskLinkedService = {
10900
+ serializedName: "TeamDesk",
10901
+ type: {
10902
+ name: "Composite",
10903
+ className: "TeamDeskLinkedService",
10904
+ uberParent: "LinkedService",
10905
+ additionalProperties: { type: { name: "Object" } },
10906
+ polymorphicDiscriminator: LinkedService.type.polymorphicDiscriminator,
10907
+ modelProperties: Object.assign(Object.assign({}, LinkedService.type.modelProperties), { authenticationType: {
10908
+ serializedName: "typeProperties.authenticationType",
10909
+ required: true,
10910
+ type: {
10911
+ name: "String"
10912
+ }
10913
+ }, url: {
10914
+ serializedName: "typeProperties.url",
10915
+ required: true,
10916
+ type: {
10917
+ name: "Dictionary",
10918
+ value: { type: { name: "any" } }
10919
+ }
10920
+ }, userName: {
10921
+ serializedName: "typeProperties.userName",
10922
+ type: {
10923
+ name: "Dictionary",
10924
+ value: { type: { name: "any" } }
10925
+ }
10926
+ }, password: {
10927
+ serializedName: "typeProperties.password",
10928
+ type: {
10929
+ name: "Composite",
10930
+ className: "SecretBase"
10931
+ }
10932
+ }, apiToken: {
10933
+ serializedName: "typeProperties.apiToken",
10934
+ type: {
10935
+ name: "Composite",
10936
+ className: "SecretBase"
10937
+ }
10938
+ }, encryptedCredential: {
10939
+ serializedName: "typeProperties.encryptedCredential",
10940
+ type: {
10941
+ name: "Dictionary",
10942
+ value: { type: { name: "any" } }
10943
+ }
10944
+ } })
10945
+ }
10946
+ };
10947
+ const QuickbaseLinkedService = {
10948
+ serializedName: "Quickbase",
10949
+ type: {
10950
+ name: "Composite",
10951
+ className: "QuickbaseLinkedService",
10952
+ uberParent: "LinkedService",
10953
+ additionalProperties: { type: { name: "Object" } },
10954
+ polymorphicDiscriminator: LinkedService.type.polymorphicDiscriminator,
10955
+ modelProperties: Object.assign(Object.assign({}, LinkedService.type.modelProperties), { url: {
10956
+ serializedName: "typeProperties.url",
10957
+ required: true,
10958
+ type: {
10959
+ name: "Dictionary",
10960
+ value: { type: { name: "any" } }
10961
+ }
10962
+ }, userToken: {
10963
+ serializedName: "typeProperties.userToken",
10964
+ type: {
10965
+ name: "Composite",
10966
+ className: "SecretBase"
10967
+ }
10968
+ }, encryptedCredential: {
10969
+ serializedName: "typeProperties.encryptedCredential",
10970
+ type: {
10971
+ name: "Dictionary",
10972
+ value: { type: { name: "any" } }
10973
+ }
10974
+ } })
10975
+ }
10976
+ };
10977
+ const SmartsheetLinkedService = {
10978
+ serializedName: "Smartsheet",
10979
+ type: {
10980
+ name: "Composite",
10981
+ className: "SmartsheetLinkedService",
10982
+ uberParent: "LinkedService",
10983
+ additionalProperties: { type: { name: "Object" } },
10984
+ polymorphicDiscriminator: LinkedService.type.polymorphicDiscriminator,
10985
+ modelProperties: Object.assign(Object.assign({}, LinkedService.type.modelProperties), { apiToken: {
10986
+ serializedName: "typeProperties.apiToken",
10987
+ type: {
10988
+ name: "Composite",
10989
+ className: "SecretBase"
10990
+ }
10991
+ }, encryptedCredential: {
10992
+ serializedName: "typeProperties.encryptedCredential",
10993
+ type: {
10994
+ name: "Dictionary",
10995
+ value: { type: { name: "any" } }
10996
+ }
10997
+ } })
10998
+ }
10999
+ };
11000
+ const ZendeskLinkedService = {
11001
+ serializedName: "Zendesk",
11002
+ type: {
11003
+ name: "Composite",
11004
+ className: "ZendeskLinkedService",
11005
+ uberParent: "LinkedService",
11006
+ additionalProperties: { type: { name: "Object" } },
11007
+ polymorphicDiscriminator: LinkedService.type.polymorphicDiscriminator,
11008
+ modelProperties: Object.assign(Object.assign({}, LinkedService.type.modelProperties), { authenticationType: {
11009
+ serializedName: "typeProperties.authenticationType",
11010
+ required: true,
11011
+ type: {
11012
+ name: "String"
11013
+ }
11014
+ }, url: {
11015
+ serializedName: "typeProperties.url",
11016
+ required: true,
11017
+ type: {
11018
+ name: "Dictionary",
11019
+ value: { type: { name: "any" } }
11020
+ }
11021
+ }, userName: {
11022
+ serializedName: "typeProperties.userName",
11023
+ type: {
11024
+ name: "Dictionary",
11025
+ value: { type: { name: "any" } }
11026
+ }
11027
+ }, password: {
11028
+ serializedName: "typeProperties.password",
11029
+ type: {
11030
+ name: "Composite",
11031
+ className: "SecretBase"
11032
+ }
11033
+ }, apiToken: {
11034
+ serializedName: "typeProperties.apiToken",
11035
+ type: {
11036
+ name: "Composite",
11037
+ className: "SecretBase"
11038
+ }
11039
+ }, encryptedCredential: {
11040
+ serializedName: "typeProperties.encryptedCredential",
11041
+ type: {
11042
+ name: "Dictionary",
11043
+ value: { type: { name: "any" } }
11044
+ }
11045
+ } })
11046
+ }
11047
+ };
10755
11048
  const AmazonRedshiftLinkedService = {
10756
11049
  serializedName: "AmazonRedshift",
10757
11050
  type: {
@@ -22655,6 +22948,34 @@ const ExecuteDataFlowActivity = {
22655
22948
  } })
22656
22949
  }
22657
22950
  };
22951
+ const ScriptActivity = {
22952
+ serializedName: "Script",
22953
+ type: {
22954
+ name: "Composite",
22955
+ className: "ScriptActivity",
22956
+ uberParent: "Activity",
22957
+ additionalProperties: { type: { name: "Object" } },
22958
+ polymorphicDiscriminator: Activity.type.polymorphicDiscriminator,
22959
+ modelProperties: Object.assign(Object.assign({}, ExecutionActivity.type.modelProperties), { scripts: {
22960
+ serializedName: "typeProperties.scripts",
22961
+ type: {
22962
+ name: "Sequence",
22963
+ element: {
22964
+ type: {
22965
+ name: "Composite",
22966
+ className: "ScriptActivityScriptBlock"
22967
+ }
22968
+ }
22969
+ }
22970
+ }, logSettings: {
22971
+ serializedName: "typeProperties.logSettings",
22972
+ type: {
22973
+ name: "Composite",
22974
+ className: "ScriptActivityTypePropertiesLogSettings"
22975
+ }
22976
+ } })
22977
+ }
22978
+ };
22658
22979
  const ScheduleTrigger = {
22659
22980
  serializedName: "ScheduleTrigger",
22660
22981
  type: {
@@ -24272,6 +24593,10 @@ let discriminators = {
24272
24593
  "LinkedService.SapOpenHub": SapOpenHubLinkedService,
24273
24594
  "LinkedService.RestService": RestServiceLinkedService,
24274
24595
  "LinkedService.AmazonS3": AmazonS3LinkedService,
24596
+ "LinkedService.TeamDesk": TeamDeskLinkedService,
24597
+ "LinkedService.Quickbase": QuickbaseLinkedService,
24598
+ "LinkedService.Smartsheet": SmartsheetLinkedService,
24599
+ "LinkedService.Zendesk": ZendeskLinkedService,
24275
24600
  "LinkedService.AmazonRedshift": AmazonRedshiftLinkedService,
24276
24601
  "LinkedService.CustomDataSource": CustomDataSourceLinkedService,
24277
24602
  "LinkedService.AzureSearch": AzureSearchLinkedService,
@@ -24608,6 +24933,7 @@ let discriminators = {
24608
24933
  "Activity.DatabricksSparkPython": DatabricksSparkPythonActivity,
24609
24934
  "Activity.AzureFunctionActivity": AzureFunctionActivity,
24610
24935
  "Activity.ExecuteDataFlow": ExecuteDataFlowActivity,
24936
+ "Activity.Script": ScriptActivity,
24611
24937
  "Trigger.ScheduleTrigger": ScheduleTrigger,
24612
24938
  "Trigger.BlobTrigger": BlobTrigger,
24613
24939
  "Trigger.BlobEventsTrigger": BlobEventsTrigger,
@@ -24877,6 +25203,9 @@ var Mappers = /*#__PURE__*/Object.freeze({
24877
25203
  ExecuteDataFlowActivityTypeProperties: ExecuteDataFlowActivityTypeProperties,
24878
25204
  ExecuteDataFlowActivityTypePropertiesCompute: ExecuteDataFlowActivityTypePropertiesCompute,
24879
25205
  PowerQuerySinkMapping: PowerQuerySinkMapping,
25206
+ ScriptActivityScriptBlock: ScriptActivityScriptBlock,
25207
+ ScriptActivityParameter: ScriptActivityParameter,
25208
+ ScriptActivityTypePropertiesLogSettings: ScriptActivityTypePropertiesLogSettings,
24880
25209
  ScheduleTriggerRecurrence: ScheduleTriggerRecurrence,
24881
25210
  RecurrenceSchedule: RecurrenceSchedule,
24882
25211
  RecurrenceScheduleOccurrence: RecurrenceScheduleOccurrence,
@@ -24957,6 +25286,10 @@ var Mappers = /*#__PURE__*/Object.freeze({
24957
25286
  SapOpenHubLinkedService: SapOpenHubLinkedService,
24958
25287
  RestServiceLinkedService: RestServiceLinkedService,
24959
25288
  AmazonS3LinkedService: AmazonS3LinkedService,
25289
+ TeamDeskLinkedService: TeamDeskLinkedService,
25290
+ QuickbaseLinkedService: QuickbaseLinkedService,
25291
+ SmartsheetLinkedService: SmartsheetLinkedService,
25292
+ ZendeskLinkedService: ZendeskLinkedService,
24960
25293
  AmazonRedshiftLinkedService: AmazonRedshiftLinkedService,
24961
25294
  CustomDataSourceLinkedService: CustomDataSourceLinkedService,
24962
25295
  AzureSearchLinkedService: AzureSearchLinkedService,
@@ -25300,6 +25633,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
25300
25633
  DatabricksSparkPythonActivity: DatabricksSparkPythonActivity,
25301
25634
  AzureFunctionActivity: AzureFunctionActivity,
25302
25635
  ExecuteDataFlowActivity: ExecuteDataFlowActivity,
25636
+ ScriptActivity: ScriptActivity,
25303
25637
  ScheduleTrigger: ScheduleTrigger,
25304
25638
  BlobTrigger: BlobTrigger,
25305
25639
  BlobEventsTrigger: BlobEventsTrigger,
@@ -30728,7 +31062,7 @@ class DataFactoryManagementClient extends coreClient__namespace.ServiceClient {
30728
31062
  requestContentType: "application/json; charset=utf-8",
30729
31063
  credential: credentials
30730
31064
  };
30731
- const packageDetails = `azsdk-js-arm-datafactory/10.1.0`;
31065
+ const packageDetails = `azsdk-js-arm-datafactory/10.2.0`;
30732
31066
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
30733
31067
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
30734
31068
  : `${packageDetails}`;