@azure/arm-datafactory 10.3.1-alpha.20220413.1 → 10.5.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,24 @@
1
1
  # Release History
2
+
3
+ ## 10.5.0 (2022-05-09)
4
+
5
+ **Features**
2
6
 
3
- ## 10.3.1 (Unreleased)
4
-
5
- ### Features Added
6
-
7
- ### Breaking Changes
8
-
9
- ### Bugs Fixed
10
-
11
- ### Other Changes
7
+ - Added Interface PrivateEndpoint
8
+ - Interface PrivateLinkConnectionApprovalRequest has a new optional parameter privateEndpoint
9
+ - Type Alias DataFlowSink has a new parameter rejectedDataLinkedService
10
+
11
+
12
+ ## 10.4.0 (2022-04-20)
13
+
14
+ **Features**
12
15
 
16
+ - Added Type Alias AppFiguresLinkedService
17
+ - Added Type Alias AsanaLinkedService
18
+ - Added Type Alias DataworldLinkedService
19
+ - Added Type Alias TwilioLinkedService
20
+
21
+
13
22
  ## 10.3.0 (2022-04-06)
14
23
 
15
24
  **Features**
package/dist/index.js CHANGED
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var coreClient = require('@azure/core-client');
6
+ var coreRestPipeline = require('@azure/core-rest-pipeline');
6
7
  var tslib = require('tslib');
7
8
  var coreLro = require('@azure/core-lro');
8
9
 
@@ -25,6 +26,7 @@ function _interopNamespace(e) {
25
26
  }
26
27
 
27
28
  var coreClient__namespace = /*#__PURE__*/_interopNamespace(coreClient);
29
+ var coreRestPipeline__namespace = /*#__PURE__*/_interopNamespace(coreRestPipeline);
28
30
 
29
31
  /*
30
32
  * Copyright (c) Microsoft Corporation.
@@ -4321,6 +4323,27 @@ const PrivateLinkConnectionApprovalRequest = {
4321
4323
  name: "Composite",
4322
4324
  className: "PrivateLinkConnectionState"
4323
4325
  }
4326
+ },
4327
+ privateEndpoint: {
4328
+ serializedName: "privateEndpoint",
4329
+ type: {
4330
+ name: "Composite",
4331
+ className: "PrivateEndpoint"
4332
+ }
4333
+ }
4334
+ }
4335
+ }
4336
+ };
4337
+ const PrivateEndpoint = {
4338
+ type: {
4339
+ name: "Composite",
4340
+ className: "PrivateEndpoint",
4341
+ modelProperties: {
4342
+ id: {
4343
+ serializedName: "id",
4344
+ type: {
4345
+ name: "String"
4346
+ }
4324
4347
  }
4325
4348
  }
4326
4349
  }
@@ -11076,6 +11099,106 @@ const ZendeskLinkedService = {
11076
11099
  } })
11077
11100
  }
11078
11101
  };
11102
+ const DataworldLinkedService = {
11103
+ serializedName: "Dataworld",
11104
+ type: {
11105
+ name: "Composite",
11106
+ className: "DataworldLinkedService",
11107
+ uberParent: "LinkedService",
11108
+ additionalProperties: { type: { name: "Object" } },
11109
+ polymorphicDiscriminator: LinkedService.type.polymorphicDiscriminator,
11110
+ modelProperties: Object.assign(Object.assign({}, LinkedService.type.modelProperties), { apiToken: {
11111
+ serializedName: "typeProperties.apiToken",
11112
+ type: {
11113
+ name: "Composite",
11114
+ className: "SecretBase"
11115
+ }
11116
+ }, encryptedCredential: {
11117
+ serializedName: "typeProperties.encryptedCredential",
11118
+ type: {
11119
+ name: "Dictionary",
11120
+ value: { type: { name: "any" } }
11121
+ }
11122
+ } })
11123
+ }
11124
+ };
11125
+ const AppFiguresLinkedService = {
11126
+ serializedName: "AppFigures",
11127
+ type: {
11128
+ name: "Composite",
11129
+ className: "AppFiguresLinkedService",
11130
+ uberParent: "LinkedService",
11131
+ additionalProperties: { type: { name: "Object" } },
11132
+ polymorphicDiscriminator: LinkedService.type.polymorphicDiscriminator,
11133
+ modelProperties: Object.assign(Object.assign({}, LinkedService.type.modelProperties), { userName: {
11134
+ serializedName: "typeProperties.userName",
11135
+ required: true,
11136
+ type: {
11137
+ name: "Dictionary",
11138
+ value: { type: { name: "any" } }
11139
+ }
11140
+ }, password: {
11141
+ serializedName: "typeProperties.password",
11142
+ type: {
11143
+ name: "Composite",
11144
+ className: "SecretBase"
11145
+ }
11146
+ }, clientKey: {
11147
+ serializedName: "typeProperties.clientKey",
11148
+ type: {
11149
+ name: "Composite",
11150
+ className: "SecretBase"
11151
+ }
11152
+ } })
11153
+ }
11154
+ };
11155
+ const AsanaLinkedService = {
11156
+ serializedName: "Asana",
11157
+ type: {
11158
+ name: "Composite",
11159
+ className: "AsanaLinkedService",
11160
+ uberParent: "LinkedService",
11161
+ additionalProperties: { type: { name: "Object" } },
11162
+ polymorphicDiscriminator: LinkedService.type.polymorphicDiscriminator,
11163
+ modelProperties: Object.assign(Object.assign({}, LinkedService.type.modelProperties), { apiToken: {
11164
+ serializedName: "typeProperties.apiToken",
11165
+ type: {
11166
+ name: "Composite",
11167
+ className: "SecretBase"
11168
+ }
11169
+ }, encryptedCredential: {
11170
+ serializedName: "typeProperties.encryptedCredential",
11171
+ type: {
11172
+ name: "Dictionary",
11173
+ value: { type: { name: "any" } }
11174
+ }
11175
+ } })
11176
+ }
11177
+ };
11178
+ const TwilioLinkedService = {
11179
+ serializedName: "Twilio",
11180
+ type: {
11181
+ name: "Composite",
11182
+ className: "TwilioLinkedService",
11183
+ uberParent: "LinkedService",
11184
+ additionalProperties: { type: { name: "Object" } },
11185
+ polymorphicDiscriminator: LinkedService.type.polymorphicDiscriminator,
11186
+ modelProperties: Object.assign(Object.assign({}, LinkedService.type.modelProperties), { userName: {
11187
+ serializedName: "typeProperties.userName",
11188
+ required: true,
11189
+ type: {
11190
+ name: "Dictionary",
11191
+ value: { type: { name: "any" } }
11192
+ }
11193
+ }, password: {
11194
+ serializedName: "typeProperties.password",
11195
+ type: {
11196
+ name: "Composite",
11197
+ className: "SecretBase"
11198
+ }
11199
+ } })
11200
+ }
11201
+ };
11079
11202
  const AmazonRedshiftLinkedService = {
11080
11203
  serializedName: "AmazonRedshift",
11081
11204
  type: {
@@ -17092,6 +17215,12 @@ const DataFlowSink = {
17092
17215
  name: "Composite",
17093
17216
  className: "LinkedServiceReference"
17094
17217
  }
17218
+ }, rejectedDataLinkedService: {
17219
+ serializedName: "rejectedDataLinkedService",
17220
+ type: {
17221
+ name: "Composite",
17222
+ className: "LinkedServiceReference"
17223
+ }
17095
17224
  } })
17096
17225
  }
17097
17226
  };
@@ -24637,6 +24766,10 @@ let discriminators = {
24637
24766
  "LinkedService.Quickbase": QuickbaseLinkedService,
24638
24767
  "LinkedService.Smartsheet": SmartsheetLinkedService,
24639
24768
  "LinkedService.Zendesk": ZendeskLinkedService,
24769
+ "LinkedService.Dataworld": DataworldLinkedService,
24770
+ "LinkedService.AppFigures": AppFiguresLinkedService,
24771
+ "LinkedService.Asana": AsanaLinkedService,
24772
+ "LinkedService.Twilio": TwilioLinkedService,
24640
24773
  "LinkedService.AmazonRedshift": AmazonRedshiftLinkedService,
24641
24774
  "LinkedService.CustomDataSource": CustomDataSourceLinkedService,
24642
24775
  "LinkedService.AzureSearch": AzureSearchLinkedService,
@@ -25151,6 +25284,7 @@ var Mappers = /*#__PURE__*/Object.freeze({
25151
25284
  ArmIdWrapper: ArmIdWrapper,
25152
25285
  PrivateLinkConnectionState: PrivateLinkConnectionState,
25153
25286
  PrivateLinkConnectionApprovalRequest: PrivateLinkConnectionApprovalRequest,
25287
+ PrivateEndpoint: PrivateEndpoint,
25154
25288
  PrivateLinkResourcesWrapper: PrivateLinkResourcesWrapper,
25155
25289
  PrivateLinkResourceProperties: PrivateLinkResourceProperties,
25156
25290
  Expression: Expression,
@@ -25331,6 +25465,10 @@ var Mappers = /*#__PURE__*/Object.freeze({
25331
25465
  QuickbaseLinkedService: QuickbaseLinkedService,
25332
25466
  SmartsheetLinkedService: SmartsheetLinkedService,
25333
25467
  ZendeskLinkedService: ZendeskLinkedService,
25468
+ DataworldLinkedService: DataworldLinkedService,
25469
+ AppFiguresLinkedService: AppFiguresLinkedService,
25470
+ AsanaLinkedService: AsanaLinkedService,
25471
+ TwilioLinkedService: TwilioLinkedService,
25334
25472
  AmazonRedshiftLinkedService: AmazonRedshiftLinkedService,
25335
25473
  CustomDataSourceLinkedService: CustomDataSourceLinkedService,
25336
25474
  AzureSearchLinkedService: AzureSearchLinkedService,
@@ -31122,7 +31260,7 @@ class DataFactoryManagementClient extends coreClient__namespace.ServiceClient {
31122
31260
  requestContentType: "application/json; charset=utf-8",
31123
31261
  credential: credentials
31124
31262
  };
31125
- const packageDetails = `azsdk-js-arm-datafactory/10.3.1`;
31263
+ const packageDetails = `azsdk-js-arm-datafactory/10.5.0`;
31126
31264
  const userAgentPrefix = options.userAgentOptions && options.userAgentOptions.userAgentPrefix
31127
31265
  ? `${options.userAgentOptions.userAgentPrefix} ${packageDetails}`
31128
31266
  : `${packageDetails}`;
@@ -31133,6 +31271,22 @@ class DataFactoryManagementClient extends coreClient__namespace.ServiceClient {
31133
31271
  userAgentPrefix
31134
31272
  }, baseUri: (_b = (_a = options.endpoint) !== null && _a !== void 0 ? _a : options.baseUri) !== null && _b !== void 0 ? _b : "https://management.azure.com" });
31135
31273
  super(optionsWithDefaults);
31274
+ if ((options === null || options === void 0 ? void 0 : options.pipeline) && options.pipeline.getOrderedPolicies().length > 0) {
31275
+ const pipelinePolicies = options.pipeline.getOrderedPolicies();
31276
+ const bearerTokenAuthenticationPolicyFound = pipelinePolicies.some((pipelinePolicy) => pipelinePolicy.name ===
31277
+ coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName);
31278
+ if (!bearerTokenAuthenticationPolicyFound) {
31279
+ this.pipeline.removePolicy({
31280
+ name: coreRestPipeline__namespace.bearerTokenAuthenticationPolicyName
31281
+ });
31282
+ this.pipeline.addPolicy(coreRestPipeline__namespace.bearerTokenAuthenticationPolicy({
31283
+ scopes: `${optionsWithDefaults.baseUri}/.default`,
31284
+ challengeCallbacks: {
31285
+ authorizeRequestOnChallenge: coreClient__namespace.authorizeRequestOnClaimChallenge
31286
+ }
31287
+ }));
31288
+ }
31289
+ }
31136
31290
  // Parameter assignments
31137
31291
  this.subscriptionId = subscriptionId;
31138
31292
  // Assigning values to Constant parameters