Skip to content

Commit 9980055

Browse files
authored
arm-datafactory-release (Azure#16568)
1 parent 024c860 commit 9980055

23 files changed

+2272
-2364
lines changed

sdk/datafactory/arm-datafactory/README.md

Lines changed: 20 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This package contains an isomorphic SDK (runs both in node.js and in browsers) f
55
### Currently supported environments
66

77
- [LTS versions of Node.js](https://nodejs.org/about/releases/)
8-
- Latest versions of Safari, Chrome, Edge, and Firefox.
8+
- Latest versions of Safari, Chrome, Edge and Firefox.
99

1010
### Prerequisites
1111

@@ -14,18 +14,15 @@ You must have an [Azure subscription](https://azure.microsoft.com/free/).
1414
### How to install
1515

1616
To use this SDK in your project, you will need to install two packages.
17-
1817
- `@azure/arm-datafactory` that contains the client.
1918
- `@azure/identity` that provides different mechanisms for the client to authenticate your requests using Azure Active Directory.
2019

2120
Install both packages using the below command:
22-
2321
```bash
2422
npm install --save @azure/arm-datafactory @azure/identity
2523
```
26-
2724
> **Note**: You may have used either `@azure/ms-rest-nodeauth` or `@azure/ms-rest-browserauth` in the past. These packages are in maintenance mode receiving critical bug fixes, but no new features.
28-
> If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options.
25+
If you are on a [Node.js that has LTS status](https://nodejs.org/about/releases/), or are writing a client side browser application, we strongly encourage you to upgrade to `@azure/identity` which uses the latest versions of Azure Active Directory and MSAL APIs and provides more authentication options.
2926

3027
### How to use
3128

@@ -39,7 +36,6 @@ npm install --save @azure/arm-datafactory @azure/identity
3936

4037
In the below samples, we pass the credential and the Azure subscription id to instantiate the client.
4138
Once the client is created, explore the operations on it either in your favorite editor or in our [API reference documentation](https://docs.microsoft.com/javascript/api) to get started.
42-
4339
#### nodejs - Authentication, client creation, and list operations as an example written in JavaScript.
4440

4541
##### Sample code
@@ -53,24 +49,20 @@ const subscriptionId = process.env["AZURE_SUBSCRIPTION_ID"];
5349
// Please note that you can also use credentials from the `@azure/ms-rest-nodeauth` package instead.
5450
const creds = new DefaultAzureCredential();
5551
const client = new DataFactoryManagementClient(creds, subscriptionId);
56-
client.operations
57-
.list()
58-
.then((result) => {
59-
console.log("The result is:");
60-
console.log(result);
61-
})
62-
.catch((err) => {
63-
console.log("An error occurred:");
64-
console.error(err);
65-
});
52+
client.operations.list().then((result) => {
53+
console.log("The result is:");
54+
console.log(result);
55+
}).catch((err) => {
56+
console.log("An error occurred:");
57+
console.error(err);
58+
});
6659
```
6760

6861
#### browser - Authentication, client creation, and list operations as an example written in JavaScript.
6962

7063
In browser applications, we recommend using the `InteractiveBrowserCredential` that interactively authenticates using the default system browser.
71-
72-
- See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser.
73-
- Note down the client Id from the previous step and use it in the browser sample below.
64+
- See [Single-page application: App registration guide](https://docs.microsoft.com/azure/active-directory/develop/scenario-spa-app-registration) to configure your app registration for the browser.
65+
- Note down the client Id from the previous step and use it in the browser sample below.
7466

7567
##### Sample code
7668

@@ -88,21 +80,19 @@ In browser applications, we recommend using the `InteractiveBrowserCredential` t
8880
const subscriptionId = "<Subscription_Id>";
8981
// Create credentials using the `@azure/identity` package.
9082
// Please note that you can also use credentials from the `@azure/ms-rest-browserauth` package instead.
91-
const credential = new InteractiveBrowserCredential({
83+
const credential = new InteractiveBrowserCredential(
84+
{
9285
clientId: "<client id for your Azure AD app>",
9386
tenant: "<optional tenant for your organization>"
9487
});
9588
const client = new Azure.ArmDatafactory.DataFactoryManagementClient(creds, subscriptionId);
96-
client.operations
97-
.list()
98-
.then((result) => {
99-
console.log("The result is:");
100-
console.log(result);
101-
})
102-
.catch((err) => {
103-
console.log("An error occurred:");
104-
console.error(err);
105-
});
89+
client.operations.list().then((result) => {
90+
console.log("The result is:");
91+
console.log(result);
92+
}).catch((err) => {
93+
console.log("An error occurred:");
94+
console.error(err);
95+
});
10696
</script>
10797
</head>
10898
<body></body>

sdk/datafactory/arm-datafactory/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "@azure/arm-datafactory",
33
"author": "Microsoft Corporation",
44
"description": "DataFactoryManagementClient Library with typescript type definitions for node.js and browser.",
5-
"version": "7.8.0",
5+
"version": "7.9.0",
66
"dependencies": {
77
"@azure/ms-rest-azure-js": "^2.1.0",
88
"@azure/ms-rest-js": "^2.2.0",
@@ -27,7 +27,7 @@
2727
"rollup-plugin-sourcemaps": "^0.4.2",
2828
"uglify-js": "^3.6.0"
2929
},
30-
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/datafactory/arm-datafactory",
30+
"homepage": "https://github.com/Azure/azure-sdk-for-js/tree/feature/v4/sdk/datafactory/arm-datafactory",
3131
"repository": {
3232
"type": "git",
3333
"url": "https://github.com/Azure/azure-sdk-for-js.git"

sdk/datafactory/arm-datafactory/src/dataFactoryManagementClient.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import * as Mappers from "./models/mappers";
1414
import * as operations from "./operations";
1515
import { DataFactoryManagementClientContext } from "./dataFactoryManagementClientContext";
1616

17+
1718
class DataFactoryManagementClient extends DataFactoryManagementClientContext {
1819
// Operation groups
1920
operations: operations.Operations;
@@ -48,11 +49,7 @@ class DataFactoryManagementClient extends DataFactoryManagementClientContext {
4849
* @param subscriptionId The subscription identifier.
4950
* @param [options] The parameter options
5051
*/
51-
constructor(
52-
credentials: msRest.ServiceClientCredentials | TokenCredential,
53-
subscriptionId: string,
54-
options?: Models.DataFactoryManagementClientOptions
55-
) {
52+
constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.DataFactoryManagementClientOptions) {
5653
super(credentials, subscriptionId, options);
5754
this.operations = new operations.Operations(this);
5855
this.factories = new operations.Factories(this);

sdk/datafactory/arm-datafactory/src/dataFactoryManagementClientContext.ts

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import * as msRestAzure from "@azure/ms-rest-azure-js";
1313
import { TokenCredential } from "@azure/core-auth";
1414

1515
const packageName = "@azure/arm-datafactory";
16-
const packageVersion = "7.8.0";
16+
const packageVersion = "7.9.0";
1717

1818
export class DataFactoryManagementClientContext extends msRestAzure.AzureServiceClient {
1919
credentials: msRest.ServiceClientCredentials | TokenCredential;
@@ -31,16 +31,12 @@ export class DataFactoryManagementClientContext extends msRestAzure.AzureService
3131
* @param subscriptionId The subscription identifier.
3232
* @param [options] The parameter options
3333
*/
34-
constructor(
35-
credentials: msRest.ServiceClientCredentials | TokenCredential,
36-
subscriptionId: string,
37-
options?: Models.DataFactoryManagementClientOptions
38-
) {
34+
constructor(credentials: msRest.ServiceClientCredentials | TokenCredential, subscriptionId: string, options?: Models.DataFactoryManagementClientOptions) {
3935
if (credentials == undefined) {
40-
throw new Error("'credentials' cannot be null.");
36+
throw new Error('\'credentials\' cannot be null.');
4137
}
4238
if (subscriptionId == undefined) {
43-
throw new Error("'subscriptionId' cannot be null.");
39+
throw new Error('\'subscriptionId\' cannot be null.');
4440
}
4541

4642
if (!options) {
@@ -53,8 +49,8 @@ export class DataFactoryManagementClientContext extends msRestAzure.AzureService
5349

5450
super(credentials, options);
5551

56-
this.apiVersion = "2018-06-01";
57-
this.acceptLanguage = "en-US";
52+
this.apiVersion = '2018-06-01';
53+
this.acceptLanguage = 'en-US';
5854
this.longRunningOperationRetryTimeout = 30;
5955
this.baseUri = options.baseUri || this.baseUri || "https://management.azure.com";
6056
this.requestContentType = "application/json; charset=utf-8";
@@ -64,10 +60,7 @@ export class DataFactoryManagementClientContext extends msRestAzure.AzureService
6460
if (options.acceptLanguage !== null && options.acceptLanguage !== undefined) {
6561
this.acceptLanguage = options.acceptLanguage;
6662
}
67-
if (
68-
options.longRunningOperationRetryTimeout !== null &&
69-
options.longRunningOperationRetryTimeout !== undefined
70-
) {
63+
if (options.longRunningOperationRetryTimeout !== null && options.longRunningOperationRetryTimeout !== undefined) {
7164
this.longRunningOperationRetryTimeout = options.longRunningOperationRetryTimeout;
7265
}
7366
}

sdk/datafactory/arm-datafactory/src/models/dataFlowDebugSessionMappers.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ export {
7979
CouchbaseTableDataset,
8080
CreateDataFlowDebugSessionRequest,
8181
CreateDataFlowDebugSessionResponse,
82+
CredentialReference,
8283
CustomDataset,
8384
CustomDataSourceLinkedService,
8485
CustomSetupBase,

sdk/datafactory/arm-datafactory/src/models/dataFlowsMappers.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ export {
150150
CouchbaseLinkedService,
151151
CouchbaseSource,
152152
CouchbaseTableDataset,
153+
Credential,
154+
CredentialReference,
155+
CredentialResource,
153156
CustomActivity,
154157
CustomActivityReferenceObject,
155158
CustomDataset,
@@ -325,6 +328,7 @@ export {
325328
MagentoLinkedService,
326329
MagentoObjectDataset,
327330
MagentoSource,
331+
ManagedIdentityCredential,
328332
ManagedIntegrationRuntime,
329333
ManagedPrivateEndpoint,
330334
ManagedPrivateEndpointResource,
@@ -482,6 +486,7 @@ export {
482486
ServiceNowLinkedService,
483487
ServiceNowObjectDataset,
484488
ServiceNowSource,
489+
ServicePrincipalCredential,
485490
SetVariableActivity,
486491
SftpLocation,
487492
SftpReadSettings,

sdk/datafactory/arm-datafactory/src/models/datasetsMappers.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ export {
150150
CouchbaseLinkedService,
151151
CouchbaseSource,
152152
CouchbaseTableDataset,
153+
Credential,
154+
CredentialReference,
155+
CredentialResource,
153156
CustomActivity,
154157
CustomActivityReferenceObject,
155158
CustomDataset,
@@ -325,6 +328,7 @@ export {
325328
MagentoLinkedService,
326329
MagentoObjectDataset,
327330
MagentoSource,
331+
ManagedIdentityCredential,
328332
ManagedIntegrationRuntime,
329333
ManagedPrivateEndpoint,
330334
ManagedPrivateEndpointResource,
@@ -482,6 +486,7 @@ export {
482486
ServiceNowLinkedService,
483487
ServiceNowObjectDataset,
484488
ServiceNowSource,
489+
ServicePrincipalCredential,
485490
SetVariableActivity,
486491
SftpLocation,
487492
SftpReadSettings,

sdk/datafactory/arm-datafactory/src/models/factoriesMappers.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,9 @@ export {
151151
CouchbaseLinkedService,
152152
CouchbaseSource,
153153
CouchbaseTableDataset,
154+
Credential,
155+
CredentialReference,
156+
CredentialResource,
154157
CustomActivity,
155158
CustomActivityReferenceObject,
156159
CustomDataset,
@@ -251,6 +254,7 @@ export {
251254
GetMetadataActivity,
252255
GitHubAccessTokenRequest,
253256
GitHubAccessTokenResponse,
257+
GitHubClientSecret,
254258
GlobalParameterSpecification,
255259
GoogleAdWordsLinkedService,
256260
GoogleAdWordsObjectDataset,
@@ -330,6 +334,7 @@ export {
330334
MagentoLinkedService,
331335
MagentoObjectDataset,
332336
MagentoSource,
337+
ManagedIdentityCredential,
333338
ManagedIntegrationRuntime,
334339
ManagedPrivateEndpoint,
335340
ManagedPrivateEndpointResource,
@@ -487,6 +492,7 @@ export {
487492
ServiceNowLinkedService,
488493
ServiceNowObjectDataset,
489494
ServiceNowSource,
495+
ServicePrincipalCredential,
490496
SetVariableActivity,
491497
SftpLocation,
492498
SftpReadSettings,

0 commit comments

Comments
 (0)