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

[AutoPR datafactory/resource-manager] [Data Factory]Add schema mapping for hierarchical data #2762

Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 21 additions & 21 deletions lib/services/datafactoryManagement/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
The MIT License (MIT)

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
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
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.
The MIT License (MIT)
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
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
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.
75 changes: 40 additions & 35 deletions lib/services/datafactoryManagement/README.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,40 @@
# 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


## How to Install

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

## 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

- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node)
---
uid: azure-arm-datafactory
summary: *content

---
# 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


## How to Install

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

## 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 occurred:');
console.dir(err, {depth: null, colors: true});
});

## Related projects

- [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node)
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ const models = require('./index');
class AzureMySqlLinkedService extends models['LinkedService'] {
/**
* Create a AzureMySqlLinkedService.
* @member {object} connectionString The connection string.
* @member {string} [connectionString.type] Polymorphic Discriminator
* @member {object} connectionString The connection string. Type: string,
* SecureString or AzureKeyVaultSecretReference.
* @member {object} [encryptedCredential] The encrypted credential used for
* authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string (or Expression with resultType string).
Expand Down Expand Up @@ -105,13 +105,7 @@ class AzureMySqlLinkedService extends models['LinkedService'] {
required: true,
serializedName: 'typeProperties.connectionString',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'type',
clientName: 'type'
},
uberParent: 'SecretBase',
className: 'SecretBase'
name: 'Object'
}
},
encryptedCredential: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ const models = require('./index');
class AzurePostgreSqlLinkedService extends models['LinkedService'] {
/**
* Create a AzurePostgreSqlLinkedService.
* @member {object} [connectionString] An ODBC connection string.
* @member {string} [connectionString.type] Polymorphic Discriminator
* @member {object} [connectionString] An ODBC connection string. Type:
* string, SecureString or AzureKeyVaultSecretReference.
* @member {object} [encryptedCredential] The encrypted credential used for
* authentication. Credentials are encrypted using the integration runtime
* credential manager. Type: string (or Expression with resultType string).
Expand Down Expand Up @@ -105,13 +105,7 @@ class AzurePostgreSqlLinkedService extends models['LinkedService'] {
required: false,
serializedName: 'typeProperties.connectionString',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'type',
clientName: 'type'
},
uberParent: 'SecretBase',
className: 'SecretBase'
name: 'Object'
}
},
encryptedCredential: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ const models = require('./index');
class AzureSqlDWLinkedService extends models['LinkedService'] {
/**
* Create a AzureSqlDWLinkedService.
* @member {object} connectionString The connection string.
* @member {string} [connectionString.type] Polymorphic Discriminator
* @member {object} connectionString The connection string. Type: string,
* SecureString or AzureKeyVaultSecretReference. Type: string, SecureString
* or AzureKeyVaultSecretReference.
* @member {object} [servicePrincipalId] The ID of the service principal used
* to authenticate against Azure SQL Data Warehouse. Type: string (or
* Expression with resultType string).
Expand Down Expand Up @@ -114,13 +115,7 @@ class AzureSqlDWLinkedService extends models['LinkedService'] {
required: true,
serializedName: 'typeProperties.connectionString',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'type',
clientName: 'type'
},
uberParent: 'SecretBase',
className: 'SecretBase'
name: 'Object'
}
},
servicePrincipalId: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ const models = require('./index');
class AzureSqlDatabaseLinkedService extends models['LinkedService'] {
/**
* Create a AzureSqlDatabaseLinkedService.
* @member {object} connectionString The connection string.
* @member {string} [connectionString.type] Polymorphic Discriminator
* @member {object} connectionString The connection string. Type: string,
* SecureString or AzureKeyVaultSecretReference.
* @member {object} [servicePrincipalId] The ID of the service principal used
* to authenticate against Azure SQL Database. Type: string (or Expression
* with resultType string).
Expand Down Expand Up @@ -114,13 +114,7 @@ class AzureSqlDatabaseLinkedService extends models['LinkedService'] {
required: true,
serializedName: 'typeProperties.connectionString',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'type',
clientName: 'type'
},
uberParent: 'SecretBase',
className: 'SecretBase'
name: 'Object'
}
},
servicePrincipalId: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class AzureStorageLinkedService extends models['LinkedService'] {
/**
* Create a AzureStorageLinkedService.
* @member {object} [connectionString] The connection string. It is mutually
* exclusive with sasUri property.
* @member {string} [connectionString.type] Polymorphic Discriminator
* exclusive with sasUri property. Type: string, SecureString or
* AzureKeyVaultSecretReference.
* @member {object} [sasUri] SAS URI of the Azure Storage resource. It is
* mutually exclusive with connectionString property.
* @member {string} [sasUri.type] Polymorphic Discriminator
Expand Down Expand Up @@ -109,13 +109,7 @@ class AzureStorageLinkedService extends models['LinkedService'] {
required: false,
serializedName: 'typeProperties.connectionString',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'type',
clientName: 'type'
},
uberParent: 'SecretBase',
className: 'SecretBase'
name: 'Object'
}
},
sasUri: {
Expand Down
137 changes: 137 additions & 0 deletions lib/services/datafactoryManagement/lib/models/blobEventsTrigger.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

const models = require('./index');

/**
* Trigger that runs everytime a Blob event occurs.
*
* @extends models['MultiplePipelineTrigger']
*/
class BlobEventsTrigger extends models['MultiplePipelineTrigger'] {
/**
* Create a BlobEventsTrigger.
* @member {string} [blobPathBeginsWith] The blob path must begin with the
* pattern provided for trigger to fire. For example,
* '/records/blobs/december/' will only fire the trigger for blobs in the
* december folder under the records container. At least one of these must be
* provided: blobPathBeginsWith, blobPathEndsWith.
* @member {string} [blobPathEndsWith] The blob path must end with the
* pattern provided for trigger to fire. For example, 'december/boxes.csv'
* will only fire the trigger for blobs named boxes in a december folder. At
* least one of these must be provided: blobPathBeginsWith, blobPathEndsWith.
* @member {array} events The type of events that cause this trigger to fire.
* @member {string} scope The ARM resource ID of the Storage Account.
*/
constructor() {
super();
}

/**
* Defines the metadata of BlobEventsTrigger
*
* @returns {object} metadata of BlobEventsTrigger
*
*/
mapper() {
return {
required: false,
serializedName: 'BlobEventsTrigger',
type: {
name: 'Composite',
polymorphicDiscriminator: {
serializedName: 'type',
clientName: 'type'
},
uberParent: 'Trigger',
className: 'BlobEventsTrigger',
modelProperties: {
description: {
required: false,
serializedName: 'description',
type: {
name: 'String'
}
},
runtimeState: {
required: false,
readOnly: true,
serializedName: 'runtimeState',
type: {
name: 'String'
}
},
type: {
required: true,
serializedName: 'type',
isPolymorphicDiscriminator: true,
type: {
name: 'String'
}
},
pipelines: {
required: false,
serializedName: 'pipelines',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'TriggerPipelineReferenceElementType',
type: {
name: 'Composite',
className: 'TriggerPipelineReference'
}
}
}
},
blobPathBeginsWith: {
required: false,
serializedName: 'typeProperties.blobPathBeginsWith',
type: {
name: 'String'
}
},
blobPathEndsWith: {
required: false,
serializedName: 'typeProperties.blobPathEndsWith',
type: {
name: 'String'
}
},
events: {
required: true,
serializedName: 'typeProperties.events',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
},
scope: {
required: true,
serializedName: 'typeProperties.scope',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = BlobEventsTrigger;
Loading