Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

[AutoPR] datafactory/resource-manager #2574

Merged
3 commits merged into from
Mar 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 2 additions & 0 deletions codegen_mappings.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@
"datafactory": {
"resource-manager": {
"packageName": "azure-arm-datafactory",
"packageVersion": "2.0.0-preview",
"generateReadmeMd": true,
"dir": "datafactoryManagement",
"source": "datafactory/resource-manager/readme.md"
}
Expand Down
4 changes: 2 additions & 2 deletions lib/services/datafactoryManagement/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2017 Microsoft
Copyright (c) 2018 Microsoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand All @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
SOFTWARE.
47 changes: 22 additions & 25 deletions lib/services/datafactoryManagement/README.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,34 @@
# Microsoft Azure SDK for Node.js - DatafactoryManagement
# Microsoft Azure SDK for Node.js - DataFactoryManagementClient
This project provides a Node.js package for accessing Azure. Right now it supports:
- **Node.js version 6.x.x or higher**

## Features

This project provides a Node.js package for accessing the Azure PAS. Right now it supports:
- **Node.js version: 6.x.x or higher**

## How to Install

```bash
npm install azure-arm-datafactory
```

## How to Use

### Authentication, client creation and listing factories as an example

```javascript
var msRestAzure = require('ms-rest-azure');
var DataFactoryManagementClient = require("azure-arm-datafactory");

// Interactive Login
// It provides a url and code that needs to be copied and pasted in a browser and authenticated over there. If successful,
// the user will get a DeviceTokenCredentials object.
msRestAzure.interactiveLogin(function(err, credentials) {
let client = new DataFactoryManagementClient(credentials, 'your-subscription-id');
client.factories.list().then((factories) => {
console.log('List of factories:');
console.dir(factories, {depth: null, colors: true});
});
}).catch((err) => {
console.log('An error ocurred');
console.dir(err, {depth: null, colors: true});
});
## How to use

### Authentication, client creation and list operations as an example.

```javascript
const msRestAzure = require("ms-rest-azure");
const DataFactoryManagementClient = require("azure-arm-datafactory");
msRestAzure.interactiveLogin().then((creds) => {
const subscriptionId = "<Subscription_Id>";
const client = new DataFactoryManagementClient(creds, subscriptionId);
return client.operations.list().then((result) => {
console.log("The result is:");
console.log(result);
});
}).catch((err) => {
console.log('An error ocurred:');
console.dir(err, {depth: null, colors: true});
});
```

## Related projects

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@

import { ServiceClientCredentials } from 'ms-rest';
import { AzureServiceClient, AzureServiceClientOptions } from 'ms-rest-azure';
import * as models from "./models";
import * as operations from "./operations";

declare class DataFactoryManagementClient extends AzureServiceClient {
export default class DataFactoryManagementClient extends AzureServiceClient {
/**
* Initializes a new instance of the DataFactoryManagementClient class.
* @constructor
Expand Down Expand Up @@ -58,6 +59,7 @@ declare class DataFactoryManagementClient extends AzureServiceClient {
operations: operations.Operations;
factories: operations.Factories;
integrationRuntimes: operations.IntegrationRuntimes;
integrationRuntimeNodes: operations.IntegrationRuntimeNodes;
linkedServices: operations.LinkedServices;
datasets: operations.Datasets;
pipelines: operations.Pipelines;
Expand All @@ -66,4 +68,4 @@ declare class DataFactoryManagementClient extends AzureServiceClient {
triggers: operations.Triggers;
}

export = DataFactoryManagementClient;
export { DataFactoryManagementClient, models as DataFactoryManagementModels };
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@ class DataFactoryManagementClient extends ServiceClient {
this.operations = new operations.Operations(this);
this.factories = new operations.Factories(this);
this.integrationRuntimes = new operations.IntegrationRuntimes(this);
this.integrationRuntimeNodes = new operations.IntegrationRuntimeNodes(this);
this.linkedServices = new operations.LinkedServices(this);
this.datasets = new operations.Datasets(this);
this.pipelines = new operations.Pipelines(this);
Expand All @@ -88,3 +89,6 @@ class DataFactoryManagementClient extends ServiceClient {
}

module.exports = DataFactoryManagementClient;
module.exports['default'] = DataFactoryManagementClient;
module.exports.DataFactoryManagementClient = DataFactoryManagementClient;
module.exports.DataFactoryManagementModels = models;
25 changes: 25 additions & 0 deletions lib/services/datafactoryManagement/lib/models/activity.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,18 @@ class Activity {
serializedName: 'Activity',
type: {
name: 'Composite',
additionalProperties: {
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'ObjectElementType',
type: {
name: 'Object'
}
}
}
},
polymorphicDiscriminator: {
serializedName: 'type',
clientName: 'type'
Expand Down Expand Up @@ -70,6 +82,18 @@ class Activity {
serializedName: 'ActivityDependencyElementType',
type: {
name: 'Composite',
additionalProperties: {
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'ObjectElementType',
type: {
name: 'Object'
}
}
}
},
className: 'ActivityDependency'
}
}
Expand All @@ -78,6 +102,7 @@ class Activity {
type: {
required: true,
serializedName: 'type',
isPolymorphicDiscriminator: true,
type: {
name: 'String'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,18 @@ class ActivityDependency {
serializedName: 'ActivityDependency',
type: {
name: 'Composite',
additionalProperties: {
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'ObjectElementType',
type: {
name: 'Object'
}
}
}
},
className: 'ActivityDependency',
modelProperties: {
activity: {
Expand Down
21 changes: 21 additions & 0 deletions lib/services/datafactoryManagement/lib/models/activityPolicy.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class ActivityPolicy {
* Type: integer (or Expression with resultType integer), minimum: 0.
* @member {number} [retryIntervalInSeconds] Interval between each retry
* attempt (in seconds). The default is 30 sec.
* @member {boolean} [secureOutput] When set to true, Output from activity is
* considered as secure and will not be logged to monitoring.
*/
constructor() {
}
Expand All @@ -40,6 +42,18 @@ class ActivityPolicy {
serializedName: 'ActivityPolicy',
type: {
name: 'Composite',
additionalProperties: {
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'ObjectElementType',
type: {
name: 'Object'
}
}
}
},
className: 'ActivityPolicy',
modelProperties: {
timeout: {
Expand All @@ -66,6 +80,13 @@ class ActivityPolicy {
type: {
name: 'Number'
}
},
secureOutput: {
required: false,
serializedName: 'secureOutput',
type: {
name: 'Boolean'
}
}
}
}
Expand Down
12 changes: 12 additions & 0 deletions lib/services/datafactoryManagement/lib/models/activityRun.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,18 @@ class ActivityRun {
serializedName: 'ActivityRun',
type: {
name: 'Composite',
additionalProperties: {
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'ObjectElementType',
type: {
name: 'Object'
}
}
}
},
className: 'ActivityRun',
modelProperties: {
pipelineName: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,18 @@ class ActivityRunsListResponse extends Array {
serializedName: 'ActivityRunElementType',
type: {
name: 'Composite',
additionalProperties: {
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'ObjectElementType',
type: {
name: 'Object'
}
}
}
},
className: 'ActivityRun'
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ class AmazonMWSLinkedService extends models['LinkedService'] {
serializedName: 'AmazonMWS',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'type',
clientName: 'type'
},
uberParent: 'LinkedService',
className: 'AmazonMWSLinkedService',
modelProperties: {
connectVia: {
Expand All @@ -76,9 +81,39 @@ class AmazonMWSLinkedService extends models['LinkedService'] {
name: 'String'
}
},
parameters: {
required: false,
serializedName: 'parameters',
type: {
name: 'Dictionary',
value: {
required: false,
serializedName: 'ParameterSpecificationElementType',
type: {
name: 'Composite',
className: 'ParameterSpecification'
}
}
}
},
annotations: {
required: false,
serializedName: 'annotations',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'ObjectElementType',
type: {
name: 'Object'
}
}
}
},
type: {
required: true,
serializedName: 'type',
isPolymorphicDiscriminator: true,
type: {
name: 'String'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ class AmazonMWSObjectDataset extends models['Dataset'] {
serializedName: 'AmazonMWSObject',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'type',
clientName: 'type'
},
uberParent: 'Dataset',
className: 'AmazonMWSObjectDataset',
modelProperties: {
description: {
Expand Down Expand Up @@ -77,9 +82,24 @@ class AmazonMWSObjectDataset extends models['Dataset'] {
}
}
},
annotations: {
required: false,
serializedName: 'annotations',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'ObjectElementType',
type: {
name: 'Object'
}
}
}
},
type: {
required: true,
serializedName: 'type',
isPolymorphicDiscriminator: true,
type: {
name: 'String'
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ class AmazonMWSSource extends models['CopySource'] {
serializedName: 'AmazonMWSSource',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'type',
clientName: 'type'
},
uberParent: 'CopySource',
className: 'AmazonMWSSource',
modelProperties: {
sourceRetryCount: {
Expand All @@ -58,6 +63,7 @@ class AmazonMWSSource extends models['CopySource'] {
type: {
required: true,
serializedName: 'type',
isPolymorphicDiscriminator: true,
type: {
name: 'String'
}
Expand Down
Loading