diff --git a/lib/services/datafactoryManagement/LICENSE.txt b/lib/services/datafactoryManagement/LICENSE.txt index a70e8cf660..5431ba98b9 100644 --- a/lib/services/datafactoryManagement/LICENSE.txt +++ b/lib/services/datafactoryManagement/LICENSE.txt @@ -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. diff --git a/lib/services/datafactoryManagement/README.md b/lib/services/datafactoryManagement/README.md index ffb98daecf..efde5c083a 100644 --- a/lib/services/datafactoryManagement/README.md +++ b/lib/services/datafactoryManagement/README.md @@ -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 = ""; - 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 = ""; + 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) diff --git a/lib/services/datafactoryManagement/lib/models/executeSSISPackageActivity.js b/lib/services/datafactoryManagement/lib/models/executeSSISPackageActivity.js index 7ca508a365..4c0f59bf91 100644 --- a/lib/services/datafactoryManagement/lib/models/executeSSISPackageActivity.js +++ b/lib/services/datafactoryManagement/lib/models/executeSSISPackageActivity.js @@ -26,13 +26,23 @@ class ExecuteSSISPackageActivity extends models['ExecutionActivity'] { * Possible values include: 'x64', 'x86' * @member {string} [loggingLevel] The logging level of SSIS package * execution. - * @member {string} [environmentPath] The environment path to execution the + * @member {string} [environmentPath] The environment path to execute the * SSIS package. * @member {object} connectVia The integration runtime reference. * @member {string} [connectVia.referenceName] Reference integration runtime * name. * @member {object} [connectVia.parameters] Arguments for integration * runtime. + * @member {object} [projectParameters] The project level parameters to + * execute the SSIS package. + * @member {object} [packageParameters] The package level parameters to + * execute the SSIS package. + * @member {object} [projectConnectionManagers] The project level connection + * managers to execute the SSIS package. + * @member {object} [packageConnectionManagers] The package level connection + * managers to execute the SSIS package. + * @member {object} [propertyOverrides] The property overrides to execute the + * SSIS package. */ constructor() { super(); @@ -171,6 +181,95 @@ class ExecuteSSISPackageActivity extends models['ExecutionActivity'] { name: 'Composite', className: 'IntegrationRuntimeReference' } + }, + projectParameters: { + required: false, + serializedName: 'typeProperties.projectParameters', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'SSISExecutionParameterElementType', + type: { + name: 'Composite', + className: 'SSISExecutionParameter' + } + } + } + }, + packageParameters: { + required: false, + serializedName: 'typeProperties.packageParameters', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'SSISExecutionParameterElementType', + type: { + name: 'Composite', + className: 'SSISExecutionParameter' + } + } + } + }, + projectConnectionManagers: { + required: false, + serializedName: 'typeProperties.projectConnectionManagers', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'SSISExecutionParameterElementType', + type: { + name: 'Composite', + className: 'SSISExecutionParameter' + } + } + } + } + } + }, + packageConnectionManagers: { + required: false, + serializedName: 'typeProperties.packageConnectionManagers', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'ObjectElementType', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'SSISExecutionParameterElementType', + type: { + name: 'Composite', + className: 'SSISExecutionParameter' + } + } + } + } + } + }, + propertyOverrides: { + required: false, + serializedName: 'typeProperties.propertyOverrides', + type: { + name: 'Dictionary', + value: { + required: false, + serializedName: 'SSISPropertyOverrideElementType', + type: { + name: 'Composite', + className: 'SSISPropertyOverride' + } + } + } } } } diff --git a/lib/services/datafactoryManagement/lib/models/factory.js b/lib/services/datafactoryManagement/lib/models/factory.js index 744284edbd..1a45217901 100644 --- a/lib/services/datafactoryManagement/lib/models/factory.js +++ b/lib/services/datafactoryManagement/lib/models/factory.js @@ -28,6 +28,15 @@ class Factory extends models['Resource'] { * @member {date} [createTime] Time the factory was created in ISO8601 * format. * @member {string} [version] Version of the factory. + * @member {object} [vstsConfiguration] VSTS repo information of the factory. + * @member {string} [vstsConfiguration.accountName] VSTS account name. + * @member {string} [vstsConfiguration.projectName] VSTS project name. + * @member {string} [vstsConfiguration.repositoryName] VSTS repository name. + * @member {string} [vstsConfiguration.collaborationBranch] VSTS + * collaboration branch. + * @member {string} [vstsConfiguration.rootFolder] VSTS root folder. + * @member {string} [vstsConfiguration.lastCommitId] VSTS last commit id. + * @member {string} [vstsConfiguration.tenantId] VSTS tenant id. */ constructor() { super(); @@ -135,6 +144,14 @@ class Factory extends models['Resource'] { type: { name: 'String' } + }, + vstsConfiguration: { + required: false, + serializedName: 'properties.vstsConfiguration', + type: { + name: 'Composite', + className: 'FactoryVSTSConfiguration' + } } } } diff --git a/lib/services/datafactoryManagement/lib/models/factoryRepoUpdate.js b/lib/services/datafactoryManagement/lib/models/factoryRepoUpdate.js new file mode 100644 index 0000000000..5d1f8786b0 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/factoryRepoUpdate.js @@ -0,0 +1,79 @@ +/* + * 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'); + +/** + * Factory's VSTS repo information. + * + */ +class FactoryRepoUpdate { + /** + * Create a FactoryRepoUpdate. + * @member {string} [factoryResourceId] The factory resource id. + * @member {string} [resourceGroupName] The resource group name. + * @member {object} [vstsConfiguration] VSTS repo information of the factory. + * @member {string} [vstsConfiguration.accountName] VSTS account name. + * @member {string} [vstsConfiguration.projectName] VSTS project name. + * @member {string} [vstsConfiguration.repositoryName] VSTS repository name. + * @member {string} [vstsConfiguration.collaborationBranch] VSTS + * collaboration branch. + * @member {string} [vstsConfiguration.rootFolder] VSTS root folder. + * @member {string} [vstsConfiguration.lastCommitId] VSTS last commit id. + * @member {string} [vstsConfiguration.tenantId] VSTS tenant id. + */ + constructor() { + } + + /** + * Defines the metadata of FactoryRepoUpdate + * + * @returns {object} metadata of FactoryRepoUpdate + * + */ + mapper() { + return { + required: false, + serializedName: 'FactoryRepoUpdate', + type: { + name: 'Composite', + className: 'FactoryRepoUpdate', + modelProperties: { + factoryResourceId: { + required: false, + serializedName: 'factoryResourceId', + type: { + name: 'String' + } + }, + resourceGroupName: { + required: false, + serializedName: 'resourceGroupName', + type: { + name: 'String' + } + }, + vstsConfiguration: { + required: false, + serializedName: 'vstsConfiguration', + type: { + name: 'Composite', + className: 'FactoryVSTSConfiguration' + } + } + } + } + }; + } +} + +module.exports = FactoryRepoUpdate; diff --git a/lib/services/datafactoryManagement/lib/models/factoryVSTSConfiguration.js b/lib/services/datafactoryManagement/lib/models/factoryVSTSConfiguration.js new file mode 100644 index 0000000000..b6267122e7 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/factoryVSTSConfiguration.js @@ -0,0 +1,100 @@ +/* + * 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'; + +/** + * Factory's VSTS repo information. + * + */ +class FactoryVSTSConfiguration { + /** + * Create a FactoryVSTSConfiguration. + * @member {string} [accountName] VSTS account name. + * @member {string} [projectName] VSTS project name. + * @member {string} [repositoryName] VSTS repository name. + * @member {string} [collaborationBranch] VSTS collaboration branch. + * @member {string} [rootFolder] VSTS root folder. + * @member {string} [lastCommitId] VSTS last commit id. + * @member {string} [tenantId] VSTS tenant id. + */ + constructor() { + } + + /** + * Defines the metadata of FactoryVSTSConfiguration + * + * @returns {object} metadata of FactoryVSTSConfiguration + * + */ + mapper() { + return { + required: false, + serializedName: 'FactoryVSTSConfiguration', + type: { + name: 'Composite', + className: 'FactoryVSTSConfiguration', + modelProperties: { + accountName: { + required: false, + serializedName: 'accountName', + type: { + name: 'String' + } + }, + projectName: { + required: false, + serializedName: 'projectName', + type: { + name: 'String' + } + }, + repositoryName: { + required: false, + serializedName: 'repositoryName', + type: { + name: 'String' + } + }, + collaborationBranch: { + required: false, + serializedName: 'collaborationBranch', + type: { + name: 'String' + } + }, + rootFolder: { + required: false, + serializedName: 'rootFolder', + type: { + name: 'String' + } + }, + lastCommitId: { + required: false, + serializedName: 'lastCommitId', + type: { + name: 'String' + } + }, + tenantId: { + required: false, + serializedName: 'tenantId', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = FactoryVSTSConfiguration; diff --git a/lib/services/datafactoryManagement/lib/models/index.d.ts b/lib/services/datafactoryManagement/lib/models/index.d.ts index 849302301d..d9a61bf263 100644 --- a/lib/services/datafactoryManagement/lib/models/index.d.ts +++ b/lib/services/datafactoryManagement/lib/models/index.d.ts @@ -140,6 +140,30 @@ export interface FactoryIdentity { readonly tenantId?: string; } +/** + * @class + * Initializes a new instance of the FactoryVSTSConfiguration class. + * @constructor + * Factory's VSTS repo information. + * + * @member {string} [accountName] VSTS account name. + * @member {string} [projectName] VSTS project name. + * @member {string} [repositoryName] VSTS repository name. + * @member {string} [collaborationBranch] VSTS collaboration branch. + * @member {string} [rootFolder] VSTS root folder. + * @member {string} [lastCommitId] VSTS last commit id. + * @member {string} [tenantId] VSTS tenant id. + */ +export interface FactoryVSTSConfiguration { + accountName?: string; + projectName?: string; + repositoryName?: string; + collaborationBranch?: string; + rootFolder?: string; + lastCommitId?: string; + tenantId?: string; +} + /** * @class * Initializes a new instance of the Factory class. @@ -153,12 +177,22 @@ export interface FactoryIdentity { * Succeeded. * @member {date} [createTime] Time the factory was created in ISO8601 format. * @member {string} [version] Version of the factory. + * @member {object} [vstsConfiguration] VSTS repo information of the factory. + * @member {string} [vstsConfiguration.accountName] VSTS account name. + * @member {string} [vstsConfiguration.projectName] VSTS project name. + * @member {string} [vstsConfiguration.repositoryName] VSTS repository name. + * @member {string} [vstsConfiguration.collaborationBranch] VSTS collaboration + * branch. + * @member {string} [vstsConfiguration.rootFolder] VSTS root folder. + * @member {string} [vstsConfiguration.lastCommitId] VSTS last commit id. + * @member {string} [vstsConfiguration.tenantId] VSTS tenant id. */ export interface Factory extends Resource { identity?: FactoryIdentity; readonly provisioningState?: string; readonly createTime?: Date; readonly version?: string; + vstsConfiguration?: FactoryVSTSConfiguration; /** * @property Describes unknown properties. The value of an unknown property * can be of "any" type. @@ -574,6 +608,30 @@ export interface ErrorResponse { details?: ErrorResponse[]; } +/** + * @class + * Initializes a new instance of the FactoryRepoUpdate class. + * @constructor + * Factory's VSTS repo information. + * + * @member {string} [factoryResourceId] The factory resource id. + * @member {string} [resourceGroupName] The resource group name. + * @member {object} [vstsConfiguration] VSTS repo information of the factory. + * @member {string} [vstsConfiguration.accountName] VSTS account name. + * @member {string} [vstsConfiguration.projectName] VSTS project name. + * @member {string} [vstsConfiguration.repositoryName] VSTS repository name. + * @member {string} [vstsConfiguration.collaborationBranch] VSTS collaboration + * branch. + * @member {string} [vstsConfiguration.rootFolder] VSTS root folder. + * @member {string} [vstsConfiguration.lastCommitId] VSTS last commit id. + * @member {string} [vstsConfiguration.tenantId] VSTS tenant id. + */ +export interface FactoryRepoUpdate { + factoryResourceId?: string; + resourceGroupName?: string; + vstsConfiguration?: FactoryVSTSConfiguration; +} + /** * @class * Initializes a new instance of the PipelineReference class. @@ -5644,6 +5702,35 @@ export interface CustomActivity extends ExecutionActivity { extendedProperties?: { [propertyName: string]: any }; } +/** + * @class + * Initializes a new instance of the SSISPropertyOverride class. + * @constructor + * SSIS property override. + * + * @member {object} value SSIS package property override value. Type: string + * (or Expression with resultType string). + * @member {boolean} [isSensitive] Whether SSIS package property override value + * is sensitive data. Value will be encrypted in SSISDB if it is true + */ +export interface SSISPropertyOverride { + value: any; + isSensitive?: boolean; +} + +/** + * @class + * Initializes a new instance of the SSISExecutionParameter class. + * @constructor + * SSIS execution parameter. + * + * @member {object} value SSIS package execution parameter value. Type: string + * (or Expression with resultType string). + */ +export interface SSISExecutionParameter { + value: any; +} + /** * @class * Initializes a new instance of the SSISPackageLocation class. @@ -5667,12 +5754,22 @@ export interface SSISPackageLocation { * @member {string} [runtime] Specifies the runtime to execute SSIS package. * Possible values include: 'x64', 'x86' * @member {string} [loggingLevel] The logging level of SSIS package execution. - * @member {string} [environmentPath] The environment path to execution the - * SSIS package. + * @member {string} [environmentPath] The environment path to execute the SSIS + * package. * @member {object} connectVia The integration runtime reference. * @member {string} [connectVia.referenceName] Reference integration runtime * name. * @member {object} [connectVia.parameters] Arguments for integration runtime. + * @member {object} [projectParameters] The project level parameters to execute + * the SSIS package. + * @member {object} [packageParameters] The package level parameters to execute + * the SSIS package. + * @member {object} [projectConnectionManagers] The project level connection + * managers to execute the SSIS package. + * @member {object} [packageConnectionManagers] The package level connection + * managers to execute the SSIS package. + * @member {object} [propertyOverrides] The property overrides to execute the + * SSIS package. */ export interface ExecuteSSISPackageActivity extends ExecutionActivity { packageLocation: SSISPackageLocation; @@ -5680,6 +5777,11 @@ export interface ExecuteSSISPackageActivity extends ExecutionActivity { loggingLevel?: string; environmentPath?: string; connectVia: IntegrationRuntimeReference; + projectParameters?: { [propertyName: string]: SSISExecutionParameter }; + packageParameters?: { [propertyName: string]: SSISExecutionParameter }; + projectConnectionManagers?: { [propertyName: string]: { [propertyName: string]: SSISExecutionParameter } }; + packageConnectionManagers?: { [propertyName: string]: { [propertyName: string]: SSISExecutionParameter } }; + propertyOverrides?: { [propertyName: string]: SSISPropertyOverride }; } /** diff --git a/lib/services/datafactoryManagement/lib/models/index.js b/lib/services/datafactoryManagement/lib/models/index.js index 83986bec0d..df6cbe1388 100644 --- a/lib/services/datafactoryManagement/lib/models/index.js +++ b/lib/services/datafactoryManagement/lib/models/index.js @@ -26,6 +26,7 @@ exports.SecureString = require('./secureString'); exports.LinkedServiceReference = require('./linkedServiceReference'); exports.AzureKeyVaultSecretReference = require('./azureKeyVaultSecretReference'); exports.FactoryIdentity = require('./factoryIdentity'); +exports.FactoryVSTSConfiguration = require('./factoryVSTSConfiguration'); exports.Factory = require('./factory'); exports.IntegrationRuntime = require('./integrationRuntime'); exports.IntegrationRuntimeResource = require('./integrationRuntimeResource'); @@ -47,6 +48,7 @@ exports.Trigger = require('./trigger'); exports.TriggerResource = require('./triggerResource'); exports.CreateRunResponse = require('./createRunResponse'); exports.ErrorResponse = require('./errorResponse'); +exports.FactoryRepoUpdate = require('./factoryRepoUpdate'); exports.PipelineReference = require('./pipelineReference'); exports.TriggerPipelineReference = require('./triggerPipelineReference'); exports.FactoryUpdateParameters = require('./factoryUpdateParameters'); @@ -280,6 +282,8 @@ exports.LookupActivity = require('./lookupActivity'); exports.SqlServerStoredProcedureActivity = require('./sqlServerStoredProcedureActivity'); exports.CustomActivityReferenceObject = require('./customActivityReferenceObject'); exports.CustomActivity = require('./customActivity'); +exports.SSISPropertyOverride = require('./sSISPropertyOverride'); +exports.SSISExecutionParameter = require('./sSISExecutionParameter'); exports.SSISPackageLocation = require('./sSISPackageLocation'); exports.ExecuteSSISPackageActivity = require('./executeSSISPackageActivity'); exports.HDInsightSparkActivity = require('./hDInsightSparkActivity'); diff --git a/lib/services/datafactoryManagement/lib/models/sSISExecutionParameter.js b/lib/services/datafactoryManagement/lib/models/sSISExecutionParameter.js new file mode 100644 index 0000000000..d74ade25b1 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/sSISExecutionParameter.js @@ -0,0 +1,53 @@ +/* + * 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'; + +/** + * SSIS execution parameter. + * + */ +class SSISExecutionParameter { + /** + * Create a SSISExecutionParameter. + * @member {object} value SSIS package execution parameter value. Type: + * string (or Expression with resultType string). + */ + constructor() { + } + + /** + * Defines the metadata of SSISExecutionParameter + * + * @returns {object} metadata of SSISExecutionParameter + * + */ + mapper() { + return { + required: false, + serializedName: 'SSISExecutionParameter', + type: { + name: 'Composite', + className: 'SSISExecutionParameter', + modelProperties: { + value: { + required: true, + serializedName: 'value', + type: { + name: 'Object' + } + } + } + } + }; + } +} + +module.exports = SSISExecutionParameter; diff --git a/lib/services/datafactoryManagement/lib/models/sSISPropertyOverride.js b/lib/services/datafactoryManagement/lib/models/sSISPropertyOverride.js new file mode 100644 index 0000000000..7b54b21d53 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/models/sSISPropertyOverride.js @@ -0,0 +1,62 @@ +/* + * 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'; + +/** + * SSIS property override. + * + */ +class SSISPropertyOverride { + /** + * Create a SSISPropertyOverride. + * @member {object} value SSIS package property override value. Type: string + * (or Expression with resultType string). + * @member {boolean} [isSensitive] Whether SSIS package property override + * value is sensitive data. Value will be encrypted in SSISDB if it is true + */ + constructor() { + } + + /** + * Defines the metadata of SSISPropertyOverride + * + * @returns {object} metadata of SSISPropertyOverride + * + */ + mapper() { + return { + required: false, + serializedName: 'SSISPropertyOverride', + type: { + name: 'Composite', + className: 'SSISPropertyOverride', + modelProperties: { + value: { + required: true, + serializedName: 'value', + type: { + name: 'Object' + } + }, + isSensitive: { + required: false, + serializedName: 'isSensitive', + type: { + name: 'Boolean' + } + } + } + } + }; + } +} + +module.exports = SSISPropertyOverride; diff --git a/lib/services/datafactoryManagement/lib/operations/configureFactoryRepo.js b/lib/services/datafactoryManagement/lib/operations/configureFactoryRepo.js new file mode 100644 index 0000000000..b1c9b4da83 --- /dev/null +++ b/lib/services/datafactoryManagement/lib/operations/configureFactoryRepo.js @@ -0,0 +1,362 @@ +/* + * 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 msRest = require('ms-rest'); +const msRestAzure = require('ms-rest-azure'); +const WebResource = msRest.WebResource; + +/** + * Updates a factory's repo information. + * + * @param {string} locationId The location identifier. + * + * @param {object} factoryRepoUpdate Update factory repo request definition. + * + * @param {string} [factoryRepoUpdate.factoryId] The factory id. + * + * @param {string} [factoryRepoUpdate.resourceGroupName] The resource group + * name. + * + * @param {object} [factoryRepoUpdate.vstsConfiguration] VSTS repo information + * of the factory. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.accountName] VSTS + * account name. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.projectName] VSTS + * project name. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.repositoryName] VSTS + * repository name. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.collaborationBranch] + * VSTS collaboration branch. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.rootFolder] VSTS root + * folder. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.lastCommitId] VSTS last + * commit id. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.tenantId] VSTS tenant + * id. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link Factory} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _update(locationId, factoryRepoUpdate, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + // Validate + try { + if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { + throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); + } + if (locationId === null || locationId === undefined || typeof locationId.valueOf() !== 'string') { + throw new Error('locationId cannot be null or undefined and it must be of type string.'); + } + if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { + throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); + } + if (factoryRepoUpdate === null || factoryRepoUpdate === undefined) { + throw new Error('factoryRepoUpdate cannot be null or undefined.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/locations/{locationId}/configureFactoryRepo'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{locationId}', encodeURIComponent(locationId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'POST'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + // Serialize Request + let requestContent = null; + let requestModel = null; + try { + if (factoryRepoUpdate !== null && factoryRepoUpdate !== undefined) { + let requestModelMapper = new client.models['FactoryRepoUpdate']().mapper(); + requestModel = client.serialize(requestModelMapper, factoryRepoUpdate, 'factoryRepoUpdate'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(factoryRepoUpdate, null, 2)}.`); + return callback(serializationError); + } + httpRequest.body = requestContent; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + let internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['ErrorResponse']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['Factory']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** Class representing a ConfigureFactoryRepo. */ +class ConfigureFactoryRepo { + /** + * Create a ConfigureFactoryRepo. + * @param {DataFactoryManagementClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._update = _update; + } + + /** + * Updates a factory's repo information. + * + * @param {string} locationId The location identifier. + * + * @param {object} factoryRepoUpdate Update factory repo request definition. + * + * @param {string} [factoryRepoUpdate.factoryId] The factory id. + * + * @param {string} [factoryRepoUpdate.resourceGroupName] The resource group + * name. + * + * @param {object} [factoryRepoUpdate.vstsConfiguration] VSTS repo information + * of the factory. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.accountName] VSTS + * account name. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.projectName] VSTS + * project name. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.repositoryName] VSTS + * repository name. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.collaborationBranch] + * VSTS collaboration branch. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.rootFolder] VSTS root + * folder. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.lastCommitId] VSTS last + * commit id. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.tenantId] VSTS tenant + * id. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + updateWithHttpOperationResponse(locationId, factoryRepoUpdate, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._update(locationId, factoryRepoUpdate, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Updates a factory's repo information. + * + * @param {string} locationId The location identifier. + * + * @param {object} factoryRepoUpdate Update factory repo request definition. + * + * @param {string} [factoryRepoUpdate.factoryId] The factory id. + * + * @param {string} [factoryRepoUpdate.resourceGroupName] The resource group + * name. + * + * @param {object} [factoryRepoUpdate.vstsConfiguration] VSTS repo information + * of the factory. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.accountName] VSTS + * account name. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.projectName] VSTS + * project name. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.repositoryName] VSTS + * repository name. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.collaborationBranch] + * VSTS collaboration branch. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.rootFolder] VSTS root + * folder. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.lastCommitId] VSTS last + * commit id. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.tenantId] VSTS tenant + * id. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {Factory} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link Factory} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + update(locationId, factoryRepoUpdate, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._update(locationId, factoryRepoUpdate, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._update(locationId, factoryRepoUpdate, options, optionalCallback); + } + } + +} + +module.exports = ConfigureFactoryRepo; diff --git a/lib/services/datafactoryManagement/lib/operations/configureRepo.js b/lib/services/datafactoryManagement/lib/operations/configureRepo.js new file mode 100644 index 0000000000..0a441b377e --- /dev/null +++ b/lib/services/datafactoryManagement/lib/operations/configureRepo.js @@ -0,0 +1,391 @@ +/* + * 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 msRest = require('ms-rest'); +const msRestAzure = require('ms-rest-azure'); +const WebResource = msRest.WebResource; + +/** + * Updates a factory's repo information. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {object} factoryRepoUpdate Update factory repo request definition. + * + * @param {string} [factoryRepoUpdate.factoryId] The factory id. + * + * @param {object} [factoryRepoUpdate.vstsConfiguration] VSTS repo information + * of the factory. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.accountName] VSTS + * account name. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.projectName] VSTS + * project name. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.repositoryName] VSTS + * repository name. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.collaborationBranch] + * VSTS collaboration branch. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.rootFolder] VSTS root + * folder. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.lastCommitId] VSTS last + * commit id. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.tenantId] VSTS tenant + * id. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link Factory} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _update(resourceGroupName, factoryName, factoryRepoUpdate, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + // Validate + try { + if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { + throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); + } + if (resourceGroupName === null || resourceGroupName === undefined || typeof resourceGroupName.valueOf() !== 'string') { + throw new Error('resourceGroupName cannot be null or undefined and it must be of type string.'); + } + if (resourceGroupName !== null && resourceGroupName !== undefined) { + if (resourceGroupName.length > 90) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MaxLength": 90'); + } + if (resourceGroupName.length < 1) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "MinLength": 1'); + } + if (resourceGroupName.match(/^[-\w\._\(\)]+$/) === null) + { + throw new Error('"resourceGroupName" should satisfy the constraint - "Pattern": /^[-\w\._\(\)]+$/'); + } + } + if (factoryName === null || factoryName === undefined || typeof factoryName.valueOf() !== 'string') { + throw new Error('factoryName cannot be null or undefined and it must be of type string.'); + } + if (factoryName !== null && factoryName !== undefined) { + if (factoryName.length > 63) + { + throw new Error('"factoryName" should satisfy the constraint - "MaxLength": 63'); + } + if (factoryName.length < 3) + { + throw new Error('"factoryName" should satisfy the constraint - "MinLength": 3'); + } + if (factoryName.match(/^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/) === null) + { + throw new Error('"factoryName" should satisfy the constraint - "Pattern": /^[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*$/'); + } + } + if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { + throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); + } + if (factoryRepoUpdate === null || factoryRepoUpdate === undefined) { + throw new Error('factoryRepoUpdate cannot be null or undefined.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataFactory/factories/{factoryName}/configureRepo'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{resourceGroupName}', encodeURIComponent(resourceGroupName)); + requestUrl = requestUrl.replace('{factoryName}', encodeURIComponent(factoryName)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'POST'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + // Serialize Request + let requestContent = null; + let requestModel = null; + try { + if (factoryRepoUpdate !== null && factoryRepoUpdate !== undefined) { + let requestModelMapper = new client.models['FactoryRepoUpdate']().mapper(); + requestModel = client.serialize(requestModelMapper, factoryRepoUpdate, 'factoryRepoUpdate'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(factoryRepoUpdate, null, 2)}.`); + return callback(serializationError); + } + httpRequest.body = requestContent; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + let internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['ErrorResponse']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['Factory']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + +/** Class representing a ConfigureRepo. */ +class ConfigureRepo { + /** + * Create a ConfigureRepo. + * @param {DataFactoryManagementClient} client Reference to the service client. + */ + constructor(client) { + this.client = client; + this._update = _update; + } + + /** + * Updates a factory's repo information. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {object} factoryRepoUpdate Update factory repo request definition. + * + * @param {string} [factoryRepoUpdate.factoryId] The factory id. + * + * @param {object} [factoryRepoUpdate.vstsConfiguration] VSTS repo information + * of the factory. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.accountName] VSTS + * account name. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.projectName] VSTS + * project name. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.repositoryName] VSTS + * repository name. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.collaborationBranch] + * VSTS collaboration branch. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.rootFolder] VSTS root + * folder. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.lastCommitId] VSTS last + * commit id. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.tenantId] VSTS tenant + * id. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + updateWithHttpOperationResponse(resourceGroupName, factoryName, factoryRepoUpdate, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._update(resourceGroupName, factoryName, factoryRepoUpdate, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Updates a factory's repo information. + * + * @param {string} resourceGroupName The resource group name. + * + * @param {string} factoryName The factory name. + * + * @param {object} factoryRepoUpdate Update factory repo request definition. + * + * @param {string} [factoryRepoUpdate.factoryId] The factory id. + * + * @param {object} [factoryRepoUpdate.vstsConfiguration] VSTS repo information + * of the factory. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.accountName] VSTS + * account name. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.projectName] VSTS + * project name. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.repositoryName] VSTS + * repository name. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.collaborationBranch] + * VSTS collaboration branch. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.rootFolder] VSTS root + * folder. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.lastCommitId] VSTS last + * commit id. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.tenantId] VSTS tenant + * id. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {Factory} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link Factory} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + update(resourceGroupName, factoryName, factoryRepoUpdate, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._update(resourceGroupName, factoryName, factoryRepoUpdate, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._update(resourceGroupName, factoryName, factoryRepoUpdate, options, optionalCallback); + } + } + +} + +module.exports = ConfigureRepo; diff --git a/lib/services/datafactoryManagement/lib/operations/factories.js b/lib/services/datafactoryManagement/lib/operations/factories.js index 89e120e913..ae06a221cb 100644 --- a/lib/services/datafactoryManagement/lib/operations/factories.js +++ b/lib/services/datafactoryManagement/lib/operations/factories.js @@ -148,6 +148,195 @@ function _list(options, callback) { }); } +/** + * Updates a factory's repo information. + * + * @param {string} locationId The location identifier. + * + * @param {object} factoryRepoUpdate Update factory repo request definition. + * + * @param {string} [factoryRepoUpdate.factoryResourceId] The factory resource + * id. + * + * @param {string} [factoryRepoUpdate.resourceGroupName] The resource group + * name. + * + * @param {object} [factoryRepoUpdate.vstsConfiguration] VSTS repo information + * of the factory. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.accountName] VSTS + * account name. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.projectName] VSTS + * project name. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.repositoryName] VSTS + * repository name. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.collaborationBranch] + * VSTS collaboration branch. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.rootFolder] VSTS root + * folder. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.lastCommitId] VSTS last + * commit id. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.tenantId] VSTS tenant + * id. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} callback - The callback. + * + * @returns {function} callback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link Factory} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ +function _configureFactoryRepo(locationId, factoryRepoUpdate, options, callback) { + /* jshint validthis: true */ + let client = this.client; + if(!callback && typeof options === 'function') { + callback = options; + options = null; + } + if (!callback) { + throw new Error('callback cannot be null.'); + } + // Validate + try { + if (this.client.subscriptionId === null || this.client.subscriptionId === undefined || typeof this.client.subscriptionId.valueOf() !== 'string') { + throw new Error('this.client.subscriptionId cannot be null or undefined and it must be of type string.'); + } + if (locationId === null || locationId === undefined || typeof locationId.valueOf() !== 'string') { + throw new Error('locationId cannot be null or undefined and it must be of type string.'); + } + if (this.client.apiVersion === null || this.client.apiVersion === undefined || typeof this.client.apiVersion.valueOf() !== 'string') { + throw new Error('this.client.apiVersion cannot be null or undefined and it must be of type string.'); + } + if (factoryRepoUpdate === null || factoryRepoUpdate === undefined) { + throw new Error('factoryRepoUpdate cannot be null or undefined.'); + } + if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { + throw new Error('this.client.acceptLanguage must be of type string.'); + } + } catch (error) { + return callback(error); + } + + // Construct URL + let baseUrl = this.client.baseUri; + let requestUrl = baseUrl + (baseUrl.endsWith('/') ? '' : '/') + 'subscriptions/{subscriptionId}/providers/Microsoft.DataFactory/locations/{locationId}/configureFactoryRepo'; + requestUrl = requestUrl.replace('{subscriptionId}', encodeURIComponent(this.client.subscriptionId)); + requestUrl = requestUrl.replace('{locationId}', encodeURIComponent(locationId)); + let queryParameters = []; + queryParameters.push('api-version=' + encodeURIComponent(this.client.apiVersion)); + if (queryParameters.length > 0) { + requestUrl += '?' + queryParameters.join('&'); + } + + // Create HTTP transport objects + let httpRequest = new WebResource(); + httpRequest.method = 'POST'; + httpRequest.url = requestUrl; + httpRequest.headers = {}; + // Set Headers + httpRequest.headers['Content-Type'] = 'application/json; charset=utf-8'; + if (this.client.generateClientRequestId) { + httpRequest.headers['x-ms-client-request-id'] = msRestAzure.generateUuid(); + } + if (this.client.acceptLanguage !== undefined && this.client.acceptLanguage !== null) { + httpRequest.headers['accept-language'] = this.client.acceptLanguage; + } + if(options) { + for(let headerName in options['customHeaders']) { + if (options['customHeaders'].hasOwnProperty(headerName)) { + httpRequest.headers[headerName] = options['customHeaders'][headerName]; + } + } + } + // Serialize Request + let requestContent = null; + let requestModel = null; + try { + if (factoryRepoUpdate !== null && factoryRepoUpdate !== undefined) { + let requestModelMapper = new client.models['FactoryRepoUpdate']().mapper(); + requestModel = client.serialize(requestModelMapper, factoryRepoUpdate, 'factoryRepoUpdate'); + requestContent = JSON.stringify(requestModel); + } + } catch (error) { + let serializationError = new Error(`Error "${error.message}" occurred in serializing the ` + + `payload - ${JSON.stringify(factoryRepoUpdate, null, 2)}.`); + return callback(serializationError); + } + httpRequest.body = requestContent; + // Send Request + return client.pipeline(httpRequest, (err, response, responseBody) => { + if (err) { + return callback(err); + } + let statusCode = response.statusCode; + if (statusCode !== 200) { + let error = new Error(responseBody); + error.statusCode = response.statusCode; + error.request = msRest.stripRequest(httpRequest); + error.response = msRest.stripResponse(response); + if (responseBody === '') responseBody = null; + let parsedErrorResponse; + try { + parsedErrorResponse = JSON.parse(responseBody); + if (parsedErrorResponse) { + let internalError = null; + if (parsedErrorResponse.error) internalError = parsedErrorResponse.error; + error.code = internalError ? internalError.code : parsedErrorResponse.code; + error.message = internalError ? internalError.message : parsedErrorResponse.message; + } + if (parsedErrorResponse !== null && parsedErrorResponse !== undefined) { + let resultMapper = new client.models['ErrorResponse']().mapper(); + error.body = client.deserialize(resultMapper, parsedErrorResponse, 'error.body'); + } + } catch (defaultError) { + error.message = `Error "${defaultError.message}" occurred in deserializing the responseBody ` + + `- "${responseBody}" for the default response.`; + return callback(error); + } + return callback(error); + } + // Create Result + let result = null; + if (responseBody === '') responseBody = null; + // Deserialize Response + if (statusCode === 200) { + let parsedResponse = null; + try { + parsedResponse = JSON.parse(responseBody); + result = JSON.parse(responseBody); + if (parsedResponse !== null && parsedResponse !== undefined) { + let resultMapper = new client.models['Factory']().mapper(); + result = client.deserialize(resultMapper, parsedResponse, 'result'); + } + } catch (error) { + let deserializationError = new Error(`Error ${error} occurred in deserializing the responseBody - ${responseBody}`); + deserializationError.request = msRest.stripRequest(httpRequest); + deserializationError.response = msRest.stripResponse(response); + return callback(deserializationError); + } + } + + return callback(null, result, httpRequest, response); + }); +} + /** * Lists factories. * @@ -313,6 +502,26 @@ function _listByResourceGroup(resourceGroupName, options, callback) { * * @param {object} [factory.identity] Managed service identity of the factory. * + * @param {object} [factory.vstsConfiguration] VSTS repo information of the + * factory. + * + * @param {string} [factory.vstsConfiguration.accountName] VSTS account name. + * + * @param {string} [factory.vstsConfiguration.projectName] VSTS project name. + * + * @param {string} [factory.vstsConfiguration.repositoryName] VSTS repository + * name. + * + * @param {string} [factory.vstsConfiguration.collaborationBranch] VSTS + * collaboration branch. + * + * @param {string} [factory.vstsConfiguration.rootFolder] VSTS root folder. + * + * @param {string} [factory.vstsConfiguration.lastCommitId] VSTS last commit + * id. + * + * @param {string} [factory.vstsConfiguration.tenantId] VSTS tenant id. + * * @param {string} [factory.location] The resource location. * * @param {object} [factory.tags] The resource tags. @@ -1465,6 +1674,7 @@ class Factories { constructor(client) { this.client = client; this._list = _list; + this._configureFactoryRepo = _configureFactoryRepo; this._listByResourceGroup = _listByResourceGroup; this._createOrUpdate = _createOrUpdate; this._update = _update; @@ -1553,6 +1763,152 @@ class Factories { } } + /** + * Updates a factory's repo information. + * + * @param {string} locationId The location identifier. + * + * @param {object} factoryRepoUpdate Update factory repo request definition. + * + * @param {string} [factoryRepoUpdate.factoryResourceId] The factory resource + * id. + * + * @param {string} [factoryRepoUpdate.resourceGroupName] The resource group + * name. + * + * @param {object} [factoryRepoUpdate.vstsConfiguration] VSTS repo information + * of the factory. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.accountName] VSTS + * account name. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.projectName] VSTS + * project name. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.repositoryName] VSTS + * repository name. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.collaborationBranch] + * VSTS collaboration branch. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.rootFolder] VSTS root + * folder. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.lastCommitId] VSTS last + * commit id. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.tenantId] VSTS tenant + * id. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error} - The error object. + */ + configureFactoryRepoWithHttpOperationResponse(locationId, factoryRepoUpdate, options) { + let client = this.client; + let self = this; + return new Promise((resolve, reject) => { + self._configureFactoryRepo(locationId, factoryRepoUpdate, options, (err, result, request, response) => { + let httpOperationResponse = new msRest.HttpOperationResponse(request, response); + httpOperationResponse.body = result; + if (err) { reject(err); } + else { resolve(httpOperationResponse); } + return; + }); + }); + } + + /** + * Updates a factory's repo information. + * + * @param {string} locationId The location identifier. + * + * @param {object} factoryRepoUpdate Update factory repo request definition. + * + * @param {string} [factoryRepoUpdate.factoryResourceId] The factory resource + * id. + * + * @param {string} [factoryRepoUpdate.resourceGroupName] The resource group + * name. + * + * @param {object} [factoryRepoUpdate.vstsConfiguration] VSTS repo information + * of the factory. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.accountName] VSTS + * account name. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.projectName] VSTS + * project name. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.repositoryName] VSTS + * repository name. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.collaborationBranch] + * VSTS collaboration branch. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.rootFolder] VSTS root + * folder. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.lastCommitId] VSTS last + * commit id. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.tenantId] VSTS tenant + * id. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {function} [optionalCallback] - The optional callback. + * + * @returns {function|Promise} If a callback was passed as the last parameter + * then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned + * + * @resolve {Factory} - The deserialized result object. + * + * @reject {Error} - The error object. + * + * {function} optionalCallback(err, result, request, response) + * + * {Error} err - The Error object if an error occurred, null otherwise. + * + * {object} [result] - The deserialized result object if an error did not occur. + * See {@link Factory} for more information. + * + * {object} [request] - The HTTP Request object if an error did not occur. + * + * {stream} [response] - The HTTP Response stream if an error did not occur. + */ + configureFactoryRepo(locationId, factoryRepoUpdate, options, optionalCallback) { + let client = this.client; + let self = this; + if (!optionalCallback && typeof options === 'function') { + optionalCallback = options; + options = null; + } + if (!optionalCallback) { + return new Promise((resolve, reject) => { + self._configureFactoryRepo(locationId, factoryRepoUpdate, options, (err, result, request, response) => { + if (err) { reject(err); } + else { resolve(result); } + return; + }); + }); + } else { + return self._configureFactoryRepo(locationId, factoryRepoUpdate, options, optionalCallback); + } + } + /** * Lists factories. * @@ -1646,6 +2002,26 @@ class Factories { * * @param {object} [factory.identity] Managed service identity of the factory. * + * @param {object} [factory.vstsConfiguration] VSTS repo information of the + * factory. + * + * @param {string} [factory.vstsConfiguration.accountName] VSTS account name. + * + * @param {string} [factory.vstsConfiguration.projectName] VSTS project name. + * + * @param {string} [factory.vstsConfiguration.repositoryName] VSTS repository + * name. + * + * @param {string} [factory.vstsConfiguration.collaborationBranch] VSTS + * collaboration branch. + * + * @param {string} [factory.vstsConfiguration.rootFolder] VSTS root folder. + * + * @param {string} [factory.vstsConfiguration.lastCommitId] VSTS last commit + * id. + * + * @param {string} [factory.vstsConfiguration.tenantId] VSTS tenant id. + * * @param {string} [factory.location] The resource location. * * @param {object} [factory.tags] The resource tags. @@ -1686,6 +2062,26 @@ class Factories { * * @param {object} [factory.identity] Managed service identity of the factory. * + * @param {object} [factory.vstsConfiguration] VSTS repo information of the + * factory. + * + * @param {string} [factory.vstsConfiguration.accountName] VSTS account name. + * + * @param {string} [factory.vstsConfiguration.projectName] VSTS project name. + * + * @param {string} [factory.vstsConfiguration.repositoryName] VSTS repository + * name. + * + * @param {string} [factory.vstsConfiguration.collaborationBranch] VSTS + * collaboration branch. + * + * @param {string} [factory.vstsConfiguration.rootFolder] VSTS root folder. + * + * @param {string} [factory.vstsConfiguration.lastCommitId] VSTS last commit + * id. + * + * @param {string} [factory.vstsConfiguration.tenantId] VSTS tenant id. + * * @param {string} [factory.location] The resource location. * * @param {object} [factory.tags] The resource tags. diff --git a/lib/services/datafactoryManagement/lib/operations/index.d.ts b/lib/services/datafactoryManagement/lib/operations/index.d.ts index 3a65b8a064..c8ff35b73d 100644 --- a/lib/services/datafactoryManagement/lib/operations/index.d.ts +++ b/lib/services/datafactoryManagement/lib/operations/index.d.ts @@ -132,6 +132,125 @@ export interface Factories { list(options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + /** + * Updates a factory's repo information. + * + * @param {string} locationId The location identifier. + * + * @param {object} factoryRepoUpdate Update factory repo request definition. + * + * @param {string} [factoryRepoUpdate.factoryResourceId] The factory resource + * id. + * + * @param {string} [factoryRepoUpdate.resourceGroupName] The resource group + * name. + * + * @param {object} [factoryRepoUpdate.vstsConfiguration] VSTS repo information + * of the factory. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.accountName] VSTS + * account name. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.projectName] VSTS + * project name. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.repositoryName] VSTS + * repository name. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.collaborationBranch] + * VSTS collaboration branch. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.rootFolder] VSTS root + * folder. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.lastCommitId] VSTS last + * commit id. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.tenantId] VSTS tenant + * id. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @returns {Promise} A promise is returned + * + * @resolve {HttpOperationResponse} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + */ + configureFactoryRepoWithHttpOperationResponse(locationId: string, factoryRepoUpdate: models.FactoryRepoUpdate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; + + /** + * Updates a factory's repo information. + * + * @param {string} locationId The location identifier. + * + * @param {object} factoryRepoUpdate Update factory repo request definition. + * + * @param {string} [factoryRepoUpdate.factoryResourceId] The factory resource + * id. + * + * @param {string} [factoryRepoUpdate.resourceGroupName] The resource group + * name. + * + * @param {object} [factoryRepoUpdate.vstsConfiguration] VSTS repo information + * of the factory. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.accountName] VSTS + * account name. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.projectName] VSTS + * project name. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.repositoryName] VSTS + * repository name. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.collaborationBranch] + * VSTS collaboration branch. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.rootFolder] VSTS root + * folder. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.lastCommitId] VSTS last + * commit id. + * + * @param {string} [factoryRepoUpdate.vstsConfiguration.tenantId] VSTS tenant + * id. + * + * @param {object} [options] Optional Parameters. + * + * @param {object} [options.customHeaders] Headers that will be added to the + * request + * + * @param {ServiceCallback} [optionalCallback] - The optional callback. + * + * @returns {ServiceCallback|Promise} If a callback was passed as the last + * parameter then it returns the callback else returns a Promise. + * + * {Promise} A promise is returned. + * + * @resolve {Factory} - The deserialized result object. + * + * @reject {Error|ServiceError} - The error object. + * + * {ServiceCallback} optionalCallback(err, result, request, response) + * + * {Error|ServiceError} err - The Error object if an error occurred, null otherwise. + * + * {Factory} [result] - The deserialized result object if an error did not occur. + * See {@link Factory} for more information. + * + * {WebResource} [request] - The HTTP Request object if an error did not occur. + * + * {http.IncomingMessage} [response] - The HTTP Response stream if an error did not occur. + */ + configureFactoryRepo(locationId: string, factoryRepoUpdate: models.FactoryRepoUpdate, options?: { customHeaders? : { [headerName: string]: string; } }): Promise; + configureFactoryRepo(locationId: string, factoryRepoUpdate: models.FactoryRepoUpdate, callback: ServiceCallback): void; + configureFactoryRepo(locationId: string, factoryRepoUpdate: models.FactoryRepoUpdate, options: { customHeaders? : { [headerName: string]: string; } }, callback: ServiceCallback): void; + + /** * Lists factories. * @@ -198,6 +317,26 @@ export interface Factories { * * @param {object} [factory.identity] Managed service identity of the factory. * + * @param {object} [factory.vstsConfiguration] VSTS repo information of the + * factory. + * + * @param {string} [factory.vstsConfiguration.accountName] VSTS account name. + * + * @param {string} [factory.vstsConfiguration.projectName] VSTS project name. + * + * @param {string} [factory.vstsConfiguration.repositoryName] VSTS repository + * name. + * + * @param {string} [factory.vstsConfiguration.collaborationBranch] VSTS + * collaboration branch. + * + * @param {string} [factory.vstsConfiguration.rootFolder] VSTS root folder. + * + * @param {string} [factory.vstsConfiguration.lastCommitId] VSTS last commit + * id. + * + * @param {string} [factory.vstsConfiguration.tenantId] VSTS tenant id. + * * @param {string} [factory.location] The resource location. * * @param {object} [factory.tags] The resource tags. @@ -226,6 +365,26 @@ export interface Factories { * * @param {object} [factory.identity] Managed service identity of the factory. * + * @param {object} [factory.vstsConfiguration] VSTS repo information of the + * factory. + * + * @param {string} [factory.vstsConfiguration.accountName] VSTS account name. + * + * @param {string} [factory.vstsConfiguration.projectName] VSTS project name. + * + * @param {string} [factory.vstsConfiguration.repositoryName] VSTS repository + * name. + * + * @param {string} [factory.vstsConfiguration.collaborationBranch] VSTS + * collaboration branch. + * + * @param {string} [factory.vstsConfiguration.rootFolder] VSTS root folder. + * + * @param {string} [factory.vstsConfiguration.lastCommitId] VSTS last commit + * id. + * + * @param {string} [factory.vstsConfiguration.tenantId] VSTS tenant id. + * * @param {string} [factory.location] The resource location. * * @param {object} [factory.tags] The resource tags. diff --git a/lib/services/datafactoryManagement/package.json b/lib/services/datafactoryManagement/package.json index befac77303..3de6e15545 100644 --- a/lib/services/datafactoryManagement/package.json +++ b/lib/services/datafactoryManagement/package.json @@ -7,7 +7,10 @@ "ms-rest": "^2.3.3", "ms-rest-azure": "^2.5.5" }, - "keywords": [ "node", "azure" ], + "keywords": [ + "node", + "azure" + ], "license": "MIT", "main": "./lib/dataFactoryManagementClient.js", "types": "./lib/dataFactoryManagementClient.d.ts",